bilibili-app-recommend

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

当前为 2023-03-24 提交的版本,查看 最新版本

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

(e=>{const i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.innerText=e,document.head.appendChild(i)})(` .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}._modal-mask_qk630_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_qk630_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_qk630_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_qk630_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_qk630_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_qk630_42{margin-left:10px}._btn-close_qk630_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_qk630_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_mcbuq_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:999999;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_mcbuq_1._single-line_mcbuq_17{text-align:center}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mqmiz_1{position:relative}._image-wrapper_mqmiz_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mqmiz_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;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_mqmiz_8 ._preview-card-inner_mqmiz_21{width:100%;height:100%}._watch-later_mqmiz_25{z-index:3}._badge_mqmiz_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_mqmiz_36{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_mqmiz_51{color:default}._btn-dislike_mqmiz_54{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_mqmiz_54 ._btn-dislike-icon_mqmiz_69{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mqmiz_54 ._btn-dislike-tip_mqmiz_76{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mqmiz_91{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mqmiz_91{border:1px solid #333}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-icon_mqmiz_122{margin-bottom:5px}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-reason_mqmiz_125{font-size:20px;text-align:center}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-desc_mqmiz_129{font-size:16px;text-align:center}._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133{border-top:1px solid #333}._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mqmiz_150 .bili-video-card__skeleton--cover,._skeleton-active_mqmiz_150 .bili-video-card__skeleton--text,._skeleton-active_mqmiz_150 .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_mqmiz_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mqmiz_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_14t5i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_14t5i_9{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_14t5i_9{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px){._video-grid_14t5i_9{grid-template-columns:repeat(6,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 13){display:none!important}}._video-grid_14t5i_9._internal-testing_14t5i_43{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 5){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 6){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_14t5i_71{grid-template-columns:repeat(2,1fr)!important}._config-icon_iaxr2_1{line-height:1;margin-right:5px;font-size:0}._settings-group_iaxr2_6{margin-bottom:10px}._settings-group_iaxr2_6 ._settings-group-title_iaxr2_9{font-size:2em}._settings-group_iaxr2_6 ._settings-group-content_iaxr2_12{color:default}._settings-group_iaxr2_6 ._settings-group-content_iaxr2_12 button:first-child{margin-left:0}._row_iaxr2_18{display:flex;align-items:center;flex-wrap:wrap}._row_iaxr2_18 .primary-btn:first-child{margin-left:0}._check_iaxr2_26{margin-bottom:5px}._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_juq7d_1._narrow-mode_juq7d_1{background-color:#000000e6}._modal_juq7d_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}body.dark ._modal_juq7d_1{border:1px solid #ff6699}._modal_juq7d_1._narrow-mode_juq7d_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_juq7d_1._narrow-mode_juq7d_1{border:none}._modal-header_juq7d_21,._modal-body_juq7d_22{padding-right:15px}body.dark ._btn-refresh_juq7d_25{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}
 `);

var xO=Object.defineProperty;var EO=(E,te,ue)=>te in E?xO(E,te,{enumerable:!0,configurable:!0,writable:!0,value:ue}):E[te]=ue;var Ee=(E,te,ue)=>(EO(E,typeof te!="symbol"?te+"":te,ue),ue),rl=(E,te,ue)=>{if(!te.has(E))throw TypeError("Cannot "+ue)};var b=(E,te,ue)=>(rl(E,te,"read from private field"),ue?ue.call(E):te.get(E)),K=(E,te,ue)=>{if(te.has(E))throw TypeError("Cannot add the same private member more than once");te instanceof WeakSet?te.add(E):te.set(E,ue)},q=(E,te,ue,kr)=>(rl(E,te,"write to private field"),kr?kr.call(E,ue):te.set(E,ue),ue),Qo=(E,te,ue,kr)=>({set _(Si){q(E,te,Si,ue)},get _(){return b(E,te,kr)}}),H=(E,te,ue)=>(rl(E,te,"access private method"),ue);(function(E,te,ue,kr){var ln,ft,rt,Ft,dt,fn,Oe,ht,Pe,le,G,We,nt,je,ke,gt,Le,Xt,Yt,pt,Mt,sr,Ge,hi,nl,$r,Jt,gi,it,Zo,zg,Or,dn,pi,Lt,cr,Rt,lr,mi,il,hn,ea,gn,ta,se,de,vi,ol,Pr,wi;"use strict";function Si(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=Si(E),Wg=Si(te);function Hg(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 Vg(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 qg=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vg(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Hg(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ne="-ms-",Ci="-moz-",ee="-webkit-",al="comm",ra="rule",na="decl",Gg="@import",sl="@keyframes",Ug=Math.abs,xi=String.fromCharCode,Kg=Object.assign;function Xg(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function cl(e){return e.trim()}function Yg(e,t){return(e=t.exec(e))?e[0]:e}function re(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function Fe(e,t){return e.charCodeAt(t)|0}function mn(e,t,r){return e.slice(t,r)}function bt(e){return e.length}function oa(e){return e.length}function Ei(e,t){return t.push(e),e}function Jg(e,t){return e.map(t).join("")}var _i=1,Ar=1,ll=0,He=0,we=0,Fr="";function $i(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_i,column:Ar,length:a,return:""}}function vn(e,t){return Kg($i("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zg(){return we}function Qg(){return we=He>0?Fe(Fr,--He):0,Ar--,we===10&&(Ar=1,_i--),we}function Ke(){return we=He<ll?Fe(Fr,He++):0,Ar++,we===10&&(Ar=1,_i++),we}function yt(){return Fe(Fr,He)}function Oi(){return He}function bn(e,t){return mn(Fr,e,t)}function yn(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 ul(e){return _i=Ar=1,ll=bt(Fr=e),He=0,[]}function fl(e){return Fr="",e}function Pi(e){return cl(bn(He-1,aa(e===91?e+2:e===40?e+1:e)))}function ep(e){for(;(we=yt())&&we<33;)Ke();return yn(e)>2||yn(we)>3?"":" "}function tp(e,t){for(;--t&&Ke()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return bn(e,Oi()+(t<6&&yt()==32&&Ke()==32))}function aa(e){for(;Ke();)switch(we){case e:return He;case 34:case 39:e!==34&&e!==39&&aa(we);break;case 40:e===41&&aa(e);break;case 92:Ke();break}return He}function rp(e,t){for(;Ke()&&e+we!==47+10;)if(e+we===42+42&&yt()===47)break;return"/*"+bn(t,He-1)+"*"+xi(e===47?e:Ke())}function np(e){for(;!yn(yt());)Ke();return bn(e,He)}function dl(e){return fl(Ti("",null,null,null,[""],e=ul(e),0,[0],e))}function Ti(e,t,r,n,i,o,a,s,c){for(var l=0,u=0,f=a,d=0,g=0,v=0,h=1,p=1,m=1,P=0,$="",O=i,C=o,w=n,_=$;p;)switch(v=P,P=Ke()){case 40:if(v!=108&&Fe(_,f-1)==58){ia(_+=re(Pi(P),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:_+=Pi(P);break;case 9:case 10:case 13:case 32:_+=ep(v);break;case 92:_+=tp(Oi()-1,7);continue;case 47:switch(yt()){case 42:case 47:Ei(ip(rp(Ke(),Oi()),t,r),c);break;default:_+="/"}break;case 123*h:s[l++]=bt(_)*m;case 125*h:case 59:case 0:switch(P){case 0:case 125:p=0;case 59+u:g>0&&bt(_)-f&&Ei(g>32?gl(_+";",n,r,f-1):gl(re(_," ","")+";",n,r,f-2),c);break;case 59:_+=";";default:if(Ei(w=hl(_,t,r,l,u,i,s,$,O=[],C=[],f),o),P===123)if(u===0)Ti(_,t,w,w,O,o,f,s,C);else switch(d===99&&Fe(_,3)===110?100:d){case 100:case 109:case 115:Ti(e,w,w,n&&Ei(hl(e,w,w,0,0,i,s,$,i,O=[],f),C),i,C,f,s,n?O:C);break;default:Ti(_,w,w,w,[""],C,0,s,C)}}l=u=g=0,h=m=1,$=_="",f=a;break;case 58:f=1+bt(_),g=v;default:if(h<1){if(P==123)--h;else if(P==125&&h++==0&&Qg()==125)continue}switch(_+=xi(P),P*h){case 38:m=u>0?1:(_+="\f",-1);break;case 44:s[l++]=(bt(_)-1)*m,m=1;break;case 64:yt()===45&&(_+=Pi(Ke())),d=yt(),u=f=bt($=_+=np(Oi())),P++;break;case 45:v===45&&bt(_)==2&&(h=0)}}return o}function hl(e,t,r,n,i,o,a,s,c,l,u){for(var f=i-1,d=i===0?o:[""],g=oa(d),v=0,h=0,p=0;v<n;++v)for(var m=0,P=mn(e,f+1,f=Ug(h=a[v])),$=e;m<g;++m)($=cl(h>0?d[m]+" "+P:re(P,/&\f/g,d[m])))&&(c[p++]=$);return $i(e,t,r,i===0?ra:s,c,l,u)}function ip(e,t,r){return $i(e,t,r,al,xi(Zg()),mn(e,2,-2),0)}function gl(e,t,r,n){return $i(e,t,r,na,mn(e,0,n),mn(e,n+1,-1),n)}function ur(e,t){for(var r="",n=oa(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function pl(e,t,r,n){switch(e.type){case Gg:case na:return e.return=e.return||e.value;case al:return"";case sl:return e.return=e.value+"{"+ur(e.children,n)+"}";case ra:e.value=e.props.join(",")}return bt(r=ur(e.children,n))?e.return=e.value+"{"+r+"}":""}function op(e){var t=oa(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function ap(e){return function(t){t.root||(t=t.return)&&e(t)}}function sp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cp=function(t,r,n){for(var i=0,o=0;i=o,o=yt(),i===38&&o===12&&(r[n]=1),!yn(o);)Ke();return bn(t,He)},lp=function(t,r){var n=-1,i=44;do switch(yn(i)){case 0:i===38&&yt()===12&&(r[n]=1),t[n]+=cp(He-1,r,n);break;case 2:t[n]+=Pi(i);break;case 4:if(i===44){t[++n]=yt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=xi(i)}while(i=Ke());return t},up=function(t,r){return fl(lp(ul(t),r))},ml=new WeakMap,fp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!ml.get(n))&&!i){ml.set(t,!0);for(var o=[],a=up(r,o),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=o[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},dp=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function vl(e,t){switch(Xg(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Ci+e+Ne+e+e;case 6828:case 4268:return ee+e+Ne+e+e;case 6165:return ee+e+Ne+"flex-"+e+e;case 5187:return ee+e+re(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Ne+"flex-$1$2")+e;case 5443:return ee+e+Ne+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return ee+e+Ne+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Ne+re(e,"shrink","negative")+e;case 5292:return ee+e+Ne+re(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+re(e,"-grow","")+ee+e+Ne+re(e,"grow","positive")+e;case 4554:return ee+re(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,ee+"$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(bt(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Ci+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?vl(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,bt(e)-3-(~ia(e,"!important")&&10))){case 107:return re(e,":",":"+ee)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Fe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Ne+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return ee+e+Ne+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Ne+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Ne+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Ne+e+e}return e}var hp=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case na:t.return=vl(t.value,t.length);break;case sl:return ur([vn(t,{value:re(t.value,"@","@"+ee)})],i);case ra:if(t.length)return Jg(t.props,function(o){switch(Yg(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ur([vn(t,{props:[re(o,/:(read-\w+)/,":"+Ci+"$1")]})],i);case"::placeholder":return ur([vn(t,{props:[re(o,/:(plac\w+)/,":"+ee+"input-$1")]}),vn(t,{props:[re(o,/:(plac\w+)/,":"+Ci+"$1")]}),vn(t,{props:[re(o,/:(plac\w+)/,Ne+"input-$1")]})],i)}return""})}},gp=[hp],bl=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||gp,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),m=1;m<p.length;m++)o[p[m]]=!0;s.push(h)});var c,l=[fp,dp];{var u,f=[pl,ap(function(h){u.insert(h)})],d=op(l.concat(i,f)),g=function(p){return ur(dl(p),d)};c=function(p,m,P,$){u=P,g(p?p+"{"+m.styles+"}":m.styles),$&&(v.inserted[m.name]=!0)}}var v={key:r,sheet:new qg({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return v.sheet.hydrate(s),v};function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr.apply(this,arguments)}var pp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var wn={},bp={get exports(){return wn},set exports(e){wn=e}},ne={};/** @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 Te=typeof Symbol=="function"&&Symbol.for,sa=Te?Symbol.for("react.element"):60103,ca=Te?Symbol.for("react.portal"):60106,ki=Te?Symbol.for("react.fragment"):60107,Ai=Te?Symbol.for("react.strict_mode"):60108,Fi=Te?Symbol.for("react.profiler"):60114,Mi=Te?Symbol.for("react.provider"):60109,Li=Te?Symbol.for("react.context"):60110,la=Te?Symbol.for("react.async_mode"):60111,Ri=Te?Symbol.for("react.concurrent_mode"):60111,Ni=Te?Symbol.for("react.forward_ref"):60112,Ii=Te?Symbol.for("react.suspense"):60113,yp=Te?Symbol.for("react.suspense_list"):60120,ji=Te?Symbol.for("react.memo"):60115,Di=Te?Symbol.for("react.lazy"):60116,wp=Te?Symbol.for("react.block"):60121,Sp=Te?Symbol.for("react.fundamental"):60117,Cp=Te?Symbol.for("react.responder"):60118,xp=Te?Symbol.for("react.scope"):60119;function Xe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sa:switch(e=e.type,e){case la:case Ri:case ki:case Fi:case Ai:case Ii:return e;default:switch(e=e&&e.$$typeof,e){case Li:case Ni:case Di:case ji:case Mi:return e;default:return t}}case ca:return t}}}function yl(e){return Xe(e)===Ri}ne.AsyncMode=la,ne.ConcurrentMode=Ri,ne.ContextConsumer=Li,ne.ContextProvider=Mi,ne.Element=sa,ne.ForwardRef=Ni,ne.Fragment=ki,ne.Lazy=Di,ne.Memo=ji,ne.Portal=ca,ne.Profiler=Fi,ne.StrictMode=Ai,ne.Suspense=Ii,ne.isAsyncMode=function(e){return yl(e)||Xe(e)===la},ne.isConcurrentMode=yl,ne.isContextConsumer=function(e){return Xe(e)===Li},ne.isContextProvider=function(e){return Xe(e)===Mi},ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sa},ne.isForwardRef=function(e){return Xe(e)===Ni},ne.isFragment=function(e){return Xe(e)===ki},ne.isLazy=function(e){return Xe(e)===Di},ne.isMemo=function(e){return Xe(e)===ji},ne.isPortal=function(e){return Xe(e)===ca},ne.isProfiler=function(e){return Xe(e)===Fi},ne.isStrictMode=function(e){return Xe(e)===Ai},ne.isSuspense=function(e){return Xe(e)===Ii},ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ki||e===Ri||e===Fi||e===Ai||e===Ii||e===yp||typeof e=="object"&&e!==null&&(e.$$typeof===Di||e.$$typeof===ji||e.$$typeof===Mi||e.$$typeof===Li||e.$$typeof===Ni||e.$$typeof===Sp||e.$$typeof===Cp||e.$$typeof===xp||e.$$typeof===wp)},ne.typeOf=Xe,function(e){e.exports=ne}(bp);var wl=wn,Ep={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Sl={};Sl[wl.ForwardRef]=Ep,Sl[wl.Memo]=_p;var $p=!0;function ua(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Cl=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||$p===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},xl=function(t,r,n){Cl(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Op(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Pp={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},Tp=/[A-Z]|^ms/g,kp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,El=function(t){return t.charCodeAt(1)===45},_l=function(t){return t!=null&&typeof t!="boolean"},fa=sp(function(e){return El(e)?e:e.replace(Tp,"-$&").toLowerCase()}),$l=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kp,function(n,i,o){return wt={name:i,styles:o,next:wt},i})}return Pp[t]!==1&&!El(t)&&typeof r=="number"&&r!==0?r+"px":r},_O="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Sn(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wt={name:r.name,styles:r.styles,next:wt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)wt={name:n.name,styles:n.styles,next:wt},n=n.next;var i=r.styles+";";return i}return Ap(e,t,r)}case"function":{if(e!==void 0){var o=wt,a=r(e);return wt=o,Sn(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Ap(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Sn(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":_l(a)&&(n+=fa(o)+":"+$l(o,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++)_l(a[s])&&(n+=fa(o)+":"+$l(o,a[s])+";");else{var c=Sn(e,t,a);switch(o){case"animation":case"animationName":{n+=fa(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var Ol=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wt,Cn=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";wt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Sn(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Sn(n,r,t[s]),i&&(o+=a[s]);Ol.lastIndex=0;for(var c="",l;(l=Ol.exec(o))!==null;)c+="-"+l[1];var u=Op(o)+c;return{name:u,styles:o,next:wt}},Fp=function(t){return t()},Mp=x["useInsertionEffect"]?x["useInsertionEffect"]:!1,Lp=Mp||Fp,zi={}.hasOwnProperty,Pl=E.createContext(typeof HTMLElement<"u"?bl({key:"css"}):null);Pl.Provider;var Rp=function(t){return E.forwardRef(function(r,n){var i=E.useContext(Pl);return t(r,i,n)})},Np=E.createContext({}),da="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tl=function(t,r){var n={};for(var i in r)zi.call(r,i)&&(n[i]=r[i]);return n[da]=t,n},Ip=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Cl(r,n,i),Lp(function(){return xl(r,n,i)}),null},kl=Rp(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[da],o=[n],a="";typeof e.className=="string"?a=ua(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Cn(o,void 0,E.useContext(Np));a+=t.key+"-"+s.name;var c={};for(var l in e)zi.call(e,l)&&l!=="css"&&l!==da&&(c[l]=e[l]);return c.ref=r,c.className=a,E.createElement(E.Fragment,null,E.createElement(Ip,{cache:t,serialized:s,isStringTag:typeof i=="string"}),E.createElement(i,c))}),xn={},jp={get exports(){return xn},set exports(e){xn=e}},Bi={};/**
 * @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 Dp=E,zp=Symbol.for("react.element"),Bp=Symbol.for("react.fragment"),Wp=Object.prototype.hasOwnProperty,Hp=Dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vp={key:!0,ref:!0,__self:!0,__source:!0};function Al(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Wp.call(t,n)&&!Vp.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:zp,type:e,key:o,ref:a,props:i,_owner:Hp.current}}Bi.Fragment=Bp,Bi.jsx=Al,Bi.jsxs=Al,function(e){e.exports=Bi}(jp);const qp=xn.Fragment,Fl=xn.jsx,Ml=xn.jsxs;var dr=qp;function L(e,t,r){return zi.call(t,"css")?Fl(kl,Tl(e,t),r):Fl(e,t,r)}function W(e,t,r){return zi.call(t,"css")?Ml(kl,Tl(e,t),r):Ml(e,t,r)}var Gp=typeof global=="object"&&global&&global.Object===Object&&global;const Ll=Gp;var Up=typeof self=="object"&&self&&self.Object===Object&&self,Kp=Ll||Up||Function("return this")();const St=Kp;var Xp=St.Symbol;const Ct=Xp;var Rl=Object.prototype,Yp=Rl.hasOwnProperty,Jp=Rl.toString,En=Ct?Ct.toStringTag:void 0;function Zp(e){var t=Yp.call(e,En),r=e[En];try{e[En]=void 0;var n=!0}catch{}var i=Jp.call(e);return n&&(t?e[En]=r:delete e[En]),i}var Qp=Object.prototype,em=Qp.toString;function tm(e){return em.call(e)}var rm="[object Null]",nm="[object Undefined]",Nl=Ct?Ct.toStringTag:void 0;function Mr(e){return e==null?e===void 0?nm:rm:Nl&&Nl in Object(e)?Zp(e):tm(e)}function Lr(e){return e!=null&&typeof e=="object"}var im="[object Symbol]";function Wi(e){return typeof e=="symbol"||Lr(e)&&Mr(e)==im}function om(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var am=Array.isArray;const xt=am;var sm=1/0,Il=Ct?Ct.prototype:void 0,jl=Il?Il.toString:void 0;function ha(e){if(typeof e=="string")return e;if(xt(e))return om(e,ha)+"";if(Wi(e))return jl?jl.call(e):"";var t=e+"";return t=="0"&&1/e==-sm?"-0":t}var cm=/\s/;function lm(e){for(var t=e.length;t--&&cm.test(e.charAt(t)););return t}var um=/^\s+/;function fm(e){return e&&e.slice(0,lm(e)+1).replace(um,"")}function It(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dl=0/0,dm=/^[-+]0x[0-9a-f]+$/i,hm=/^0b[01]+$/i,gm=/^0o[0-7]+$/i,pm=parseInt;function ga(e){if(typeof e=="number")return e;if(Wi(e))return Dl;if(It(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=It(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fm(e);var r=hm.test(e);return r||gm.test(e)?pm(e.slice(2),r?2:8):dm.test(e)?Dl:+e}var zl=1/0,mm=17976931348623157e292;function vm(e){if(!e)return e===0?e:0;if(e=ga(e),e===zl||e===-zl){var t=e<0?-1:1;return t*mm}return e===e?e:0}function Bl(e){var t=vm(e),r=t%1;return t===t?r?t-r:t:0}function Wl(e){return e}var bm="[object AsyncFunction]",ym="[object Function]",wm="[object GeneratorFunction]",Sm="[object Proxy]";function Hl(e){if(!It(e))return!1;var t=Mr(e);return t==ym||t==wm||t==bm||t==Sm}var Cm=St["__core-js_shared__"];const pa=Cm;var Vl=function(){var e=/[^.]+$/.exec(pa&&pa.keys&&pa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xm(e){return!!Vl&&Vl in e}var Em=Function.prototype,_m=Em.toString;function hr(e){if(e!=null){try{return _m.call(e)}catch{}try{return e+""}catch{}}return""}var $m=/[\\^$.*+?()[\]{}|]/g,Om=/^\[object .+?Constructor\]$/,Pm=Function.prototype,Tm=Object.prototype,km=Pm.toString,Am=Tm.hasOwnProperty,Fm=RegExp("^"+km.call(Am).replace($m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mm(e){if(!It(e)||xm(e))return!1;var t=Hl(e)?Fm:Om;return t.test(hr(e))}function Lm(e,t){return e==null?void 0:e[t]}function gr(e,t){var r=Lm(e,t);return Mm(r)?r:void 0}var Rm=gr(St,"WeakMap");const ma=Rm;function Nm(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Im(){}var jm=800,Dm=16,zm=Date.now;function Bm(e){var t=0,r=0;return function(){var n=zm(),i=Dm-(n-r);if(r=n,i>0){if(++t>=jm)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Wm(e){return function(){return e}}var Hm=function(){try{var e=gr(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Hi=Hm;var Vm=Hi?function(e,t){return Hi(e,"toString",{configurable:!0,enumerable:!1,value:Wm(t),writable:!0})}:Wl,qm=Bm(Vm);const Gm=qm;function Um(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Km(e){return e!==e}function Xm(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function Ym(e,t,r){return t===t?Xm(e,t,r):Um(e,Km,r)}function Jm(e,t){var r=e==null?0:e.length;return!!r&&Ym(e,t,0)>-1}var Zm=9007199254740991,Qm=/^(?:0|[1-9]\d*)$/;function va(e,t){var r=typeof e;return t=t??Zm,!!t&&(r=="number"||r!="symbol"&&Qm.test(e))&&e>-1&&e%1==0&&e<t}function ev(e,t,r){t=="__proto__"&&Hi?Hi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ba(e,t){return e===t||e!==e&&t!==t}var tv=Object.prototype,rv=tv.hasOwnProperty;function nv(e,t,r){var n=e[t];(!(rv.call(e,t)&&ba(n,r))||r===void 0&&!(t in e))&&ev(e,t,r)}var ql=Math.max;function iv(e,t,r){return t=ql(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=ql(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),Nm(e,this,s)}}var ov=9007199254740991;function ya(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ov}function av(e){return e!=null&&ya(e.length)&&!Hl(e)}var sv=Object.prototype;function cv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sv;return e===r}function lv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var uv="[object Arguments]";function Gl(e){return Lr(e)&&Mr(e)==uv}var Ul=Object.prototype,fv=Ul.hasOwnProperty,dv=Ul.propertyIsEnumerable,hv=Gl(function(){return arguments}())?Gl:function(e){return Lr(e)&&fv.call(e,"callee")&&!dv.call(e,"callee")};const wa=hv;function gv(){return!1}var Kl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xl=Kl&&typeof module=="object"&&module&&!module.nodeType&&module,pv=Xl&&Xl.exports===Kl,Yl=pv?St.Buffer:void 0,mv=Yl?Yl.isBuffer:void 0,vv=mv||gv;const Sa=vv;var bv="[object Arguments]",yv="[object Array]",wv="[object Boolean]",Sv="[object Date]",Cv="[object Error]",xv="[object Function]",Ev="[object Map]",_v="[object Number]",$v="[object Object]",Ov="[object RegExp]",Pv="[object Set]",Tv="[object String]",kv="[object WeakMap]",Av="[object ArrayBuffer]",Fv="[object DataView]",Mv="[object Float32Array]",Lv="[object Float64Array]",Rv="[object Int8Array]",Nv="[object Int16Array]",Iv="[object Int32Array]",jv="[object Uint8Array]",Dv="[object Uint8ClampedArray]",zv="[object Uint16Array]",Bv="[object Uint32Array]",ce={};ce[Mv]=ce[Lv]=ce[Rv]=ce[Nv]=ce[Iv]=ce[jv]=ce[Dv]=ce[zv]=ce[Bv]=!0,ce[bv]=ce[yv]=ce[Av]=ce[wv]=ce[Fv]=ce[Sv]=ce[Cv]=ce[xv]=ce[Ev]=ce[_v]=ce[$v]=ce[Ov]=ce[Pv]=ce[Tv]=ce[kv]=!1;function Wv(e){return Lr(e)&&ya(e.length)&&!!ce[Mr(e)]}function Hv(e){return function(t){return e(t)}}var Jl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_n=Jl&&typeof module=="object"&&module&&!module.nodeType&&module,Vv=_n&&_n.exports===Jl,Ca=Vv&&Ll.process,qv=function(){try{var e=_n&&_n.require&&_n.require("util").types;return e||Ca&&Ca.binding&&Ca.binding("util")}catch{}}();const Zl=qv;var Ql=Zl&&Zl.isTypedArray,Gv=Ql?Hv(Ql):Wv;const eu=Gv;var Uv=Object.prototype,Kv=Uv.hasOwnProperty;function Xv(e,t){var r=xt(e),n=!r&&wa(e),i=!r&&!n&&Sa(e),o=!r&&!n&&!i&&eu(e),a=r||n||i||o,s=a?lv(e.length,String):[],c=s.length;for(var l in e)(t||Kv.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||va(l,c)))&&s.push(l);return s}function Yv(e,t){return function(r){return e(t(r))}}var Jv=Yv(Object.keys,Object);const Zv=Jv;var Qv=Object.prototype,eb=Qv.hasOwnProperty;function tb(e){if(!cv(e))return Zv(e);var t=[];for(var r in Object(e))eb.call(e,r)&&r!="constructor"&&t.push(r);return t}function tu(e){return av(e)?Xv(e):tb(e)}var rb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nb=/^\w*$/;function xa(e,t){if(xt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wi(e)?!0:nb.test(e)||!rb.test(e)||t!=null&&e in Object(t)}var ib=gr(Object,"create");const $n=ib;function ob(){this.__data__=$n?$n(null):{},this.size=0}function ab(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sb="__lodash_hash_undefined__",cb=Object.prototype,lb=cb.hasOwnProperty;function ub(e){var t=this.__data__;if($n){var r=t[e];return r===sb?void 0:r}return lb.call(t,e)?t[e]:void 0}var fb=Object.prototype,db=fb.hasOwnProperty;function hb(e){var t=this.__data__;return $n?t[e]!==void 0:db.call(t,e)}var gb="__lodash_hash_undefined__";function pb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$n&&t===void 0?gb:t,this}function pr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pr.prototype.clear=ob,pr.prototype.delete=ab,pr.prototype.get=ub,pr.prototype.has=hb,pr.prototype.set=pb;function mb(){this.__data__=[],this.size=0}function Vi(e,t){for(var r=e.length;r--;)if(ba(e[r][0],t))return r;return-1}var vb=Array.prototype,bb=vb.splice;function yb(e){var t=this.__data__,r=Vi(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bb.call(t,r,1),--this.size,!0}function wb(e){var t=this.__data__,r=Vi(t,e);return r<0?void 0:t[r][1]}function Sb(e){return Vi(this.__data__,e)>-1}function Cb(e,t){var r=this.__data__,n=Vi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}jt.prototype.clear=mb,jt.prototype.delete=yb,jt.prototype.get=wb,jt.prototype.has=Sb,jt.prototype.set=Cb;var xb=gr(St,"Map");const On=xb;function Eb(){this.size=0,this.__data__={hash:new pr,map:new(On||jt),string:new pr}}function _b(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qi(e,t){var r=e.__data__;return _b(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $b(e){var t=qi(this,e).delete(e);return this.size-=t?1:0,t}function Ob(e){return qi(this,e).get(e)}function Pb(e){return qi(this,e).has(e)}function Tb(e,t){var r=qi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Dt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Dt.prototype.clear=Eb,Dt.prototype.delete=$b,Dt.prototype.get=Ob,Dt.prototype.has=Pb,Dt.prototype.set=Tb;var kb="Expected a function";function Ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kb);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ea.Cache||Dt),r}Ea.Cache=Dt;var Ab=500;function Fb(e){var t=Ea(e,function(n){return r.size===Ab&&r.clear(),n}),r=t.cache;return t}var Mb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lb=/\\(\\)?/g,Rb=Fb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mb,function(r,n,i,o){t.push(i?o.replace(Lb,"$1"):n||r)}),t});const Nb=Rb;function ru(e){return e==null?"":ha(e)}function Gi(e,t){return xt(e)?e:xa(e,t)?[e]:Nb(ru(e))}var Ib=1/0;function Pn(e){if(typeof e=="string"||Wi(e))return e;var t=e+"";return t=="0"&&1/e==-Ib?"-0":t}function _a(e,t){t=Gi(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Pn(t[r++])];return r&&r==n?e:void 0}function jb(e,t,r){var n=e==null?void 0:_a(e,t);return n===void 0?r:n}function nu(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var iu=Ct?Ct.isConcatSpreadable:void 0;function Db(e){return xt(e)||wa(e)||!!(iu&&e&&e[iu])}function ou(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Db),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?ou(s,t-1,r,n,i):nu(i,s):n||(i[i.length]=s)}return i}function zb(e){var t=e==null?0:e.length;return t?ou(e,1):[]}function Bb(e){return Gm(iv(e,void 0,zb),e+"")}var Wb="Expected a function";function Hb(e,t){var r;if(typeof t!="function")throw new TypeError(Wb);return e=Bl(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function Vb(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function qb(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Vb(e,t,r)}var Gb="\\ud800-\\udfff",Ub="\\u0300-\\u036f",Kb="\\ufe20-\\ufe2f",Xb="\\u20d0-\\u20ff",Yb=Ub+Kb+Xb,Jb="\\ufe0e\\ufe0f",Zb="\\u200d",Qb=RegExp("["+Zb+Gb+Yb+Jb+"]");function $a(e){return Qb.test(e)}function ey(e){return e.split("")}var au="\\ud800-\\udfff",ty="\\u0300-\\u036f",ry="\\ufe20-\\ufe2f",ny="\\u20d0-\\u20ff",iy=ty+ry+ny,oy="\\ufe0e\\ufe0f",ay="["+au+"]",Oa="["+iy+"]",Pa="\\ud83c[\\udffb-\\udfff]",sy="(?:"+Oa+"|"+Pa+")",su="[^"+au+"]",cu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",cy="\\u200d",uu=sy+"?",fu="["+oy+"]?",ly="(?:"+cy+"(?:"+[su,cu,lu].join("|")+")"+fu+uu+")*",uy=fu+uu+ly,fy="(?:"+[su+Oa+"?",Oa,cu,lu,ay].join("|")+")",dy=RegExp(Pa+"(?="+Pa+")|"+fy+uy,"g");function hy(e){return e.match(dy)||[]}function gy(e){return $a(e)?hy(e):ey(e)}function py(){this.__data__=new jt,this.size=0}function my(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function vy(e){return this.__data__.get(e)}function by(e){return this.__data__.has(e)}var yy=200;function wy(e,t){var r=this.__data__;if(r instanceof jt){var n=r.__data__;if(!On||n.length<yy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Dt(n)}return r.set(e,t),this.size=r.size,this}function zt(e){var t=this.__data__=new jt(e);this.size=t.size}zt.prototype.clear=py,zt.prototype.delete=my,zt.prototype.get=vy,zt.prototype.has=by,zt.prototype.set=wy;function Sy(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function Cy(){return[]}var xy=Object.prototype,Ey=xy.propertyIsEnumerable,du=Object.getOwnPropertySymbols,_y=du?function(e){return e==null?[]:(e=Object(e),Sy(du(e),function(t){return Ey.call(e,t)}))}:Cy;const $y=_y;function Oy(e,t,r){var n=t(e);return xt(e)?n:nu(n,r(e))}function hu(e){return Oy(e,tu,$y)}var Py=gr(St,"DataView");const Ta=Py;var Ty=gr(St,"Promise");const ka=Ty;var ky=gr(St,"Set");const Rr=ky;var gu="[object Map]",Ay="[object Object]",pu="[object Promise]",mu="[object Set]",vu="[object WeakMap]",bu="[object DataView]",Fy=hr(Ta),My=hr(On),Ly=hr(ka),Ry=hr(Rr),Ny=hr(ma),mr=Mr;(Ta&&mr(new Ta(new ArrayBuffer(1)))!=bu||On&&mr(new On)!=gu||ka&&mr(ka.resolve())!=pu||Rr&&mr(new Rr)!=mu||ma&&mr(new ma)!=vu)&&(mr=function(e){var t=Mr(e),r=t==Ay?e.constructor:void 0,n=r?hr(r):"";if(n)switch(n){case Fy:return bu;case My:return gu;case Ly:return pu;case Ry:return mu;case Ny:return vu}return t});const yu=mr;var Iy=St.Uint8Array;const wu=Iy;var jy="__lodash_hash_undefined__";function Dy(e){return this.__data__.set(e,jy),this}function zy(e){return this.__data__.has(e)}function Tn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Dt;++t<r;)this.add(e[t])}Tn.prototype.add=Tn.prototype.push=Dy,Tn.prototype.has=zy;function By(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Su(e,t){return e.has(t)}var Wy=1,Hy=2;function Cu(e,t,r,n,i,o){var a=r&Wy,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,g=r&Hy?new Tn:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var v=e[f],h=t[f];if(n)var p=a?n(h,v,f,t,e,o):n(v,h,f,e,t,o);if(p!==void 0){if(p)continue;d=!1;break}if(g){if(!By(t,function(m,P){if(!Su(g,P)&&(v===m||i(v,m,r,n,o)))return g.push(P)})){d=!1;break}}else if(!(v===h||i(v,h,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function Vy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Aa(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var qy=1,Gy=2,Uy="[object Boolean]",Ky="[object Date]",Xy="[object Error]",Yy="[object Map]",Jy="[object Number]",Zy="[object RegExp]",Qy="[object Set]",e0="[object String]",t0="[object Symbol]",r0="[object ArrayBuffer]",n0="[object DataView]",xu=Ct?Ct.prototype:void 0,Fa=xu?xu.valueOf:void 0;function i0(e,t,r,n,i,o,a){switch(r){case n0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case r0:return!(e.byteLength!=t.byteLength||!o(new wu(e),new wu(t)));case Uy:case Ky:case Jy:return ba(+e,+t);case Xy:return e.name==t.name&&e.message==t.message;case Zy:case e0:return e==t+"";case Yy:var s=Vy;case Qy:var c=n&qy;if(s||(s=Aa),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=Gy,a.set(e,t);var u=Cu(s(e),s(t),n,i,o,a);return a.delete(e),u;case t0:if(Fa)return Fa.call(e)==Fa.call(t)}return!1}var o0=1,a0=Object.prototype,s0=a0.hasOwnProperty;function c0(e,t,r,n,i,o){var a=r&o0,s=hu(e),c=s.length,l=hu(t),u=l.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:s0.call(t,d)))return!1}var g=o.get(e),v=o.get(t);if(g&&v)return g==t&&v==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++f<c;){d=s[f];var m=e[d],P=t[d];if(n)var $=a?n(P,m,d,t,e,o):n(m,P,d,e,t,o);if(!($===void 0?m===P||i(m,P,r,n,o):$)){h=!1;break}p||(p=d=="constructor")}if(h&&!p){var O=e.constructor,C=t.constructor;O!=C&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof C=="function"&&C instanceof C)&&(h=!1)}return o.delete(e),o.delete(t),h}var l0=1,Eu="[object Arguments]",_u="[object Array]",Ui="[object Object]",u0=Object.prototype,$u=u0.hasOwnProperty;function f0(e,t,r,n,i,o){var a=xt(e),s=xt(t),c=a?_u:yu(e),l=s?_u:yu(t);c=c==Eu?Ui:c,l=l==Eu?Ui:l;var u=c==Ui,f=l==Ui,d=c==l;if(d&&Sa(e)){if(!Sa(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new zt),a||eu(e)?Cu(e,t,r,n,i,o):i0(e,t,c,r,n,i,o);if(!(r&l0)){var g=u&&$u.call(e,"__wrapped__"),v=f&&$u.call(t,"__wrapped__");if(g||v){var h=g?e.value():e,p=v?t.value():t;return o||(o=new zt),i(h,p,r,n,o)}}return d?(o||(o=new zt),c0(e,t,r,n,i,o)):!1}function Ki(e,t,r,n,i){return e===t?!0:e==null||t==null||!Lr(e)&&!Lr(t)?e!==e&&t!==t:f0(e,t,r,n,Ki,i)}var d0=1,h0=2;function g0(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var f=new zt;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?Ki(u,l,d0|h0,n,f):d))return!1}}return!0}function Ou(e){return e===e&&!It(e)}function p0(e){for(var t=tu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ou(i)]}return t}function Pu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function m0(e){var t=p0(e);return t.length==1&&t[0][2]?Pu(t[0][0],t[0][1]):function(r){return r===e||g0(r,e,t)}}function v0(e,t){return e!=null&&t in Object(e)}function b0(e,t,r){t=Gi(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Pn(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&ya(i)&&va(a,i)&&(xt(e)||wa(e)))}function Tu(e,t){return e!=null&&b0(e,t,v0)}var y0=1,w0=2;function S0(e,t){return xa(e)&&Ou(t)?Pu(Pn(e),t):function(r){var n=jb(r,e);return n===void 0&&n===t?Tu(r,e):Ki(t,n,y0|w0)}}function ku(e){return function(t){return t==null?void 0:t[e]}}function C0(e){return function(t){return _a(t,e)}}function x0(e){return xa(e)?ku(Pn(e)):C0(e)}function E0(e){return typeof e=="function"?e:e==null?Wl:typeof e=="object"?xt(e)?S0(e[0],e[1]):m0(e):x0(e)}var _0=function(){return St.Date.now()};const Ma=_0;var $0="Expected a function",O0=Math.max,P0=Math.min;function Au(e,t,r){var n,i,o,a,s,c,l=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError($0);t=ga(t)||0,It(r)&&(u=!!r.leading,f="maxWait"in r,o=f?O0(ga(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function g(w){var _=n,M=i;return n=i=void 0,l=w,a=e.apply(M,_),a}function v(w){return l=w,s=setTimeout(m,t),u?g(w):a}function h(w){var _=w-c,M=w-l,F=t-_;return f?P0(F,o-M):F}function p(w){var _=w-c,M=w-l;return c===void 0||_>=t||_<0||f&&M>=o}function m(){var w=Ma();if(p(w))return P(w);s=setTimeout(m,h(w))}function P(w){return s=void 0,d&&n?g(w):(n=i=void 0,a)}function $(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function O(){return s===void 0?a:P(Ma())}function C(){var w=Ma(),_=p(w);if(n=arguments,i=this,c=w,_){if(s===void 0)return v(c);if(f)return clearTimeout(s),s=setTimeout(m,t),g(c)}return s===void 0&&(s=setTimeout(m,t)),a}return C.cancel=$,C.flush=O,C}function T0(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function k0(e,t){return Ki(e,t)}function A0(e,t,r,n){if(!It(e))return e;t=Gi(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var c=Pn(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=a){var u=s[c];l=n?n(u,c,s):void 0,l===void 0&&(l=It(u)?u:va(t[i+1])?[]:{})}nv(s,c,l),s=s[c]}return e}function F0(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=_a(e,a);r(s,a)&&A0(o,Gi(a,e),s)}return o}function M0(e){return Hb(2,e)}var L0=9007199254740991,R0=Math.floor;function Fu(e,t){var r="";if(!e||t<1||t>L0)return r;do t%2&&(r+=e),t=R0(t/2),t&&(e+=e);while(t);return r}var N0=ku("length");const I0=N0;var Mu="\\ud800-\\udfff",j0="\\u0300-\\u036f",D0="\\ufe20-\\ufe2f",z0="\\u20d0-\\u20ff",B0=j0+D0+z0,W0="\\ufe0e\\ufe0f",H0="["+Mu+"]",La="["+B0+"]",Ra="\\ud83c[\\udffb-\\udfff]",V0="(?:"+La+"|"+Ra+")",Lu="[^"+Mu+"]",Ru="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",q0="\\u200d",Iu=V0+"?",ju="["+W0+"]?",G0="(?:"+q0+"(?:"+[Lu,Ru,Nu].join("|")+")"+ju+Iu+")*",U0=ju+Iu+G0,K0="(?:"+[Lu+La+"?",La,Ru,Nu,H0].join("|")+")",Du=RegExp(Ra+"(?="+Ra+")|"+K0+U0,"g");function X0(e){for(var t=Du.lastIndex=0;Du.test(e);)++t;return t}function zu(e){return $a(e)?X0(e):I0(e)}var Y0=Math.ceil;function J0(e,t){t=t===void 0?" ":ha(t);var r=t.length;if(r<2)return r?Fu(t,e):t;var n=Fu(t,Y0(e/zu(t)));return $a(t)?qb(gy(n),0,e).join(""):n.slice(0,e)}function Z0(e,t,r){e=ru(e),t=Bl(t);var n=t?zu(e):0;return t&&n<t?J0(t-n,r)+e:e}function Q0(e,t){return F0(e,t,function(r,n){return Tu(e,n)})}var e1=Bb(function(e,t){return e==null?{}:Q0(e,t)});const Bu=e1;var t1="Expected a function";function r1(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(t1);return It(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Au(e,t,{leading:n,maxWait:t,trailing:i})}var n1=1/0,i1=Rr&&1/Aa(new Rr([,-0]))[1]==n1?function(e){return new Rr(e)}:Im;const o1=i1;var a1=200;function s1(e,t,r){var n=-1,i=Jm,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=T0;else if(o>=a1){var l=t?null:o1(e);if(l)return Aa(l);a=!1,i=Su,c=new Tn}else c=t?[]:s;e:for(;++n<o;){var u=e[n],f=t?t(u):u;if(u=r||u!==0?u:0,a&&f===f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else i(c,f,r)||(c!==s&&c.push(f),s.push(u))}return s}function Wu(e,t){return e&&e.length?s1(e,E0(t)):[]}const c1=Symbol(),Na=Symbol(),kn="a",An="w";let l1=(e,t)=>new Proxy(e,t);const Ia=Object.getPrototypeOf,ja=new WeakMap,Hu=e=>e&&(ja.has(e)?ja.get(e):Ia(e)===Object.prototype||Ia(e)===Array.prototype),Xi=e=>typeof e=="object"&&e!==null,u1=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(Ia(e),t)},Da=e=>e[Na]||e,Vu=(e,t,r,n)=>{if(!Hu(e))return e;let i=n&&n.get(e);if(!i){const c=Da(e);i=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(c)?[c,u1(c)]:[c],n==null||n.set(e,i)}const[o,a]=i;let s=r&&r.get(o);return s&&s[1].f===!!a||(s=((c,l)=>{const u={f:l};let f=!1;const d=(v,h)=>{if(!f){let p=u[kn].get(c);if(p||(p={},u[kn].set(c,p)),v===An)p[An]=!0;else{let m=p[v];m||(m=new Set,p[v]=m),m.add(h)}}},g={get:(v,h)=>h===Na?c:(d("k",h),Vu(Reflect.get(v,h),u[kn],u.c)),has:(v,h)=>h===c1?(f=!0,u[kn].delete(c),!0):(d("h",h),Reflect.has(v,h)),getOwnPropertyDescriptor:(v,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(v,h)),ownKeys:v=>(d(An),Reflect.ownKeys(v))};return l&&(g.set=g.deleteProperty=()=>!1),[g,u]})(o,!!a),s[1].p=l1(a||o,s[0]),r&&r.set(o,s)),s[1][kn]=t,s[1].c=r,s[1].p},qu=(e,t,r,n)=>{if(Object.is(e,t))return!1;if(!Xi(e)||!Xi(t))return!0;const i=r.get(Da(e));if(!i)return!0;if(n){const a=n.get(e);if(a&&a.n===t)return a.g;n.set(e,{n:t,g:!1})}let o=null;try{for(const a of i.h||[])if(o=Reflect.has(e,a)!==Reflect.has(t,a),o)return o;if(i[An]===!0){if(o=((a,s)=>{const c=Reflect.ownKeys(a),l=Reflect.ownKeys(s);return c.length!==l.length||c.some((u,f)=>u!==l[f])})(e,t),o)return o}else for(const a of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),o)return o;for(const a of i.k||[])if(o=qu(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o})}},f1=e=>Hu(e)&&e[Na]||null,Gu=(e,t=!0)=>{ja.set(e,t)},d1=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;Xi(a)&&i.add(a);const c=Xi(a)&&t.get(Da(a));if(c){var l,u;if((l=c.h)==null||l.forEach(d=>{const g=`:has(${String(d)})`;n.push(s?[...s,g]:[g])}),c[An]===!0){const d=":ownKeys";n.push(s?[...s,d]:[d])}else{var f;(f=c.o)==null||f.forEach(d=>{const g=`:hasOwn(${String(d)})`;n.push(s?[...s,g]:[g])})}(u=c.k)==null||u.forEach(d=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,d)||{}))||o(a[d],s?[...s,d]:[d])})}else s&&n.push(s)};return o(e),n},za=e=>typeof e=="object"&&e!==null,Qt=new WeakMap,Yi=new WeakSet,h1=(e=Object.is,t=(l,u)=>new Proxy(l,u),r=l=>za(l)&&!Yi.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),n=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},i=new WeakMap,o=(l,u,f=n)=>{const d=i.get(l);if((d==null?void 0:d[0])===u)return d[1];const g=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Gu(g,!0),i.set(l,[u,g]),Reflect.ownKeys(l).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const h=Reflect.get(l,v),p={value:h,enumerable:!0,configurable:!0};if(Yi.has(h))Gu(h,!1);else if(h instanceof Promise)delete p.value,p.get=()=>f(h);else if(Qt.has(h)){const[m,P]=Qt.get(h);p.value=o(m,P(),f)}Object.defineProperty(g,v,p)}),g},a=new WeakMap,s=[1,1],c=l=>{if(!za(l))throw new Error("object required");const u=a.get(l);if(u)return u;let f=s[0];const d=new Set,g=(F,A=++s[0])=>{f!==A&&(f=A,d.forEach(I=>I(F,A)))};let v=s[1];const h=(F=++s[1])=>(v!==F&&!d.size&&(v=F,m.forEach(([A])=>{const I=A[1](F);I>f&&(f=I)})),f),p=F=>(A,I)=>{const k=[...A];k[1]=[F,...k[1]],g(k,I)},m=new Map,P=(F,A)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&m.has(F))throw new Error("prop listener already exists");if(d.size){const I=A[3](p(F));m.set(F,[A,I])}else m.set(F,[A])},$=F=>{var A;const I=m.get(F);I&&(m.delete(F),(A=I[1])==null||A.call(I))},O=F=>(d.add(F),d.size===1&&m.forEach(([I,k],y)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&k)throw new Error("remove already exists");const S=I[3](p(y));m.set(y,[I,S])}),()=>{d.delete(F),d.size===0&&m.forEach(([I,k],y)=>{k&&(k(),m.set(y,[I]))})}),C=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),_=t(C,{deleteProperty(F,A){const I=Reflect.get(F,A);$(A);const k=Reflect.deleteProperty(F,A);return k&&g(["delete",[A],I]),k},set(F,A,I,k){const y=Reflect.has(F,A),S=Reflect.get(F,A,k);if(y&&(e(S,I)||a.has(I)&&e(S,a.get(I))))return!0;$(A),za(I)&&(I=f1(I)||I);let T=I;if(I instanceof Promise)I.then(R=>{I.status="fulfilled",I.value=R,g(["resolve",[A],R])}).catch(R=>{I.status="rejected",I.reason=R,g(["reject",[A],R])});else{!Qt.has(I)&&r(I)&&(T=c(I));const R=!Yi.has(T)&&Qt.get(T);R&&P(A,R)}return Reflect.set(F,A,T,k),g(["set",[A],I,S]),!0}});a.set(l,_);const M=[C,h,o,O];return Qt.set(_,M),Reflect.ownKeys(l).forEach(F=>{const A=Object.getOwnPropertyDescriptor(l,F);"value"in A&&(_[F]=l[F],delete A.value,delete A.writable),Object.defineProperty(C,F,A)}),_})=>[c,Qt,Yi,e,t,r,n,i,o,a,s],[g1]=h1();function Fn(e={}){return g1(e)}function Uu(e,t,r){const n=Qt.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");let i;const o=[],a=n[3];let s=!1;const l=a(u=>{if(o.push(u),r){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,l()}}function Ku(e,t){const r=Qt.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");const[n,i,o]=r;return o(n,i(),t)}var Ba={},p1={get exports(){return Ba},set exports(e){Ba=e}},Xu={};/**
 * @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 Nr=E;function m1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var v1=typeof Object.is=="function"?Object.is:m1,b1=Nr.useState,y1=Nr.useEffect,w1=Nr.useLayoutEffect,S1=Nr.useDebugValue;function C1(e,t){var r=t(),n=b1({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return w1(function(){i.value=r,i.getSnapshot=t,Wa(i)&&o({inst:i})},[e,r,t]),y1(function(){return Wa(i)&&o({inst:i}),e(function(){Wa(i)&&o({inst:i})})},[e]),S1(r),r}function Wa(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!v1(e,r)}catch{return!0}}function x1(e,t){return t()}var E1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x1:C1;Xu.useSyncExternalStore=Nr.useSyncExternalStore!==void 0?Nr.useSyncExternalStore:E1,function(e){e.exports=Xu}(p1);const _1=mp(Ba),{use:Yu}=E,{useSyncExternalStore:$1}=_1,O1=(e,t)=>{const r=E.useRef();E.useEffect(()=>{r.current=d1(e,t,!0)}),E.useDebugValue(r.current)},P1=new WeakMap;function Ir(e,t){const r=t==null?void 0:t.sync,n=E.useRef(),i=E.useRef();let o=!0;const a=$1(E.useCallback(l=>{const u=Uu(e,l,r);return l(),u},[e,r]),()=>{const l=Ku(e,Yu);try{if(!o&&n.current&&i.current&&!qu(n.current,l,i.current,new WeakMap))return n.current}catch{}return l},()=>Ku(e,Yu));o=!1;const s=new WeakMap;E.useEffect(()=>{n.current=a,i.current=s}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&O1(a,s);const c=E.useMemo(()=>new WeakMap,[]);return Vu(a,s,c,P1)}const Ha={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1},De=Fn({...Ha}),Ju=Object.keys(Ha),er=function(){return Ir(De)},Zu="bilibili-app-recommend.settings";function T1(){const e=GM_getValue(Zu);e&&typeof e=="object"&&Object.assign(De,Bu(e,Ju)),Uu(De,()=>{k1()})}function k1(){const e=Bu(De,Ju);GM_setValue(Zu,e)}function Qu(e){Object.assign(De,e)}function A1(){return Qu(Ha)}T1();var jr={},F1={get exports(){return jr},set exports(e){jr=e}};const M1=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),ef=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},tf=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(ef());let a,s,c;const l=e||clearTimeout,u=()=>{l(a),c(ef())},f=()=>{o&&o.removeEventListener("abort",u)},d=new Promise((g,v)=>{s=()=>{f(),r?g(i):v(i)},c=v,a=(t||setTimeout)(s,n)});return o&&o.addEventListener("abort",u,{once:!0}),d.clear=()=>{l(a),a=null,s()},d},rf=e=>{const t=tf({...e,willResolve:!0});return t.reject=tf({...e,willResolve:!1}),t.range=(r,n,i)=>t(M1(r,n),i),t},Va=rf();Va.createWithTimers=rf,F1.exports=Va,jr.default=Va;var Ji,nf=te;Ji=nf.createRoot,nf.hydrateRoot;const PO="",Mn=M0(()=>!!document.querySelectorAll(".bili-feed4").length),of=document.querySelector(".bili-header__bar"),af=!!(of&&window.getComputedStyle(of).display==="none")?50:64,sf=()=>document.body.classList.contains("dark"),cf=Fn({value:sf()});function qa(){return Ir(cf).value}const Zi=new MutationObserver(function(){cf.value=sf()});Zi.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{Zi==null||Zi.disconnect()});var Ga={},Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.DEFAULT_ICON_CONFIGS=void 0,Ve.IconConverter=hf,Ve.IconProvider=void 0,Ve.IconWrapper=B1;var Qi=L1(E);function lf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(lf=function(n){return n?r:t})(e)}function L1(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=lf(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var R1=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){N1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1(e,t){if(e==null)return{};var r=j1(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var df={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"};Ve.DEFAULT_ICON_CONFIGS=df;function D1(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function hf(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var gf=(0,Qi.createContext)(df),z1=gf.Provider;Ve.IconProvider=z1;function B1(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,c=n.theme,l=n.fill,u=n.className,f=n.spin,d=I1(n,R1),g=(0,Qi.useContext)(gf),v=(0,Qi.useMemo)(D1,[]),h=hf(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:c,fill:l},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),f&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),Qi.default.createElement("span",ff(ff({},d),{},{className:p.join(" ")}),r(h))}}Object.defineProperty(Ga,"__esModule",{value:!0});var pf=Ga.default=void 0,Ua=H1(E),W1=Ve;function H1(e){return e&&e.__esModule?e:{default:e}}var V1=(0,W1.IconWrapper)("close",!1,function(e){return Ua.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ua.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ua.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});pf=Ga.default=V1;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var mf=Ka.default=void 0,Xa=G1(E),q1=Ve;function G1(e){return e&&e.__esModule?e:{default:e}}var U1=(0,q1.IconWrapper)("config",!1,function(e){return Xa.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Xa.default.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Xa.default.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))});mf=Ka.default=U1;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var vf=Ya.default=void 0,Ln=X1(E),K1=Ve;function X1(e){return e&&e.__esModule?e:{default:e}}var Y1=(0,K1.IconWrapper)("distraught-face",!1,function(e){return Ln.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ln.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Ln.default.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ln.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ln.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});vf=Ya.default=Y1;var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});var bf=Ja.default=void 0,Rn=Z1(E),J1=Ve;function Z1(e){return e&&e.__esModule?e:{default:e}}var Q1=(0,J1.IconWrapper)("info",!0,function(e){return Rn.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rn.default.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Rn.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),Rn.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rn.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});bf=Ja.default=Q1;var Za={};Object.defineProperty(Za,"__esModule",{value:!0});var yf=Za.default=void 0,Qa=tw(E),ew=Ve;function tw(e){return e&&e.__esModule?e:{default:e}}var rw=(0,ew.IconWrapper)("loading",!0,function(e){return Qa.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Qa.default.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Qa.default.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});yf=Za.default=rw;var es={};Object.defineProperty(es,"__esModule",{value:!0});var wf=es.default=void 0,Et=iw(E),nw=Ve;function iw(e){return e&&e.__esModule?e:{default:e}}var ow=(0,nw.IconWrapper)("loading-three",!1,function(e){return Et.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Et.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});wf=es.default=ow;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});var Sf=ts.default=void 0,rs=sw(E),aw=Ve;function sw(e){return e&&e.__esModule?e:{default:e}}var cw=(0,aw.IconWrapper)("return",!0,function(e){return rs.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},rs.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),rs.default.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Sf=ts.default=cw;const lw={Close:pf,Config:mf,DistraughtFace:vf,Return:Sf,Loading:yf,LoadingThree:wf,Info:bf};function vr({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=qa();n||(n=o?"#fff":"#333");const a=lw[e];return L(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}var ns={},uw={get exports(){return ns},set exports(e){ns=e}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(uw);const J=ns;function Dr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Cn(t)}function Cf(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function xf(e,t,r){var n=[],i=ua(e,n,r);return n.length<2?r:i+t(n)}var fw=function(t){var r=bl(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var n=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Cn(l,r.registered,void 0);return xl(r,f,!1),r.key+"-"+f.name},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Cn(l,r.registered),d="animation-"+f.name;return Cf(r,{name:f.name,styles:"@keyframes "+d+"{"+f.styles+"}"}),d},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Cn(l,r.registered);Cf(r,f)},a=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return xf(r.registered,n,dw(l))};return{css:n,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:ua.bind(null,r.registered),merge:xf.bind(null,r.registered,n)}},dw=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},hw=fw({key:"css"}),is=hw.css;const Ef=e=>(t,r)=>{const n=E.useRef(!1);e(()=>()=>{n.current=!1},[]),e(()=>{if(!n.current)n.current=!0;else return t()},r)};function _f(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function gw(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{l(n.next(u))}catch(f){a(f)}}function c(u){try{l(n.throw(u))}catch(f){a(f)}}function l(u){u.done?o(u.value):i(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})}const zr=e=>typeof e=="function",pw=e=>typeof e=="string",$f=e=>typeof e=="number",os=!1;function he(e){os&&(zr(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`));const t=E.useRef(e);t.current=E.useMemo(()=>e,[e]);const r=E.useRef();return r.current||(r.current=function(...n){return t.current.apply(this,n)}),r.current}const as=Ef(E.useEffect),Of=(e,{manual:t,ready:r=!0,defaultParams:n=[],refreshDeps:i=[],refreshDepsAction:o})=>{const a=E.useRef(!1);return a.current=!1,as(()=>{!t&&r&&(a.current=!0,e.run(...n))},[r]),as(()=>{a.current||t||(a.current=!0,o?o():e.refresh())},[...i]),{onBefore:()=>{if(!r)return{stopNow:!0}}}};Of.onInit=({ready:e=!0,manual:t})=>({loading:!t&&e});const mw=Of;function ss(e,t){if(e===t)return!0;for(let r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function Pf(e,t){const{current:r}=E.useRef({deps:t,obj:void 0,initialized:!1});return(r.initialized===!1||!ss(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function Nn(e){const t=E.useRef(e);return t.current=e,t}const In=e=>{os&&(zr(e)||console.error(`useUnmount expected parameter is a function, got ${typeof e}`));const t=Nn(e);E.useEffect(()=>()=>{t.current()},[])},eo=new Map,vw=(e,t,r)=>{const n=eo.get(e);n!=null&&n.timer&&clearTimeout(n.timer);let i;t>-1&&(i=setTimeout(()=>{eo.delete(e)},t)),eo.set(e,Object.assign(Object.assign({},r),{timer:i}))},bw=e=>eo.get(e),to=new Map,yw=e=>to.get(e),ww=(e,t)=>{to.set(e,t),t.then(r=>(to.delete(e),r)).catch(()=>{to.delete(e)})},br={},Sw=(e,t)=>{br[e]&&br[e].forEach(r=>r(t))},cs=(e,t)=>(br[e]||(br[e]=[]),br[e].push(t),function(){const n=br[e].indexOf(t);br[e].splice(n,1)}),Cw=(e,{cacheKey:t,cacheTime:r=5*60*1e3,staleTime:n=0,setCache:i,getCache:o})=>{const a=E.useRef(),s=E.useRef(),c=(u,f)=>{i?i(f):vw(u,r,f),Sw(u,f.data)},l=(u,f=[])=>o?o(f):bw(u);return Pf(()=>{if(!t)return;const u=l(t);u&&Object.hasOwnProperty.call(u,"data")&&(e.state.data=u.data,e.state.params=u.params,(n===-1||new Date().getTime()-u.time<=n)&&(e.state.loading=!1)),a.current=cs(t,f=>{e.setState({data:f})})},[]),In(()=>{var u;(u=a.current)===null||u===void 0||u.call(a)}),t?{onBefore:u=>{const f=l(t,u);return!f||!Object.hasOwnProperty.call(f,"data")?{}:n===-1||new Date().getTime()-f.time<=n?{loading:!1,data:f==null?void 0:f.data,error:void 0,returnNow:!0}:{data:f==null?void 0:f.data,error:void 0}},onRequest:(u,f)=>{let d=yw(t);return d&&d!==s.current?{servicePromise:d}:(d=u(...f),s.current=d,ww(t,d),{servicePromise:d})},onSuccess:(u,f)=>{var d;t&&((d=a.current)===null||d===void 0||d.call(a),c(t,{data:u,params:f,time:new Date().getTime()}),a.current=cs(t,g=>{e.setState({data:g})}))},onMutate:u=>{var f;t&&((f=a.current)===null||f===void 0||f.call(a),c(t,{data:u,params:e.state.params,time:new Date().getTime()}),a.current=cs(t,d=>{e.setState({data:d})}))}}:{}},xw=(e,{debounceWait:t,debounceLeading:r,debounceTrailing:n,debounceMaxWait:i})=>{const o=E.useRef(),a=E.useMemo(()=>{const s={};return r!==void 0&&(s.leading=r),n!==void 0&&(s.trailing=n),i!==void 0&&(s.maxWait=i),s},[r,n,i]);return E.useEffect(()=>{if(t){const s=e.runAsync.bind(e);return o.current=Au(c=>{c()},t,a),e.runAsync=(...c)=>new Promise((l,u)=>{var f;(f=o.current)===null||f===void 0||f.call(o,()=>{s(...c).then(l).catch(u)})}),()=>{var c;(c=o.current)===null||c===void 0||c.cancel(),e.runAsync=s}}},[t,a]),t?{onCancel:()=>{var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Ew=(e,{loadingDelay:t,ready:r})=>{const n=E.useRef();if(!t)return{};const i=()=>{n.current&&clearTimeout(n.current)};return{onBefore:()=>(i(),r!==!1&&(n.current=setTimeout(()=>{e.setState({loading:!0})},t)),{loading:!1}),onFinally:()=>{i()},onCancel:()=>{i()}}},jn=!!(typeof window<"u"&&window.document&&window.document.createElement);function ls(){return jn?document.visibilityState!=="hidden":!0}const Dn=[];function _w(e){return Dn.push(e),function(){const r=Dn.indexOf(e);Dn.splice(r,1)}}if(jn){const e=()=>{if(ls())for(let t=0;t<Dn.length;t++){const r=Dn[t];r()}};window.addEventListener("visibilitychange",e,!1)}const $w=(e,{pollingInterval:t,pollingWhenHidden:r=!0,pollingErrorRetryCount:n=-1})=>{const i=E.useRef(),o=E.useRef(),a=E.useRef(0),s=()=>{var c;i.current&&clearTimeout(i.current),(c=o.current)===null||c===void 0||c.call(o)};return as(()=>{t||s()},[t]),t?{onBefore:()=>{s()},onError:()=>{a.current+=1},onSuccess:()=>{a.current=0},onFinally:()=>{n===-1||n!==-1&&a.current<=n?i.current=setTimeout(()=>{!r&&!ls()?o.current=_w(()=>{e.refresh()}):e.refresh()},t):a.current=0},onCancel:()=>{s()}}:{}};function Ow(e,t){let r=!1;return(...n)=>{r||(r=!0,e(...n),setTimeout(()=>{r=!1},t))}}function Pw(){return jn&&typeof navigator.onLine<"u"?navigator.onLine:!0}const zn=[];function Tw(e){return zn.push(e),function(){const r=zn.indexOf(e);r>-1&&zn.splice(r,1)}}if(jn){const e=()=>{if(!(!ls()||!Pw()))for(let t=0;t<zn.length;t++){const r=zn[t];r()}};window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1)}const kw=(e,{refreshOnWindowFocus:t,focusTimespan:r=5e3})=>{const n=E.useRef(),i=()=>{var o;(o=n.current)===null||o===void 0||o.call(n)};return E.useEffect(()=>{if(t){const o=Ow(e.refresh.bind(e),r);n.current=Tw(()=>{o()})}return()=>{i()}},[t,r]),In(()=>{i()}),{}},Aw=(e,{retryInterval:t,retryCount:r})=>{const n=E.useRef(),i=E.useRef(0),o=E.useRef(!1);return r?{onBefore:()=>{o.current||(i.current=0),o.current=!1,n.current&&clearTimeout(n.current)},onSuccess:()=>{i.current=0},onError:()=>{if(i.current+=1,r===-1||i.current<=r){const a=t??Math.min(1e3*Math.pow(2,i.current),3e4);n.current=setTimeout(()=>{o.current=!0,e.refresh()},a)}else i.current=0},onCancel:()=>{i.current=0,n.current&&clearTimeout(n.current)}}:{}},Fw=(e,{throttleWait:t,throttleLeading:r,throttleTrailing:n})=>{const i=E.useRef(),o={};return r!==void 0&&(o.leading=r),n!==void 0&&(o.trailing=n),E.useEffect(()=>{if(t){const a=e.runAsync.bind(e);return i.current=r1(s=>{s()},t,o),e.runAsync=(...s)=>new Promise((c,l)=>{var u;(u=i.current)===null||u===void 0||u.call(i,()=>{a(...s).then(c).catch(l)})}),()=>{var s;e.runAsync=a,(s=i.current)===null||s===void 0||s.cancel()}}},[t,r,n]),t?{onCancel:()=>{var a;(a=i.current)===null||a===void 0||a.cancel()}}:{}},Mw=e=>{os&&(zr(e)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`)),E.useEffect(()=>{e==null||e()},[])},Lw=()=>{const[,e]=E.useState({});return E.useCallback(()=>e({}),[])};class Rw{constructor(t,r,n,i={}){this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!r.manual}),i)}setState(t={}){this.state=Object.assign(Object.assign({},this.state),t),this.subscribe()}runPluginHandler(t,...r){const n=this.pluginImpls.map(i=>{var o;return(o=i[t])===null||o===void 0?void 0:o.call(i,...r)}).filter(Boolean);return Object.assign({},...n)}runAsync(...t){var r,n,i,o,a,s,c,l,u,f;return gw(this,void 0,void 0,function*(){this.count+=1;const d=this.count,g=this.runPluginHandler("onBefore",t),{stopNow:v=!1,returnNow:h=!1}=g,p=_f(g,["stopNow","returnNow"]);if(v)return new Promise(()=>{});if(this.setState(Object.assign({loading:!0,params:t},p)),h)return Promise.resolve(p.data);(n=(r=this.options).onBefore)===null||n===void 0||n.call(r,t);try{let{servicePromise:m}=this.runPluginHandler("onRequest",this.serviceRef.current,t);m||(m=this.serviceRef.current(...t));const P=yield m;return d!==this.count?new Promise(()=>{}):(this.setState({data:P,error:void 0,loading:!1}),(o=(i=this.options).onSuccess)===null||o===void 0||o.call(i,P,t),this.runPluginHandler("onSuccess",P,t),(s=(a=this.options).onFinally)===null||s===void 0||s.call(a,t,P,void 0),d===this.count&&this.runPluginHandler("onFinally",t,P,void 0),P)}catch(m){if(d!==this.count)return new Promise(()=>{});throw this.setState({error:m,loading:!1}),(l=(c=this.options).onError)===null||l===void 0||l.call(c,m,t),this.runPluginHandler("onError",m,t),(f=(u=this.options).onFinally)===null||f===void 0||f.call(u,t,void 0,m),d===this.count&&this.runPluginHandler("onFinally",t,void 0,m),m}})}run(...t){this.runAsync(...t).catch(r=>{this.options.onError||console.error(r)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(t){const r=zr(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})}}function Nw(e,t={},r=[]){const{manual:n=!1}=t,i=_f(t,["manual"]),o=Object.assign({manual:n},i),a=Nn(e),s=Lw(),c=Pf(()=>{const l=r.map(u=>{var f;return(f=u==null?void 0:u.onInit)===null||f===void 0?void 0:f.call(u,o)}).filter(Boolean);return new Rw(a,o,s,Object.assign({},...l))},[]);return c.options=o,c.pluginImpls=r.map(l=>l(c,o)),Mw(()=>{if(!n){const l=c.state.params||t.defaultParams||[];c.run(...l)}}),In(()=>{c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:he(c.cancel.bind(c)),refresh:he(c.refresh.bind(c)),refreshAsync:he(c.refreshAsync.bind(c)),run:he(c.run.bind(c)),runAsync:he(c.runAsync.bind(c)),mutate:he(c.mutate.bind(c))}}function Tf(e,t,r){return Nw(e,t,[...r||[],xw,Ew,$w,kw,Fw,mw,Cw,Aw])}function kf(e=!1,t){const[r,n]=E.useState(e),i=E.useMemo(()=>{const o=t===void 0?!e:t;return{toggle:()=>n(u=>u===e?o:e),set:u=>n(u),setLeft:()=>n(e),setRight:()=>n(o)}},[]);return[r,i]}function Iw(e=!1){const[t,{toggle:r,set:n}]=kf(e),i=E.useMemo(()=>({toggle:r,set:s=>n(!!s),setTrue:()=>n(!0),setFalse:()=>n(!1)}),[]);return[t,i]}function ro(e,t){if(!jn)return;if(!e)return t;let r;return zr(e)?r=e():"current"in e?r=e.current:r=e,r}const Af=(e=>(r,n,i)=>{const o=E.useRef(!1),a=E.useRef([]),s=E.useRef([]),c=E.useRef();e(()=>{var l;const f=(Array.isArray(i)?i:[i]).map(d=>ro(d));if(!o.current){o.current=!0,a.current=f,s.current=n,c.current=r();return}(f.length!==a.current.length||!ss(f,a.current)||!ss(n,s.current))&&((l=c.current)===null||l===void 0||l.call(c),a.current=f,s.current=n,c.current=r())}),In(()=>{var l;(l=c.current)===null||l===void 0||l.call(c),o.current=!1})})(E.useEffect);var us={},jw={get exports(){return us},set exports(e){us=e}};(function(e,t){(function(r,n){e.exports=n()})(pp,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",c="hour",l="day",u="week",f="month",d="quarter",g="year",v="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,P={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(y){var S=["th","st","nd","rd"],T=y%100;return"["+y+(S[(T-20)%10]||S[T]||S[0])+"]"}},$=function(y,S,T){var R=String(y);return!R||R.length>=S?y:""+Array(S+1-R.length).join(T)+y},O={s:$,z:function(y){var S=-y.utcOffset(),T=Math.abs(S),R=Math.floor(T/60),N=T%60;return(S<=0?"+":"-")+$(R,2,"0")+":"+$(N,2,"0")},m:function y(S,T){if(S.date()<T.date())return-y(T,S);var R=12*(T.year()-S.year())+(T.month()-S.month()),N=S.clone().add(R,f),j=T-N<0,z=S.clone().add(R+(j?-1:1),f);return+(-(R+(T-N)/(j?N-z:z-N))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:f,y:g,w:u,d:l,D:v,h:c,m:s,s:a,ms:o,Q:d}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},C="en",w={};w[C]=P;var _=function(y){return y instanceof I},M=function y(S,T,R){var N;if(!S)return C;if(typeof S=="string"){var j=S.toLowerCase();w[j]&&(N=j),T&&(w[j]=T,N=j);var z=S.split("-");if(!N&&z.length>1)return y(z[0])}else{var B=S.name;w[B]=S,N=B}return!R&&N&&(C=N),N||!R&&C},F=function(y,S){if(_(y))return y.clone();var T=typeof S=="object"?S:{};return T.date=y,T.args=arguments,new I(T)},A=O;A.l=M,A.i=_,A.w=function(y,S){return F(y,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var I=function(){function y(T){this.$L=M(T.locale,null,!0),this.parse(T)}var S=y.prototype;return S.parse=function(T){this.$d=function(R){var N=R.date,j=R.utc;if(N===null)return new Date(NaN);if(A.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(p);if(z){var B=z[2]-1||0,Y=(z[7]||"0").substring(0,3);return j?new Date(Date.UTC(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)}}return new Date(N)}(T),this.$x=T.x||{},this.init()},S.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()},S.$utils=function(){return A},S.isValid=function(){return this.$d.toString()!==h},S.isSame=function(T,R){var N=F(T);return this.startOf(R)<=N&&N<=this.endOf(R)},S.isAfter=function(T,R){return F(T)<this.startOf(R)},S.isBefore=function(T,R){return this.endOf(R)<F(T)},S.$g=function(T,R,N){return A.u(T)?this[R]:this.set(N,T)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(T,R){var N=this,j=!!A.u(R)||R,z=A.p(T),B=function(st,oe){var Ae=A.w(N.$u?Date.UTC(N.$y,oe,st):new Date(N.$y,oe,st),N);return j?Ae:Ae.endOf(l)},Y=function(st,oe){return A.w(N.toDate()[st].apply(N.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(oe)),N)},V=this.$W,U=this.$M,Se=this.$D,ge="set"+(this.$u?"UTC":"");switch(z){case g:return j?B(1,0):B(31,11);case f:return j?B(1,U):B(0,U+1);case u:var mt=this.$locale().weekStart||0,Ue=(V<mt?V+7:V)-mt;return B(j?Se-Ue:Se+(6-Ue),U);case l:case v:return Y(ge+"Hours",0);case c:return Y(ge+"Minutes",1);case s:return Y(ge+"Seconds",2);case a:return Y(ge+"Milliseconds",3);default:return this.clone()}},S.endOf=function(T){return this.startOf(T,!1)},S.$set=function(T,R){var N,j=A.p(T),z="set"+(this.$u?"UTC":""),B=(N={},N[l]=z+"Date",N[v]=z+"Date",N[f]=z+"Month",N[g]=z+"FullYear",N[c]=z+"Hours",N[s]=z+"Minutes",N[a]=z+"Seconds",N[o]=z+"Milliseconds",N)[j],Y=j===l?this.$D+(R-this.$W):R;if(j===f||j===g){var V=this.clone().set(v,1);V.$d[B](Y),V.init(),this.$d=V.set(v,Math.min(this.$D,V.daysInMonth())).$d}else B&&this.$d[B](Y);return this.init(),this},S.set=function(T,R){return this.clone().$set(T,R)},S.get=function(T){return this[A.p(T)]()},S.add=function(T,R){var N,j=this;T=Number(T);var z=A.p(R),B=function(U){var Se=F(j);return A.w(Se.date(Se.date()+Math.round(U*T)),j)};if(z===f)return this.set(f,this.$M+T);if(z===g)return this.set(g,this.$y+T);if(z===l)return B(1);if(z===u)return B(7);var Y=(N={},N[s]=n,N[c]=i,N[a]=r,N)[z]||1,V=this.$d.getTime()+T*Y;return A.w(V,this)},S.subtract=function(T,R){return this.add(-1*T,R)},S.format=function(T){var R=this,N=this.$locale();if(!this.isValid())return N.invalidDate||h;var j=T||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),B=this.$H,Y=this.$m,V=this.$M,U=N.weekdays,Se=N.months,ge=function(oe,Ae,vt,ct){return oe&&(oe[Ae]||oe(R,j))||vt[Ae].slice(0,ct)},mt=function(oe){return A.s(B%12||12,oe,"0")},Ue=N.meridiem||function(oe,Ae,vt){var ct=oe<12?"AM":"PM";return vt?ct.toLowerCase():ct},st={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:A.s(V+1,2,"0"),MMM:ge(N.monthsShort,V,Se,3),MMMM:ge(Se,V),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:ge(N.weekdaysMin,this.$W,U,2),ddd:ge(N.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(B),HH:A.s(B,2,"0"),h:mt(1),hh:mt(2),a:Ue(B,Y,!0),A:Ue(B,Y,!1),m:String(Y),mm:A.s(Y,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:z};return j.replace(m,function(oe,Ae){return Ae||st[oe]||z.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(T,R,N){var j,z=A.p(R),B=F(T),Y=(B.utcOffset()-this.utcOffset())*n,V=this-B,U=A.m(this,B);return U=(j={},j[g]=U/12,j[f]=U,j[d]=U/3,j[u]=(V-Y)/6048e5,j[l]=(V-Y)/864e5,j[c]=V/i,j[s]=V/n,j[a]=V/r,j)[z]||V,N?U:A.a(U)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return w[this.$L]},S.locale=function(T,R){if(!T)return this.$L;var N=this.clone(),j=M(T,R,!0);return j&&(N.$L=j),N},S.clone=function(){return A.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},y}(),k=I.prototype;return F.prototype=k,[["$ms",o],["$s",a],["$m",s],["$H",c],["$W",l],["$M",f],["$y",g],["$D",v]].forEach(function(y){k[y[1]]=function(S){return this.$g(S,y[0],y[1])}}),F.extend=function(y,S){return y.$i||(y(S,I,F),y.$i=!0),F},F.locale=M,F.isDayjs=_,F.unix=function(y){return F(1e3*y)},F.en=w[C],F.Ls=w,F.p={},F})})(jw);const Ff=us;function no(e,t,r={}){const n=Nn(t);Af(()=>{const i=ro(r.target,window);if(!(i!=null&&i.addEventListener))return;const o=a=>n.current(a);return i.addEventListener(e,o,{capture:r.capture,once:r.once,passive:r.passive}),()=>{i.removeEventListener(e,o,{capture:r.capture})}},[e,r.capture,r.once,r.passive],r.target)}const fs=(e,t)=>{const{onEnter:r,onLeave:n,onChange:i}=t||{},[o,{setTrue:a,setFalse:s}]=Iw(!1);return no("mouseenter",()=>{r==null||r(),a(),i==null||i(!0)},{target:e}),no("mouseleave",()=>{n==null||n(),s(),i==null||i(!1)},{target:e}),o},Dw=(e,t=[])=>k0(e,t),zw=(e,t,r)=>{const n=E.useRef(),i=E.useRef(0);Dw(t,n.current)||(n.current=t,i.current+=1),Af(e,[i.current],r)},Bw=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),io={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,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};Bw?io.meta=[91,93]:io.meta=[91,92];const ds={ctrl:e=>e.ctrlKey,shift:e=>e.shiftKey,alt:e=>e.altKey,meta:e=>e.type==="keyup"?io.meta.includes(e.keyCode):e.metaKey};function Ww(e){const t=Object.keys(ds).reduce((r,n)=>ds[n](e)?r+1:r,0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Mf(e,t,r){if(!e.key)return!1;if($f(t))return e.keyCode===t;const n=t.split(".");let i=0;for(const o of n){const a=ds[o],s=io[o.toLowerCase()];(a&&a(e)||s&&s===e.keyCode)&&i++}return r?i===n.length&&Ww(e)===n.length:i===n.length}function Hw(e,t){return zr(e)?e:pw(e)||$f(e)?r=>Mf(r,e,t):Array.isArray(e)?r=>e.some(n=>Mf(r,n,t)):()=>!!e}const Vw=["keydown"];function Ie(e,t,r){const{events:n=Vw,target:i,exactMatch:o=!1,useCapture:a=!1}=r||{},s=Nn(t),c=Nn(e);zw(()=>{var l;const u=ro(i,window);if(!u)return;const f=d=>{var g;if(Hw(c.current,o)(d))return(g=s.current)===null||g===void 0?void 0:g.call(s,d)};for(const d of n)(l=u==null?void 0:u.addEventListener)===null||l===void 0||l.call(u,d,f,a);return()=>{var d;for(const g of n)(d=u==null?void 0:u.removeEventListener)===null||d===void 0||d.call(u,g,f,a)}},[n],i)}function qw(e){const t=E.useRef(0),[r,n]=E.useState(e),i=E.useCallback(o=>{cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{n(o)})},[]);return In(()=>{cancelAnimationFrame(t.current)}),[r,i]}const Gw={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Uw=e=>{const[t,r]=qw(Gw);return no("mousemove",n=>{const{screenX:i,screenY:o,clientX:a,clientY:s,pageX:c,pageY:l}=n,u={screenX:i,screenY:o,clientX:a,clientY:s,pageX:c,pageY:l,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=ro(e);if(f){const{left:d,top:g,width:v,height:h}=f.getBoundingClientRect();u.elementPosX=d+window.pageXOffset,u.elementPosY=g+window.pageYOffset,u.elementX=c-u.elementPosX,u.elementY=l-u.elementPosY,u.elementW=v,u.elementH=h}r(u)},{target:()=>document}),t},Kw=Ef(E.useLayoutEffect),lt={modalMask:"_modal-mask_qk630_1",modal:"_modal_qk630_1",modalHeader:"_modal-header_qk630_23",modalBody:"_modal-body_qk630_30",modalTitle:"_modal-title_qk630_35",btnClose:"_btn-close_qk630_42"};let Bn=0;const Xw=()=>{Bn++,document.body.style.overflow="hidden"},Yw=()=>{Bn--,Bn<0&&(Bn=0),Bn===0&&(document.body.style.overflow="")};function hs({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,hideWhenMaskOnClick:o=!1,hideWhenEsc:a=!1}){E.useLayoutEffect(()=>{e?Xw():Yw()},[e]);const s=E.useRef(null),c=qa(),{bg:l,c:u}=E.useMemo(()=>{const h=window.getComputedStyle(document.body)["background-color"],p=window.getComputedStyle(document.body).color;return{bg:h,c:p}},[c]),f=E.useMemo(()=>c?{"--bg":l,"--c":u,backgroundColor:l,color:u}:{},[l,u,c]),d=E.useId(),g=E.useMemo(()=>{const h=document.createElement("div");return h.setAttribute("data-id","base-modal-"+d),document.body.appendChild(h),h},[]),v=he(h=>{var p;(p=s.current)!=null&&p.contains(h.target)||o&&t()});return Ie("esc",h=>{e&&a&&(h.preventDefault(),h.stopImmediatePropagation(),setTimeout(t))}),e?te.createPortal(L("div",{className:J(lt.modalMask,n),onClick:v,children:L("div",{className:J(lt.modal,i),style:f,ref:s,children:r})}),g):null}const gs=e=>L(vr,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),Lf="_toast-container_mcbuq_1",Rf="_single-line_mcbuq_17",QO={toastContainer:Lf,singleLine:Rf};function Ye(e,t=2e3){const r=document.createElement("div");r.className=Lf,r.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&r.classList.add(Rf),document.body.appendChild(r),setTimeout(()=>r.remove(),t)}const Jw="请求失败, 请重试 !!!",Zw="操作失败, 请重试 !!!";function Nf(){return Ye(Jw)}function If(){return Ye(Zw)}function Qw(e){const t=Fn({data:Array.from(e||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){const i=this.data.find(o=>o[0]===r);return i?i[1]=n:this.data.push([r,n]),this},get(r){var n;return(n=this.data.find(i=>i[0]===r))==null?void 0:n[1]},delete(r){const n=this.data.findIndex(i=>i[0]===r);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(r){this.data.forEach(n=>{r(n[1],n[0],this)})},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const jf="27eb53fc9058f8c3";async function eS(){var c,l;const t=(await ue.get("https://passport.bilibili.com/login/app/third",{params:{appkey:jf,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return{errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((l=t==null?void 0:t.data)!=null&&l.confirm_uri))return{errmsg:"无法获得授权网址",json:t};const r=t.data.confirm_uri;let n;const i=new Promise(u=>{window.addEventListener("message",f=>{if(f.origin!="https://www.mcbbs.net"||!f.data)return;const d=f.data.match(/access_key=([0-9a-z]{32})/);if(!d||!d[1])return u({errmsg:"没有获得匹配的密钥"});u(d[1])}),n=setTimeout(()=>{u({errmsg:"获取授权超时"})},10*1e3)}),o=document.createElement("iframe");o.src=r,o.style.display="none",document.body.appendChild(o);function a(){o.remove(),n&&(clearTimeout(n),n=null)}const s=await i;return a(),s}async function tS(){const e=await eS();if(typeof e=="object"&&"errmsg"in e){Ye(e.errmsg);return}const t=e;return De.accessKey=t,Ye("获取成功"),t}function rS(){De.accessKey="",Ye("已删除 access_key")}const Df="https://api.bilibili.com",zf="https://app.bilibili.com",oo=ue.create({baseURL:Df});oo.interceptors.request.use(function(e){var t;return(t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const ao=ue.create({adapter:kr});ao.interceptors.request.use(function(e){return e.params={appkey:jf,access_key:De.accessKey||"",...e.params},e},function(e){return Promise.reject(e)}),ao.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,r=new Uint8Array(e.data),n=t.decode(r);e.data=n;try{e.data=JSON.parse(n)}catch{}}return e});function nS(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw Ye("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const Wn=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Bf=new Set,iS=(e,t,r,n)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},oS=e=>!Bf.has(e),tr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Wf=e=>tr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?so:null:null;class so extends Array{constructor(t){super(t),this.fill(0)}}const un=class{constructor(t,r){Ee(this,"heap");Ee(this,"length");if(!b(un,ln))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){const r=Wf(t);if(!r)return[];q(un,ln,!0);const n=new un(t,r);return q(un,ln,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};let co=un;ln=new WeakMap,K(co,ln,!1);const el=class{constructor(t){K(this,hi);K(this,Zo);K(this,Lt);K(this,Rt);K(this,mi);K(this,hn);K(this,gn);K(this,se);K(this,vi);K(this,Pr);K(this,ft,void 0);K(this,rt,void 0);K(this,Ft,void 0);K(this,dt,void 0);K(this,fn,void 0);Ee(this,"ttl");Ee(this,"ttlResolution");Ee(this,"ttlAutopurge");Ee(this,"updateAgeOnGet");Ee(this,"updateAgeOnHas");Ee(this,"allowStale");Ee(this,"noDisposeOnSet");Ee(this,"noUpdateTTL");Ee(this,"maxEntrySize");Ee(this,"sizeCalculation");Ee(this,"noDeleteOnFetchRejection");Ee(this,"noDeleteOnStaleGet");Ee(this,"allowStaleOnFetchAbort");Ee(this,"allowStaleOnFetchRejection");Ee(this,"ignoreFetchAbort");K(this,Oe,void 0);K(this,ht,void 0);K(this,Pe,void 0);K(this,le,void 0);K(this,G,void 0);K(this,We,void 0);K(this,nt,void 0);K(this,je,void 0);K(this,ke,void 0);K(this,gt,void 0);K(this,Le,void 0);K(this,Xt,void 0);K(this,Yt,void 0);K(this,pt,void 0);K(this,Mt,void 0);K(this,sr,void 0);K(this,Ge,void 0);K(this,$r,()=>{});K(this,Jt,()=>{});K(this,gi,()=>{});K(this,it,()=>!1);K(this,Or,t=>{});K(this,dn,(t,r,n)=>{});K(this,pi,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:c,dispose:l,disposeAfter:u,noDisposeOnSet:f,noUpdateTTL:d,maxSize:g=0,maxEntrySize:v=0,sizeCalculation:h,fetchMethod:p,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:P,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:O,ignoreFetchAbort:C}=t;if(r!==0&&!tr(r))throw new TypeError("max option must be a nonnegative integer");const w=r?Wf(r):Array;if(!w)throw new Error("invalid max value: "+r);if(q(this,ft,r),q(this,rt,g),this.maxEntrySize=v||b(this,rt),this.sizeCalculation=h,this.sizeCalculation){if(!b(this,rt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(q(this,fn,p),q(this,sr,!!p),q(this,Pe,new Map),q(this,le,new Array(r).fill(void 0)),q(this,G,new Array(r).fill(void 0)),q(this,We,new w(r)),q(this,nt,new w(r)),q(this,je,0),q(this,ke,0),q(this,gt,co.create(r)),q(this,Oe,0),q(this,ht,0),typeof l=="function"&&q(this,Ft,l),typeof u=="function"?(q(this,dt,u),q(this,Le,[])):(q(this,dt,void 0),q(this,Le,void 0)),q(this,Mt,!!b(this,Ft)),q(this,Ge,!!b(this,dt)),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!C,this.maxEntrySize!==0){if(b(this,rt)!==0&&!tr(b(this,rt)))throw new TypeError("maxSize must be a positive integer if specified");if(!tr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");H(this,Zo,zg).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!P,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=tr(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!tr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");H(this,hi,nl).call(this)}if(b(this,ft)===0&&this.ttl===0&&b(this,rt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!b(this,ft)&&!b(this,rt)){const _="LRU_CACHE_UNBOUNDED";oS(_)&&(Bf.add(_),iS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,el))}}static unsafeExposeInternals(t){return{starts:b(t,Yt),ttls:b(t,pt),sizes:b(t,Xt),keyMap:b(t,Pe),keyList:b(t,le),valList:b(t,G),next:b(t,We),prev:b(t,nt),get head(){return b(t,je)},get tail(){return b(t,ke)},free:b(t,gt),isBackgroundFetch:r=>{var n;return H(n=t,se,de).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return H(a=t,gn,ta).call(a,r,n,i,o)},moveToTail:r=>{var n;return H(n=t,Pr,wi).call(n,r)},indexes:r=>{var n;return H(n=t,Lt,cr).call(n,r)},rindexes:r=>{var n;return H(n=t,Rt,lr).call(n,r)},isStale:r=>{var n;return b(n=t,it).call(n,r)}}}get max(){return b(this,ft)}get maxSize(){return b(this,rt)}get calculatedSize(){return b(this,ht)}get size(){return b(this,Oe)}get fetchMethod(){return b(this,fn)}get dispose(){return b(this,Ft)}get disposeAfter(){return b(this,dt)}getRemainingTTL(t){return b(this,Pe).has(t)?1/0:0}*entries(){for(const t of H(this,Lt,cr).call(this))b(this,G)[t]!==void 0&&b(this,le)[t]!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield[b(this,le)[t],b(this,G)[t]])}*rentries(){for(const t of H(this,Rt,lr).call(this))b(this,G)[t]!==void 0&&b(this,le)[t]!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield[b(this,le)[t],b(this,G)[t]])}*keys(){for(const t of H(this,Lt,cr).call(this)){const r=b(this,le)[t];r!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield r)}}*rkeys(){for(const t of H(this,Rt,lr).call(this)){const r=b(this,le)[t];r!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield r)}}*values(){for(const t of H(this,Lt,cr).call(this))b(this,G)[t]!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield b(this,G)[t])}*rvalues(){for(const t of H(this,Rt,lr).call(this))b(this,G)[t]!==void 0&&!H(this,se,de).call(this,b(this,G)[t])&&(yield b(this,G)[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of H(this,Lt,cr).call(this)){const i=b(this,G)[n],o=H(this,se,de).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,b(this,le)[n],this))return this.get(b(this,le)[n],r)}}forEach(t,r=this){for(const n of H(this,Lt,cr).call(this)){const i=b(this,G)[n],o=H(this,se,de).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,b(this,le)[n],this)}}rforEach(t,r=this){for(const n of H(this,Rt,lr).call(this)){const i=b(this,G)[n],o=H(this,se,de).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,b(this,le)[n],this)}}purgeStale(){let t=!1;for(const r of H(this,Rt,lr).call(this,{allowStale:!0}))b(this,it).call(this,r)&&(this.delete(b(this,le)[r]),t=!0);return t}dump(){const t=[];for(const r of H(this,Lt,cr).call(this,{allowStale:!0})){const n=b(this,le)[r],i=b(this,G)[r],o=H(this,se,de).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(b(this,pt)&&b(this,Yt)){a.ttl=b(this,pt)[r];const s=Wn.now()-b(this,Yt)[r];a.start=Math.floor(Date.now()-s)}b(this,Xt)&&(a.size=b(this,Xt)[r]),t.unshift([n,a])}return t}load(t){this.clear();for(const[r,n]of t){if(n.start){const i=Date.now()-n.start;n.start=Wn.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){var d,g,v;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=n;let{noUpdateTTL:l=this.noUpdateTTL}=n;const u=b(this,pi).call(this,t,r,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.delete(t),this;let f=b(this,Oe)===0?void 0:b(this,Pe).get(t);if(f===void 0)f=b(this,Oe)===0?b(this,ke):b(this,gt).length!==0?b(this,gt).pop():b(this,Oe)===b(this,ft)?H(this,hn,ea).call(this,!1):b(this,Oe),b(this,le)[f]=t,b(this,G)[f]=r,b(this,Pe).set(t,f),b(this,We)[b(this,ke)]=f,b(this,nt)[f]=b(this,ke),q(this,ke,f),Qo(this,Oe)._++,b(this,dn).call(this,f,u,c),c&&(c.set="add"),l=!1;else{H(this,Pr,wi).call(this,f);const h=b(this,G)[f];if(r!==h){if(b(this,sr)&&H(this,se,de).call(this,h)?h.__abortController.abort(new Error("replaced")):a||(b(this,Mt)&&((d=b(this,Ft))==null||d.call(this,h,t,"set")),b(this,Ge)&&((g=b(this,Le))==null||g.push([h,t,"set"]))),b(this,Or).call(this,f),b(this,dn).call(this,f,u,c),b(this,G)[f]=r,c){c.set="replace";const p=h&&H(this,se,de).call(this,h)?h.__staleWhileFetching:h;p!==void 0&&(c.oldValue=p)}}else c&&(c.set="update")}if(i!==0&&!b(this,pt)&&H(this,hi,nl).call(this),b(this,pt)&&(l||b(this,gi).call(this,f,i,o),c&&b(this,Jt).call(this,c,f)),!a&&b(this,Ge)&&b(this,Le)){const h=b(this,Le);let p;for(;p=h==null?void 0:h.shift();)(v=b(this,dt))==null||v.call(this,...p)}return this}pop(){var t;try{for(;b(this,Oe);){const r=b(this,G)[b(this,je)];if(H(this,hn,ea).call(this,!0),H(this,se,de).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(b(this,Ge)&&b(this,Le)){const r=b(this,Le);let n;for(;n=r==null?void 0:r.shift();)(t=b(this,dt))==null||t.call(this,...n)}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=b(this,Pe).get(t);if(o!==void 0){const a=b(this,G)[o];if(H(this,se,de).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(b(this,it).call(this,o))i&&(i.has="stale",b(this,Jt).call(this,i,o));else return n&&b(this,$r).call(this,o),i&&(i.has="hit",b(this,Jt).call(this,i,o)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=b(this,Pe).get(t);if(i!==void 0&&(n||!b(this,it).call(this,i))){const o=b(this,G)[i];return H(this,se,de).call(this,o)?o.__staleWhileFetching:o}}async fetch(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:h,forceRefresh:p=!1,status:m,signal:P}=r;if(!b(this,sr))return m&&(m.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:m});const $={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:v,ignoreFetchAbort:g,status:m,signal:P};let O=b(this,Pe).get(t);if(O===void 0){m&&(m.fetch="miss");const C=H(this,gn,ta).call(this,t,O,$,h);return C.__returned=C}else{const C=b(this,G)[O];if(H(this,se,de).call(this,C)){const A=n&&C.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",A&&(m.returnedStale=!0)),A?C.__staleWhileFetching:C.__returned=C}const w=b(this,it).call(this,O);if(!p&&!w)return m&&(m.fetch="hit"),H(this,Pr,wi).call(this,O),i&&b(this,$r).call(this,O),m&&b(this,Jt).call(this,m,O),C;const _=H(this,gn,ta).call(this,t,O,$,h),F=_.__staleWhileFetching!==void 0&&n;return m&&(m.fetch=w?"stale":"refresh",F&&w&&(m.returnedStale=!0)),F?_.__staleWhileFetching:_.__returned=_}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=b(this,Pe).get(t);if(s!==void 0){const c=b(this,G)[s],l=H(this,se,de).call(this,c);return a&&b(this,Jt).call(this,a,s),b(this,it).call(this,s)?(a&&(a.get="stale"),l?(a&&n&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?c.__staleWhileFetching:void 0):(o||this.delete(t),a&&n&&(a.returnedStale=!0),n?c:void 0)):(a&&(a.get="hit"),l?c.__staleWhileFetching:(H(this,Pr,wi).call(this,s),i&&b(this,$r).call(this,s),c))}else a&&(a.get="miss")}delete(t){var n,i,o,a;let r=!1;if(b(this,Oe)!==0){const s=b(this,Pe).get(t);if(s!==void 0)if(r=!0,b(this,Oe)===1)this.clear();else{b(this,Or).call(this,s);const c=b(this,G)[s];H(this,se,de).call(this,c)?c.__abortController.abort(new Error("deleted")):(b(this,Mt)||b(this,Ge))&&(b(this,Mt)&&((n=b(this,Ft))==null||n.call(this,c,t,"delete")),b(this,Ge)&&((i=b(this,Le))==null||i.push([c,t,"delete"]))),b(this,Pe).delete(t),b(this,le)[s]=void 0,b(this,G)[s]=void 0,s===b(this,ke)?q(this,ke,b(this,nt)[s]):s===b(this,je)?q(this,je,b(this,We)[s]):(b(this,We)[b(this,nt)[s]]=b(this,We)[s],b(this,nt)[b(this,We)[s]]=b(this,nt)[s]),Qo(this,Oe)._--,b(this,gt).push(s)}}if(b(this,Ge)&&((o=b(this,Le))!=null&&o.length)){const s=b(this,Le);let c;for(;c=s==null?void 0:s.shift();)(a=b(this,dt))==null||a.call(this,...c)}return r}clear(){var t,r,n;for(const i of H(this,Rt,lr).call(this,{allowStale:!0})){const o=b(this,G)[i];if(H(this,se,de).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=b(this,le)[i];b(this,Mt)&&((t=b(this,Ft))==null||t.call(this,o,a,"delete")),b(this,Ge)&&((r=b(this,Le))==null||r.push([o,a,"delete"]))}}if(b(this,Pe).clear(),b(this,G).fill(void 0),b(this,le).fill(void 0),b(this,pt)&&b(this,Yt)&&(b(this,pt).fill(0),b(this,Yt).fill(0)),b(this,Xt)&&b(this,Xt).fill(0),q(this,je,0),q(this,ke,0),b(this,gt).length=0,q(this,ht,0),q(this,Oe,0),b(this,Ge)&&b(this,Le)){const i=b(this,Le);let o;for(;o=i==null?void 0:i.shift();)(n=b(this,dt))==null||n.call(this,...o)}}};let ps=el;ft=new WeakMap,rt=new WeakMap,Ft=new WeakMap,dt=new WeakMap,fn=new WeakMap,Oe=new WeakMap,ht=new WeakMap,Pe=new WeakMap,le=new WeakMap,G=new WeakMap,We=new WeakMap,nt=new WeakMap,je=new WeakMap,ke=new WeakMap,gt=new WeakMap,Le=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,pt=new WeakMap,Mt=new WeakMap,sr=new WeakMap,Ge=new WeakMap,hi=new WeakSet,nl=function(){const t=new so(b(this,ft)),r=new so(b(this,ft));q(this,pt,t),q(this,Yt,r),q(this,gi,(o,a,s=Wn.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const c=setTimeout(()=>{b(this,it).call(this,o)&&this.delete(b(this,le)[o])},a+1);c.unref&&c.unref()}}),q(this,$r,o=>{r[o]=t[o]!==0?Wn.now():0}),q(this,Jt,(o,a)=>{if(t[a]){const s=t[a],c=r[a];o.ttl=s,o.start=c,o.now=n||i(),o.remainingTTL=o.now+s-c}});let n=0;const i=()=>{const o=Wn.now();if(this.ttlResolution>0){n=o;const a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return o};this.getRemainingTTL=o=>{const a=b(this,Pe).get(o);return a===void 0?0:t[a]===0||r[a]===0?1/0:r[a]+t[a]-(n||i())},q(this,it,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o])},$r=new WeakMap,Jt=new WeakMap,gi=new WeakMap,it=new WeakMap,Zo=new WeakSet,zg=function(){const t=new so(b(this,ft));q(this,ht,0),q(this,Xt,t),q(this,Or,r=>{q(this,ht,b(this,ht)-t[r]),t[r]=0}),q(this,pi,(r,n,i,o)=>{if(H(this,se,de).call(this,n))return 0;if(!tr(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!tr(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),q(this,dn,(r,n,i)=>{if(t[r]=n,b(this,rt)){const o=b(this,rt)-t[r];for(;b(this,ht)>o;)H(this,hn,ea).call(this,!0)}q(this,ht,b(this,ht)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=b(this,ht))})},Or=new WeakMap,dn=new WeakMap,pi=new WeakMap,Lt=new WeakSet,cr=function*({allowStale:t=this.allowStale}={}){if(b(this,Oe))for(let r=b(this,ke);!(!H(this,mi,il).call(this,r)||((t||!b(this,it).call(this,r))&&(yield r),r===b(this,je)));)r=b(this,nt)[r]},Rt=new WeakSet,lr=function*({allowStale:t=this.allowStale}={}){if(b(this,Oe))for(let r=b(this,je);!(!H(this,mi,il).call(this,r)||((t||!b(this,it).call(this,r))&&(yield r),r===b(this,ke)));)r=b(this,We)[r]},mi=new WeakSet,il=function(t){return t!==void 0&&b(this,Pe).get(b(this,le)[t])===t},hn=new WeakSet,ea=function(t){var o,a;const r=b(this,je),n=b(this,le)[r],i=b(this,G)[r];return b(this,sr)&&H(this,se,de).call(this,i)?i.__abortController.abort(new Error("evicted")):(b(this,Mt)||b(this,Ge))&&(b(this,Mt)&&((o=b(this,Ft))==null||o.call(this,i,n,"evict")),b(this,Ge)&&((a=b(this,Le))==null||a.push([i,n,"evict"]))),b(this,Or).call(this,r),t&&(b(this,le)[r]=void 0,b(this,G)[r]=void 0,b(this,gt).push(r)),b(this,Oe)===1?(q(this,je,q(this,ke,0)),b(this,gt).length=0):q(this,je,b(this,We)[r]),b(this,Pe).delete(n),Qo(this,Oe)._--,r},gn=new WeakSet,ta=function(t,r,n,i){const o=r===void 0?void 0:b(this,G)[r];if(H(this,se,de).call(this,o))return o;const a=new AbortController,{signal:s}=n;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const c={signal:a.signal,options:n,context:i},l=(h,p=!1)=>{const{aborted:m}=a.signal,P=n.ignoreFetchAbort&&h!==void 0;if(n.status&&(m&&!p?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,P&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),m&&!P&&!p)return f(a.signal.reason);const $=g;return b(this,G)[r]===g&&(h===void 0?$.__staleWhileFetching?b(this,G)[r]=$.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,h,c.options))),h},u=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),f(h)),f=h=>{const{aborted:p}=a.signal,m=p&&n.allowStaleOnFetchAbort,P=m||n.allowStaleOnFetchRejection,$=P||n.noDeleteOnFetchRejection,O=g;if(b(this,G)[r]===g&&(!$||O.__staleWhileFetching===void 0?this.delete(t):m||(b(this,G)[r]=O.__staleWhileFetching)),P)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw h},d=(h,p)=>{var P;const m=(P=b(this,fn))==null?void 0:P.call(this,t,o,c);m&&m instanceof Promise&&m.then($=>h($),p),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(),n.allowStaleOnFetchAbort&&(h=$=>l($,!0)))})};n.status&&(n.status.fetchDispatched=!0);const g=new Promise(d).then(l,u),v=Object.assign(g,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,v,{...c.options,status:void 0}),r=b(this,Pe).get(t)):b(this,G)[r]=v,v},se=new WeakSet,de=function(t){if(!b(this,sr))return!1;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof AbortController},vi=new WeakSet,ol=function(t,r){b(this,nt)[r]=t,b(this,We)[t]=r},Pr=new WeakSet,wi=function(t){t!==b(this,ke)&&(t===b(this,je)?q(this,je,b(this,We)[t]):H(this,vi,ol).call(this,b(this,nt)[t],b(this,We)[t]),H(this,vi,ol).call(this,b(this,ke),t),q(this,ke,t))};const aS=ps;async function sS(e){return(await oo.get("/pvideo",{params:{aid:e}})).data.data}async function cS(e){return[]}const ms=new aS({max:200});async function lS(e){if(ms.has(e))return ms.get(e);const[t,r]=await Promise.all([sS(e),cS()]);return ms.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function Hf(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",nS());const o=(await oo.post("/x/v2/history/toview/"+e,n,{withCredentials:!0})).data,a=(o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0";return a||Ye((o==null?void 0:o.message)||"出错了"),a}}const uS=Hf("add"),fS=Hf("del"),Vf=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await ao.get(zf+t,{params:{goto:r.goto,id:r.param,reason_id:n,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0"}},dS=Vf("dislike"),hS=Vf("cancel"),ot={modal:"_modal_1rloz_1",titleDesc:"_title-desc_1rloz_4",reasonList:"_reason-list_1rloz_8",reason:"_reason_1rloz_8",active:"_active_1rloz_29",reasonNo:"_reason-no_1rloz_33",tipsContainer:"_tips-container_1rloz_47",tips:"_tips_1rloz_47"},lo=Qw();function gS(){return Ir(lo)}function pS(e){const t=gS();if(e)return t.get(e)}function mS({show:e,onHide:t,item:r}){const[n,i]=E.useState(!1),o=he(async g=>{if(!r)return;let v=!1,h=null;try{i(!0),v=await dS(r,g.id)}catch(p){h=p}finally{i(!1)}if(h)return console.error(h.stack||h),Nf();v?Ye("已标记不想看"):If(),v&&(lo.set(r.param,{...g}),t())}),a=E.useMemo(()=>{var g;return((g=r==null?void 0:r.three_point)==null?void 0:g.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,c=["1","2","3","4","5","6"];Ie(c,g=>{if(!s()||!c.includes(g.key))return;const v=Number(g.key)-1;u(v);const h=document.querySelectorAll(`.${ot.reason}`)[v]||null;h==null||h.click()});const[l,u]=E.useState(a.length-1);Kw(()=>{u(a.length-1)},[a]);const f=g=>()=>{if(!s())return;const v=l+g;v<0||v>a.length-1||u(v)};Ie("leftarrow",f(-1)),Ie("rightarrow",f(1)),Ie("uparrow",f(-2)),Ie("downarrow",f(2)),Ie("enter",g=>{var v;s()&&(l<0||l>a.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${ot.reason}.${ot.active}`))==null||v.click()))});const d=E.useMemo(()=>{var g;return((g=a[l])==null?void 0:g.name)||""},[a,l]);return W(hs,{show:e,onHide:t,clsModal:ot.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[W("div",{className:lt.modalHeader,children:[W("div",{className:lt.modalTitle,children:["我不想看",L("span",{className:ot.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),L("div",{className:"space",style:{flex:1}}),L(gs,{onClick:t})]}),W("div",{className:lt.modalBody,children:[L("div",{className:ot.reasonList,children:a.map((g,v)=>W("button",{className:J(ot.reason,{[ot.active]:v===l}),"data-id":g.id,onClick:()=>{u(v),o(g)},disabled:n,children:[L("span",{className:ot.reasonNo,children:v+1}),g.name]},g.id))}),W("div",{className:ot.tipsContainer,children:[W("div",{className:ot.tips,children:[L(vr,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),d&&W("div",{className:ot.tips,children:[L(vr,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",d,"」, 回车键提交"]})]})]})]})}const uo={show:!1,onHide:Gf,item:null},qf=Fn({value:uo.show}),vS=function(){return Ir(qf).value};function Gf(){setTimeout(()=>{Uf({show:!1,item:null})})}function Uf(e){Object.assign(uo,e),qf.value=uo.show,bS().render(L(mS,{...uo,onHide:Gf}))}let vs;function bS(){if(!vs){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),vs=Ji(e)}return vs}function yS(e){e!=null&&e.param&&lo.has(e.param)||Uf({show:!0,item:e})}function wS(e){if(!e)return"00:00";const t=Math.trunc(e/3600);e-=t*3600;const r=Math.trunc(e/60);e-=r*60;const i=[t,r,e];return i[0]===0&&i.shift(),i.map(a=>Z0(a.toString(),2,"0")).join(":")}function bs(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}const _e={biliVideoCard:"_bili-video-card_mqmiz_1",imageWrapper:"_image-wrapper_mqmiz_4",previewCardWrapper:"_preview-card-wrapper_mqmiz_8",previewCardInner:"_preview-card-inner_mqmiz_21",watchLater:"_watch-later_mqmiz_25",badge:"_badge_mqmiz_28",recommendReason:"_recommend-reason_mqmiz_36",bangumiDesc:"_bangumi-desc_mqmiz_51",btnDislike:"_btn-dislike_mqmiz_54",btnDislikeIcon:"_btn-dislike-icon_mqmiz_69",btnDislikeTip:"_btn-dislike-tip_mqmiz_76",dislikedWrapper:"_disliked-wrapper_mqmiz_91",dislikeContentCover:"_dislike-content-cover_mqmiz_105",dislikeContentCoverInner:"_dislike-content-cover-inner_mqmiz_111",dislikeIcon:"_dislike-icon_mqmiz_122",dislikeReason:"_dislike-reason_mqmiz_125",dislikeDesc:"_dislike-desc_mqmiz_129",dislikeContentAction:"_dislike-content-action_mqmiz_133",skeletonActive:"_skeleton-active_mqmiz_150",antSkeletonLoading:"_ant-skeleton-loading_mqmiz_1"};function ys(e,t){return isNaN(e)?t:e}function SS({className:e,videoDuration:t,pvideo:r,enterCursorState:n}){const i=E.useRef(null),o=Uw(i),a={videoDuration:t,pvideo:r,cursorState:o,elWidth:ys(o.elementW,n.width),elHeight:ys(o.elementH,n.height),relativeX:ys(o.elementX,n.relativeX)};return L("div",{ref:i,className:J(_e.previewCardWrapper,e),children:r?L(CS,{...a}):!1})}function CS({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,relativeX:i}){var w;let o=0,a=0;r&&i&&!isNaN(i)&&!isNaN(r)&&(o=i/r,o<0&&(o=0),o>1&&(o=1),a=Math.floor((e||0)*o));let s=E.useMemo(()=>{const _=(t==null?void 0:t.index)||[];let M=ES(_,a);return M!==-1?M:a>_[_.length-1]?(M=Math.floor(_.length*o)-1,M<0&&(M=0),M):0},[t,a]);const{img_x_len:c,img_y_len:l,img_x_size:u,img_y_size:f}=t,d=l*c;s=s+1;const g=Math.floor(s/d),v=s-g*d,h=((w=t.image)==null?void 0:w[g])||"",p=Math.floor(v/c)+1,m=v-(p-1)*c,P=r*c,$=n*l,O=(p-1)*n,C=(m-1)*r;return L("div",{className:_e.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${C}px -${O}px`,backgroundSize:`${P}px ${$}px`},children:L(xS,{progress:o})})}function xS({progress:e}){return L("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:L("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function ES(e,t){let r=0,n=e.length-1,i=-1;for(;r<=n;){const s=Math.floor((r+n)/2),c=e[s];if(t===c)return s;c<t?(r=s+1,i=s):n=s-1}if(i===-1)return-1;const o=e[i],a=e[i+1]??0;return o<t&&t<a?i:-1}const _S=Ff().format("YYYY"),$S=e=>{if(!e)return"";const t=Ff.unix(e);return t.format("YYYY")===_S?t.format("M-D"):t.format("YY-M-D")},OS=e=>(e||"").replace(/^http:\/\//,"https://"),ws=E.memo(E.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const c=W("div",{className:J("bili-video-card__skeleton",{hide:!i,[_e.skeletonActive]:i}),children:[L("div",{className:"bili-video-card__skeleton--cover"}),L("div",{className:"bili-video-card__skeleton--info",children:W("div",{className:"bili-video-card__skeleton--right",children:[L("p",{className:"bili-video-card__skeleton--text"}),L("p",{className:"bili-video-card__skeleton--text short"}),L("p",{className:"bili-video-card__skeleton--light"})]})})]}),l=pS((n==null?void 0:n.api)==="app"&&n.param),u=E.useRef(null),f=E.useRef(null);return E.useImperativeHandle(s,()=>({async onCancelDislike(){var d;await((d=u.current)==null?void 0:d.onCancelDislike())},async onToggleWatchLater(){var d;await((d=f.current)==null?void 0:d.onToggleWatchLater())},onTriggerDislike(){var d;(d=f.current)==null||d.onTriggerDislike()}}),[u,f]),W("div",{style:t,className:J("bili-video-card",_e.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[c,!i&&n&&(l?L(PS,{ref:u,item:n,dislikedReason:l}):L(TS,{ref:f,item:n,active:o}))]})})),PS=E.memo(E.forwardRef(function({dislikedReason:t,item:r},n){const i=he(async()=>{if(!(t!=null&&t.id))return;let o=!1,a=null;try{o=await hS(r,t.id)}catch(s){a=s}if(a)return console.error(a.stack||a),Nf();o?Ye("已撤销"):If(),o&&lo.delete(r.param)});return E.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),W("div",{className:J(_e.dislikedWrapper),children:[L("div",{className:_e.dislikeContentCover,children:W("div",{className:_e.dislikeContentCoverInner,children:[L(vr,{name:"DistraughtFace",size:32,className:_e.dislikeIcon}),L("div",{className:_e.dislikeReason,children:t==null?void 0:t.name}),L("div",{className:_e.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),L("div",{className:_e.dislikeContentAction,children:W("button",{onClick:i,children:[L(vr,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),TS=E.memo(E.forwardRef(function({item:t,active:r=!1},n){var Ng,Ig,jg;const i=E.useRef(null),[o,a]=E.useState(()=>({width:0,height:0,relativeX:0}));no("mouseenter",xe=>{var Dg;const Nt=(Dg=i.current)==null?void 0:Dg.getBoundingClientRect();if(!Nt)return;const{width:pn,height:tl,x:CO}=Nt;a({width:pn,height:tl,relativeX:xe.pageX-window.pageXOffset-CO})},{target:i});const s=fs(i),c=E.useRef(null),l=fs(c),[u,f]=E.useState(!1),{accessKey:d}=er(),g=!!d;E.useImperativeHandle(n,()=>({onToggleWatchLater:Se,onTriggerDislike:Ue}),[]);const v=t.api==="pc",h=t.api==="app",p=String(v?t.id:t.param),m=v?t.bvid:"",P=t.goto,$=v?t.stat.view:void 0,O=v?t.stat.like:void 0,C=t.title,w=v?t.pic:t.cover,_=v?t.pubdate:void 0,M=(v?t.duration:(Ng=t.player_args)==null?void 0:Ng.duration)||0,F=v?t.owner.name:t.args.up_name;v&&t.owner.face;const A=v?t.owner.mid:t.args.up_id,I=void 0,k=v?void 0:t.badge,y=v?void 0:((Ig=t.desc_button)==null?void 0:Ig.text)||"",S=v?(jg=t.rcmd_reason)==null?void 0:jg.content:t.rcmd_reason,T=E.useMemo(()=>$S(_),[_]),R=E.useMemo(()=>OS(w),[w]),[N,j]=E.useState(null),[z,B]=E.useState(!1),Y=he(async()=>{if(!N&&!z)try{B(!0);const xe=await lS(p);j(xe)}finally{B(!1)}});E.useEffect(()=>{s&&Y()},[s]);const[V,U]=E.useState(!1),Se=he(async xe=>{if(xe==null||xe.preventDefault(),V)return;U(!0);const Nt=u?fS:uS;let pn=!1;try{pn=await Nt(p)}finally{U(!1)}pn&&f(tl=>!tl)}),ge=E.useRef(null),mt=fs(ge),Ue=he(xe=>{xe==null||xe.stopPropagation(),xe==null||xe.preventDefault(),h&&yS(t)}),st=t.goto==="bangumi",oe=t.goto==="av",Ae=v?oe&&m?`/video/${m}`:t.uri:oe?`/video/av${t.param}`:t.uri,vt=E.useMemo(()=>wS(M),[M]),ct=E.useMemo(()=>bs($),[$]),Ce=E.useMemo(()=>bs(O),[O]),Zt=E.useMemo(()=>bs(I),[I]),bi=v?Ce:Zt,yi=he(xe=>{if(!De.openInIINAWhenRightClick)return;const Nt=new URL(Ae,location.href).href,pn=`iina://open?url=${encodeURIComponent(Nt)}`;window.open(pn,"_self"),xe.preventDefault()}),fe=({text:xe,iconSvgName:Nt})=>W("span",{className:"bili-video-card__stats--item",children:[L("svg",{className:"bili-video-card__stats--icon",children:L("use",{xlinkHref:Nt})}),L("span",{className:"bili-video-card__stats--text",children:xe})]}),pe={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-agree"},Re={1:"play",2:"like",3:"danmaku",4:"bangumiFollow"},Tr=xe=>{const Nt=Re[xe]||Re[1];return pe[Nt]};return W("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:yi,children:[L("a",{href:Ae,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:W("div",{className:"bili-video-card__image __scale-player-wrap",ref:i,children:[W("div",{className:J("bili-video-card__image--wrap",_e.imageWrapper),children:[W("picture",{className:"v-img bili-video-card__cover",children:[L("source",{srcSet:`${R}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),L("source",{srcSet:`${R}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),L("img",{src:`${R}@672w_378h_1c_!web-home-common-cover`,alt:C,loading:"eager"})]}),s&&L(SS,{videoDuration:M,pvideo:N==null?void 0:N.pvideoData,enterCursorState:o}),W("div",{className:`bili-watch-later ${_e.watchLater}`,style:{display:s||r?"flex":"none"},ref:c,onClick:Se,children:[L("svg",{className:"bili-watch-later__icon",children:L("use",{xlinkHref:u?"#widget-watch-save":"#widget-watch-later"})}),L("span",{className:"bili-watch-later__tip",style:{display:l?"block":"none"},children:u?"移除":"稍后再看"})]}),h&&g&&W("div",{ref:ge,className:_e.btnDislike,onClick:Ue,style:{display:s?"flex":"none"},children:[L("svg",{className:_e.btnDislikeIcon,children:L("use",{xlinkHref:"#widget-close"})}),L("span",{className:_e.btnDislikeTip,style:{display:mt?"block":"none"},children:"我不想看"})]})]}),L("div",{className:"bili-video-card__mask",children:W("div",{className:"bili-video-card__stats",children:[L("div",{className:"bili-video-card__stats--left",children:v?W(dr,{children:[fe({text:ct,iconSvgName:pe.play}),fe({text:P==="av"?Ce:bi,iconSvgName:pe.like})]}):W(dr,{children:[fe({iconSvgName:Tr(t.cover_left_icon_1),text:t.cover_left_text_1}),fe({iconSvgName:Tr(t.cover_left_icon_2),text:t.cover_left_text_2})]})}),L("span",{className:"bili-video-card__stats__duration",children:oe&&vt})]})})]})}),L("div",{className:"bili-video-card__info __scale-disable",children:W("div",{className:"bili-video-card__info--right",children:[L("a",{href:Ae,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:L("h3",{className:"bili-video-card__info--tit",title:C,children:C})}),W("p",{className:"bili-video-card__info--bottom",children:[oe&&W("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${A}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[S?L("span",{className:_e.recommendReason,children:S}):L("svg",{className:"bili-video-card__info--owner__up",children:L("use",{xlinkHref:"#widget-up"})}),L("span",{className:"bili-video-card__info--author",children:F}),T&&W("span",{className:"bili-video-card__info--date",children:["· ",T]})]}),st&&W("a",{className:"bili-video-card__info--owner",href:Ae,target:"_blank",children:[L("span",{className:_e.badge,children:k||""}),L("span",{className:_e.bangumiDesc,children:y||""})]})]})]})})]})})),Kf="bilibili-app-recommend";var Hn={},kS={get exports(){return Hn},set exports(e){Hn=e}},fo={},AS={get exports(){return fo},set exports(e){fo=e}},Br={},FS={get exports(){return Br},set exports(e){Br=e}},be=FS.exports={},_t,$t;function Ss(){throw new Error("setTimeout has not been defined")}function Cs(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_t=setTimeout:_t=Ss}catch{_t=Ss}try{typeof clearTimeout=="function"?$t=clearTimeout:$t=Cs}catch{$t=Cs}})();function Xf(e){if(_t===setTimeout)return setTimeout(e,0);if((_t===Ss||!_t)&&setTimeout)return _t=setTimeout,setTimeout(e,0);try{return _t(e,0)}catch{try{return _t.call(null,e,0)}catch{return _t.call(this,e,0)}}}function MS(e){if($t===clearTimeout)return clearTimeout(e);if(($t===Cs||!$t)&&clearTimeout)return $t=clearTimeout,clearTimeout(e);try{return $t(e)}catch{try{return $t.call(null,e)}catch{return $t.call(this,e)}}}var Bt=[],Wr=!1,yr,ho=-1;function LS(){!Wr||!yr||(Wr=!1,yr.length?Bt=yr.concat(Bt):ho=-1,Bt.length&&Yf())}function Yf(){if(!Wr){var e=Xf(LS);Wr=!0;for(var t=Bt.length;t;){for(yr=Bt,Bt=[];++ho<t;)yr&&yr[ho].run();ho=-1,t=Bt.length}yr=null,Wr=!1,MS(e)}}be.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Bt.push(new Jf(e,t)),Bt.length===1&&!Wr&&Xf(Yf)};function Jf(e,t){this.fun=e,this.array=t}Jf.prototype.run=function(){this.fun.apply(null,this.array)},be.title="browser",be.browser=!0,be.env={},be.argv=[],be.version="",be.versions={};function Wt(){}be.on=Wt,be.addListener=Wt,be.once=Wt,be.off=Wt,be.removeListener=Wt,be.removeAllListeners=Wt,be.emit=Wt,be.prependListener=Wt,be.prependOnceListener=Wt,be.listeners=function(e){return[]},be.binding=function(e){throw new Error("process.binding is not supported")},be.cwd=function(){return"/"},be.chdir=function(e){throw new Error("process.chdir is not supported")},be.umask=function(){return 0};var xs;typeof Object.create=="function"?xs=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:xs=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t};const Zf=xs;var RS=/%[sdj%]/g;function Hr(e){if(!qn(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Ot(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(e).replace(RS,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return s}}),a=n[r];r<i;a=n[++r])Vn(a)||!wr(a)?o+=" "+a:o+=" "+Ot(a);return o}function Es(e,t){if(Pt(global.process))return function(){return Es(e,t).apply(this,arguments)};if(Br.noDeprecation===!0)return e;var r=!1;function n(){if(!r){if(Br.throwDeprecation)throw new Error(t);Br.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n}var go={},_s;function Qf(e){if(Pt(_s)&&(_s=Br.env.NODE_DEBUG||""),e=e.toUpperCase(),!go[e])if(new RegExp("\\b"+e+"\\b","i").test(_s)){var t=0;go[e]=function(){var r=Hr.apply(null,arguments);console.error("%s %d: %s",e,t,r)}}else go[e]=function(){};return go[e]}function Ot(e,t){var r={seen:[],stylize:IS};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),mo(t)?r.showHidden=t:t&&Fs(r,t),Pt(r.showHidden)&&(r.showHidden=!1),Pt(r.depth)&&(r.depth=2),Pt(r.colors)&&(r.colors=!1),Pt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=NS),po(r,e,r.depth)}Ot.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]},Ot.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NS(e,t){var r=Ot.styles[t];return r?"\x1B["+Ot.colors[r][0]+"m"+e+"\x1B["+Ot.colors[r][1]+"m":e}function IS(e,t){return e}function jS(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function po(e,t,r){if(e.customInspect&&t&&Kn(t.inspect)&&t.inspect!==Ot&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return qn(n)||(n=po(e,n,r)),n}var i=DS(e,t);if(i)return i;var o=Object.keys(t),a=jS(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Un(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return $s(t);if(o.length===0){if(Kn(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Gn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(vo(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Un(t))return $s(t)}var c="",l=!1,u=["{","}"];if(Ps(t)&&(l=!0,u=["[","]"]),Kn(t)){var f=t.name?": "+t.name:"";c=" [Function"+f+"]"}if(Gn(t)&&(c=" "+RegExp.prototype.toString.call(t)),vo(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Un(t)&&(c=" "+$s(t)),o.length===0&&(!l||t.length==0))return u[0]+c+u[1];if(r<0)return Gn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return l?d=zS(e,t,r,a,o):d=o.map(function(g){return Os(e,t,r,a,g,l)}),e.seen.pop(),BS(d,c,u)}function DS(e,t){if(Pt(t))return e.stylize("undefined","undefined");if(qn(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Ts(t))return e.stylize(""+t,"number");if(mo(t))return e.stylize(""+t,"boolean");if(Vn(t))return e.stylize("null","null")}function $s(e){return"["+Error.prototype.toString.call(e)+"]"}function zS(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)od(t,String(a))?o.push(Os(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(c){c.match(/^\d+$/)||o.push(Os(e,t,r,n,c,!0))}),o}function Os(e,t,r,n,i,o){var a,s,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?c.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),od(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(Vn(r)?s=po(e,c.value,null):s=po(e,c.value,r-1),s.indexOf(`
`)>-1&&(o?s=s.split(`
`).map(function(l){return"  "+l}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(l){return"   "+l}).join(`
`))):s=e.stylize("[Circular]","special")),Pt(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),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 BS(e,t,r){var n=e.reduce(function(i,o){return o.indexOf(`
`)>=0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function Ps(e){return Array.isArray(e)}function mo(e){return typeof e=="boolean"}function Vn(e){return e===null}function ed(e){return e==null}function Ts(e){return typeof e=="number"}function qn(e){return typeof e=="string"}function td(e){return typeof e=="symbol"}function Pt(e){return e===void 0}function Gn(e){return wr(e)&&ks(e)==="[object RegExp]"}function wr(e){return typeof e=="object"&&e!==null}function vo(e){return wr(e)&&ks(e)==="[object Date]"}function Un(e){return wr(e)&&(ks(e)==="[object Error]"||e instanceof Error)}function Kn(e){return typeof e=="function"}function rd(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function nd(e){return Buffer.isBuffer(e)}function ks(e){return Object.prototype.toString.call(e)}function As(e){return e<10?"0"+e.toString(10):e.toString(10)}var WS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HS(){var e=new Date,t=[As(e.getHours()),As(e.getMinutes()),As(e.getSeconds())].join(":");return[e.getDate(),WS[e.getMonth()],t].join(" ")}function id(){console.log("%s - %s",HS(),Hr.apply(null,arguments))}function Fs(e,t){if(!t||!wr(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function od(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var VS=vp(Object.freeze(Object.defineProperty({__proto__:null,_extend:Fs,debuglog:Qf,default:{inherits:Zf,_extend:Fs,log:id,isBuffer:nd,isPrimitive:rd,isFunction:Kn,isError:Un,isDate:vo,isObject:wr,isRegExp:Gn,isUndefined:Pt,isSymbol:td,isString:qn,isNumber:Ts,isNullOrUndefined:ed,isNull:Vn,isBoolean:mo,isArray:Ps,inspect:Ot,deprecate:Es,format:Hr,debuglog:Qf},deprecate:Es,format:Hr,inherits:Zf,inspect:Ot,isArray:Ps,isBoolean:mo,isBuffer:nd,isDate:vo,isError:Un,isFunction:Kn,isNull:Vn,isNullOrUndefined:ed,isNumber:Ts,isObject:wr,isPrimitive:rd,isRegExp:Gn,isString:qn,isSymbol:td,isUndefined:Pt,log:id},Symbol.toStringTag,{value:"Module"}))).format;function qS(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal")}function GS(e,t){return function(){var r=this,n=[].slice.call(arguments);qS();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var c=new ad(t);a(c),i.abort()},t);Promise.resolve(e.apply(r,n)).then(function(c){clearTimeout(s),o(c)},function(c){clearTimeout(s),a(c)})})}}let ad=class Bg extends Error{constructor(t){super(),this.timeout=t,this.message=VS("timeout of %sms exceed",t),Error.captureStackTrace(this,Bg)}};AS.exports=GS,fo.TimeoutError=ad;const sd=fo,US=sd.TimeoutError;kS.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=sd(t,o));const a=r.onerror;return async function(){const s=this,c=[].slice.call(arguments),l=new Array(i);for(let u=0;u<i;u++){let f,d;try{f=await t.apply(s,c)}catch(g){d=g}if(!d)return f;if(d instanceof TypeError)throw d;if(d instanceof KS)throw d.originalError;l[u]=d,a&&a(d,u)}throw new cd({times:i,timeout:o,fn:n,errors:l})}};class cd 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 KS 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 XS=Hn.RetryError=cd;Hn.TimeoutError=US;class Ms extends Error{constructor(t){super(),Error.captureStackTrace(this,Ms),this.json=t,this.message=t.message||JSON.stringify(t)}}async function YS(){var n;const t=(await ao.get(zf+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+(Math.random()*10).toFixed(0)}})).data;if(!t.data){if(t.code===-663)throw new Ms(t);return Ye(`${Kf}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const JS=Hn(YS,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Kf,t,e)}});async function ZS(){try{return await JS()}catch(e){if(e instanceof XS){console.error(e.errors);const t=[Hr("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Hr("  %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(`
`);Ye(t,5e3)}throw e}}async function ld(e){let t=[];const r=new Array(e).fill(0).map(i=>ZS());return t=(await Promise.all(r)).reduce((i,o)=>i.concat(o||[]),[]),t=Wu(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}async function QS(){return ld(2)}async function eC(e){const t=e.page++;return(await oo.get("/x/web-interface/index/top/rcmd",{baseURL:Df,withCredentials:!0,params:{fresh_type:3,version:1,ps:14,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function ud(e,t){let r=(await Promise.all(new Array(e).fill(0).map(()=>eC(t)))).flat();return r=Wu(r,n=>n.id),r.forEach(n=>{var i,o;((i=n.rcmd_reason)==null?void 0:i.reason_type)===1&&((o=n.rcmd_reason).content||(o.content="已关注"))}),r.map(n=>({...n,uniqId:n.id+"-"+crypto.randomUUID(),api:"pc"}))}async function tC(e){return ud(1,e)}async function fd(e,t){return De.usePcDesktopApi?ud(e,t):ld(e)}async function rC(e){return De.usePcDesktopApi?tC(e):QS()}var ze={},nC={get exports(){return ze},set exports(e){ze=e}},iC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oC=iC,aC=oC;function dd(){}function hd(){}hd.resetWarningCache=dd;var sC=function(){function e(n,i,o,a,s,c){if(c!==aC){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hd,resetWarningCache:dd};return r.PropTypes=r,r};nC.exports=sC();class Ls extends E.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const r={get passive(){t=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const r=this.props.getScrollParent&&this.props.getScrollParent();return r??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let r=window;this.props.useWindow===!1&&(r=t),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,r=window,n=this.getParentElement(t);let i;if(this.props.useWindow){const o=document.documentElement||document.body.parentNode||document.body,a=r.pageYOffset!==void 0?r.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=n.scrollTop:i=t.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,r){return t?this.calculateTopPosition(t)+(t.offsetHeight-r-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:r,element:n,hasMore:i,initialLoad:o,isReverse:a,loader:s,loadMore:c,pageStart:l,ref:u,threshold:f,useCapture:d,useWindow:g,getScrollParent:v,...h}=t;h.ref=m=>{this.scrollComponent=m,u&&u(m)};const p=[r];return i&&(s?a?p.unshift(s):p.push(s):this.defaultLoader&&(a?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),E.createElement(n,h,p)}}Ee(Ls,"propTypes",{children:ze.node.isRequired,element:ze.node,hasMore:ze.bool,initialLoad:ze.bool,isReverse:ze.bool,loader:ze.node,loadMore:ze.func.isRequired,pageStart:ze.number,ref:ze.func,getScrollParent:ze.func,threshold:ze.number,useCapture:ze.bool,useWindow:ze.bool}),Ee(Ls,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Rs="_video-grid_14t5i_9",gd="_limit-two-lines_14t5i_19",Ns="_internal-testing_14t5i_43",cC="_limit-one-line_14t5i_50",pd="_narrow-mode_14t5i_71",A2={videoGrid:Rs,limitTwoLines:gd,internalTesting:Ns,limitOneLine:cC,narrowMode:pd};function lC({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[c,l]=E.useState(null),u=he(()=>{var w;if(!e)return!1;const C=(((w=document.activeElement)==null?void 0:w.tagName)||"").toLowerCase();return!(["input","textarea"].includes(C)||document.querySelector(".center-search__bar.is-focus"))}),f=he(()=>{var _;if(c===null||!i.current)return!1;const C=o(),w=(_=i.current.querySelector(`.${Vr.card}.${Vr.cardActive}`))==null?void 0:_.getBoundingClientRect();return!(!C||!w||w.top-C.top<-(C.height+w.height)||w.top-C.top>C.height*2+w.height)}),d=C=>w=>{if(!u())return;w==null||w.preventDefault();const _=f()?c+C:v();if(_<r){P(r);return}if(_>n){P(n);return}l(_),P(_)};Ie("leftarrow",d(-1)),Ie("rightarrow",d(1)),Ie("uparrow",d(-O())),Ie("downarrow",d(O()));const g=()=>{u()&&l(null)};Ie("esc",g),Ie("enter",()=>{!u()||typeof c!="number"||$(c)}),Ie("backspace",()=>{var C;!u()||typeof c!="number"||(C=s[c])==null||C.onTriggerDislike()}),Ie("r",()=>{u()&&t()},{exactMatch:!0}),Ie(["s","w"],()=>{var C;!u()||typeof c!="number"||(C=s[c])==null||C.onToggleWatchLater()},{exactMatch:!0});function v(){const C=o();if(!C)return 0;const w=p();for(let _=0;_<w.length;_++)if(w[_].getBoundingClientRect().top>=C.top)return _;return 0}const h=`.${Vr.card}`;function p(){var C;return[...((C=i.current)==null?void 0:C.querySelectorAll(h))||[]]}function m(C){return p()[C]}function P(C){var F;const w=m(C);(F=w==null?void 0:w.scrollIntoViewIfNeeded)==null||F.call(w,!1);const _=o(),M=w.getBoundingClientRect();if(!(!_||!M)){if(M.top<=_.top){const A=-(_.top-M.top+10);a==null||a({offset:A});return}if(_.bottom-M.bottom<10){const A=10-(_.bottom-M.bottom);a==null||a({offset:A});return}}}function $(C){const w=m(C);if(!w)return;const _=w.querySelector(".bili-video-card__wrap > a");_==null||_.click()}function O(){if(De.useNarrowMode)return 2;let C=md.get(window.innerWidth);if(C)return C;const w=i.current;if(!w)return 0;const _=window.getComputedStyle(w);return _.display!=="grid"?0:(C=_.gridTemplateColumns.split(" ").length,md.set(window.innerWidth,C),C)}return{activeIndex:c,clearActiveIndex:g}}const md=new Map,Vr={loader:is`
    text-align: center;
    line-height: 60px;
    font-size: 120%;
  `,card:is`
    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:is`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `},vd=E.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const[a,s]=E.useState([]),[c,l]=E.useState(!1);E.useImperativeHandle(o,()=>({refresh:f}),[]);const u=E.useMemo(()=>({page:1}),[]),f=he(async()=>{await(r==null?void 0:r());try{$(),l(!0),u.page=1,s(await fd(2,u)),$()}finally{l(!1)}}),d=he(async()=>{const C=await fd(2,u);s(w=>[...w,...C])}),{useNarrowMode:g}=er(),v=E.useRef(null),h=he(()=>{var C;if(e){const w=af+50;return new DOMRect(0,w,window.innerWidth,window.innerHeight-w)}else return(C=i==null?void 0:i.current)==null?void 0:C.getBoundingClientRect()}),p=vS(),m=E.useMemo(()=>new Array(a.length).fill(void 0),[a.length]),{activeIndex:P,clearActiveIndex:$}=lC({enabled:t&&!p,refresh:f,maxIndex:a.length-1,containerRef:v,getScrollerRect:h,videoCardRefs:m,changeScrollY:e?function({offset:C,absolute:w}){const _=document.documentElement;if(typeof C=="number"){_.scrollTop+=C;return}if(typeof w=="number"){_.scrollTop=w;return}}:void 0}),O=Mn();return L(Ls,{pageStart:0,loadMore:d,hasMore:!0,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:L("div",{className:Vr.loader,children:"加载中..."},0),children:L("div",{ref:v,className:J(Rs,{[Ns]:O},{[pd]:g},n),children:a.map((C,w)=>{const _=w===P;return L(ws,{ref:M=>m[w]=M,className:J(Vr.card,{[Vr.cardActive]:_}),loading:c,item:C,active:_},C.uniqId)})})})});function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kt(e,t,r){return t&&bd(e.prototype,t),r&&bd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Is(e,t)}function bo(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&&Is(e,t)}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yo(e)}function uC(){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 me(e){return me=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},me(e)}function wo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fC(e,t){if(t&&(me(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}function So(e){var t=uC();return function(){var n=yo(e),i;if(t){var o=yo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return fC(this,i)}}function Xn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return E.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Xn(n)):wn.isFragment(n)&&n.props?r=r.concat(Xn(n.props.children,t)):r.push(n))}),r}var yd={};function dC(e,t){}function hC(e,t,r){!t&&!yd[r]&&(e(!1,r),yd[r]=!0)}function At(e,t){hC(dC,e,t)}function wd(e,t,r){var n=x.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function Sd(e,t){typeof e=="function"?e(t):me(e)==="object"&&e&&"current"in e&&(e.current=t)}function Cd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(i){return i});return n.length<=1?n[0]:function(i){t.forEach(function(o){Sd(o,i)})}}function xd(e){var t,r,n=wn.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render))}function gC(e){return e instanceof HTMLElement||e instanceof SVGElement}function pC(e){return gC(e)?e:e instanceof E.Component?te.findDOMNode(e):null}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(r),!0).forEach(function(n){Z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _d(e,t){var r=D({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function js(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mC(e){if(Array.isArray(e))return js(e)}function $d(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ds(e,t){if(e){if(typeof e=="string")return js(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return js(e,t)}}function vC(){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 X(e){return mC(e)||$d(e)||Ds(e)||vC()}function zs(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 bC(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function rr(e,t){if(e==null)return{};var r=bC(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(At(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(r&&s>1)return!1;n.add(o);var l=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],l))return!1;return!0}if(o&&a&&me(o)==="object"&&me(a)==="object"){var f=Object.keys(o);return f.length!==Object.keys(a).length?!1:f.every(function(d){return i(o[d],a[d],l)})}return!1}return i(e,t)}var wC=function(){function e(){Tt(this,e),Z(this,"cache",new Map)}return kt(e,[{key:"get",value:function(r){return this.cache.get(r.join("%"))||null}},{key:"update",value:function(r,n){var i=r.join("%"),o=this.cache.get(i),a=n(o);a===null?this.cache.delete(i):this.cache.set(i,a)}}]),e}(),Bs="data-token-hash",Sr="data-css-hash",Yn="__cssinjs_instance__",Co=Math.random().toString(12).slice(2);function SC(){if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Sr,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(n){n[Yn]=n[Yn]||Co,document.head.insertBefore(n,t)});var r={};Array.from(document.querySelectorAll("style[".concat(Sr,"]"))).forEach(function(n){var i=n.getAttribute(Sr);if(r[i]){if(n[Yn]===Co){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}}else r[i]=!0})}return new wC}var Od=x.createContext({hashPriority:"low",cache:SC(),defaultCache:!0});function Pd(e){if(Array.isArray(e))return e}function CC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(c){o=!0,s=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Td(){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 ae(e,t){return Pd(e)||CC(e,t)||Ds(e,t)||Td()}function kd(e,t,r,n){var i=x.useContext(Od),o=i.cache,a=[e].concat(X(t));return x.useMemo(function(){o.update(a,function(s){var c=s||[],l=ae(c,2),u=l[0],f=u===void 0?0:u,d=l[1],g=d,v=g||r();return[f+1,v]})},[a.join("_")]),x.useEffect(function(){return function(){o.update(a,function(s){var c=s||[],l=ae(c,2),u=l[0],f=u===void 0?0:u,d=l[1],g=f-1;return g===0?(n==null||n(d,!1),null):[f-1,d]})}},a),o.get(a)[1]}function Ht(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xC(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ad="data-rc-order",EC="rc-util-key",Ws=new Map;function Fd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):EC}function xo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function _C(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Md(e){return Array.from((Ws.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ld(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ht())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Ad,_C(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=xo(t),a=o.firstChild;if(n){if(n==="queue"){var s=Md(o).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Ad))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Rd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=xo(t);return Md(r).find(function(n){return n.getAttribute(Fd(t))===e})}function Nd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Rd(e,t);if(r){var n=xo(t);n.removeChild(r)}}function $C(e,t){var r=Ws.get(e);if(!r||!xC(document,r)){var n=Ld("",t),i=n.parentNode;Ws.set(e,i),e.removeChild(n)}}function Jn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=xo(r);$C(n,r);var i=Rd(t,r);if(i){var o,a;if((o=r.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var s;i.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var c=Ld(e,r);return c.setAttribute(Fd(r),t),c}function Eo(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&me(n)==="object"?t+=Eo(n):t+=n}),t}function OC(e,t){return zs("".concat(t,"_").concat(Eo(e)))}var Zn="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Id="903px";function PC(e,t){if(Ht()){var r;Jn(e,Zn);var n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n);var i=getComputedStyle(n).width===Id;return(r=n.parentNode)===null||r===void 0||r.removeChild(n),Nd(Zn),i}return!1}var Hs=void 0;function TC(){return Hs===void 0&&(Hs=PC("@layer ".concat(Zn," { .").concat(Zn," { width: ").concat(Id,"!important; } }"),function(e){e.className=Zn})),Hs}var kC={},AC="css",Cr=new Map;function FC(e){Cr.set(e,(Cr.get(e)||0)+1)}function MC(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Bs,'="').concat(e,'"]'));t.forEach(function(r){if(r[Yn]===Co){var n;(n=r.parentNode)===null||n===void 0||n.removeChild(r)}})}}function LC(e){Cr.set(e,(Cr.get(e)||0)-1);var t=Array.from(Cr.keys()),r=t.filter(function(n){var i=Cr.get(n)||0;return i<=0});r.length<t.length&&r.forEach(function(n){MC(n),Cr.delete(n)})}function RC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.salt,i=n===void 0?"":n,o=r.override,a=o===void 0?kC:o,s=r.formatToken,c=x.useMemo(function(){return Object.assign.apply(Object,[{}].concat(X(t)))},[t]),l=x.useMemo(function(){return Eo(c)},[c]),u=x.useMemo(function(){return Eo(a)},[a]),f=kd("token",[i,e.id,l,u],function(){var d=e.getDerivativeToken(c),g=D(D({},d),a);s&&(g=s(g));var v=OC(g,i);g._tokenKey=v,FC(v);var h="".concat(AC,"-").concat(zs(v));return g._hashId=h,[g,h]},function(d){LC(d[0]._tokenKey)});return f}var NC={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},jd=Ht(),IC="_skip_check_";function Dd(e){var t=ur(dl(e),pl);return t.replace(/\{%%%\:[^;];}/g,";")}function jC(e){return me(e)==="object"&&e&&IC in e}function DC(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),l=c[0]||"",u=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(u).concat(i).concat(l.slice(u.length)),[l].concat(X(c.slice(1))).join(" ")});return o.join(",")}var zC=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=r.hashId,c=r.layer;r.path;var l=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var d="",g={};function v($){var O=$.getName(s);if(!g[O]){var C=e($.style,r,{root:!1,parentSelectors:a}),w=ae(C,1),_=w[0];g[O]="@keyframes ".concat($.getName(s)).concat(_)}}function h($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(C){Array.isArray(C)?h(C,O):C&&O.push(C)}),O}var p=h(Array.isArray(t)?t:[t]);if(p.forEach(function($){var O=typeof $=="string"&&!i?{}:$;if(typeof O=="string")d+="".concat(O,`
`);else if(O._keyframe)v(O);else{var C=f.reduce(function(w,_){var M;return(_==null||(M=_.visit)===null||M===void 0?void 0:M.call(_,w))||w},O);Object.keys(C).forEach(function(w){var _=C[w];if(me(_)==="object"&&_&&(w!=="animationName"||!_._keyframe)&&!jC(_)){var M=!1,F=w.trim(),A=!1;(i||o)&&s?F.startsWith("@")?M=!0:F=DC(w,s,l):i&&!s&&(F==="&"||F==="")&&(F="",A=!0);var I=e(_,r,{root:A,injectHash:M,parentSelectors:[].concat(X(a),[F])}),k=ae(I,2),y=k[0],S=k[1];g=D(D({},g),S),d+="".concat(F).concat(y)}else{var T,R=(T=_==null?void 0:_.value)!==null&&T!==void 0?T:_,N=w.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),j=R;!NC[w]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),w==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(v(_),j=_.getName(s)),d+="".concat(N,":").concat(j,";")}})}}),!i)d="{".concat(d,"}");else if(c&&TC()){var m=c.split(","),P=m[m.length-1].trim();d="@layer ".concat(P," {").concat(d,"}"),m.length>1&&(d="@layer ".concat(c,"{%%%:%}").concat(d))}return[d,g]};function BC(e,t){return zs("".concat(e.join("%")).concat(t))}function WC(){return null}function Vs(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=x.useContext(Od),s=a.autoClear;a.mock;var c=a.defaultCache,l=a.hashPriority,u=a.container,f=a.ssrInline,d=a.transformers,g=a.linters,v=r._tokenKey,h=[v].concat(X(n)),p=jd,m=kd("style",h,function(){var w=t(),_=zC(w,{hashId:i,hashPriority:l,layer:o,path:n.join("-"),transformers:d,linters:g}),M=ae(_,2),F=M[0],A=M[1],I=Dd(F),k=BC(h,I);if(p){var y=Jn(I,k,{mark:Sr,prepend:"queue",attachTo:u});y[Yn]=Co,y.setAttribute(Bs,v),Object.keys(A).forEach(function(S){Jn(Dd(A[S]),"_effect-".concat(S),{mark:Sr,prepend:"queue",attachTo:u})})}return[I,v,k]},function(w,_){var M=ae(w,3),F=M[2];(_||s)&&jd&&Nd(F,{mark:Sr})}),P=ae(m,3),$=P[0],O=P[1],C=P[2];return function(w){var _;if(!f||p||!c)_=x.createElement(WC,null);else{var M;_=x.createElement("style",fr({},(M={},Z(M,Bs,O),Z(M,Sr,C),M),{dangerouslySetInnerHTML:{__html:$}}))}return x.createElement(x.Fragment,null,_,w)}}var zd=function(){function e(t,r){Tt(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=r}return kt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function HC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var qs=function(){function e(){Tt(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 kt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var c,l;a=(c=a)===null||c===void 0||(l=c.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,u){var f=ae(l,2),d=f[1];return i.internalGet(u)[1]<d?[u,i.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=ae(o,1),s=a[0];this.delete(s)}this.keys.push(r)}var c=this.cache;r.forEach(function(l,u){if(u===r.length-1)c.set(l,{value:[n,i.cacheCallTimes++]});else{var f=c.get(l);f?f.map||(f.map=new Map):c.set(l,{map:new Map}),c=c.get(l).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!HC(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Z(qs,"MAX_CACHE_SIZE",20),Z(qs,"MAX_CACHE_OFFSET",5);var Bd=0,VC=function(){function e(t){Tt(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Bd,t.length===0&&(t.length>0,void 0),Bd+=1}return kt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),Gs=new qs;function Wd(e){var t=Array.isArray(e)?e:[e];return Gs.has(t)||Gs.set(t,new VC(t)),Gs.get(t)}function qr(e){return e.notSplit=!0,e}qr(["borderTop","borderBottom"]),qr(["borderTop"]),qr(["borderBottom"]),qr(["borderLeft","borderRight"]),qr(["borderLeft"]),qr(["borderRight"]);var qC=E.createContext({});const Us=qC;var xr="RC_FORM_INTERNAL_HOOKS",ie=function(){At(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Gr=x.createContext({getFieldValue:ie,getFieldsValue:ie,getFieldError:ie,getFieldWarning:ie,getFieldsError:ie,isFieldsTouched:ie,isFieldTouched:ie,isFieldValidating:ie,isFieldsValidating:ie,resetFields:ie,setFields:ie,setFieldValue:ie,setFieldsValue:ie,validateFields:ie,submit:ie,getInternalHooks:function(){return ie(),{dispatch:ie,initEntityValue:ie,registerField:ie,useSubscribe:ie,setInitialValues:ie,destroyForm:ie,setCallbacks:ie,registerWatch:ie,getFields:ie,setValidateMessages:ie,setPreserve:ie,getInitialValue:ie}}});function Ks(e){return e==null?[]:Array.isArray(e)?e:[e]}function Je(){Je=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(k,y,S){k[y]=S.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(k,y,S){return Object.defineProperty(k,y,{value:S,enumerable:!0,configurable:!0,writable:!0}),k[y]}try{c({},"")}catch{c=function(S,T,R){return S[T]=R}}function l(k,y,S,T){var R=y&&y.prototype instanceof d?y:d,N=Object.create(R.prototype),j=new F(T||[]);return n(N,"_invoke",{value:C(k,S,j)}),N}function u(k,y,S){try{return{type:"normal",arg:k.call(y,S)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function g(){}function v(){}var h={};c(h,o,function(){return this});var p=Object.getPrototypeOf,m=p&&p(p(A([])));m&&m!==t&&r.call(m,o)&&(h=m);var P=v.prototype=d.prototype=Object.create(h);function $(k){["next","throw","return"].forEach(function(y){c(k,y,function(S){return this._invoke(y,S)})})}function O(k,y){function S(R,N,j,z){var B=u(k[R],k,N);if(B.type!=="throw"){var Y=B.arg,V=Y.value;return V&&me(V)=="object"&&r.call(V,"__await")?y.resolve(V.__await).then(function(U){S("next",U,j,z)},function(U){S("throw",U,j,z)}):y.resolve(V).then(function(U){Y.value=U,j(Y)},function(U){return S("throw",U,j,z)})}z(B.arg)}var T;n(this,"_invoke",{value:function(N,j){function z(){return new y(function(B,Y){S(N,j,B,Y)})}return T=T?T.then(z,z):z()}})}function C(k,y,S){var T="suspendedStart";return function(R,N){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(R==="throw")throw N;return I()}for(S.method=R,S.arg=N;;){var j=S.delegate;if(j){var z=w(j,S);if(z){if(z===f)continue;return z}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(T==="suspendedStart")throw T="completed",S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);T="executing";var B=u(k,y,S);if(B.type==="normal"){if(T=S.done?"completed":"suspendedYield",B.arg===f)continue;return{value:B.arg,done:S.done}}B.type==="throw"&&(T="completed",S.method="throw",S.arg=B.arg)}}}function w(k,y){var S=k.iterator[y.method];if(S===void 0){if(y.delegate=null,y.method==="throw"){if(k.iterator.return&&(y.method="return",y.arg=void 0,w(k,y),y.method==="throw"))return f;y.method="throw",y.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var T=u(S,k.iterator,y.arg);if(T.type==="throw")return y.method="throw",y.arg=T.arg,y.delegate=null,f;var R=T.arg;return R?R.done?(y[k.resultName]=R.value,y.next=k.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,f):R:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,f)}function _(k){var y={tryLoc:k[0]};1 in k&&(y.catchLoc=k[1]),2 in k&&(y.finallyLoc=k[2],y.afterLoc=k[3]),this.tryEntries.push(y)}function M(k){var y=k.completion||{};y.type="normal",delete y.arg,k.completion=y}function F(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(_,this),this.reset(!0)}function A(k){if(k){var y=k[o];if(y)return y.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var S=-1,T=function R(){for(;++S<k.length;)if(r.call(k,S))return R.value=k[S],R.done=!1,R;return R.value=void 0,R.done=!0,R};return T.next=T}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=v,n(P,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(k){var y=typeof k=="function"&&k.constructor;return!!y&&(y===g||(y.displayName||y.name)==="GeneratorFunction")},e.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,v):(k.__proto__=v,c(k,s,"GeneratorFunction")),k.prototype=Object.create(P),k},e.awrap=function(k){return{__await:k}},$(O.prototype),c(O.prototype,a,function(){return this}),e.AsyncIterator=O,e.async=function(k,y,S,T,R){R===void 0&&(R=Promise);var N=new O(l(k,y,S,T),R);return e.isGeneratorFunction(y)?N:N.next().then(function(j){return j.done?j.value:N.next()})},$(P),c(P,s,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),e.keys=function(k){var y=Object(k),S=[];for(var T in y)S.push(T);return S.reverse(),function R(){for(;S.length;){var N=S.pop();if(N in y)return R.value=N,R.done=!1,R}return R.done=!0,R}},e.values=A,F.prototype={constructor:F,reset:function(y){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(M),!y)for(var S in this)S.charAt(0)==="t"&&r.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var S=this;function T(Y,V){return j.type="throw",j.arg=y,S.next=Y,V&&(S.method="next",S.arg=void 0),!!V}for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R],j=N.completion;if(N.tryLoc==="root")return T("end");if(N.tryLoc<=this.prev){var z=r.call(N,"catchLoc"),B=r.call(N,"finallyLoc");if(z&&B){if(this.prev<N.catchLoc)return T(N.catchLoc,!0);if(this.prev<N.finallyLoc)return T(N.finallyLoc)}else if(z){if(this.prev<N.catchLoc)return T(N.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return T(N.finallyLoc)}}}},abrupt:function(y,S){for(var T=this.tryEntries.length-1;T>=0;--T){var R=this.tryEntries[T];if(R.tryLoc<=this.prev&&r.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var N=R;break}}N&&(y==="break"||y==="continue")&&N.tryLoc<=S&&S<=N.finallyLoc&&(N=null);var j=N?N.completion:{};return j.type=y,j.arg=S,N?(this.method="next",this.next=N.finallyLoc,f):this.complete(j)},complete:function(y,S){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&S&&(this.next=S),f},finish:function(y){for(var S=this.tryEntries.length-1;S>=0;--S){var T=this.tryEntries[S];if(T.finallyLoc===y)return this.complete(T.completion,T.afterLoc),M(T),f}},catch:function(y){for(var S=this.tryEntries.length-1;S>=0;--S){var T=this.tryEntries[S];if(T.tryLoc===y){var R=T.completion;if(R.type==="throw"){var N=R.arg;M(T)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(y,S,T){return this.delegate={iterator:A(y),resultName:S,nextLoc:T},this.method==="next"&&(this.arg=void 0),f}},e}function Hd(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){r(l);return}s.done?t(c):Promise.resolve(c).then(n,i)}function Ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(c){Hd(o,n,i,a,s,"next",c)}function s(c){Hd(o,n,i,a,s,"throw",c)}a(void 0)})}}function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Er.apply(this,arguments)}function GC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qn(e,t)}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xs(e)}function Qn(e,t){return Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qn(e,t)}function UC(){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 _o(e,t,r){return UC()?_o=Reflect.construct.bind():_o=function(i,o,a){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(i,s),l=new c;return a&&Qn(l,a.prototype),l},_o.apply(null,arguments)}function KC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ys(e){var t=typeof Map=="function"?new Map:void 0;return Ys=function(n){if(n===null||!KC(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return _o(n,arguments,Xs(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qn(i,n)},Ys(e)}var XC=/%[sdj%]/g,YC=function(){};typeof process<"u"&&process.env;function Js(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(XC,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function JC(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $e(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||JC(t)&&typeof e=="string"&&!e)}function ZC(e,t,r){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,s||[]),i++,i===o&&r(n)}e.forEach(function(s){t(s,a)})}function Vd(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<i?t(e[s],o):r([])}o([])}function QC(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var qd=function(e){GC(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(Ys(Error));function ex(e,t,r,n,i){if(t.first){var o=new Promise(function(d,g){var v=function(m){return n(m),m.length?g(new qd(m,Js(m))):d(i)},h=QC(e);Vd(h,r,v)});return o.catch(function(d){return d}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],f=new Promise(function(d,g){var v=function(p){if(u.push.apply(u,p),l++,l===c)return n(u),u.length?g(new qd(u,Js(u))):d(i)};s.length||(n(u),d(i)),s.forEach(function(h){var p=e[h];a.indexOf(h)!==-1?Vd(p,r,v):ZC(p,r,v)})});return f.catch(function(d){return d}),f}function tx(e){return!!(e&&e.message!==void 0)}function rx(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Gd(e,t){return function(r){var n;return e.fullFields?n=rx(t,e.fullFields):n=t[r.field||e.fullField],tx(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Ud(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Er({},e[r],n):e[r]=n}}return e}var Kd=function(t,r,n,i,o,a){t.required&&(!n.hasOwnProperty(t.field)||$e(r,a||t.type))&&i.push(Ze(o.messages.required,t.fullField))},nx=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Ze(o.messages.whitespace,t.fullField))},$o,ix=function(){if($o)return $o;var e="[a-fA-F\\d:]",t=function(O){return O&&O.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),a=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),c=function(O){return O&&O.exact?o:new RegExp("(?:"+t(O)+r+t(O)+")|(?:"+t(O)+i+t(O)+")","g")};c.v4=function($){return $&&$.exact?a:new RegExp(""+t($)+r+t($),"g")},c.v6=function($){return $&&$.exact?s:new RegExp(""+t($)+i+t($),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,d=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',P="(?:"+l+"|www\\.)"+u+"(?:localhost|"+f+"|"+d+"|"+g+v+h+")"+p+m;return $o=new RegExp("(?:^"+P+"$)","i"),$o},Xd={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ei={integer:function(t){return ei.number(t)&&parseInt(t,10)===t},float:function(t){return ei.number(t)&&!ei.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ei.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xd.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ix())},hex:function(t){return typeof t=="string"&&!!t.match(Xd.hex)}},ox=function(t,r,n,i,o){if(t.required&&r===void 0){Kd(t,r,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ei[s](r)||i.push(Ze(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Ze(o.messages.types[s],t.fullField,t.type))},ax=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,d=typeof r=="number",g=typeof r=="string",v=Array.isArray(r);if(d?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(u=r.length),g&&(u=r.replace(l,"_").length),a?u!==t.len&&i.push(Ze(o.messages[f].len,t.fullField,t.len)):s&&!c&&u<t.min?i.push(Ze(o.messages[f].min,t.fullField,t.min)):c&&!s&&u>t.max?i.push(Ze(o.messages[f].max,t.fullField,t.max)):s&&c&&(u<t.min||u>t.max)&&i.push(Ze(o.messages[f].range,t.fullField,t.min,t.max))},Kr="enum",sx=function(t,r,n,i,o){t[Kr]=Array.isArray(t[Kr])?t[Kr]:[],t[Kr].indexOf(r)===-1&&i.push(Ze(o.messages[Kr],t.fullField,t[Kr].join(", ")))},cx=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Ze(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||i.push(Ze(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Q={required:Kd,whitespace:nx,type:ox,range:ax,enum:sx,pattern:cx},lx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r,"string")&&!t.required)return n();Q.required(t,r,i,a,o,"string"),$e(r,"string")||(Q.type(t,r,i,a,o),Q.range(t,r,i,a,o),Q.pattern(t,r,i,a,o),t.whitespace===!0&&Q.whitespace(t,r,i,a,o))}n(a)},ux=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&Q.type(t,r,i,a,o)}n(a)},fx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),$e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&(Q.type(t,r,i,a,o),Q.range(t,r,i,a,o))}n(a)},dx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&Q.type(t,r,i,a,o)}n(a)},hx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),$e(r)||Q.type(t,r,i,a,o)}n(a)},gx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&(Q.type(t,r,i,a,o),Q.range(t,r,i,a,o))}n(a)},px=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&(Q.type(t,r,i,a,o),Q.range(t,r,i,a,o))}n(a)},mx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Q.required(t,r,i,a,o,"array"),r!=null&&(Q.type(t,r,i,a,o),Q.range(t,r,i,a,o))}n(a)},vx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&Q.type(t,r,i,a,o)}n(a)},bx="enum",yx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o),r!==void 0&&Q[bx](t,r,i,a,o)}n(a)},wx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r,"string")&&!t.required)return n();Q.required(t,r,i,a,o),$e(r,"string")||Q.pattern(t,r,i,a,o)}n(a)},Sx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r,"date")&&!t.required)return n();if(Q.required(t,r,i,a,o),!$e(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),Q.type(t,c,i,a,o),c&&Q.range(t,c.getTime(),i,a,o)}}n(a)},Cx=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;Q.required(t,r,i,a,o,s),n(a)},Zs=function(t,r,n,i,o){var a=t.type,s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if($e(r,a)&&!t.required)return n();Q.required(t,r,i,s,o,a),$e(r,a)||Q.type(t,r,i,s,o)}n(s)},xx=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($e(r)&&!t.required)return n();Q.required(t,r,i,a,o)}n(a)},ti={string:lx,method:ux,number:fx,boolean:dx,regexp:hx,integer:gx,float:px,array:mx,object:vx,enum:yx,pattern:wx,date:Sx,url:Zs,hex:Zs,email:Zs,required:Cx,any:xx};function Qs(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ec=Qs(),ri=function(){function e(r){this.rules=null,this._messages=ec,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(n){return n&&(this._messages=Ud(Qs(),n)),this._messages},t.validate=function(n,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=n,c=i,l=o;if(typeof c=="function"&&(l=c,c={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function u(h){var p=[],m={};function P(O){if(Array.isArray(O)){var C;p=(C=p).concat.apply(C,O)}else p.push(O)}for(var $=0;$<h.length;$++)P(h[$]);p.length?(m=Js(p),l(p,m)):l(null,s)}if(c.messages){var f=this.messages();f===ec&&(f=Qs()),Ud(f,c.messages),c.messages=f}else c.messages=this.messages();var d={},g=c.keys||Object.keys(this.rules);g.forEach(function(h){var p=a.rules[h],m=s[h];p.forEach(function(P){var $=P;typeof $.transform=="function"&&(s===n&&(s=Er({},s)),m=s[h]=$.transform(m)),typeof $=="function"?$={validator:$}:$=Er({},$),$.validator=a.getValidationMethod($),$.validator&&($.field=h,$.fullField=$.fullField||h,$.type=a.getType($),d[h]=d[h]||[],d[h].push({rule:$,value:m,source:s,field:h}))})});var v={};return ex(d,c,function(h,p){var m=h.rule,P=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");P=P&&(m.required||!m.required&&h.value),m.field=h.field;function $(w,_){return Er({},_,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function O(w){w===void 0&&(w=[]);var _=Array.isArray(w)?w:[w];!c.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&m.message!==void 0&&(_=[].concat(m.message));var M=_.map(Gd(m,s));if(c.first&&M.length)return v[m.field]=1,p(M);if(!P)p(M);else{if(m.required&&!h.value)return m.message!==void 0?M=[].concat(m.message).map(Gd(m,s)):c.error&&(M=[c.error(m,Ze(c.messages.required,m.field))]),p(M);var F={};m.defaultField&&Object.keys(h.value).map(function(k){F[k]=m.defaultField}),F=Er({},F,h.rule.fields);var A={};Object.keys(F).forEach(function(k){var y=F[k],S=Array.isArray(y)?y:[y];A[k]=S.map($.bind(null,k))});var I=new e(A);I.messages(c.messages),h.rule.options&&(h.rule.options.messages=c.messages,h.rule.options.error=c.error),I.validate(h.value,h.rule.options||c,function(k){var y=[];M&&M.length&&y.push.apply(y,M),k&&k.length&&y.push.apply(y,k),p(y.length?y:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,h.value,O,h.source,c);else if(m.validator){try{C=m.validator(m,h.value,O,h.source,c)}catch(w){console.error==null||console.error(w),c.suppressValidatorError||setTimeout(function(){throw w},0),O(w.message)}C===!0?O():C===!1?O(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?O(C):C instanceof Error&&O(C.message)}C&&C.then&&C.then(function(){return O()},function(w){return O(w)})},function(h){u(h)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ti.hasOwnProperty(n.type))throw new Error(Ze("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?ti.required:ti[this.getType(n)]||void 0},e}();ri.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ti[t]=r},ri.warning=YC,ri.messages=ec,ri.validators=ti;var Qe="'${name}' is not a valid ${type}",Yd={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Qe,method:Qe,array:Qe,object:Qe,number:Qe,date:Qe,boolean:Qe,integer:Qe,float:Qe,regexp:Qe,email:Qe,url:Qe,hex:Qe},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function Jd(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Ex(e){return Pd(e)||$d(e)||Ds(e)||Td()}function Zd(e,t,r,n){if(!t.length)return r;var i=Ex(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=X(e):s=D({},e),n&&r===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Zd(s[o],a,r,n),s}function _x(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Jd(e,t.slice(0,-1))?e:Zd(e,t,r,n)}function Oo(e){return Array.isArray(e)?Ox(e):me(e)==="object"&&e!==null?$x(e):e}function $x(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=Oo(e[r]);return t}return e}function Ox(e){return e.map(function(t){return Oo(t)})}function ye(e){return Ks(e)}function nr(e,t){var r=Jd(e,t);return r}function ir(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=_x(e,t,r,n);return i}function Qd(e,t){var r={};return t.forEach(function(n){var i=nr(e,n);r=ir(r,n,i)}),r}function ni(e,t){return e&&e.some(function(r){return rh(r,t)})}function eh(e){return me(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function th(e,t){var r=Array.isArray(e)?X(e):D({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=eh(i)&&eh(o);r[n]=a?th(i,o||{}):Oo(o)}),r}function ii(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce(function(i,o){return th(i,o)},e)}function rh(e,t){return!e||!t||e.length!==t.length?!1:e.every(function(r,n){return t[n]===r})}function Px(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||me(e)!=="object"||me(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return X(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Tx(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&me(t.target)==="object"&&e in t.target?t.target[e]:t}function nh(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(X(e.slice(0,r)),[i],X(e.slice(r,t)),X(e.slice(t+1,n))):o<0?[].concat(X(e.slice(0,t)),X(e.slice(t+1,r+1)),[i],X(e.slice(r+1,n))):e}var kx=ri;function Ax(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var ih="CODE_LOGIC_ERROR";function tc(e,t,r,n,i){return rc.apply(this,arguments)}function rc(){return rc=Ur(Je().mark(function e(t,r,n,i,o){var a,s,c,l,u,f,d,g,v;return Je().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=D({},n),delete a.ruleIndex,a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(ih)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),l=new kx(Z({},t,[a])),u=ii({},Yd,i.validateMessages),l.messages(u),f=[],p.prev=9,p.next=12,Promise.resolve(l.validate(Z({},t,r),D({},i)));case 12:p.next=17;break;case 14:p.prev=14,p.t0=p.catch(9),p.t0.errors&&(f=p.t0.errors.map(function(m,P){var $=m.message,O=$===ih?u.default:$;return x.isValidElement(O)?x.cloneElement(O,{key:"error_".concat(P)}):O}));case 17:if(!(!f.length&&c)){p.next=22;break}return p.next=20,Promise.all(r.map(function(m,P){return tc("".concat(t,".").concat(P),m,c,i,o)}));case 20:return d=p.sent,p.abrupt("return",d.reduce(function(m,P){return[].concat(X(m),X(P))},[]));case 22:return g=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=f.map(function(m){return typeof m=="string"?Ax(m,g):m}),p.abrupt("return",v);case 25:case"end":return p.stop()}},e,null,[[9,14]])})),rc.apply(this,arguments)}function Fx(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,g=D(D({},u),{},{ruleIndex:f});return d&&(g.validator=function(v,h,p){var m=!1,P=function(){for(var C=arguments.length,w=new Array(C),_=0;_<C;_++)w[_]=arguments[_];Promise.resolve().then(function(){At(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||p.apply(void 0,w)})},$=d(v,h,P);m=$&&typeof $.then=="function"&&typeof $.catch=="function",At(m,"`callback` is deprecated. Please return a promise instead."),m&&$.then(function(){p()}).catch(function(O){p(O||" ")})}),g}).sort(function(u,f){var d=u.warningOnly,g=u.ruleIndex,v=f.warningOnly,h=f.ruleIndex;return!!d==!!v?g-h:d?1:-1}),c;if(i===!0)c=new Promise(function(){var u=Ur(Je().mark(function f(d,g){var v,h,p;return Je().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:v=0;case 1:if(!(v<s.length)){P.next=12;break}return h=s[v],P.next=5,tc(a,t,h,n,o);case 5:if(p=P.sent,!p.length){P.next=9;break}return g([{errors:p,rule:h}]),P.abrupt("return");case 9:v+=1,P.next=1;break;case 12:d([]);case 13:case"end":return P.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var l=s.map(function(u){return tc(a,t,u,n,o).then(function(f){return{errors:f,rule:u}})});c=(i?Lx(l):Mx(l)).then(function(u){return Promise.reject(u)})}return c.catch(function(u){return u}),c}function Mx(e){return nc.apply(this,arguments)}function nc(){return nc=Ur(Je().mark(function e(t){return Je().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,X(i));return a}));case 1:case"end":return n.stop()}},e)})),nc.apply(this,arguments)}function Lx(e){return ic.apply(this,arguments)}function ic(){return ic=Ur(Je().mark(function e(t){var r;return Je().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),ic.apply(this,arguments)}var Rx=["name"],at=[];function oh(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var oc=function(e){bo(r,e);var t=So(r);function r(n){var i;if(Tt(this,r),i=t.call(this,n),i.state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.prevValidating=void 0,i.errors=at,i.warnings=at,i.cancelRegister=function(){var c=i.props,l=c.preserve,u=c.isListField,f=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,l,ye(f)),i.cancelRegisterFunc=null},i.getNamePath=function(){var c=i.props,l=c.name,u=c.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return l!==void 0?[].concat(X(d),X(l)):[]},i.getRules=function(){var c=i.props,l=c.rules,u=l===void 0?[]:l,f=c.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})},i.refresh=function(){i.mounted&&i.setState(function(c){var l=c.resetCount;return{resetCount:l+1}})},i.triggerMetaEvent=function(c){var l=i.props.onMetaChange;l==null||l(D(D({},i.getMeta()),{},{destroy:c}))},i.onStoreChange=function(c,l,u){var f=i.props,d=f.shouldUpdate,g=f.dependencies,v=g===void 0?[]:g,h=f.onReset,p=u.store,m=i.getNamePath(),P=i.getValue(c),$=i.getValue(p),O=l&&ni(l,m);switch(u.type==="valueUpdate"&&u.source==="external"&&P!==$&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=at,i.warnings=at,i.triggerMetaEvent()),u.type){case"reset":if(!l||O){i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=at,i.warnings=at,i.triggerMetaEvent(),h==null||h(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{if(O){var C=u.data;"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||at),"warnings"in C&&(i.warnings=C.warnings||at),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}if(d&&!m.length&&oh(d,c,p,P,$,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=v.map(ye);if(w.some(function(_){return ni(u.relatedFields,_)})){i.reRender();return}break}default:if(O||(!v.length||m.length||d)&&oh(d,c,p,P,$,u)){i.reRender();return}break}d===!0&&i.reRender()},i.validateRules=function(c){var l=i.getNamePath(),u=i.getValue(),f=Promise.resolve().then(function(){if(!i.mounted)return[];var d=i.props,g=d.validateFirst,v=g===void 0?!1:g,h=d.messageVariables,p=c||{},m=p.triggerName,P=i.getRules();m&&(P=P.filter(function(O){return O}).filter(function(O){var C=O.validateTrigger;if(!C)return!0;var w=Ks(C);return w.includes(m)}));var $=Fx(l,u,P,c,v,h);return $.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:at;if(i.validatePromise===f){var C;i.validatePromise=null;var w=[],_=[];(C=O.forEach)===null||C===void 0||C.call(O,function(M){var F=M.rule.warningOnly,A=M.errors,I=A===void 0?at:A;F?_.push.apply(_,X(I)):w.push.apply(w,X(I))}),i.errors=w,i.warnings=_,i.triggerMetaEvent(),i.reRender()}}),$});return i.validatePromise=f,i.dirty=!0,i.errors=at,i.warnings=at,i.triggerMetaEvent(),i.reRender(),f},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,l=c.getInternalHooks(xr),u=l.getInitialValue;return u(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c},i.getOnlyChild=function(c){if(typeof c=="function"){var l=i.getMeta();return D(D({},i.getOnlyChild(c(i.getControlled(),l,i.props.fieldContext))),{},{isFunction:!0})}var u=Xn(c);return u.length!==1||!x.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},i.getValue=function(c){var l=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return nr(c||l(!0),u)},i.getControlled=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.props,u=l.trigger,f=l.validateTrigger,d=l.getValueFromEvent,g=l.normalize,v=l.valuePropName,h=l.getValueProps,p=l.fieldContext,m=f!==void 0?f:p.validateTrigger,P=i.getNamePath(),$=p.getInternalHooks,O=p.getFieldsValue,C=$(xr),w=C.dispatch,_=i.getValue(),M=h||function(k){return Z({},v,k)},F=c[u],A=D(D({},c),M(_));A[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var k,y=arguments.length,S=new Array(y),T=0;T<y;T++)S[T]=arguments[T];d?k=d.apply(void 0,S):k=Tx.apply(void 0,[v].concat(S)),g&&(k=g(k,_,O(!0))),w({type:"updateValue",namePath:P,value:k}),F&&F.apply(void 0,S)};var I=Ks(m||[]);return I.forEach(function(k){var y=A[k];A[k]=function(){y&&y.apply(void 0,arguments);var S=i.props.rules;S&&S.length&&w({type:"validateField",namePath:P,triggerName:k})}}),A},n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(xr),s=a.initEntityValue;s(wo(i))}return i}return kt(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(xr),l=c.registerField;this.cancelRegisterFunc=l(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,l;return c?l=s:x.isValidElement(s)?l=x.cloneElement(s,this.getControlled(s.props)):(At(!s,"`children` of Field is not validate ReactElement."),l=s),x.createElement(x.Fragment,{key:i},l)}}]),r}(x.Component);oc.contextType=Gr,oc.defaultProps={trigger:"onChange",valuePropName:"value"};function ah(e){var t=e.name,r=rr(e,Rx),n=x.useContext(Gr),i=t!==void 0?ye(t):void 0,o="keep";return r.isListField||(o="_".concat((i||[]).join("_"))),x.createElement(oc,fr({key:o,name:i},r,{fieldContext:n}))}var Nx=x.createContext(null),Ix=function(t){var r=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=x.useContext(Gr),c=x.useRef({keys:[],id:0}),l=c.current,u=x.useMemo(function(){var v=ye(s.prefixName)||[];return[].concat(X(v),X(ye(r)))},[s.prefixName,r]),f=x.useMemo(function(){return D(D({},s),{},{prefixName:u})},[s,u]),d=x.useMemo(function(){return{getKey:function(h){var p=u.length,m=h[p];return[l.keys[m],h.slice(p+1)]}}},[u]);if(typeof i!="function")return At(!1,"Form.List only accepts function as children."),null;var g=function(h,p,m){var P=m.source;return P==="internal"?!1:h!==p};return x.createElement(Nx.Provider,{value:d},x.createElement(Gr.Provider,{value:f},x.createElement(ah,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0},function(v,h){var p=v.value,m=p===void 0?[]:p,P=v.onChange,$=s.getFieldValue,O=function(){var M=$(u||[]);return M||[]},C={add:function(M,F){var A=O();F>=0&&F<=A.length?(l.keys=[].concat(X(l.keys.slice(0,F)),[l.id],X(l.keys.slice(F))),P([].concat(X(A.slice(0,F)),[M],X(A.slice(F))))):(l.keys=[].concat(X(l.keys),[l.id]),P([].concat(X(A),[M]))),l.id+=1},remove:function(M){var F=O(),A=new Set(Array.isArray(M)?M:[M]);A.size<=0||(l.keys=l.keys.filter(function(I,k){return!A.has(k)}),P(F.filter(function(I,k){return!A.has(k)})))},move:function(M,F){if(M!==F){var A=O();M<0||M>=A.length||F<0||F>=A.length||(l.keys=nh(l.keys,M,F),P(nh(A,M,F)))}}},w=m||[];return Array.isArray(w)||(w=[]),i(w.map(function(_,M){var F=l.keys[M];return F===void 0&&(l.keys[M]=l.id,F=l.keys[M],l.id+=1),{name:M,key:F,isListField:!0}}),C,h)})))};function jx(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[s]=c,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var sh="__@field_split__";function ac(e){return e.map(function(t){return"".concat(me(t),":").concat(t)}).join(sh)}var Xr=function(){function e(){Tt(this,e),this.kvs=new Map}return kt(e,[{key:"set",value:function(r,n){this.kvs.set(ac(r),n)}},{key:"get",value:function(r){return this.kvs.get(ac(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(ac(r))}},{key:"map",value:function(r){return X(this.kvs.entries()).map(function(n){var i=ae(n,2),o=i[0],a=i[1],s=o.split(sh);return r({key:s.map(function(c){var l=c.match(/^([^:]*):(.*)$/),u=ae(l,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e}(),Dx=["name","errors"],zx=kt(function e(t){var r=this;Tt(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===xr?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(At(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(n){r.subscribable=n},this.prevWithoutPreserves=null,this.setInitialValues=function(n,i){if(r.initialValues=n||{},i){var o,a=ii({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=ir(a,c,nr(n,c))}),r.prevWithoutPreserves=null,r.updateStore(a)}},this.destroyForm=function(){var n=new Xr;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n},this.getInitialValue=function(n){var i=nr(r.initialValues,n);return n.length?Oo(i):i},this.setCallbacks=function(n){r.callbacks=n},this.setValidateMessages=function(n){r.validateMessages=n},this.setPreserve=function(n){r.preserve=n},this.watchList=[],this.registerWatch=function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}},this.notifyWatch=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue();r.watchList.forEach(function(o){o(i,n)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(n){r.store=n},this.getFieldEntities=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Xr;return r.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i},this.getFieldEntitiesForNamePathList=function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var a=ye(o);return i.get(a)||{INVALIDATE_NAME_PATH:ye(o)}})},this.getFieldsValue=function(n,i){if(r.warningUnhooked(),n===!0&&!i)return r.store;var o=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return o.forEach(function(s){var c,l="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&(!((c=s.isListField)===null||c===void 0)&&c.call(s))))if(!i)a.push(l);else{var u="getMeta"in s?s.getMeta():null;i(u)&&a.push(l)}}),Qd(r.store,a.map(ye))},this.getFieldValue=function(n){r.warningUnhooked();var i=ye(n);return nr(r.store,i)},this.getFieldsError=function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:ye(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=ye(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=ye(n),o=r.getFieldsError([i])[0];return o.warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],c,l=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(ye),l=!1):(c=null,l=a):(c=a.map(ye),l=s);var u=r.getFieldEntities(!0),f=function(p){return p.isFieldTouched()};if(!c)return l?u.every(f):u.some(f);var d=new Xr;c.forEach(function(h){d.set(h,[])}),u.forEach(function(h){var p=h.getNamePath();c.forEach(function(m){m.every(function(P,$){return p[$]===P})&&d.update(m,function(P){return[].concat(X(P),[h])})})});var g=function(p){return p.some(f)},v=d.map(function(h){var p=h.value;return p});return l?v.every(g):v.some(g)},this.isFieldTouched=function(n){return r.warningUnhooked(),r.isFieldsTouched([n])},this.isFieldsValidating=function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(a){return a.isFieldValidating()});var o=n.map(ye);return i.some(function(a){var s=a.getNamePath();return ni(o,s)&&a.isFieldValidating()})},this.isFieldValidating=function(n){return r.warningUnhooked(),r.isFieldsValidating([n])},this.resetWithFieldInitialValue=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Xr,o=r.getFieldEntities(!0);o.forEach(function(c){var l=c.props.initialValue,u=c.getNamePath();if(l!==void 0){var f=i.get(u)||new Set;f.add({entity:c,value:l}),i.set(u,f)}});var a=function(l){l.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),g=r.getInitialValue(d);if(g!==void 0)At(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var v=i.get(d);if(v&&v.size>1)At(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=r.getFieldValue(d);(!n.skipExist||h===void 0)&&r.updateStore(ir(r.store,d,X(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(c){var l=i.get(c);if(l){var u;(u=s).push.apply(u,X(X(l).map(function(f){return f.entity})))}})):s=o,a(s)},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(ii({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(ye);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(ir(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o)},this.setFields=function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(a){var s=a.name;a.errors;var c=rr(a,Dx),l=ye(s);o.push(l),"value"in c&&r.updateStore(ir(r.store,l,c.value)),r.notifyObservers(i,[l],{type:"setField",data:a})}),r.notifyWatch(o)},this.getFields=function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=D(D({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=nr(r.store,o);a===void 0&&r.updateStore(ir(r.store,o,i))}},this.isMergedPreserve=function(n){var i=n!==void 0?n:r.preserve;return i??!0},this.registerField=function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||c.length>1)){var l=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==l&&r.fieldEntities.every(function(f){return!rh(f.getNamePath(),i)})){var u=r.store;r.updateStore(ir(u,i,l,!0)),r.notifyObservers(u,[i],{type:"remove"}),r.triggerDependenciesUpdate(u,i)}}r.notifyWatch([i])}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(n,i,o){if(r.subscribable){var a=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(n,i,a)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(X(o))}),o},this.updateValue=function(n,i){var o=ye(n),a=r.store;r.updateStore(ir(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(a,o),c=r.callbacks.onValuesChange;if(c){var l=Qd(r.store,[o]);c(l,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(X(s)))},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=ii(r.store,n);r.updateStore(o)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(n,i){r.setFields([{name:n,value:i}])},this.getDependencyChildrenFields=function(n){var i=new Set,o=[],a=new Xr;r.getFieldEntities().forEach(function(c){var l=c.props.dependencies;(l||[]).forEach(function(u){var f=ye(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(c),d})})});var s=function c(l){var u=a.get(l)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),c(d))}})};return s(n),o},this.triggerOnFieldsChange=function(n,i){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(i){var s=new Xr;i.forEach(function(l){var u=l.name,f=l.errors;s.set(u,f)}),a.forEach(function(l){l.errors=s.get(l.name)||l.errors})}var c=a.filter(function(l){var u=l.name;return ni(n,u)});o(c,a)}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(ye):[],s=[];r.getFieldEntities(!0).forEach(function(u){if(o||a.push(u.getNamePath()),i!=null&&i.recursive&&o){var f=u.getNamePath();f.every(function(v,h){return n[h]===v||n[h]===void 0})&&a.push(f)}if(!(!u.props.rules||!u.props.rules.length)){var d=u.getNamePath();if(!o||ni(a,d)){var g=u.validateRules(D({validateMessages:D(D({},Yd),r.validateMessages)},i));s.push(g.then(function(){return{name:d,errors:[],warnings:[]}}).catch(function(v){var h,p=[],m=[];return(h=v.forEach)===null||h===void 0||h.call(v,function(P){var $=P.rule.warningOnly,O=P.errors;$?m.push.apply(m,X(O)):p.push.apply(p,X(O))}),p.length?Promise.reject({name:d,errors:p,warnings:m}):{name:d,errors:p,warnings:m}}))}}});var c=jx(s);r.lastValidatePromise=c,c.catch(function(u){return u}).then(function(u){var f=u.map(function(d){var g=d.name;return g});r.notifyObservers(r.store,f,{type:"validateFinish"}),r.triggerOnFieldsChange(f,u)});var l=c.then(function(){return r.lastValidatePromise===c?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var f=u.filter(function(d){return d&&d.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:f,outOfDate:r.lastValidatePromise!==c})});return l.catch(function(u){return u}),l},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})},this.forceRootUpdate=t});function ch(e){var t=x.useRef(),r=x.useState({}),n=ae(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new zx(o);t.current=a.getForm()}return[t.current]}var sc=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),lh=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=x.useContext(sc),s=x.useRef({});return x.createElement(sc.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),r),triggerFormChange:function(l,u){n&&n(l,{changedFields:u,forms:s.current}),a.triggerFormChange(l,u)},triggerFormFinish:function(l,u){i&&i(l,{values:u,forms:s.current}),a.triggerFormFinish(l,u)},registerForm:function(l,u){l&&(s.current=D(D({},s.current),{},Z({},l,u))),a.registerForm(l,u)},unregisterForm:function(l){var u=D({},s.current);delete u[l],s.current=u,a.unregisterForm(l)}})},o)},Bx=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Wx=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,c=t.children,l=t.component,u=l===void 0?"form":l,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,v=t.onValuesChange,h=t.onFieldsChange,p=t.onFinish,m=t.onFinishFailed,P=rr(t,Bx),$=x.useContext(sc),O=ch(a),C=ae(O,1),w=C[0],_=w.getInternalHooks(xr),M=_.useSubscribe,F=_.setInitialValues,A=_.setCallbacks,I=_.setValidateMessages,k=_.setPreserve,y=_.destroyForm;x.useImperativeHandle(r,function(){return w}),x.useEffect(function(){return $.registerForm(n,w),function(){$.unregisterForm(n)}},[$,w,n]),I(D(D({},$.validateMessages),f)),A({onValuesChange:v,onFieldsChange:function(V){if($.triggerFormChange(n,V),h){for(var U=arguments.length,Se=new Array(U>1?U-1:0),ge=1;ge<U;ge++)Se[ge-1]=arguments[ge];h.apply(void 0,[V].concat(Se))}},onFinish:function(V){$.triggerFormFinish(n,V),p&&p(V)},onFinishFailed:m}),k(s);var S=x.useRef(null);F(i,!S.current),S.current||(S.current=!0),x.useEffect(function(){return y},[]);var T,R=typeof c=="function";if(R){var N=w.getFieldsValue(!0);T=c(N,w)}else T=c;M(!R);var j=x.useRef();x.useEffect(function(){Px(j.current||[],o||[])||w.setFields(o||[]),j.current=o},[o,w]);var z=x.useMemo(function(){return D(D({},w),{},{validateTrigger:g})},[w,g]),B=x.createElement(Gr.Provider,{value:z},T);return u===!1?B:x.createElement(u,fr({},P,{onSubmit:function(V){V.preventDefault(),V.stopPropagation(),w.submit()},onReset:function(V){var U;V.preventDefault(),w.resetFields(),(U=P.onReset)===null||U===void 0||U.call(P,V)}}),B)};function uh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Hx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=n===void 0?[]:n,o=t[1],a=E.useState(),s=ae(a,2),c=s[0],l=s[1],u=E.useMemo(function(){return uh(c)},[c]),f=E.useRef(u);f.current=u;var d=E.useContext(Gr),g=o||d,v=g&&g._init,h=ye(i),p=E.useRef(h);return p.current=h,E.useEffect(function(){if(v){var m=g.getFieldsValue,P=g.getInternalHooks,$=P(xr),O=$.registerWatch,C=O(function(_){var M=nr(_,p.current),F=uh(M);f.current!==F&&(f.current=F,l(M))}),w=nr(m(),p.current);return l(w),C}},[v]),c}var Vx=x.forwardRef(Wx),oi=Vx;oi.FormProvider=lh,oi.Field=ah,oi.List=Ix,oi.useForm=ch,oi.useWatch=Hx;const qx={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 Gx={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 fh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},dh={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"]},Gx),timePickerLocale:Object.assign({},fh)},et="${label} is not a valid ${type}",cc={locale:"en",Pagination:qx,DatePicker:dh,TimePicker:fh,Calendar:dh,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:et,method:et,array:et,object:et,number:et,date:et,boolean:et,integer:et,float:et,regexp:et,email:et,url:et,hex:et},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"}};let lc=Object.assign({},cc.Modal);function hh(e){e?lc=Object.assign(Object.assign({},lc),e):lc=Object.assign({},cc.Modal)}const gh=E.createContext(void 0),Ux="internalMark",Kx=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;x.useEffect(()=>(hh(t&&t.Modal),()=>{hh()}),[t]);const i=x.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return x.createElement(gh.Provider,{value:i},r)},Xx="5.3.2";function Me(e,t){Yx(e)&&(e="100%");var r=Jx(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 Po(e){return Math.min(1,Math.max(0,e))}function Yx(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jx(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ph(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function To(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _r(e){return e.length===1?"0"+e:String(e)}function Zx(e,t,r){return{r:Me(e,255)*255,g:Me(t,255)*255,b:Me(r,255)*255}}function mh(e,t,r){e=Me(e,255),t=Me(t,255),r=Me(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=0,s=(n+i)/2;if(n===i)a=0,o=0;else{var c=n-i;switch(a=s>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l:s}}function uc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Qx(e,t,r){var n,i,o;if(e=Me(e,360),t=Me(t,100),r=Me(r,100),t===0)i=r,o=r,n=r;else{var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=uc(s,a,e+1/3),i=uc(s,a,e),o=uc(s,a,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function fc(e,t,r){e=Me(e,255),t=Me(t,255),r=Me(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,c=n===0?0:s/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:c,v:a}}function eE(e,t,r){e=Me(e,360)*6,t=Me(t,100),r=Me(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6,l=[r,a,o,o,s,r][c],u=[s,r,r,a,o,o][c],f=[o,o,s,r,r,a][c];return{r:l*255,g:u*255,b:f*255}}function dc(e,t,r,n){var i=[_r(Math.round(e).toString(16)),_r(Math.round(t).toString(16)),_r(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function tE(e,t,r,n,i){var o=[_r(Math.round(e).toString(16)),_r(Math.round(t).toString(16)),_r(Math.round(r).toString(16)),_r(rE(n))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function rE(e){return Math.round(parseFloat(e)*255).toString(16)}function vh(e){return tt(e)/255}function tt(e){return parseInt(e,16)}function nE(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var hc={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 Yr(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=aE(e)),typeof e=="object"&&(Vt(e.r)&&Vt(e.g)&&Vt(e.b)?(t=Zx(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vt(e.h)&&Vt(e.s)&&Vt(e.v)?(n=To(e.s),i=To(e.v),t=eE(e.h,n,i),a=!0,s="hsv"):Vt(e.h)&&Vt(e.s)&&Vt(e.l)&&(n=To(e.s),o=To(e.l),t=Qx(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=ph(r),{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:r}}var iE="[-\\+]?\\d+%?",oE="[-\\+]?\\d*\\.\\d+%?",or="(?:".concat(oE,")|(?:").concat(iE,")"),gc="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),pc="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),ut={CSS_UNIT:new RegExp(or),rgb:new RegExp("rgb"+gc),rgba:new RegExp("rgba"+pc),hsl:new RegExp("hsl"+gc),hsla:new RegExp("hsla"+pc),hsv:new RegExp("hsv"+gc),hsva:new RegExp("hsva"+pc),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 aE(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(hc[e])e=hc[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ut.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ut.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ut.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ut.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ut.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ut.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ut.hex8.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),a:vh(r[4]),format:t?"name":"hex8"}:(r=ut.hex6.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),format:t?"name":"hex"}:(r=ut.hex4.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),a:vh(r[4]+r[4]),format:t?"name":"hex8"}:(r=ut.hex3.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Vt(e){return!!ut.CSS_UNIT.exec(String(e))}var Be=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=nE(t)),this.originalInput=t;var i=Yr(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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=i.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(),r,n,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ph(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=fc(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=fc(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=mh(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=mh(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),dc(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),tE(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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Me(r,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(r){return Math.round(Me(r,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="#"+dc(this.r,this.g,this.b,!1),r=0,n=Object.entries(hc);r<n.length;r++){var i=n[r],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=Po(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Po(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=Po(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Po(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(a)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},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 r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(n+a*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ko=2,bh=.16,sE=.05,cE=.05,lE=.15,yh=5,wh=4,uE=[{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 Sh(e){var t=e.r,r=e.g,n=e.b,i=fc(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function Ao(e){var t=e.r,r=e.g,n=e.b;return"#".concat(dc(t,r,n,!1))}function fE(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function Ch(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-ko*t:Math.round(e.h)+ko*t:n=r?Math.round(e.h)+ko*t:Math.round(e.h)-ko*t,n<0?n+=360:n>=360&&(n-=360),n}function xh(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-bh*t:t===wh?n=e.s+bh:n=e.s+sE*t,n>1&&(n=1),r&&t===yh&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Eh(e,t,r){var n;return r?n=e.v+cE*t:n=e.v-lE*t,n>1&&(n=1),Number(n.toFixed(2))}function qt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Yr(e),i=yh;i>0;i-=1){var o=Sh(n),a=Ao(Yr({h:Ch(o,i,!0),s:xh(o,i,!0),v:Eh(o,i,!0)}));r.push(a)}r.push(Ao(n));for(var s=1;s<=wh;s+=1){var c=Sh(n),l=Ao(Yr({h:Ch(c,s),s:xh(c,s),v:Eh(c,s)}));r.push(l)}return t.theme==="dark"?uE.map(function(u){var f=u.index,d=u.opacity,g=Ao(fE(Yr(t.backgroundColor||"#141414"),Yr(r[f]),d*100));return g}):r}var mc={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"},vc={},bc={};Object.keys(mc).forEach(function(e){vc[e]=qt(mc[e]),vc[e].primary=vc[e][5],bc[e]=qt(mc[e],{theme:"dark",backgroundColor:"#141414"}),bc[e].primary=bc[e][5]});const _h=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function dE(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const yc={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"},Fo=Object.assign(Object.assign({},yc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function $h(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,f=r(c),d=r(i),g=r(o),v=r(a),h=r(s),p=n(l,u);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new Be("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const hE=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function gE(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},hE(n))}const Gt=(e,t)=>new Be(e).setAlpha(t).toRgbString(),ai=(e,t)=>new Be(e).darken(t).toHexString(),pE=e=>{const t=qt(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]}},mE=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Gt(n,.88),colorTextSecondary:Gt(n,.65),colorTextTertiary:Gt(n,.45),colorTextQuaternary:Gt(n,.25),colorFill:Gt(n,.15),colorFillSecondary:Gt(n,.06),colorFillTertiary:Gt(n,.04),colorFillQuaternary:Gt(n,.02),colorBgLayout:ai(r,4),colorBgContainer:ai(r,0),colorBgElevated:ai(r,0),colorBgSpotlight:Gt(n,.85),colorBorder:ai(r,15),colorBorderSecondary:ai(r,6)}};function vE(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(2.71828,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Oh=e=>{const t=vE(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Mo(e){const t=Object.keys(yc).map(r=>{const n=qt(e[r]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$h(e,{generateColorPalettes:pE,generateNeutralColorPalettes:mE})),Oh(e.fontSize)),dE(e)),_h(e)),gE(e))}function wc(e){return e>=0&&e<=255}function Lo(e,t){const{r,g:n,b:i,a:o}=new Be(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new Be(t).toRgb();for(let l=.01;l<=1;l+=.01){const u=Math.round((r-a*(1-l))/l),f=Math.round((n-s*(1-l))/l),d=Math.round((i-c*(1-l))/l);if(wc(u)&&wc(f)&&wc(d))return new Be({r:u,g:f,b:d,a:Math.round(l*100)/100}).toRgbString()}return new Be({r,g:n,b:i,a:1}).toRgbString()}var bE=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function yE(e){const{override:t}=e,r=bE(e,["override"]),n=Object.assign({},t);Object.keys(Fo).forEach(d=>{delete n[d]});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,c=992,l=1200,u=1600;return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Lo(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Lo(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Lo(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Lo(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Be("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Be("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Be("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)"}),n)}const Jr=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),wE=()=>({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"}}),SE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active,
  &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),CE=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ro=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),xE=e=>({"&:focus-visible":Object.assign({},Ro(e))}),Ph="anticon",EE=(e,t)=>t||(e?`ant-${e}`:"ant"),qe=x.createContext({getPrefixCls:EE,iconPrefixCls:Ph});function si(e,t,r){return n=>{const[i,o,a]=Io(),{getPrefixCls:s,iconPrefixCls:c}=E.useContext(qe),l=s();return Vs({theme:i,token:o,hashId:a,path:["Shared",l]},()=>[{"&":SE(o)}]),[Vs({theme:i,token:o,hashId:a,path:[e,n,c]},()=>{const{token:u,flush:f}=$E(o),d=typeof r=="function"?r(u):r,g=Object.assign(Object.assign({},d),o[e]),v=`.${n}`,h=Zr(u,{componentCls:v,prefixCls:n,iconCls:`.${c}`,antCls:`.${l}`},g),p=t(h,{hashId:a,prefixCls:n,rootPrefixCls:l,iconPrefixCls:c,overrideComponentToken:o[e]});return f(e,g),[CE(o,n),p]}),a]}}const Th=typeof CSSINJS_STATISTIC<"u";let Sc=!0;function Zr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Th)return Object.assign.apply(Object,[{}].concat(t));Sc=!1;const n={};return t.forEach(i=>{Object.keys(i).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),Sc=!0,n}function _E(){}function $E(e){let t,r=e,n=_E;return Th&&(t=new Set,r=new Proxy(e,{get(i,o){return Sc&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t)}),{token:r,keys:t,flush:n}}const OE=Wd(Mo),No={token:Fo,hashed:!0},kh=E.createContext(No);function Io(){const{token:e,hashed:t,theme:r,components:n}=E.useContext(kh),i=`${Xx}-${t||""}`,o=r||OE,[a,s]=RC(o,[Fo,e],{salt:i,override:Object.assign({override:e},n),formatToken:yE});return[o,a,t?s:""]}const PE=`-ant-${Date.now()}-${Math.random()}`;function TE(e,t){const r={},n=(a,s)=>{let c=a.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},i=(a,s)=>{const c=new Be(a),l=qt(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new Be(t.primaryColor),s=qt(a.toRgbString());s.forEach((l,u)=>{r[`primary-${u+1}`]=l}),r["primary-color-deprecated-l-35"]=n(a,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(a,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(a,l=>l.setAlpha(l.getAlpha()*.12));const c=new Be(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,l=>l.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
  :root {
    ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
`)}
  }
  `.trim()}function kE(e,t){const r=TE(e,t);Ht()&&Jn(r,`${PE}-dynamic-theme`)}const Cc=x.createContext(!1),AE=e=>{let{children:t,disabled:r}=e;const n=x.useContext(Cc);return x.createElement(Cc.Provider,{value:r??n},t)},jo=Cc,xc=x.createContext(void 0),FE=e=>{let{children:t,size:r}=e;const n=x.useContext(xc);return x.createElement(xc.Provider,{value:r||n},t)},ci=xc;function ME(){const e=E.useContext(jo),t=E.useContext(ci);return{componentDisabled:e,componentSize:t}}function LE(e,t){const r=e||{},n=r.inherit===!1||!t?No:t;return wd(()=>{if(!e)return t;const o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,a)=>o.some((s,c)=>{const l=a[c];return!yC(s,l,!0)}))}const RE=e=>{const[t,r]=Io();return Vs({theme:t,token:r,hashId:"",path:["ant-design-icons",e]},()=>[{[`.${e}`]:Object.assign(Object.assign({},wE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])};var NE=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const IE=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],jE="ant";let Ah;function DE(){return Ah||jE}const zE=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(Ah=t),n&&kE(DE(),n)},BE=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:c,virtual:l,dropdownMatchSelectWidth:u,legacyLocale:f,parentContext:d,iconPrefixCls:g,theme:v,componentDisabled:h}=e,p=x.useCallback((y,S)=>{const{prefixCls:T}=e;if(S)return S;const R=T||d.getPrefixCls("");return y?`${R}-${y}`:R},[d.getPrefixCls,e.prefixCls]),m=g||d.iconPrefixCls||Ph,P=m!==d.iconPrefixCls,$=r||d.csp,O=RE(m),C=LE(v,d.theme),w={csp:$,autoInsertSpaceInButton:n,locale:o||f,direction:s,space:c,virtual:l,dropdownMatchSelectWidth:u,getPrefixCls:p,iconPrefixCls:m,theme:C},_=Object.assign({},d);Object.keys(w).forEach(y=>{w[y]!==void 0&&(_[y]=w[y])}),IE.forEach(y=>{const S=e[y];S&&(_[y]=S)});const M=wd(()=>_,_,(y,S)=>{const T=Object.keys(y),R=Object.keys(S);return T.length!==R.length||T.some(N=>y[N]!==S[N])}),F=x.useMemo(()=>({prefixCls:m,csp:$}),[m,$]);let A=P?O(t):t;const I=x.useMemo(()=>{var y,S,T;return ii({},((y=cc.Form)===null||y===void 0?void 0:y.defaultValidateMessages)||{},((T=(S=M.locale)===null||S===void 0?void 0:S.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[M,i==null?void 0:i.validateMessages]);Object.keys(I).length>0&&(A=x.createElement(lh,{validateMessages:I},t)),o&&(A=x.createElement(Kx,{locale:o,_ANT_MARK__:Ux},A)),(m||$)&&(A=x.createElement(Us.Provider,{value:F},A)),a&&(A=x.createElement(FE,{size:a},A));const k=x.useMemo(()=>{const y=C||{},{algorithm:S,token:T}=y,R=NE(y,["algorithm","token"]),N=S&&(!Array.isArray(S)||S.length>0)?Wd(S):void 0;return Object.assign(Object.assign({},R),{theme:N,token:Object.assign(Object.assign({},Fo),T)})},[C]);return v&&(A=x.createElement(kh.Provider,{value:k},A)),h!==void 0&&(A=x.createElement(AE,{disabled:h},A)),x.createElement(qe.Provider,{value:M},A)},Qr=e=>{const t=x.useContext(qe),r=x.useContext(gh);return x.createElement(BE,Object.assign({parentContext:t,legacyLocale:r},e))};Qr.ConfigContext=qe,Qr.SizeContext=ci,Qr.config=zE,Qr.useConfig=ME,Object.defineProperty(Qr,"SizeContext",{get:()=>ci});const WE=Qr;var Fh=function(t){return+setTimeout(t,16)},Mh=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Fh=function(t){return window.requestAnimationFrame(t)},Mh=function(t){return window.cancelAnimationFrame(t)});var Lh=0,Ec=new Map;function Rh(e){Ec.delete(e)}var li=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Lh+=1;var n=Lh;function i(o){if(o===0)Rh(n),t();else{var a=Fh(function(){i(o-1)});Ec.set(n,a)}}return i(r),n};li.cancel=function(e){var t=Ec.get(e);return Rh(t),Mh(t)};function HE(e,t){At(e,"[@ant-design/icons] ".concat(t))}function Nh(e){return me(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(me(e.icon)==="object"||typeof e.icon=="function")}function Ih(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n}return t},{})}function _c(e,t,r){return r?E.createElement(e.tag,D(D({key:t},Ih(e.attrs)),r),(e.children||[]).map(function(n,i){return _c(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):E.createElement(e.tag,D({key:t},Ih(e.attrs)),(e.children||[]).map(function(n,i){return _c(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function jh(e){return qt(e)[0]}function Dh(e){return e?Array.isArray(e)?e:[e]:[]}var VE=`
.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);
  }
}
`,qE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:VE,r=E.useContext(Us),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),E.useEffect(function(){Jn(o,"@ant-design-icons",{prepend:!0,csp:n})},[])},GE=["icon","className","onClick","style","primaryColor","secondaryColor"],ui={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UE(e){var t=e.primaryColor,r=e.secondaryColor;ui.primaryColor=t,ui.secondaryColor=r||jh(t),ui.calculated=!!r}function KE(){return D({},ui)}var Do=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,c=rr(t,GE),l=ui;if(a&&(l={primaryColor:a,secondaryColor:s||jh(a)}),qE(),HE(Nh(r),"icon should be icon definiton, but got ".concat(r)),!Nh(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=D(D({},u),{},{icon:u.icon(l.primaryColor,l.secondaryColor)})),_c(u.icon,"svg-".concat(u.name),D({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c))};Do.displayName="IconReact",Do.getTwoToneColors=KE,Do.setTwoToneColors=UE;const $c=Do;function zh(e){var t=Dh(e),r=ae(t,2),n=r[0],i=r[1];return $c.setTwoToneColors({primaryColor:n,secondaryColor:i})}function XE(){var e=$c.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var YE=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];zh("#1890ff");var zo=x.forwardRef(function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=rr(e,YE),f=x.useContext(Us),d=f.prefixCls,g=d===void 0?"anticon":d,v=f.rootClassName,h=J(v,g,(r={},Z(r,"".concat(g,"-").concat(i.name),!!i.name),Z(r,"".concat(g,"-spin"),!!o||i.name==="loading"),r),n),p=s;p===void 0&&c&&(p=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,P=Dh(l),$=ae(P,2),O=$[0],C=$[1];return x.createElement("span",D(D({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:p,onClick:c,className:h}),x.createElement($c,{icon:i,primaryColor:O,secondaryColor:C,style:m}))});zo.displayName="AntdIcon",zo.getTwoToneColor=XE,zo.setTwoToneColor=zh;const JE=zo;function Bh(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function ZE(e,t){var r={animationend:Bh("Animation","AnimationEnd"),transitionend:Bh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var QE=ZE(Ht(),typeof window<"u"?window:{}),Wh={};if(Ht()){var e_=document.createElement("div");Wh=e_.style}var Bo={};function Hh(e){if(Bo[e])return Bo[e];var t=QE[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Wh)return Bo[e]=t[o],Bo[e]}return""}var Vh=Hh("animationend"),qh=Hh("transitionend"),Gh=!!(Vh&&qh),Uh=Vh||"animationend",Kh=qh||"transitionend";function Xh(e,t){if(!e)return null;if(me(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var en="none",Wo="appear",Ho="enter",Vo="leave",Yh="none",Ut="prepare",tn="start",rn="active",Oc="end";function nn(e){var t=x.useRef(!1),r=x.useState(e),n=ae(r,2),i=n[0],o=n[1];x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,c){c&&t.current||o(s)}return[i,a]}const t_=function(){var e=x.useRef(null);function t(){li.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=li(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return x.useEffect(function(){return function(){t()}},[]),[r,t]};var Jh=Ht()?E.useLayoutEffect:E.useEffect,Zh=[Ut,tn,rn,Oc],Qh=!1,r_=!0;function eg(e){return e===rn||e===Oc}const n_=function(e,t){var r=nn(Yh),n=ae(r,2),i=n[0],o=n[1],a=t_(),s=ae(a,2),c=s[0],l=s[1];function u(){o(Ut,!0)}return Jh(function(){if(i!==Yh&&i!==Oc){var f=Zh.indexOf(i),d=Zh[f+1],g=t(i);g===Qh?o(d,!0):c(function(v){function h(){v.isCanceled()||o(d,!0)}g===!0?h():Promise.resolve(g).then(h)})}},[e,i]),x.useEffect(function(){return function(){l()}},[]),[u,i]},i_=function(e){var t=E.useRef(),r=E.useRef(e);r.current=e;var n=x.useCallback(function(a){r.current(a)},[]);function i(a){a&&(a.removeEventListener(Kh,n),a.removeEventListener(Uh,n))}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(Kh,n),a.addEventListener(Uh,n),t.current=a)}return x.useEffect(function(){return function(){i(t.current)}},[]),[o,i]};function o_(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,c=n.motionLeave,l=c===void 0?!0:c,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,g=n.onEnterPrepare,v=n.onLeavePrepare,h=n.onAppearStart,p=n.onEnterStart,m=n.onLeaveStart,P=n.onAppearActive,$=n.onEnterActive,O=n.onLeaveActive,C=n.onAppearEnd,w=n.onEnterEnd,_=n.onLeaveEnd,M=n.onVisibleChanged,F=nn(),A=ae(F,2),I=A[0],k=A[1],y=nn(en),S=ae(y,2),T=S[0],R=S[1],N=nn(null),j=ae(N,2),z=j[0],B=j[1],Y=E.useRef(!1),V=E.useRef(null);function U(){return r()}var Se=E.useRef(!1);function ge(fe){var pe=U();if(!(fe&&!fe.deadline&&fe.target!==pe)){var Re=Se.current,Tr;T===Wo&&Re?Tr=C==null?void 0:C(pe,fe):T===Ho&&Re?Tr=w==null?void 0:w(pe,fe):T===Vo&&Re&&(Tr=_==null?void 0:_(pe,fe)),T!==en&&Re&&Tr!==!1&&(R(en,!0),B(null,!0))}}var mt=i_(ge),Ue=ae(mt,1),st=Ue[0],oe=x.useMemo(function(){var fe,pe,Re;switch(T){case Wo:return fe={},Z(fe,Ut,d),Z(fe,tn,h),Z(fe,rn,P),fe;case Ho:return pe={},Z(pe,Ut,g),Z(pe,tn,p),Z(pe,rn,$),pe;case Vo:return Re={},Z(Re,Ut,v),Z(Re,tn,m),Z(Re,rn,O),Re;default:return{}}},[T]),Ae=n_(T,function(fe){if(fe===Ut){var pe=oe[Ut];return pe?pe(U()):Qh}if(Ce in oe){var Re;B(((Re=oe[Ce])===null||Re===void 0?void 0:Re.call(oe,U(),null))||null)}return Ce===rn&&(st(U()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ge({deadline:!0})},u))),r_}),vt=ae(Ae,2),ct=vt[0],Ce=vt[1],Zt=eg(Ce);Se.current=Zt,Jh(function(){k(t);var fe=Y.current;if(Y.current=!0,!!e){var pe;!fe&&t&&s&&(pe=Wo),fe&&t&&o&&(pe=Ho),(fe&&!t&&l||!fe&&f&&!t&&l)&&(pe=Vo),pe&&(R(pe),ct())}},[t]),E.useEffect(function(){(T===Wo&&!s||T===Ho&&!o||T===Vo&&!l)&&R(en)},[s,o,l]),E.useEffect(function(){return function(){Y.current=!1,clearTimeout(V.current)}},[]);var bi=x.useRef(!1);E.useEffect(function(){I&&(bi.current=!0),I!==void 0&&T===en&&((bi.current||I)&&(M==null||M(I)),bi.current=!0)},[I,T]);var yi=z;return oe[Ut]&&Ce===tn&&(yi=D({transition:"none"},yi)),[T,Ce,yi,I??t]}var a_=function(e){bo(r,e);var t=So(r);function r(){return Tt(this,r),t.apply(this,arguments)}return kt(r,[{key:"render",value:function(){return this.props.children}}]),r}(x.Component);function s_(e){var t=e;me(e)==="object"&&(t=e.transitionSupport);function r(i){return!!(i.motionName&&t)}var n=x.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,c=i.removeOnLeave,l=c===void 0?!0:c,u=i.forceRender,f=i.children,d=i.motionName,g=i.leavedClassName,v=i.eventProps,h=r(i),p=E.useRef(),m=E.useRef();function P(){try{return p.current instanceof HTMLElement?p.current:pC(m.current)}catch{return null}}var $=o_(h,s,P,i),O=ae($,4),C=O[0],w=O[1],_=O[2],M=O[3],F=x.useRef(M);M&&(F.current=!0);var A=x.useCallback(function(N){p.current=N,Sd(o,N)},[o]),I,k=D(D({},v),{},{visible:s});if(!f)I=null;else if(C===en||!r(i))M?I=f(D({},k),A):!l&&F.current&&g?I=f(D(D({},k),{},{className:g}),A):u||!l&&!g?I=f(D(D({},k),{},{style:{display:"none"}}),A):I=null;else{var y,S;w===Ut?S="prepare":eg(w)?S="active":w===tn&&(S="start"),I=f(D(D({},k),{},{className:J(Xh(d,C),(y={},Z(y,Xh(d,"".concat(C,"-").concat(S)),S),Z(y,d,typeof d=="string"),y)),style:_}),A)}if(x.isValidElement(I)&&xd(I)){var T=I,R=T.ref;R||(I=x.cloneElement(I,{ref:A}))}return x.createElement(a_,{ref:m},I)});return n.displayName="CSSMotion",n}const Pc=s_(Gh);var Tc="add",kc="keep",Ac="remove",Fc="removed";function c_(e){var t;return e&&me(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function Mc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(c_)}function l_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=Mc(e),a=Mc(t);o.forEach(function(l){for(var u=!1,f=n;f<i;f+=1){var d=a[f];if(d.key===l.key){n<f&&(r=r.concat(a.slice(n,f).map(function(g){return D(D({},g),{},{status:Tc})})),n=f),r.push(D(D({},d),{},{status:kc})),n+=1,u=!0;break}}u||r.push(D(D({},l),{},{status:Ac}))}),n<i&&(r=r.concat(a.slice(n).map(function(l){return D(D({},l),{},{status:Tc})})));var s={};r.forEach(function(l){var u=l.key;s[u]=(s[u]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){r=r.filter(function(u){var f=u.key,d=u.status;return f!==l||d!==Ac}),r.forEach(function(u){u.key===l&&(u.status=kc)})}),r}var u_=["component","children","onVisibleChanged","onAllRemoved"],f_=["status"],d_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function h_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pc,r=function(n){bo(o,n);var i=So(o);function o(){var a;Tt(this,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return a=i.call.apply(i,[this].concat(c)),Z(wo(a),"state",{keyEntities:[]}),Z(wo(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(g){return g.key!==u?g:D(D({},g),{},{status:Fc})});return a.setState({keyEntities:d}),d.filter(function(g){var v=g.status;return v!==Fc}).length}),a}return kt(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,l=this.props,u=l.component,f=l.children,d=l.onVisibleChanged,g=l.onAllRemoved,v=rr(l,u_),h=u||x.Fragment,p={};return d_.forEach(function(m){p[m]=v[m],delete v[m]}),delete v.keys,x.createElement(h,v,c.map(function(m){var P=m.status,$=rr(m,f_),O=P===Tc||P===kc;return x.createElement(t,fr({},p,{key:$.key,visible:O,eventProps:$,onVisibleChanged:function(w){if(d==null||d(w,{key:$.key}),!w){var _=s.removeKey($.key);_===0&&g&&g()}}}),f)}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var l=s.keys,u=c.keyEntities,f=Mc(l),d=l_(u,f);return{keyEntities:d.filter(function(g){var v=u.find(function(h){var p=h.key;return g.key===p});return!(v&&v.status===Fc&&g.status===Ac)})}}}]),o}(x.Component);return Z(r,"defaultProps",{component:"div"}),r}h_(Gh);function g_(e){return Object.keys(e).reduce((t,r)=>((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t),{})}const{isValidElement:tg}=x;function p_(e){return e&&tg(e)&&e.type===x.Fragment}function m_(e,t,r){return tg(e)?x.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function rg(e,t){return m_(e,e,t)}function ng(e){var t=x.useRef();t.current=e;var r=x.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}var v_={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 b_=v_;var ig=function(t,r){return x.createElement(JE,D(D({},t),{},{ref:r,icon:b_}))};ig.displayName="LoadingOutlined";const og=x.forwardRef(ig);var fi=D({},Wg),y_=fi.version,w_=fi.render,S_=fi.unmountComponentAtNode,qo;try{var C_=Number((y_||"").split(".")[0]);C_>=18&&(qo=fi.createRoot)}catch{}function ag(e){var t=fi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&me(t)==="object"&&(t.usingClientEntryPoint=e)}var Go="__rc_react_root__";function x_(e,t){ag(!0);var r=t[Go]||qo(t);ag(!1),r.render(e),t[Go]=r}function E_(e,t){w_(e,t)}function __(e,t){if(qo){x_(e,t);return}E_(e,t)}function $_(e){return Lc.apply(this,arguments)}function Lc(){return Lc=Ur(Je().mark(function e(t){return Je().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Go])===null||i===void 0||i.unmount(),delete t[Go]}));case 1:case"end":return n.stop()}},e)})),Lc.apply(this,arguments)}function O_(e){S_(e)}function P_(e){return Rc.apply(this,arguments)}function Rc(){return Rc=Ur(Je().mark(function e(t){return Je().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(qo===void 0){n.next=2;break}return n.abrupt("return",$_(t));case 2:O_(t);case 3:case"end":return n.stop()}},e)})),Rc.apply(this,arguments)}const T_=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},k_=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"}}}}},sg=si("Space",e=>[k_(e),T_(e)]);var cg=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Nc=x.createContext(null),A_=(e,t)=>{const r=x.useContext(Nc),n=x.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return J({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},F_=e=>{var{children:t}=e,r=cg(e,["children"]);return x.createElement(Nc.Provider,{value:r},t)},M_=e=>{const{getPrefixCls:t,direction:r}=x.useContext(qe),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:c,children:l}=e,u=cg(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=t("space-compact",a),[d,g]=sg(f),v=J(f,g,{[`${f}-rtl`]:r==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,c),h=x.useContext(Nc),p=Xn(l),m=x.useMemo(()=>p.map((P,$)=>{const O=P&&P.key||`${f}-item-${$}`;return x.createElement(F_,{key:O,compactSize:n,compactDirection:i,isFirstItem:$===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:$===p.length-1&&(!h||(h==null?void 0:h.isLastItem))},P)}),[n,p,h]);return p.length===0?null:d(x.createElement("div",Object.assign({className:v},u),m))},L_=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},R_=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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}}}}},N_=si("Wave",e=>[R_(e)]);function I_(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 Ic(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&I_(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function j_(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Ic(t)?t:Ic(r)?r:Ic(n)?n:null}function jc(e){return Number.isNaN(e)?0:e}const D_=e=>{const{className:t,target:r}=e,n=x.useRef(null),[i,o]=x.useState(null),[a,s]=x.useState([]),[c,l]=x.useState(0),[u,f]=x.useState(0),[d,g]=x.useState(0),[v,h]=x.useState(0),[p,m]=x.useState(!1),P={left:c,top:u,width:d,height:v,borderRadius:a.map(O=>`${O}px`).join(" ")};i&&(P["--wave-color"]=i);function $(){const O=getComputedStyle(r);o(j_(r));const C=O.position==="static",{borderLeftWidth:w,borderTopWidth:_}=O;l(C?r.offsetLeft:jc(-parseFloat(w))),f(C?r.offsetTop:jc(-parseFloat(_))),g(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:F,borderBottomLeftRadius:A,borderBottomRightRadius:I}=O;s([M,F,I,A].map(k=>jc(parseFloat(k))))}return x.useEffect(()=>{if(r){const O=li(()=>{$(),m(!0)});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver($),C.observe(r)),()=>{li.cancel(O),C==null||C.disconnect()}}},[]),p?x.createElement(Pc,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,C)=>{var w;if(C.deadline||C.propertyName==="opacity"){const _=(w=n.current)===null||w===void 0?void 0:w.parentElement;P_(_).then(()=>{var M;(M=_.parentElement)===null||M===void 0||M.removeChild(_)})}return!1}},O=>{let{className:C}=O;return x.createElement("div",{ref:n,className:J(t,C),style:P})}):null};function z_(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),__(x.createElement(D_,{target:e,className:t}),r)}function B_(e,t){function r(){const n=e.current;z_(n,t)}return r}const W_=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=E.useContext(qe),i=E.useRef(null),o=n("wave"),[,a]=N_(o),s=B_(i,J(o,a));if(E.useEffect(()=>{const l=i.current;if(!l||l.nodeType!==1||r)return;const u=f=>{f.target.tagName==="INPUT"||!L_(f.target)||!l.getAttribute||l.getAttribute("disabled")||l.disabled||l.className.includes("disabled")||l.className.includes("-leave")||s()};return l.addEventListener("click",u,!0),()=>{l.removeEventListener("click",u,!0)}},[r]),!E.isValidElement(t))return t??null;const c=xd(t)?Cd(t.ref,i):i;return rg(t,{ref:c})};var H_=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const lg=x.createContext(void 0),V_=e=>{const{getPrefixCls:t,direction:r}=x.useContext(qe),{prefixCls:n,size:i,className:o}=e,a=H_(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,c]=Io();let l="";switch(i){case"large":l="lg";break;case"small":l="sm";break}const u=J(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:r==="rtl"},o,c);return x.createElement(lg.Provider,{value:i},x.createElement("div",Object.assign({},a,{className:u})))},ug=/^[\u4e00-\u9fa5]{2}$/,Dc=ug.test.bind(ug);function q_(e){return typeof e=="string"}function zc(e){return e==="text"||e==="link"}function G_(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&q_(e.type)&&Dc(e.props.children)?rg(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Dc(e)?E.createElement("span",null,e.split("").join(r)):E.createElement("span",null,e):p_(e)?E.createElement("span",null,e):e}function U_(e,t){let r=!1;const n=[];return E.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,c=n[s];n[s]=`${c}${i}`}else n.push(i);r=a}),E.Children.map(n,i=>G_(i,t))}const Bc=()=>({width:0,opacity:0,transform:"scale(0)"}),Wc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),K_=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?E.createElement("span",{className:`${t}-loading-icon`},E.createElement(og,null)):E.createElement(Pc,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Bc,onAppearActive:Wc,onEnterStart:Bc,onEnterActive:Wc,onLeaveStart:Wc,onLeaveActive:Bc},(o,a)=>{let{className:s,style:c}=o;return E.createElement("span",{className:`${t}-loading-icon`,style:c,ref:a},E.createElement(og,{className:s}))})},fg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),X_=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
          &:focus,
          &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},fg(`${t}-primary`,i),fg(`${t}-danger`,o)]}};function Y_(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function J_(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Z_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},Y_(e,n,t)),J_(r,n,t))}}function Q_(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function e$(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 t$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Q_(e,t)),e$(e.componentCls,t))}}const r$=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},xE(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:'""'}}}}}}},Kt=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),n$=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),i$=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Hc=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Uo=(e,t,r,n,i,o,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},Kt(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),Vc=e=>({"&:disabled":Object.assign({},Hc(e))}),dg=e=>Object.assign({},Vc(e)),Ko=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),hg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dg(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Kt({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Uo(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},Kt({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Uo(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Vc(e))}),o$=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dg(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Kt({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Uo(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}`},Kt({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Uo(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vc(e))}),a$=e=>Object.assign(Object.assign({},hg(e)),{borderStyle:"dashed"}),s$=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Kt({color:e.colorLinkHover},{color:e.colorLinkActive})),Ko(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Kt({color:e.colorErrorHover},{color:e.colorErrorActive})),Ko(e))}),c$=e=>Object.assign(Object.assign(Object.assign({},Kt({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ko(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ko(e)),Kt({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),l$=e=>Object.assign(Object.assign({},Hc(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Hc(e))}),u$=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hg(e),[`${t}-primary`]:o$(e),[`${t}-dashed`]:a$(e),[`${t}-link`]:s$(e),[`${t}-text`]:c$(e),[`${t}-disabled`]:l$(e)}},qc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:c,buttonPaddingHorizontal:l}=e,u=Math.max(0,(i-o*a)/2-s),f=l-s,d=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:o,height:i,padding:`${u}px ${f}px`,borderRadius:c,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${d}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:n$(e)},{[`${r}${r}-round${t}`]:i$(e)}]},f$=e=>qc(e),d$=e=>{const t=Zr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return qc(t,`${e.componentCls}-sm`)},h$=e=>{const t=Zr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return qc(t,`${e.componentCls}-lg`)},g$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},p$=si("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=Zr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return[r$(n),d$(n),f$(n),h$(n),g$(n),u$(n),X_(n),Z_(e),t$(e)]});var m$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function v$(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 b$=(e,t)=>{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,disabled:c,className:l,rootClassName:u,children:f,icon:d,ghost:g=!1,block:v=!1,htmlType:h="button"}=e,p=m$(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:m,autoInsertSpaceInButton:P,direction:$}=x.useContext(qe),O=m("btn",n),[C,w]=p$(O),_=x.useContext(ci),M=x.useContext(jo),F=c??M,A=x.useContext(lg),I=x.useMemo(()=>v$(r),[r]),[k,y]=x.useState(I.loading),[S,T]=x.useState(!1),R=t||x.createRef(),N=()=>x.Children.count(f)===1&&!d&&!zc(i),j=()=>{if(!R||!R.current||P===!1)return;const Ce=R.current.textContent;N()&&Dc(Ce)?S||T(!0):S&&T(!1)};x.useEffect(()=>{let Ce=null;I.delay>0?Ce=window.setTimeout(()=>{Ce=null,y(!0)},I.delay):y(I.loading);function Zt(){Ce&&(window.clearTimeout(Ce),Ce=null)}return Zt},[I]),x.useEffect(j,[R]);const z=Ce=>{const{onClick:Zt}=e;if(k||F){Ce.preventDefault();return}Zt==null||Zt(Ce)},B=P!==!1,{compactSize:Y,compactItemClassnames:V}=A_(O,$),U={large:"lg",small:"sm",middle:void 0},Se=Y||A||s||_,ge=Se&&U[Se]||"",mt=k?"loading":d,Ue=_d(p,["navigate"]),st=Ue.href!==void 0&&F,oe=J(O,w,{[`${O}-${a}`]:a!=="default"&&a,[`${O}-${i}`]:i,[`${O}-${ge}`]:ge,[`${O}-icon-only`]:!f&&f!==0&&!!mt,[`${O}-background-ghost`]:g&&!zc(i),[`${O}-loading`]:k,[`${O}-two-chinese-chars`]:S&&B&&!k,[`${O}-block`]:v,[`${O}-dangerous`]:!!o,[`${O}-rtl`]:$==="rtl",[`${O}-disabled`]:st},V,l,u),Ae=d&&!k?d:x.createElement(K_,{existIcon:!!d,prefixCls:O,loading:!!k}),vt=f||f===0?U_(f,N()&&B):null;if(Ue.href!==void 0)return C(x.createElement("a",Object.assign({},Ue,{className:oe,onClick:z,ref:R}),Ae,vt));let ct=x.createElement("button",Object.assign({},p,{type:h,className:oe,onClick:z,disabled:F,ref:R}),Ae,vt);return zc(i)||(ct=x.createElement(W_,{disabled:!!k},ct)),C(ct)},Gc=x.forwardRef(b$);Gc.Group=V_,Gc.__ANT_BUTTON=!0;const on=Gc;var gg=Ht()?x.useLayoutEffect:x.useEffect,pg=function(t,r){var n=x.useRef(!0);gg(function(){if(!n.current)return t()},r),gg(function(){return n.current=!1,function(){n.current=!0}},[])};const mg=x.createContext({}),y$=()=>Ht()&&window.document.documentElement;let Xo;const w$=()=>{if(!y$())return!1;if(Xo!==void 0)return Xo;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Xo=e.scrollHeight===1,document.body.removeChild(e),Xo};function Uc(e){return e!==void 0}function S$(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=nn(function(){return Uc(i)?i:Uc(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=ae(s,2),l=c[0],u=c[1],f=i!==void 0?i:l,d=a?a(f):f,g=ng(o),v=nn([f]),h=ae(v,2),p=h[0],m=h[1];pg(function(){var $=p[0];l!==$&&g(l,$)},[p]),pg(function(){Uc(i)||u(i)},[i]);var P=ng(function($,O){u($,O),m([f],O)});return[d,P]}const ar=(e,t)=>new Be(e).setAlpha(t).toRgbString(),an=(e,t)=>new Be(e).lighten(t).toHexString(),C$=e=>{const t=qt(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]}},x$=(e,t)=>{const r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorText:ar(n,.85),colorTextSecondary:ar(n,.65),colorTextTertiary:ar(n,.45),colorTextQuaternary:ar(n,.25),colorFill:ar(n,.18),colorFillSecondary:ar(n,.12),colorFillTertiary:ar(n,.08),colorFillQuaternary:ar(n,.04),colorBgElevated:an(r,12),colorBgContainer:an(r,8),colorBgLayout:an(r,0),colorBgSpotlight:an(r,26),colorBorder:an(r,26),colorBorderSecondary:an(r,19)}},E$=(e,t)=>{const r=Object.keys(yc).map(i=>{const o=qt(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,c)=>(a[`${i}-${c+1}`]=o[c],a[`${i}${c+1}`]=o[c],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),n=t??Mo(e);return Object.assign(Object.assign(Object.assign({},n),r),$h(e,{generateColorPalettes:C$,generateNeutralColorPalettes:x$}))};function _$(e){const{sizeUnit:t,sizeStep:r}=e,n=r-2;return{sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}const $$=(e,t)=>{const r=t??Mo(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),_$(t??e)),Oh(n)),{controlHeight:i}),_h(Object.assign(Object.assign({},r),{controlHeight:i})))};function O$(){const[e,t,r]=Io();return{theme:e,token:t,hashId:r}}const vg={defaultConfig:No,defaultSeed:No.token,useToken:O$,defaultAlgorithm:Mo,darkAlgorithm:E$,compactAlgorithm:$$},P$=()=>{const[e,t]=x.useState(!1);return x.useEffect(()=>{t(w$())},[]),e};function T$(e){let{className:t,direction:r,index:n,marginDirection:i,children:o,split:a,wrap:s}=e;const{horizontalSize:c,verticalSize:l,latestIndex:u,supportFlexGap:f}=x.useContext(bg);let d={};return f||(r==="vertical"?n<u&&(d={marginBottom:c/(a?2:1)}):d=Object.assign(Object.assign({},n<u&&{[i]:c/(a?2:1)}),s&&{paddingBottom:l})),o==null?null:x.createElement(x.Fragment,null,x.createElement("div",{className:t,style:d},o),n<u&&a&&x.createElement("span",{className:`${t}-split`,style:d},a))}var k$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const bg=x.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),A$={small:8,middle:16,large:24};function F$(e){return typeof e=="string"?A$[e]:e||0}const yg=e=>{const{getPrefixCls:t,space:r,direction:n}=x.useContext(qe),{size:i=(r==null?void 0:r.size)||"small",align:o,className:a,rootClassName:s,children:c,direction:l="horizontal",prefixCls:u,split:f,style:d,wrap:g=!1}=e,v=k$(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),h=P$(),[p,m]=x.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(S=>F$(S)),[i]),P=Xn(c,{keepEmpty:!0}),$=o===void 0&&l==="horizontal"?"center":o,O=t("space",u),[C,w]=sg(O),_=J(O,w,`${O}-${l}`,{[`${O}-rtl`]:n==="rtl",[`${O}-align-${$}`]:$},a,s),M=`${O}-item`,F=n==="rtl"?"marginLeft":"marginRight";let A=0;const I=P.map((S,T)=>{S!=null&&(A=T);const R=S&&S.key||`${M}-${T}`;return x.createElement(T$,{className:M,key:R,direction:l,index:T,marginDirection:F,split:f,wrap:g},S)}),k=x.useMemo(()=>({horizontalSize:p,verticalSize:m,latestIndex:A,supportFlexGap:h}),[p,m,A,h]);if(P.length===0)return null;const y={};return g&&(y.flexWrap="wrap",h||(y.marginBottom=-m)),h&&(y.columnGap=p,y.rowGap=m),C(x.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},y),d)},v),x.createElement(bg.Provider,{value:k},I)))};yg.Compact=M_;const wg=yg,Sg=x.createContext(null),M$=Sg.Provider,Cg=x.createContext(null),L$=Cg.Provider;var Kc=function(e){bo(r,e);var t=So(r);function r(n){var i;Tt(this,r),i=t.call(this,n),i.handleChange=function(a){var s=i.props,c=s.disabled,l=s.onChange;c||("checked"in i.props||i.setState({checked:a.target.checked}),l&&l({target:D(D({},i.props),{},{checked:a.target.checked}),stopPropagation:function(){a.stopPropagation()},preventDefault:function(){a.preventDefault()},nativeEvent:a.nativeEvent}))},i.saveInput=function(a){i.input=a};var o="checked"in n?n.checked:n.defaultChecked;return i.state={checked:o},i}return kt(r,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var i,o=this.props,a=o.prefixCls,s=o.className,c=o.style,l=o.name,u=o.id,f=o.type,d=o.disabled,g=o.readOnly,v=o.tabIndex,h=o.onClick,p=o.onFocus,m=o.onBlur,P=o.onKeyDown,$=o.onKeyPress,O=o.onKeyUp,C=o.autoFocus,w=o.value,_=o.required,M=rr(o,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),F=Object.keys(M).reduce(function(k,y){return(y.substr(0,5)==="aria-"||y.substr(0,5)==="data-"||y==="role")&&(k[y]=M[y]),k},{}),A=this.state.checked,I=J(a,s,(i={},Z(i,"".concat(a,"-checked"),A),Z(i,"".concat(a,"-disabled"),d),i));return E.createElement("span",{className:I,style:c},E.createElement("input",fr({name:l,id:u,type:f,required:_,readOnly:g,disabled:d,tabIndex:v,className:"".concat(a,"-input"),checked:!!A,onClick:h,onFocus:p,onBlur:m,onKeyUp:O,onKeyDown:P,onKeyPress:$,onChange:this.handleChange,autoFocus:C,ref:this.saveInput,value:w},F)),E.createElement("span",{className:"".concat(a,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(i,o){return"checked"in i?D(D({},o),{},{checked:i.checked}):null}}]),r}(E.Component);Kc.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};const R$=new zd("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),N$=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},Jr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},I$=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:c,radioButtonBg:l,colorBorder:u,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:p,lineType:m,radioDotDisabledSize:P,wireframe:$,colorWhite:O}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Jr(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,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:`${f}px ${m} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:R$,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Jr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
        &:hover ${C}`]:{borderColor:n},[`${t}-input:focus-visible + ${C}`]:Object.assign({},Ro(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:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:$?n:O,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:n,backgroundColor:$?l:n,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${o} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${P/i})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},j$=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:c,radioButtonPaddingHorizontal:l,fontSize:u,radioButtonBg:f,fontSizeLG:d,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:p,borderRadiusSM:m,borderRadiusLG:P,radioCheckedColor:$,radioButtonCheckedBg:O,radioButtonHoverColor:C,radioButtonActiveColor:w,radioSolidCheckedColor:_,colorTextDisabled:M,colorBgContainerDisabled:F,radioDisabledButtonCheckedColor:A,radioDisabledButtonCheckedBg:I}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:u,lineHeight:`${r-i*2}px`,background:f,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${n}-group-large &`]:{height:g,fontSize:d,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child":{borderStartEndRadius:P,borderEndEndRadius:P}},[`${n}-group-small &`]:{height:v,paddingInline:h-i,paddingBlock:0,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},Ro(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:O,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:w,borderColor:w,"&::before":{backgroundColor:w}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:_,background:$,borderColor:$,"&:hover":{color:_,background:C,borderColor:C},"&:active":{color:_,background:w,borderColor:w}},"&-disabled":{color:M,backgroundColor:F,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:M,backgroundColor:F,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:A,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},xg=si("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:c,colorPrimaryActive:l,colorText:u,colorPrimary:f,marginXS:d,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,p=`0 0 0 ${g}px ${s}`,m=p,P=a,$=4,O=P-$*2,C=h?O:P-($+r)*2,w=f,_=u,M=c,F=l,A=t-r,y=Zr(e,{radioFocusShadow:p,radioButtonFocusShadow:m,radioSize:P,radioDotSize:C,radioDotDisabledSize:O,radioCheckedColor:w,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:_,radioButtonHoverColor:M,radioButtonActiveColor:F,radioButtonPaddingHorizontal:A,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[N$(y),I$(y),j$(y)]});var D$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const z$=(e,t)=>{var r,n;const i=x.useContext(Sg),o=x.useContext(Cg),{getPrefixCls:a,direction:s}=x.useContext(qe),c=x.useRef(),l=Cd(t,c),{isFormItemInput:u}=x.useContext(mg),f=F=>{var A,I;(A=e.onChange)===null||A===void 0||A.call(e,F),(I=i==null?void 0:i.onChange)===null||I===void 0||I.call(i,F)},{prefixCls:d,className:g,rootClassName:v,children:h,style:p}=e,m=D$(e,["prefixCls","className","rootClassName","children","style"]),P=a("radio",d),$=((i==null?void 0:i.optionType)||o)==="button"?`${P}-button`:P,[O,C]=xg(P),w=Object.assign({},m),_=x.useContext(jo);i&&(w.name=i.name,w.onChange=f,w.checked=e.value===i.value,w.disabled=(r=w.disabled)!==null&&r!==void 0?r:i.disabled),w.disabled=(n=w.disabled)!==null&&n!==void 0?n:_;const M=J(`${$}-wrapper`,{[`${$}-wrapper-checked`]:w.checked,[`${$}-wrapper-disabled`]:w.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:u},g,v,C);return O(x.createElement("label",{className:M,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},x.createElement(Kc,Object.assign({},w,{type:"radio",prefixCls:$,ref:l})),h!==void 0?x.createElement("span",null,h):null))},Yo=x.forwardRef(z$),B$=x.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=x.useContext(qe),i=x.useContext(ci),[o,a]=S$(e.defaultValue,{value:e.value}),s=y=>{const S=o,T=y.target.value;"value"in e||a(T);const{onChange:R}=e;R&&T!==S&&R(y)},{prefixCls:c,className:l,rootClassName:u,options:f,buttonStyle:d="outline",disabled:g,children:v,size:h,style:p,id:m,onMouseEnter:P,onMouseLeave:$,onFocus:O,onBlur:C}=e,w=r("radio",c),_=`${w}-group`,[M,F]=xg(w);let A=v;f&&f.length>0&&(A=f.map(y=>typeof y=="string"||typeof y=="number"?x.createElement(Yo,{key:y.toString(),prefixCls:w,disabled:g,value:y,checked:o===y},y):x.createElement(Yo,{key:`radio-group-value-options-${y.value}`,prefixCls:w,disabled:y.disabled||g,value:y.value,checked:o===y.value,style:y.style},y.label)));const I=h||i,k=J(_,`${_}-${d}`,{[`${_}-${I}`]:I,[`${_}-rtl`]:n==="rtl"},l,u,F);return M(x.createElement("div",Object.assign({},g_(e),{className:k,style:p,onMouseEnter:P,onMouseLeave:$,onFocus:O,onBlur:C,id:m,ref:t}),x.createElement(M$,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},A)))}),W$=x.memo(B$);var H$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const V$=(e,t)=>{const{getPrefixCls:r}=x.useContext(qe),{prefixCls:n}=e,i=H$(e,["prefixCls"]),o=r("radio",n);return x.createElement(L$,{value:"button"},x.createElement(Yo,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},q$=x.forwardRef(V$),Jo=Yo;Jo.Button=q$,Jo.Group=W$,Jo.__ANT_RADIO=!0;const Xc=Jo,G$=new zd("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),U$=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Jr(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},Jr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:e.marginXS},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Jr(e)),{top:"0.2em",position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,width:"100%",height:"100%",cursor:"pointer",opacity:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ro(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}:hover ${t}:after`]:{visibility:"visible"},[`
        ${r}:not(${r}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:G$,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
        ${r}-checked:not(${r}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-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 K$(e,t){const r=Zr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[U$(r)]}const Eg=si("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[K$(r,e)]});var X$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const _g=x.createContext(null),Y$=(e,t)=>{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:c,onChange:l}=e,u=X$(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:f,direction:d}=x.useContext(qe),[g,v]=x.useState(u.value||r||[]),[h,p]=x.useState([]);x.useEffect(()=>{"value"in u&&v(u.value||[])},[u.value]);const m=()=>i.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),P=k=>{p(y=>y.filter(S=>S!==k))},$=k=>{p(y=>[].concat(X(y),[k]))},O=k=>{const y=g.indexOf(k.value),S=X(g);y===-1?S.push(k.value):S.splice(y,1),"value"in u||v(S);const T=m();l==null||l(S.filter(R=>h.includes(R)).sort((R,N)=>{const j=T.findIndex(B=>B.value===R),z=T.findIndex(B=>B.value===N);return j-z}))},C=f("checkbox",o),w=`${C}-group`,[_,M]=Eg(C),F=_d(u,["value","disabled"]);i&&i.length>0&&(n=m().map(k=>x.createElement($g,{prefixCls:C,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:`${w}-item`,style:k.style},k.label)));const A={toggleOption:O,value:g,disabled:u.disabled,name:u.name,registerValue:$,cancelValue:P},I=J(w,{[`${w}-rtl`]:d==="rtl"},a,s,M);return _(x.createElement("div",Object.assign({className:I,style:c},F,{ref:t}),x.createElement(_g.Provider,{value:A},n)))},J$=x.forwardRef(Y$),Z$=x.memo(J$);var Q$=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const eO=(e,t)=>{var r,{prefixCls:n,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:c,onMouseEnter:l,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,g=Q$(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:h}=x.useContext(qe),p=x.useContext(_g),{isFormItemInput:m}=x.useContext(mg),P=x.useContext(jo),$=(r=(p==null?void 0:p.disabled)||d)!==null&&r!==void 0?r:P,O=x.useRef(g.value);x.useEffect(()=>{p==null||p.registerValue(g.value)},[]),x.useEffect(()=>{if(!f)return g.value!==O.current&&(p==null||p.cancelValue(O.current),p==null||p.registerValue(g.value),O.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const C=v("checkbox",n),[w,_]=Eg(C),M=Object.assign({},g);p&&!f&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:a,value:g.value})},M.name=p.name,M.checked=p.value.includes(g.value));const F=J({[`${C}-wrapper`]:!0,[`${C}-rtl`]:h==="rtl",[`${C}-wrapper-checked`]:M.checked,[`${C}-wrapper-disabled`]:$,[`${C}-wrapper-in-form-item`]:m},i,o,_),A=J({[`${C}-indeterminate`]:s},_),I=s?"mixed":void 0;return w(x.createElement("label",{className:F,style:c,onMouseEnter:l,onMouseLeave:u},x.createElement(Kc,Object.assign({"aria-checked":I},M,{prefixCls:C,className:A,disabled:$,ref:t})),a!==void 0&&x.createElement("span",null,a)))},$g=x.forwardRef(eO),Yc=$g;Yc.Group=Z$,Yc.__ANT_CHECKBOX=!0;const tO=Yc,Og=L(on,{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 Pg({style:e,className:t}){const{runAsync:r,loading:n}=Tf(tS,{manual:!0}),{accessKey:i}=er(),o=E.useRef(null),a=he(async()=>{var l;await r()&&((l=o.current)==null||l.set(!1))});return L(wg,{size:"small",style:e,className:t,children:i?W(dr,{children:[L(on,{onClick:()=>a(),disabled:n,children:L("span",{children:"重新获取 access_key"})}),L(on,{onClick:rS,children:L("span",{children:"删除 access_key"})})]}):W(dr,{children:[Og,L(on,{onClick:a,disabled:n,size:"middle",children:L("span",{children:"获取 access_key"})})]})})}function sn({configKey:e,label:t,className:r,extraAction:n}){const o=!!er()[e],a=E.useCallback(s=>{const c=s.target.checked;Qu({[e]:c}),n==null||n(c)},[]);return L(tO,{className:r,checked:o,onChange:a,children:t||e})}var rO={name:"1qkltea",styles:"margin-left:5px"};const nO=function(){const e=rO;return W(dr,{children:[L(sn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),L(sn,{configKey:"useNarrowMode",label:"启用居中模式(居中两列)",css:e})]})},ve={configIcon:"_config-icon_iaxr2_1",settingsGroup:"_settings-group_iaxr2_6",settingsGroupTitle:"_settings-group-title_iaxr2_9",settingsGroupContent:"_settings-group-content_iaxr2_12",row:"_row_iaxr2_18",check:"_check_iaxr2_26"};async function Tg(){Ye("即将刷新网页"),await jr(500),location.reload()}function iO(){if(window.confirm("确定?"))return A1(),Tg()}function oO({show:e,onHide:t}){const{pureRecommend:r,usePcDesktopApi:n}=er();return W(hs,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[W("div",{className:lt.modalHeader,children:[W("div",{className:lt.modalTitle,children:[L(vr,{name:"Config",className:ve.configIcon}),"设置项"]}),L("div",{className:"space",style:{flex:1}}),L(gs,{onClick:t})]}),W("main",{className:lt.modalBody,children:[W("div",{className:ve.settingsGroup,children:[L("div",{className:ve.settingsGroupTitle,children:"接口切换"}),W("div",{className:J(ve.settingsGroupContent),children:[W(Xc.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:i=>{const o=i.target.value;De.usePcDesktopApi=o==="desktop"},children:[L(Xc.Button,{value:"desktop",children:"使用桌面端接口"}),L(Xc.Button,{value:"app",children:"使用 App 端接口"})]}),!n&&L("div",{className:ve.row,style:{marginTop:5},children:L(Pg,{})})]})]}),W("div",{className:ve.settingsGroup,children:[L("div",{className:ve.settingsGroupTitle,children:"开关"}),W("div",{className:J(ve.settingsGroupContent,ve.row),children:[L(sn,{configKey:"pureRecommend",label:"开启纯推荐模式",className:ve.check,extraAction:Tg}),L(sn,{configKey:"initialShowMore",label:"自动查看更多",className:ve.check,extraAction:i=>{i&&Ye("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框")}}),L(sn,{configKey:"useNarrowMode",label:"启用居中模式(居中两列)",className:ve.check})]})]}),W("div",{className:ve.settingsGroup,children:[L("div",{className:ve.settingsGroupTitle,children:"高级"}),W("div",{className:J(ve.settingsGroupContent),children:[L("div",{className:ve.row,children:L(on,{onClick:iO,danger:!0,children:"恢复默认设置"})}),L("div",{className:ve.row,style:{marginTop:10},children:L(sn,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:ve.check})})]})]}),W("div",{className:ve.settingsGroup,children:[L("div",{className:ve.settingsGroupTitle,children:"帮助"}),L("div",{className:J(ve.settingsGroupContent),children:L("div",{className:ve.row,children:W(wg,{size:"small",children:[L(on,{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:"查看可用的快捷键"}),Og]})})})]})]})]})}var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});var kg=Jc.useSticky=void 0;const Zc=E;function aO(){const e=(0,Zc.useRef)(null),[t,r]=(0,Zc.useState)(!1);return(0,Zc.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,o=parseInt(getComputedStyle(e.current).top),a=i<=o;a&&!t?r(!0):!a&&t&&r(!1)}return n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),()=>{document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n)}},[t]),[e,t]}kg=Jc.useSticky=aO;const Ag={expandBtn:"_expand-btn_wdzp9_1",expanded:"_expanded_wdzp9_12"},sO=E.forwardRef(function({children:t},r){const[n,i]=kf(!1);E.useImperativeHandle(r,()=>i,[i]);const o=L("button",{className:J("primary-btn",Ag.expandBtn),onClick:i.toggle,children:L("svg",{className:J({[Ag.expanded]:n}),children:L("use",{xlinkHref:"#widget-arrow"})})});return W(dr,{children:[o,n&&t]})}),di={modalMask:"_modal-mask_juq7d_1",narrowMode:"_narrow-mode_juq7d_1",modal:"_modal_juq7d_1",modalHeader:"_modal-header_juq7d_21",modalBody:"_modal-body_juq7d_22",btnRefresh:"_btn-refresh_juq7d_25"},cO=E.memo(function({show:t,onHide:r}){const n=E.useRef(null),i=E.useRef(null),{useNarrowMode:o}=er(),a=E.useMemo(()=>({[di.narrowMode]:o}),[o]),s=he(()=>{var l;return(l=i.current)==null?void 0:l.refresh()}),c=he(()=>{n.current&&(n.current.scrollTop=0)});return W(hs,{show:t,onHide:r,clsModalMask:J(a),clsModal:J(di.modal,a),children:[W("div",{className:J(lt.modalHeader,di.modalHeader),children:[L("div",{className:lt.modalTitle,children:"推荐"}),L("div",{className:"space",style:{flex:1}}),L(sO,{children:L(nO,{})}),W("button",{className:`primary-btn roll-btn ${di.btnRefresh}`,onClick:s,children:[L("svg",{children:L("use",{xlinkHref:"#widget-roll"})}),L("span",{children:"换一换"})]}),L(gs,{onClick:r})]}),L("div",{className:J(lt.modalBody,di.modalBody),ref:n,children:L(vd,{ref:i,shortcutEnabled:t,onScrollToTop:c,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),Fg={btn:Dr`
    padding: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
  `,icon:Dr`
    svg {
      width: 14px;
      height: 14px;
    }
  `},cn=Fn({modalFeedVisible:De.initialShowMore,modalConfigVisible:!1}),lO=function(){return Ir(cn)},uO=()=>{cn.modalFeedVisible=!0},fO=()=>{cn.modalFeedVisible=!1},dO=()=>{cn.modalConfigVisible=!0},hO=()=>{cn.modalConfigVisible=!1};function Mg({onRefresh:e}){const{accessKey:t,pureRecommend:r,usePcDesktopApi:n}=er(),{modalFeedVisible:i,modalConfigVisible:o}=Ir(cn),[a,s]=kg();return W(dr,{children:[W("div",{ref:a,className:"area-header",css:[Dr`
            margin-bottom: 0;
            height: 50px;
          `,r&&Dr`
              position: sticky;
              top: ${af}px;
              z-index: 1000;
            `,r&&s&&Dr`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[W("div",{className:"left",children:[L("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),L("svg",{className:"icon",children:L("use",{xlinkHref:"#channel-cinephile"})}),L("a",{className:"title",href:"#",children:L("span",{children:"推荐"})})]}),W("div",{className:"right",children:[!n&&!t&&L(Pg,{style:{marginLeft:5}}),L("button",{className:"primary-btn",css:Fg.btn,onClick:dO,children:L(vr,{name:"Config",css:Fg.icon})}),W("button",{className:"primary-btn roll-btn",onClick:e,children:[L("svg",{style:{transform:"rotate(0deg)"},children:L("use",{xlinkHref:"#widget-roll"})}),L("span",{children:"换一换"})]}),!r&&W("button",{className:"primary-btn see-more",onClick:uO,children:[L("span",{children:"查看更多"}),L("svg",{children:L("use",{xlinkHref:"#widget-arrow"})})]})]})]}),L(cO,{show:i,onHide:fO}),L(oO,{show:o,onHide:hO})]})}const gO={grid:Dr`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function pO(){const{useNarrowMode:e}=er(),{modalFeedVisible:t}=lO(),r=E.useRef(null),n=he(()=>{var o;return(o=r.current)==null?void 0:o.refresh()}),i=he(()=>{document.documentElement.scrollTop=0});return W("section",{"data-area":"推荐",children:[L(Mg,{onRefresh:n}),L(vd,{ref:r,css:[e&&gO.grid,"",""],shortcutEnabled:!t,infiteScrollUseWindow:!0,onScrollToTop:i})]})}function mO(){const e=E.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Mn(),r=E.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=Tf(()=>rC(r));return o&&console.error(o.stack||o),W("section",{"data-area":"推荐",children:[L(Mg,{onRefresh:a}),L("div",{className:J(Rs,gd,{[Ns]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(s=>L(ws,{},s)):n.map(s=>L(ws,{item:s},s.uniqId))})]})}const vO=10*1e3,bO=200;async function Lg(e,t){let r=[];const n=()=>{r=Array.from(document.querySelectorAll(e))};n();const i=performance.now();for(;!r.length&&performance.now()-i<vO;)await jr(bO),n();if(!r.length){console.log("[bilibili-app-recommend]: tryAction timeout, selector = %s",e);return}for(const o of r)await Promise.resolve(t(o))}function Qc(e){return Lg(e,t=>t.remove())}function Rg({children:e}){const t=qa();return L(WE,{theme:{algorithm:t?vg.darkAlgorithm:vg.defaultAlgorithm,token:{colorPrimary:"#ff6699"}},children:e})}(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return yO()})();async function yO(){return Qc(".adblock-tips"),Lg("html.gray",e=>e.classList.remove("gray")),De.pureRecommend?SO():wO()}async function wO(){const t=Date.now()+1e4;let r=null;for(;;){if(document.querySelector(".bili-layout > section.bili-grid")){const o=document.querySelector(".bili-layout > section.bili-grid");r=a=>o==null?void 0:o.insertAdjacentElement("afterend",a);break}if(Mn()&&document.querySelector(".bili-feed4-layout")){r=o=>{var a;return(a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}if(Date.now()>t)break;await jr(200)}if(!r){console.error("[bilibili-app-recommend]: init fail");return}const n=document.createElement("section");r(n),Ji(n).render(L(Rg,{children:L(mO,{})}))}async function SO(){var i,o;Mn()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Qc(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),Qc(".bili-footer"));const e=document.createElement("div");e.classList.add(Mn()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const r=document.createElement("section");e==null||e.appendChild(r),Ji(r).render(L(Rg,{children:L(pO,{})}))}})(React,ReactDOM,axios,axiosGmxhrAdapter);