bilibili-app-recommend

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

目前为 2022-11-29 提交的版本。查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.6.4
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://github.com/magicdawn/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
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// ==/UserScript==

(i=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=i,document.head.appendChild(e)})(`.primary-btn[disabled]:active,.primary-btn[disabled]:hover{cursor:wait;background-color:inherit}._modal-mask_1fjgs_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_1fjgs_1{width:500px;max-height:calc(80vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1fjgs_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1fjgs_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1fjgs_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1fjgs_42{margin-left:10px}._btn-close_1fjgs_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1fjgs_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_g0in4_1{width:500px}._title-desc_g0in4_4{margin-left:5px;font-size:40%}._reason-list_g0in4_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_g0in4_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_g0in4_8{border:1px solid #333}._reason-no_g0in4_29{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:#fb7299;color:#fff}._tips_g0in4_43{margin-top:20px;display:flex;align-items:center}._bili-video-card_1a93a_1{position:relative}._image-wrapper_1a93a_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_1a93a_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_1a93a_8 ._preview-card-inner_1a93a_21{width:100%;height:100%}._watch-later_1a93a_25{z-index:3}._badge_1a93a_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_1a93a_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_1a93a_51{color:default}._btn-dislike_1a93a_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_1a93a_54 ._btn-dislike-icon_1a93a_69{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_1a93a_54 ._btn-dislike-tip_1a93a_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_1a93a_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_1a93a_91{border:1px solid #333}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-icon_1a93a_122{margin-bottom:5px}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-reason_1a93a_125{font-size:20px;text-align:center}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-desc_1a93a_129{font-size:16px;text-align:center}._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133{border-top:1px solid #333}._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133 button{font-size:16px;color:inherit;display:flex;align-items:center}._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}._checkbox_5cp8u_1{margin-top:1px;cursor:pointer;outline:none}._checkbox_5cp8u_1+label{margin-left:2px;user-select:none;cursor:pointer}._config-icon_1jab1_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1jab1_6{margin-bottom:10px}._settings-group_1jab1_6 ._settings-group-title_1jab1_9{font-size:2em}._settings-group_1jab1_6 ._settings-group-content_1jab1_12{color:default}._settings-group_1jab1_6 ._settings-group-content_1jab1_12 button:first-child{margin-left:0}._row_1jab1_18{display:flex;align-items:center}._check_1jab1_22{margin-left:20px}._check_1jab1_22:first-child{margin-left:0}._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_1as61_1._narrow-mode_1as61_1{background-color:#000000e6}._modal_1as61_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}body.dark ._modal_1as61_1{border:1px solid #fb7299}._modal_1as61_1._narrow-mode_1as61_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_1as61_1._narrow-mode_1as61_1{border:none}._modal-header_1as61_21,._modal-body_1as61_22{padding-right:15px}body.dark ._btn-refresh_1as61_25{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}
`);

var dy=Object.defineProperty;var hy=(g,me,He)=>me in g?dy(g,me,{enumerable:!0,configurable:!0,writable:!0,value:He}):g[me]=He;var Xr=(g,me,He)=>(hy(g,typeof me!="symbol"?me+"":me,He),He);(function(g,me,He,ac){"use strict";const Kt=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function cc(e){if(e&&e.__esModule)return 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 se=Kt(g),Gi=cc(g),uc=Kt(me),Jr=Kt(He),lc=Kt(ac);var fc=typeof global=="object"&&global&&global.Object===Object&&global;const Yi=fc;var dc=typeof self=="object"&&self&&self.Object===Object&&self,hc=Yi||dc||Function("return this")();const ge=hc;var pc=ge.Symbol;const ve=pc;var Vi=Object.prototype,mc=Vi.hasOwnProperty,gc=Vi.toString,bt=ve?ve.toStringTag:void 0;function vc(e){var t=mc.call(e,bt),r=e[bt];try{e[bt]=void 0;var n=!0}catch{}var i=gc.call(e);return n&&(t?e[bt]=r:delete e[bt]),i}var yc=Object.prototype,bc=yc.toString;function _c(e){return bc.call(e)}var wc="[object Null]",Sc="[object Undefined]",Ki=ve?ve.toStringTag:void 0;function et(e){return e==null?e===void 0?Sc:wc:Ki&&Ki in Object(e)?vc(e):_c(e)}function tt(e){return e!=null&&typeof e=="object"}var Cc="[object Symbol]";function Xt(e){return typeof e=="symbol"||tt(e)&&et(e)==Cc}function kc(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 Ec=Array.isArray;const Ae=Ec;var Tc=1/0,Xi=ve?ve.prototype:void 0,Ji=Xi?Xi.toString:void 0;function Zr(e){if(typeof e=="string")return e;if(Ae(e))return kc(e,Zr)+"";if(Xt(e))return Ji?Ji.call(e):"";var t=e+"";return t=="0"&&1/e==-Tc?"-0":t}var xc=/\s/;function Oc(e){for(var t=e.length;t--&&xc.test(e.charAt(t)););return t}var Ac=/^\s+/;function Lc(e){return e&&e.slice(0,Oc(e)+1).replace(Ac,"")}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zi=0/0,Mc=/^[-+]0x[0-9a-f]+$/i,Pc=/^0b[01]+$/i,Rc=/^0o[0-7]+$/i,Dc=parseInt;function Qr(e){if(typeof e=="number")return e;if(Xt(e))return Zi;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lc(e);var r=Pc.test(e);return r||Rc.test(e)?Dc(e.slice(2),r?2:8):Mc.test(e)?Zi:+e}var Qi=1/0,Nc=17976931348623157e292;function Fc(e){if(!e)return e===0?e:0;if(e=Qr(e),e===Qi||e===-Qi){var t=e<0?-1:1;return t*Nc}return e===e?e:0}function qi(e){var t=Fc(e),r=t%1;return t===t?r?t-r:t:0}function jc(e){return e}var Ic="[object AsyncFunction]",Wc="[object Function]",zc="[object GeneratorFunction]",Bc="[object Proxy]";function es(e){if(!Fe(e))return!1;var t=et(e);return t==Wc||t==zc||t==Ic||t==Bc}var $c=ge["__core-js_shared__"];const qr=$c;var ts=function(){var e=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hc(e){return!!ts&&ts in e}var Uc=Function.prototype,Gc=Uc.toString;function Ue(e){if(e!=null){try{return Gc.call(e)}catch{}try{return e+""}catch{}}return""}var Yc=/[\\^$.*+?()[\]{}|]/g,Vc=/^\[object .+?Constructor\]$/,Kc=Function.prototype,Xc=Object.prototype,Jc=Kc.toString,Zc=Xc.hasOwnProperty,Qc=RegExp("^"+Jc.call(Zc).replace(Yc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qc(e){if(!Fe(e)||Hc(e))return!1;var t=es(e)?Qc:Vc;return t.test(Ue(e))}function eu(e,t){return e==null?void 0:e[t]}function Ge(e,t){var r=eu(e,t);return qc(r)?r:void 0}var tu=Ge(ge,"WeakMap");const en=tu;function ru(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)}var nu=800,iu=16,su=Date.now;function ou(e){var t=0,r=0;return function(){var n=su(),i=iu-(n-r);if(r=n,i>0){if(++t>=nu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function au(e){return function(){return e}}var cu=function(){try{var e=Ge(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Jt=cu;var uu=Jt?function(e,t){return Jt(e,"toString",{configurable:!0,enumerable:!1,value:au(t),writable:!0})}:jc,lu=ou(uu);const fu=lu;var du=9007199254740991,hu=/^(?:0|[1-9]\d*)$/;function tn(e,t){var r=typeof e;return t=t==null?du:t,!!t&&(r=="number"||r!="symbol"&&hu.test(e))&&e>-1&&e%1==0&&e<t}function pu(e,t,r){t=="__proto__"&&Jt?Jt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rn(e,t){return e===t||e!==e&&t!==t}var mu=Object.prototype,gu=mu.hasOwnProperty;function vu(e,t,r){var n=e[t];(!(gu.call(e,t)&&rn(n,r))||r===void 0&&!(t in e))&&pu(e,t,r)}var rs=Math.max;function yu(e,t,r){return t=rs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=rs(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),ru(e,this,a)}}var bu=9007199254740991;function nn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bu}function _u(e){return e!=null&&nn(e.length)&&!es(e)}var wu=Object.prototype;function Su(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wu;return e===r}function Cu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ku="[object Arguments]";function ns(e){return tt(e)&&et(e)==ku}var is=Object.prototype,Eu=is.hasOwnProperty,Tu=is.propertyIsEnumerable,xu=ns(function(){return arguments}())?ns:function(e){return tt(e)&&Eu.call(e,"callee")&&!Tu.call(e,"callee")};const sn=xu;function Ou(){return!1}var ss=typeof exports=="object"&&exports&&!exports.nodeType&&exports,os=ss&&typeof module=="object"&&module&&!module.nodeType&&module,Au=os&&os.exports===ss,as=Au?ge.Buffer:void 0,Lu=as?as.isBuffer:void 0,Mu=Lu||Ou;const on=Mu;var Pu="[object Arguments]",Ru="[object Array]",Du="[object Boolean]",Nu="[object Date]",Fu="[object Error]",ju="[object Function]",Iu="[object Map]",Wu="[object Number]",zu="[object Object]",Bu="[object RegExp]",$u="[object Set]",Hu="[object String]",Uu="[object WeakMap]",Gu="[object ArrayBuffer]",Yu="[object DataView]",Vu="[object Float32Array]",Ku="[object Float64Array]",Xu="[object Int8Array]",Ju="[object Int16Array]",Zu="[object Int32Array]",Qu="[object Uint8Array]",qu="[object Uint8ClampedArray]",el="[object Uint16Array]",tl="[object Uint32Array]",U={};U[Vu]=U[Ku]=U[Xu]=U[Ju]=U[Zu]=U[Qu]=U[qu]=U[el]=U[tl]=!0,U[Pu]=U[Ru]=U[Gu]=U[Du]=U[Yu]=U[Nu]=U[Fu]=U[ju]=U[Iu]=U[Wu]=U[zu]=U[Bu]=U[$u]=U[Hu]=U[Uu]=!1;function rl(e){return tt(e)&&nn(e.length)&&!!U[et(e)]}function nl(e){return function(t){return e(t)}}var cs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_t=cs&&typeof module=="object"&&module&&!module.nodeType&&module,il=_t&&_t.exports===cs,an=il&&Yi.process,sl=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||an&&an.binding&&an.binding("util")}catch{}}();const us=sl;var ls=us&&us.isTypedArray,ol=ls?nl(ls):rl;const fs=ol;var al=Object.prototype,cl=al.hasOwnProperty;function ul(e,t){var r=Ae(e),n=!r&&sn(e),i=!r&&!n&&on(e),s=!r&&!n&&!i&&fs(e),o=r||n||i||s,a=o?Cu(e.length,String):[],u=a.length;for(var c in e)(t||cl.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tn(c,u)))&&a.push(c);return a}function ll(e,t){return function(r){return e(t(r))}}var fl=ll(Object.keys,Object);const dl=fl;var hl=Object.prototype,pl=hl.hasOwnProperty;function ml(e){if(!Su(e))return dl(e);var t=[];for(var r in Object(e))pl.call(e,r)&&r!="constructor"&&t.push(r);return t}function gl(e){return _u(e)?ul(e):ml(e)}var vl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yl=/^\w*$/;function bl(e,t){if(Ae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Xt(e)?!0:yl.test(e)||!vl.test(e)||t!=null&&e in Object(t)}var _l=Ge(Object,"create");const wt=_l;function wl(){this.__data__=wt?wt(null):{},this.size=0}function Sl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Cl="__lodash_hash_undefined__",kl=Object.prototype,El=kl.hasOwnProperty;function Tl(e){var t=this.__data__;if(wt){var r=t[e];return r===Cl?void 0:r}return El.call(t,e)?t[e]:void 0}var xl=Object.prototype,Ol=xl.hasOwnProperty;function Al(e){var t=this.__data__;return wt?t[e]!==void 0:Ol.call(t,e)}var Ll="__lodash_hash_undefined__";function Ml(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wt&&t===void 0?Ll:t,this}function Ye(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])}}Ye.prototype.clear=wl,Ye.prototype.delete=Sl,Ye.prototype.get=Tl,Ye.prototype.has=Al,Ye.prototype.set=Ml;function Pl(){this.__data__=[],this.size=0}function Zt(e,t){for(var r=e.length;r--;)if(rn(e[r][0],t))return r;return-1}var Rl=Array.prototype,Dl=Rl.splice;function Nl(e){var t=this.__data__,r=Zt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Dl.call(t,r,1),--this.size,!0}function Fl(e){var t=this.__data__,r=Zt(t,e);return r<0?void 0:t[r][1]}function jl(e){return Zt(this.__data__,e)>-1}function Il(e,t){var r=this.__data__,n=Zt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Le(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])}}Le.prototype.clear=Pl,Le.prototype.delete=Nl,Le.prototype.get=Fl,Le.prototype.has=jl,Le.prototype.set=Il;var Wl=Ge(ge,"Map");const St=Wl;function zl(){this.size=0,this.__data__={hash:new Ye,map:new(St||Le),string:new Ye}}function Bl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qt(e,t){var r=e.__data__;return Bl(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $l(e){var t=Qt(this,e).delete(e);return this.size-=t?1:0,t}function Hl(e){return Qt(this,e).get(e)}function Ul(e){return Qt(this,e).has(e)}function Gl(e,t){var r=Qt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Me(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])}}Me.prototype.clear=zl,Me.prototype.delete=$l,Me.prototype.get=Hl,Me.prototype.has=Ul,Me.prototype.set=Gl;var Yl="Expected a function";function cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Yl);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(cn.Cache||Me),r}cn.Cache=Me;var Vl=500;function Kl(e){var t=cn(e,function(n){return r.size===Vl&&r.clear(),n}),r=t.cache;return t}var Xl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jl=/\\(\\)?/g,Zl=Kl(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xl,function(r,n,i,s){t.push(i?s.replace(Jl,"$1"):n||r)}),t});const Ql=Zl;function ds(e){return e==null?"":Zr(e)}function qt(e,t){return Ae(e)?e:bl(e,t)?[e]:Ql(ds(e))}var ql=1/0;function un(e){if(typeof e=="string"||Xt(e))return e;var t=e+"";return t=="0"&&1/e==-ql?"-0":t}function ef(e,t){t=qt(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[un(t[r++])];return r&&r==n?e:void 0}function hs(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ps=ve?ve.isConcatSpreadable:void 0;function tf(e){return Ae(e)||sn(e)||!!(ps&&e&&e[ps])}function ms(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=tf),i||(i=[]);++s<o;){var a=e[s];t>0&&r(a)?t>1?ms(a,t-1,r,n,i):hs(i,a):n||(i[i.length]=a)}return i}function rf(e){var t=e==null?0:e.length;return t?ms(e,1):[]}function nf(e){return fu(yu(e,void 0,rf),e+"")}var sf="Expected a function";function of(e,t){var r;if(typeof t!="function")throw new TypeError(sf);return e=qi(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function af(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 s=Array(i);++n<i;)s[n]=e[n+t];return s}function cf(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:af(e,t,r)}var uf="\\ud800-\\udfff",lf="\\u0300-\\u036f",ff="\\ufe20-\\ufe2f",df="\\u20d0-\\u20ff",hf=lf+ff+df,pf="\\ufe0e\\ufe0f",mf="\\u200d",gf=RegExp("["+mf+uf+hf+pf+"]");function ln(e){return gf.test(e)}function vf(e){return e.split("")}var gs="\\ud800-\\udfff",yf="\\u0300-\\u036f",bf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",wf=yf+bf+_f,Sf="\\ufe0e\\ufe0f",Cf="["+gs+"]",fn="["+wf+"]",dn="\\ud83c[\\udffb-\\udfff]",kf="(?:"+fn+"|"+dn+")",vs="[^"+gs+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",bs="[\\ud800-\\udbff][\\udc00-\\udfff]",Ef="\\u200d",_s=kf+"?",ws="["+Sf+"]?",Tf="(?:"+Ef+"(?:"+[vs,ys,bs].join("|")+")"+ws+_s+")*",xf=ws+_s+Tf,Of="(?:"+[vs+fn+"?",fn,ys,bs,Cf].join("|")+")",Af=RegExp(dn+"(?="+dn+")|"+Of+xf,"g");function Lf(e){return e.match(Af)||[]}function Mf(e){return ln(e)?Lf(e):vf(e)}function Pf(){this.__data__=new Le,this.size=0}function Rf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Df(e){return this.__data__.get(e)}function Nf(e){return this.__data__.has(e)}var Ff=200;function jf(e,t){var r=this.__data__;if(r instanceof Le){var n=r.__data__;if(!St||n.length<Ff-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Me(n)}return r.set(e,t),this.size=r.size,this}function je(e){var t=this.__data__=new Le(e);this.size=t.size}je.prototype.clear=Pf,je.prototype.delete=Rf,je.prototype.get=Df,je.prototype.has=Nf,je.prototype.set=jf;function If(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Wf(){return[]}var zf=Object.prototype,Bf=zf.propertyIsEnumerable,Ss=Object.getOwnPropertySymbols,$f=Ss?function(e){return e==null?[]:(e=Object(e),If(Ss(e),function(t){return Bf.call(e,t)}))}:Wf;const Hf=$f;function Uf(e,t,r){var n=t(e);return Ae(e)?n:hs(n,r(e))}function Cs(e){return Uf(e,gl,Hf)}var Gf=Ge(ge,"DataView");const hn=Gf;var Yf=Ge(ge,"Promise");const pn=Yf;var Vf=Ge(ge,"Set");const mn=Vf;var ks="[object Map]",Kf="[object Object]",Es="[object Promise]",Ts="[object Set]",xs="[object WeakMap]",Os="[object DataView]",Xf=Ue(hn),Jf=Ue(St),Zf=Ue(pn),Qf=Ue(mn),qf=Ue(en),Ve=et;(hn&&Ve(new hn(new ArrayBuffer(1)))!=Os||St&&Ve(new St)!=ks||pn&&Ve(pn.resolve())!=Es||mn&&Ve(new mn)!=Ts||en&&Ve(new en)!=xs)&&(Ve=function(e){var t=et(e),r=t==Kf?e.constructor:void 0,n=r?Ue(r):"";if(n)switch(n){case Xf:return Os;case Jf:return ks;case Zf:return Es;case Qf:return Ts;case qf:return xs}return t});const As=Ve;var ed=ge.Uint8Array;const Ls=ed;var td="__lodash_hash_undefined__";function rd(e){return this.__data__.set(e,td),this}function nd(e){return this.__data__.has(e)}function er(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Me;++t<r;)this.add(e[t])}er.prototype.add=er.prototype.push=rd,er.prototype.has=nd;function id(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 sd(e,t){return e.has(t)}var od=1,ad=2;function Ms(e,t,r,n,i,s){var o=r&od,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,p=r&ad?new er:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var m=e[f],y=t[f];if(n)var v=o?n(y,m,f,t,e,s):n(m,y,f,e,t,s);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!id(t,function(C,M){if(!sd(p,M)&&(m===C||i(m,C,r,n,s)))return p.push(M)})){d=!1;break}}else if(!(m===y||i(m,y,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function cd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function ud(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ld=1,fd=2,dd="[object Boolean]",hd="[object Date]",pd="[object Error]",md="[object Map]",gd="[object Number]",vd="[object RegExp]",yd="[object Set]",bd="[object String]",_d="[object Symbol]",wd="[object ArrayBuffer]",Sd="[object DataView]",Ps=ve?ve.prototype:void 0,gn=Ps?Ps.valueOf:void 0;function Cd(e,t,r,n,i,s,o){switch(r){case Sd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wd:return!(e.byteLength!=t.byteLength||!s(new Ls(e),new Ls(t)));case dd:case hd:case gd:return rn(+e,+t);case pd:return e.name==t.name&&e.message==t.message;case vd:case bd:return e==t+"";case md:var a=cd;case yd:var u=n&ld;if(a||(a=ud),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=fd,o.set(e,t);var l=Ms(a(e),a(t),n,i,s,o);return o.delete(e),l;case _d:if(gn)return gn.call(e)==gn.call(t)}return!1}var kd=1,Ed=Object.prototype,Td=Ed.hasOwnProperty;function xd(e,t,r,n,i,s){var o=r&kd,a=Cs(e),u=a.length,c=Cs(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var d=a[f];if(!(o?d in t:Td.call(t,d)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var y=!0;s.set(e,t),s.set(t,e);for(var v=o;++f<u;){d=a[f];var C=e[d],M=t[d];if(n)var O=o?n(M,C,d,t,e,s):n(C,M,d,e,t,s);if(!(O===void 0?C===M||i(C,M,r,n,s):O)){y=!1;break}v||(v=d=="constructor")}if(y&&!v){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof _=="function"&&_ instanceof _)&&(y=!1)}return s.delete(e),s.delete(t),y}var Od=1,Rs="[object Arguments]",Ds="[object Array]",tr="[object Object]",Ad=Object.prototype,Ns=Ad.hasOwnProperty;function Ld(e,t,r,n,i,s){var o=Ae(e),a=Ae(t),u=o?Ds:As(e),c=a?Ds:As(t);u=u==Rs?tr:u,c=c==Rs?tr:c;var l=u==tr,f=c==tr,d=u==c;if(d&&on(e)){if(!on(t))return!1;o=!0,l=!1}if(d&&!l)return s||(s=new je),o||fs(e)?Ms(e,t,r,n,i,s):Cd(e,t,u,r,n,i,s);if(!(r&Od)){var p=l&&Ns.call(e,"__wrapped__"),m=f&&Ns.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,v=m?t.value():t;return s||(s=new je),i(y,v,r,n,s)}}return d?(s||(s=new je),xd(e,t,r,n,i,s)):!1}function Fs(e,t,r,n,i){return e===t?!0:e==null||t==null||!tt(e)&&!tt(t)?e!==e&&t!==t:Ld(e,t,r,n,Fs,i)}function Md(e,t){return e!=null&&t in Object(e)}function Pd(e,t,r){t=qt(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=un(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&nn(i)&&tn(o,i)&&(Ae(e)||sn(e)))}function Rd(e,t){return e!=null&&Pd(e,t,Md)}function Dd(e){return function(t){return t==null?void 0:t[e]}}var Nd=function(){return ge.Date.now()};const vn=Nd;var Fd="Expected a function",jd=Math.max,Id=Math.min;function js(e,t,r){var n,i,s,o,a,u,c=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Fd);t=Qr(t)||0,Fe(r)&&(l=!!r.leading,f="maxWait"in r,s=f?jd(Qr(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function p(b){var E=n,R=i;return n=i=void 0,c=b,o=e.apply(R,E),o}function m(b){return c=b,a=setTimeout(C,t),l?p(b):o}function y(b){var E=b-u,R=b-c,I=t-E;return f?Id(I,s-R):I}function v(b){var E=b-u,R=b-c;return u===void 0||E>=t||E<0||f&&R>=s}function C(){var b=vn();if(v(b))return M(b);a=setTimeout(C,y(b))}function M(b){return a=void 0,d&&n?p(b):(n=i=void 0,o)}function O(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function x(){return a===void 0?o:M(vn())}function _(){var b=vn(),E=v(b);if(n=arguments,i=this,u=b,E){if(a===void 0)return m(u);if(f)return clearTimeout(a),a=setTimeout(C,t),p(u)}return a===void 0&&(a=setTimeout(C,t)),o}return _.cancel=O,_.flush=x,_}function Wd(e,t){return Fs(e,t)}function zd(e,t,r,n){if(!Fe(e))return e;t=qt(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=un(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=n?n(l,u,a):void 0,c===void 0&&(c=Fe(l)?l:tn(t[i+1])?[]:{})}vu(a,u,c),a=a[u]}return e}function Bd(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],a=ef(e,o);r(a,o)&&zd(s,qt(o,e),a)}return s}function $d(e){return of(2,e)}var Hd=9007199254740991,Ud=Math.floor;function Is(e,t){var r="";if(!e||t<1||t>Hd)return r;do t%2&&(r+=e),t=Ud(t/2),t&&(e+=e);while(t);return r}var Gd=Dd("length");const Yd=Gd;var Ws="\\ud800-\\udfff",Vd="\\u0300-\\u036f",Kd="\\ufe20-\\ufe2f",Xd="\\u20d0-\\u20ff",Jd=Vd+Kd+Xd,Zd="\\ufe0e\\ufe0f",Qd="["+Ws+"]",yn="["+Jd+"]",bn="\\ud83c[\\udffb-\\udfff]",qd="(?:"+yn+"|"+bn+")",zs="[^"+Ws+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",$s="[\\ud800-\\udbff][\\udc00-\\udfff]",eh="\\u200d",Hs=qd+"?",Us="["+Zd+"]?",th="(?:"+eh+"(?:"+[zs,Bs,$s].join("|")+")"+Us+Hs+")*",rh=Us+Hs+th,nh="(?:"+[zs+yn+"?",yn,Bs,$s,Qd].join("|")+")",Gs=RegExp(bn+"(?="+bn+")|"+nh+rh,"g");function ih(e){for(var t=Gs.lastIndex=0;Gs.test(e);)++t;return t}function Ys(e){return ln(e)?ih(e):Yd(e)}var sh=Math.ceil;function oh(e,t){t=t===void 0?" ":Zr(t);var r=t.length;if(r<2)return r?Is(t,e):t;var n=Is(t,sh(e/Ys(t)));return ln(t)?cf(Mf(n),0,e).join(""):n.slice(0,e)}function ah(e,t,r){e=ds(e),t=qi(t);var n=t?Ys(e):0;return t&&n<t?oh(t-n,r)+e:e}function ch(e,t){return Bd(e,t,function(r,n){return Rd(e,n)})}var uh=nf(function(e,t){return e==null?{}:ch(e,t)});const Vs=uh;var lh="Expected a function";function fh(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(lh);return Fe(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),js(e,t,{leading:n,maxWait:t,trailing:i})}const _n=Symbol(),dh=Symbol(),wn=Symbol();let hh=(e,t)=>new Proxy(e,t);const Sn=Object.getPrototypeOf,Cn=new WeakMap,Ks=e=>e&&(Cn.has(e)?Cn.get(e):Sn(e)===Object.prototype||Sn(e)===Array.prototype),Xs=e=>typeof e=="object"&&e!==null,Js=new WeakMap,Zs=e=>e[wn]||e,Qs=(e,t,r)=>{if(!Ks(e))return e;const n=Zs(e),i=(o=>Object.isFrozen(o)||Object.values(Object.getOwnPropertyDescriptors(o)).some(a=>!a.writable))(n);let s=r&&r.get(n);return s&&s[1].f===i||(s=((o,a)=>{const u={f:a};let c=!1;const l=(d,p)=>{if(!c){let m=u.a.get(o);m||(m=new Set,u.a.set(o,m)),p&&m.has(_n)||m.add(d)}},f={get:(d,p)=>p===wn?o:(l(p),Qs(d[p],u.a,u.c)),has:(d,p)=>p===dh?(c=!0,u.a.delete(o),!0):(l(p),p in d),getOwnPropertyDescriptor:(d,p)=>(l(p,!0),Object.getOwnPropertyDescriptor(d,p)),ownKeys:d=>(l(_n),Reflect.ownKeys(d))};return a&&(f.set=f.deleteProperty=()=>!1),[f,u]})(n,i),s[1].p=hh(i?(o=>{let a=Js.get(o);if(!a){if(Array.isArray(o))a=Array.from(o);else{const u=Object.getOwnPropertyDescriptors(o);Object.values(u).forEach(c=>{c.configurable=!0}),a=Object.create(Sn(o),u)}Js.set(o,a)}return a})(n):n,s[0]),r&&r.set(n,s)),s[1].a=t,s[1].c=r,s[1].p},ph=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((i,s)=>i!==n[s])},qs=(e,t,r,n)=>{if(Object.is(e,t))return!1;if(!Xs(e)||!Xs(t))return!0;const i=r.get(Zs(e));if(!i)return!0;if(n){const o=n.get(e);if(o&&o.n===t)return o.g;n.set(e,{n:t,g:!1})}let s=null;for(const o of i){const a=o===_n?ph(e,t):qs(e[o],t[o],r,n);if(a!==!0&&a!==!1||(s=a),s)break}return s===null&&(s=!0),n&&n.set(e,{n:t,g:s}),s},eo=e=>Ks(e)&&e[wn]||null,to=(e,t=!0)=>{Cn.set(e,t)};var mh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vh(e){var t=e.default;if(typeof t=="function"){var r=function(){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 ro={exports:{}},no={};/**
 * @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 rt=se.default;function yh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bh=typeof Object.is=="function"?Object.is:yh,_h=rt.useState,wh=rt.useEffect,Sh=rt.useLayoutEffect,Ch=rt.useDebugValue;function kh(e,t){var r=t(),n=_h({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return Sh(function(){i.value=r,i.getSnapshot=t,kn(i)&&s({inst:i})},[e,r,t]),wh(function(){return kn(i)&&s({inst:i}),e(function(){kn(i)&&s({inst:i})})},[e]),Ch(r),r}function kn(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bh(e,r)}catch{return!0}}function Eh(e,t){return t()}var Th=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Eh:kh;no.useSyncExternalStore=rt.useSyncExternalStore!==void 0?rt.useSyncExternalStore:Th,function(e){e.exports=no}(ro);const xh=gh(ro.exports),En=e=>typeof e=="object"&&e!==null,le=Symbol(),Tn=new WeakSet,Oh=(e=Object.is,t=(c,l)=>new Proxy(c,l),r=c=>En(c)&&!Tn.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),n=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},i=new WeakMap,s=(c,l,f,d=n)=>{const p=i.get(l);if((p==null?void 0:p[0])===f)return p[1];const m=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return to(m,!0),i.set(l,[f,m]),Reflect.ownKeys(c).forEach(y=>{const v=Reflect.get(c,y,l);Tn.has(v)?(to(v,!1),m[y]=v):v instanceof Promise?Object.defineProperty(m,y,{get(){return d(v)}}):v!=null&&v[le]?m[y]=xn(v,d):m[y]=v}),Object.freeze(m)},o=new WeakMap,a=[1],u=c=>{if(!En(c))throw new Error("object required");const l=o.get(c);if(l)return l;let f=a[0];const d=new Set,p=(x,_=++a[0])=>{f!==_&&(f=_,d.forEach(b=>b(x,_)))},m=new Map,y=x=>{let _=m.get(x);return _||(_=(b,E)=>{const R=[...b];R[1]=[x,...R[1]],p(R,E)},m.set(x,_)),_},v=x=>{const _=m.get(x);return m.delete(x),_},C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),O=t(C,{get(x,_,b){return _===le?[x,b,f,s,d]:Reflect.get(x,_,b)},deleteProperty(x,_){var b;const E=Reflect.get(x,_),R=(b=E==null?void 0:E[le])==null?void 0:b[4];R&&R.delete(v(_));const I=Reflect.deleteProperty(x,_);return I&&p(["delete",[_],E]),I},set(x,_,b,E){var R,I;const j=Reflect.has(x,_),P=Reflect.get(x,_,E);if(j&&e(P,b))return!0;const F=(R=P==null?void 0:P[le])==null?void 0:R[4];F&&F.delete(v(_)),En(b)&&(b=eo(b)||b);let k=b;return(I=Object.getOwnPropertyDescriptor(x,_))!=null&&I.set||(b instanceof Promise?b.then(w=>{b.status="fulfilled",b.value=w,p(["resolve",[_],w])}).catch(w=>{b.status="rejected",b.reason=w,p(["reject",[_],w])}):(!(b!=null&&b[le])&&r(b)&&(k=nt(b)),k!=null&&k[le]&&k[le][4].add(y(_)))),Reflect.set(x,_,k,E),p(["set",[_],b,P]),!0}});return o.set(c,O),Reflect.ownKeys(c).forEach(x=>{const _=Object.getOwnPropertyDescriptor(c,x);_.get||_.set?Object.defineProperty(C,x,_):O[x]=c[x]}),O})=>[u,le,Tn,e,t,r,n,i,s,o,a],[Ah]=Oh();function nt(e={}){return Ah(e)}function io(e,t,r){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[le])&&console.warn("Please use proxy object");let n;const i=[],s=e[le][4],o=a=>{if(i.push(a),r){t(i.splice(0));return}n||(n=Promise.resolve().then(()=>{n=void 0,s.has(o)&&t(i.splice(0))}))};return s.add(o),()=>s.delete(o)}function xn(e,t){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[le])&&console.warn("Please use proxy object");const[r,n,i,s]=e[le];return s(r,n,i,t)}const{use:so}=se.default,{useSyncExternalStore:Lh}=xh,Mh=(e,t)=>{const r=[],n=new WeakSet,i=(s,o)=>{if(n.has(s))return;let a;typeof s=="object"&&s!==null&&(n.add(s),a=t.get(eo(s)||s)),a?a.forEach(u=>{"value"in(Object.getOwnPropertyDescriptor(s,u)||{})&&i(s[u],o?[...o,u]:[u])}):o&&r.push(o)};return i(e),r},Ph=(e,t)=>{const r=g.useRef();g.useEffect(()=>{r.current=Mh(e,t)}),g.useDebugValue(r.current)};function it(e,t){const r=t==null?void 0:t.sync,n=g.useRef(),i=g.useRef();let s=!0;const o=Lh(g.useCallback(c=>{const l=io(e,c,r);return c(),l},[e,r]),()=>{const c=xn(e,so);try{if(!s&&n.current&&i.current&&!qs(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>xn(e,so));s=!1;const a=new WeakMap;g.useEffect(()=>{n.current=o,i.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Ph(o,a);const u=g.useMemo(()=>new WeakMap,[]);return Qs(o,a,u)}const oo={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1},fe=nt(oo),ao=Object.keys(oo),Ie=function(){return it(fe)},co="bilibili-app-recommend.config";function Rh(){const e=GM_getValue(co);e&&typeof e=="object"&&Object.assign(fe,Vs(e,ao)),io(fe,()=>{Dh()})}function Dh(){const e=Vs(fe,ao);GM_setValue(co,e)}function Nh(e){Object.assign(fe,e)}Rh();var Ct={exports:{}};const Fh=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),uo=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},lo=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:s}={})=>{if(s&&s.aborted)return Promise.reject(uo());let o,a,u;const c=e||clearTimeout,l=()=>{c(o),u(uo())},f=()=>{s&&s.removeEventListener("abort",l)},d=new Promise((p,m)=>{a=()=>{f(),r?p(i):m(i)},u=m,o=(t||setTimeout)(a,n)});return s&&s.addEventListener("abort",l,{once:!0}),d.clear=()=>{c(o),o=null,a()},d},fo=e=>{const t=lo({...e,willResolve:!0});return t.reject=lo({...e,willResolve:!1}),t.range=(r,n,i)=>t(Fh(r,n),i),t},On=fo();On.createWithTimers=fo,Ct.exports=On,Ct.exports.default=On;var rr,ho=uc.default;rr=ho.createRoot,ho.hydrateRoot;const gy="",kt=$d(()=>!!document.querySelectorAll(".bili-feed4").length),po=document.querySelector(".bili-header__bar"),mo=Boolean(po&&window.getComputedStyle(po).display==="none")?50:64,go=()=>document.body.classList.contains("dark"),vo=nt({value:go()});function An(){return it(vo).value}const nr=new MutationObserver(function(){vo.value=go()});nr.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{nr==null||nr.disconnect()});var Ln={},re={};Object.defineProperty(re,"__esModule",{value:!0}),re.DEFAULT_ICON_CONFIGS=void 0,re.IconConverter=So,re.IconProvider=void 0,re.IconWrapper=Uh;var ir=jh(se.default);function yo(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(yo=function(n){return n?r:t})(e)}function jh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=yo(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var Ih=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function bo(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 _o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bo(Object(r),!0).forEach(function(n){Wh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zh(e,t){if(e==null)return{};var r=Bh(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function Bh(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var wo={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"};re.DEFAULT_ICON_CONFIGS=wo;function $h(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function So(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],s=t.theme||r.theme;switch(s){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 Co=(0,ir.createContext)(wo),Hh=Co.Provider;re.IconProvider=Hh;function Uh(e,t,r){return function(n){var i=n.size,s=n.strokeWidth,o=n.strokeLinecap,a=n.strokeLinejoin,u=n.theme,c=n.fill,l=n.className,f=n.spin,d=zh(n,Ih),p=(0,ir.useContext)(Co),m=(0,ir.useMemo)($h,[]),y=So(m,{size:i,strokeWidth:s,strokeLinecap:o,strokeLinejoin:a,theme:u,fill:c},p),v=[p.prefix+"-icon"];return v.push(p.prefix+"-icon-"+e),t&&p.rtl&&v.push(p.prefix+"-icon-rtl"),f&&v.push(p.prefix+"-icon-spin"),l&&v.push(l),ir.default.createElement("span",_o(_o({},d),{},{className:v.join(" ")}),r(y))}}Object.defineProperty(Ln,"__esModule",{value:!0});var ko=Ln.default=void 0,Mn=Yh(se.default),Gh=re;function Yh(e){return e&&e.__esModule?e:{default:e}}var Vh=(0,Gh.IconWrapper)("close",!1,function(e){return Mn.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Mn.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mn.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});ko=Ln.default=Vh;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});var Eo=Pn.default=void 0,Rn=Xh(se.default),Kh=re;function Xh(e){return e&&e.__esModule?e:{default:e}}var Jh=(0,Kh.IconWrapper)("config",!1,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 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Rn.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}))});Eo=Pn.default=Jh;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});var To=Dn.default=void 0,Et=Qh(se.default),Zh=re;function Qh(e){return e&&e.__esModule?e:{default:e}}var qh=(0,Zh.IconWrapper)("distraught-face",!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,strokeLinejoin:e.strokeLinejoin}),Et.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}),Et.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Et.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});To=Dn.default=qh;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});var xo=Nn.default=void 0,Tt=tp(se.default),ep=re;function tp(e){return e&&e.__esModule?e:{default:e}}var rp=(0,ep.IconWrapper)("info",!0,function(e){return Tt.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Tt.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}),Tt.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]}),Tt.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tt.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});xo=Nn.default=rp;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});var Oo=Fn.default=void 0,jn=ip(se.default),np=re;function ip(e){return e&&e.__esModule?e:{default:e}}var sp=(0,np.IconWrapper)("loading",!0,function(e){return jn.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},jn.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}),jn.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}))});Oo=Fn.default=sp;var In={};Object.defineProperty(In,"__esModule",{value:!0});var Ao=In.default=void 0,ye=ap(se.default),op=re;function ap(e){return e&&e.__esModule?e:{default:e}}var cp=(0,op.IconWrapper)("loading-three",!1,function(e){return ye.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ye.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}),ye.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ye.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ao=In.default=cp;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});var Lo=Wn.default=void 0,zn=lp(se.default),up=re;function lp(e){return e&&e.__esModule?e:{default:e}}var fp=(0,up.IconWrapper)("return",!0,function(e){return zn.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},zn.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),zn.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}))});Lo=Wn.default=fp;function dp(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 hp(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 pp=function(){function e(r){var n=this;this._insertTag=function(i){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,s),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(hp(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=dp(i);try{s.insertRule(n,s.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}(),ee="-ms-",sr="-moz-",z="-webkit-",Mo="comm",Bn="rule",$n="decl",mp="@import",Po="@keyframes",gp=Math.abs,or=String.fromCharCode,vp=Object.assign;function yp(e,t){return q(e,0)^45?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}function Ro(e){return e.trim()}function bp(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,r){return e.replace(t,r)}function Hn(e,t){return e.indexOf(t)}function q(e,t){return e.charCodeAt(t)|0}function xt(e,t,r){return e.slice(t,r)}function be(e){return e.length}function Un(e){return e.length}function ar(e,t){return t.push(e),e}function _p(e,t){return e.map(t).join("")}var cr=1,st=1,Do=0,ne=0,K=0,ot="";function ur(e,t,r,n,i,s,o){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:cr,column:st,length:o,return:""}}function Ot(e,t){return vp(ur("",null,null,"",null,null,0),e,{length:-e.length},t)}function wp(){return K}function Sp(){return K=ne>0?q(ot,--ne):0,st--,K===10&&(st=1,cr--),K}function oe(){return K=ne<Do?q(ot,ne++):0,st++,K===10&&(st=1,cr++),K}function _e(){return q(ot,ne)}function lr(){return ne}function At(e,t){return xt(ot,e,t)}function Lt(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 No(e){return cr=st=1,Do=be(ot=e),ne=0,[]}function Fo(e){return ot="",e}function fr(e){return Ro(At(ne-1,Gn(e===91?e+2:e===40?e+1:e)))}function Cp(e){for(;(K=_e())&&K<33;)oe();return Lt(e)>2||Lt(K)>3?"":" "}function kp(e,t){for(;--t&&oe()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return At(e,lr()+(t<6&&_e()==32&&oe()==32))}function Gn(e){for(;oe();)switch(K){case e:return ne;case 34:case 39:e!==34&&e!==39&&Gn(K);break;case 40:e===41&&Gn(e);break;case 92:oe();break}return ne}function Ep(e,t){for(;oe()&&e+K!==47+10;)if(e+K===42+42&&_e()===47)break;return"/*"+At(t,ne-1)+"*"+or(e===47?e:oe())}function Tp(e){for(;!Lt(_e());)oe();return At(e,ne)}function xp(e){return Fo(dr("",null,null,null,[""],e=No(e),0,[0],e))}function dr(e,t,r,n,i,s,o,a,u){for(var c=0,l=0,f=o,d=0,p=0,m=0,y=1,v=1,C=1,M=0,O="",x=i,_=s,b=n,E=O;v;)switch(m=M,M=oe()){case 40:if(m!=108&&q(E,f-1)==58){Hn(E+=B(fr(M),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=fr(M);break;case 9:case 10:case 13:case 32:E+=Cp(m);break;case 92:E+=kp(lr()-1,7);continue;case 47:switch(_e()){case 42:case 47:ar(Op(Ep(oe(),lr()),t,r),u);break;default:E+="/"}break;case 123*y:a[c++]=be(E)*C;case 125*y:case 59:case 0:switch(M){case 0:case 125:v=0;case 59+l:p>0&&be(E)-f&&ar(p>32?Io(E+";",n,r,f-1):Io(B(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(ar(b=jo(E,t,r,c,l,i,a,O,x=[],_=[],f),s),M===123)if(l===0)dr(E,t,b,b,x,s,f,a,_);else switch(d===99&&q(E,3)===110?100:d){case 100:case 109:case 115:dr(e,b,b,n&&ar(jo(e,b,b,0,0,i,a,O,i,x=[],f),_),i,_,f,a,n?x:_);break;default:dr(E,b,b,b,[""],_,0,a,_)}}c=l=p=0,y=C=1,O=E="",f=o;break;case 58:f=1+be(E),p=m;default:if(y<1){if(M==123)--y;else if(M==125&&y++==0&&Sp()==125)continue}switch(E+=or(M),M*y){case 38:C=l>0?1:(E+="\f",-1);break;case 44:a[c++]=(be(E)-1)*C,C=1;break;case 64:_e()===45&&(E+=fr(oe())),d=_e(),l=f=be(O=E+=Tp(lr())),M++;break;case 45:m===45&&be(E)==2&&(y=0)}}return s}function jo(e,t,r,n,i,s,o,a,u,c,l){for(var f=i-1,d=i===0?s:[""],p=Un(d),m=0,y=0,v=0;m<n;++m)for(var C=0,M=xt(e,f+1,f=gp(y=o[m])),O=e;C<p;++C)(O=Ro(y>0?d[C]+" "+M:B(M,/&\f/g,d[C])))&&(u[v++]=O);return ur(e,t,r,i===0?Bn:a,u,c,l)}function Op(e,t,r){return ur(e,t,r,Mo,or(wp()),xt(e,2,-2),0)}function Io(e,t,r,n){return ur(e,t,r,$n,xt(e,0,n),xt(e,n+1,-1),n)}function at(e,t){for(var r="",n=Un(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Ap(e,t,r,n){switch(e.type){case mp:case $n:return e.return=e.return||e.value;case Mo:return"";case Po:return e.return=e.value+"{"+at(e.children,n)+"}";case Bn:e.value=e.props.join(",")}return be(r=at(e.children,n))?e.return=e.value+"{"+r+"}":""}function Lp(e){var t=Un(e);return function(r,n,i,s){for(var o="",a=0;a<t;a++)o+=e[a](r,n,i,s)||"";return o}}function Mp(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Rp=function(t,r,n){for(var i=0,s=0;i=s,s=_e(),i===38&&s===12&&(r[n]=1),!Lt(s);)oe();return At(t,ne)},Dp=function(t,r){var n=-1,i=44;do switch(Lt(i)){case 0:i===38&&_e()===12&&(r[n]=1),t[n]+=Rp(ne-1,r,n);break;case 2:t[n]+=fr(i);break;case 4:if(i===44){t[++n]=_e()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=or(i)}while(i=oe());return t},Np=function(t,r){return Fo(Dp(No(t),r))},Wo=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&&!Wo.get(n))&&!i){Wo.set(t,!0);for(var s=[],o=Np(r,s),a=n.props,u=0,c=0;u<o.length;u++)for(var l=0;l<a.length;l++,c++)t.props[c]=s[u]?o[u].replace(/&\f/g,a[l]):a[l]+" "+o[u]}}},jp=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zo(e,t){switch(yp(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+sr+e+ee+e+e;case 6828:case 4268:return z+e+ee+e+e;case 6165:return z+e+ee+"flex-"+e+e;case 5187:return z+e+B(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return z+e+ee+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return z+e+ee+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ee+B(e,"shrink","negative")+e;case 5292:return z+e+ee+B(e,"basis","preferred-size")+e;case 6060:return z+"box-"+B(e,"-grow","")+z+e+ee+B(e,"grow","positive")+e;case 4554:return z+B(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,z+"$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(be(e)-1-t>6)switch(q(e,t+1)){case 109:if(q(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+sr+(q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hn(e,"stretch")?zo(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(q(e,t+1)!==115)break;case 6444:switch(q(e,be(e)-3-(~Hn(e,"!important")&&10))){case 107:return B(e,":",":"+z)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(q(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ee+"$2box$3")+e}break;case 5936:switch(q(e,t+11)){case 114:return z+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ee+e+e}return e}var Ip=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case $n:t.return=zo(t.value,t.length);break;case Po:return at([Ot(t,{value:B(t.value,"@","@"+z)})],i);case Bn:if(t.length)return _p(t.props,function(s){switch(bp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return at([Ot(t,{props:[B(s,/:(read-\w+)/,":"+sr+"$1")]})],i);case"::placeholder":return at([Ot(t,{props:[B(s,/:(plac\w+)/,":"+z+"input-$1")]}),Ot(t,{props:[B(s,/:(plac\w+)/,":"+sr+"$1")]}),Ot(t,{props:[B(s,/:(plac\w+)/,ee+"input-$1")]})],i)}return""})}},Wp=[Ip],Bo=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(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Wp,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),C=1;C<v.length;C++)s[v[C]]=!0;a.push(y)});var u,c=[Fp,jp];{var l,f=[Ap,Mp(function(y){l.insert(y)})],d=Lp(c.concat(i,f)),p=function(v){return at(xp(v),d)};u=function(v,C,M,O){l=M,p(v?v+"{"+C.styles+"}":C.styles),O&&(m.inserted[C.name]=!0)}}var m={key:r,sheet:new pp({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return m.sheet.hydrate(a),m},$o={exports:{}},$={};/** @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 X=typeof Symbol=="function"&&Symbol.for,Yn=X?Symbol.for("react.element"):60103,Vn=X?Symbol.for("react.portal"):60106,hr=X?Symbol.for("react.fragment"):60107,pr=X?Symbol.for("react.strict_mode"):60108,mr=X?Symbol.for("react.profiler"):60114,gr=X?Symbol.for("react.provider"):60109,vr=X?Symbol.for("react.context"):60110,Kn=X?Symbol.for("react.async_mode"):60111,yr=X?Symbol.for("react.concurrent_mode"):60111,br=X?Symbol.for("react.forward_ref"):60112,_r=X?Symbol.for("react.suspense"):60113,zp=X?Symbol.for("react.suspense_list"):60120,wr=X?Symbol.for("react.memo"):60115,Sr=X?Symbol.for("react.lazy"):60116,Bp=X?Symbol.for("react.block"):60121,$p=X?Symbol.for("react.fundamental"):60117,Hp=X?Symbol.for("react.responder"):60118,Up=X?Symbol.for("react.scope"):60119;function ae(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yn:switch(e=e.type,e){case Kn:case yr:case hr:case mr:case pr:case _r:return e;default:switch(e=e&&e.$$typeof,e){case vr:case br:case Sr:case wr:case gr:return e;default:return t}}case Vn:return t}}}function Ho(e){return ae(e)===yr}$.AsyncMode=Kn,$.ConcurrentMode=yr,$.ContextConsumer=vr,$.ContextProvider=gr,$.Element=Yn,$.ForwardRef=br,$.Fragment=hr,$.Lazy=Sr,$.Memo=wr,$.Portal=Vn,$.Profiler=mr,$.StrictMode=pr,$.Suspense=_r,$.isAsyncMode=function(e){return Ho(e)||ae(e)===Kn},$.isConcurrentMode=Ho,$.isContextConsumer=function(e){return ae(e)===vr},$.isContextProvider=function(e){return ae(e)===gr},$.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yn},$.isForwardRef=function(e){return ae(e)===br},$.isFragment=function(e){return ae(e)===hr},$.isLazy=function(e){return ae(e)===Sr},$.isMemo=function(e){return ae(e)===wr},$.isPortal=function(e){return ae(e)===Vn},$.isProfiler=function(e){return ae(e)===mr},$.isStrictMode=function(e){return ae(e)===pr},$.isSuspense=function(e){return ae(e)===_r},$.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hr||e===yr||e===mr||e===pr||e===_r||e===zp||typeof e=="object"&&e!==null&&(e.$$typeof===Sr||e.$$typeof===wr||e.$$typeof===gr||e.$$typeof===vr||e.$$typeof===br||e.$$typeof===$p||e.$$typeof===Hp||e.$$typeof===Up||e.$$typeof===Bp)},$.typeOf=ae,function(e){e.exports=$}($o);var Uo=$o.exports,Gp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Go={};Go[Uo.ForwardRef]=Gp,Go[Uo.Memo]=Yp;var Vp=!0;function Xn(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Yo=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||Vp===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Vo=function(t,r,n){Yo(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Kp(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 Xp={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},Jp=/[A-Z]|^ms/g,Zp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ko=function(t){return t.charCodeAt(1)===45},Xo=function(t){return t!=null&&typeof t!="boolean"},Jn=Pp(function(e){return Ko(e)?e:e.replace(Jp,"-$&").toLowerCase()}),Jo=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zp,function(n,i,s){return we={name:i,styles:s,next:we},i})}return Xp[t]!==1&&!Ko(t)&&typeof r=="number"&&r!==0?r+"px":r},yy="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mt(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 we={name:r.name,styles:r.styles,next:we},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)we={name:n.name,styles:n.styles,next:we},n=n.next;var i=r.styles+";";return i}return Qp(e,t,r)}case"function":{if(e!==void 0){var s=we,o=r(e);return we=s,Mt(e,t,o)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function Qp(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Mt(e,t,r[i])+";";else for(var s in r){var o=r[s];if(typeof o!="object")t!=null&&t[o]!==void 0?n+=s+"{"+t[o]+"}":Xo(o)&&(n+=Jn(s)+":"+Jo(s,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var a=0;a<o.length;a++)Xo(o[a])&&(n+=Jn(s)+":"+Jo(s,o[a])+";");else{var u=Mt(e,t,o);switch(s){case"animation":case"animationName":{n+=Jn(s)+":"+u+";";break}default:n+=s+"{"+u+"}"}}}return n}var Zo=/label:\s*([^\s;\n{]+)\s*(;|$)/g,we,Pt=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,s="";we=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,s+=Mt(n,r,o)):s+=o[0];for(var a=1;a<t.length;a++)s+=Mt(n,r,t[a]),i&&(s+=o[a]);Zo.lastIndex=0;for(var u="",c;(c=Zo.exec(s))!==null;)u+="-"+c[1];var l=Kp(s)+u;return{name:l,styles:s,next:we}},qp=function(t){return t()},em=Gi["useInsertionEffect"]?Gi["useInsertionEffect"]:!1,tm=em||qp,Cr={}.hasOwnProperty,Qo=g.createContext(typeof HTMLElement<"u"?Bo({key:"css"}):null);Qo.Provider;var rm=function(t){return g.forwardRef(function(r,n){var i=g.useContext(Qo);return t(r,i,n)})},nm=g.createContext({}),Zn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qo=function(t,r){var n={};for(var i in r)Cr.call(r,i)&&(n[i]=r[i]);return n[Zn]=t,n},im=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Yo(r,n,i),tm(function(){return Vo(r,n,i)}),null},ea=rm(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[Zn],s=[n],o="";typeof e.className=="string"?o=Xn(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var a=Pt(s,void 0,g.useContext(nm));o+=t.key+"-"+a.name;var u={};for(var c in e)Cr.call(e,c)&&c!=="css"&&c!==Zn&&(u[c]=e[c]);return u.ref=r,u.className=o,g.createElement(g.Fragment,null,g.createElement(im,{cache:t,serialized:a,isStringTag:typeof i=="string"}),g.createElement(i,u))}),kr={exports:{}},Er={};/**
 * @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 sm=se.default,om=Symbol.for("react.element"),am=Symbol.for("react.fragment"),cm=Object.prototype.hasOwnProperty,um=sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lm={key:!0,ref:!0,__self:!0,__source:!0};function ta(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)cm.call(t,n)&&!lm.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:om,type:e,key:s,ref:o,props:i,_owner:um.current}}Er.Fragment=am,Er.jsx=ta,Er.jsxs=ta,function(e){e.exports=Er}(kr);const fm=kr.exports.Fragment,ra=kr.exports.jsx,na=kr.exports.jsxs;var We=fm;function h(e,t,r){return Cr.call(t,"css")?ra(ea,qo(e,t),r):ra(e,t,r)}function A(e,t,r){return Cr.call(t,"css")?na(ea,qo(e,t),r):na(e,t,r)}const dm={Close:ko,Config:Eo,DistraughtFace:To,Return:Lo,Loading:Oo,LoadingThree:Ao,Info:xo};function ct({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const s=An();n||(n=s?"#fff":"#333");const o=dm[e];return h(o,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}var ia={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var s=arguments[i];if(!!s){var o=typeof s;if(o==="string"||o==="number")n.push(s);else if(Array.isArray(s)){if(s.length){var a=r.apply(null,s);a&&n.push(a)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){n.push(s.toString());continue}for(var u in s)t.call(s,u)&&s[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ia);const J=ia.exports;function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pt(t)}function sa(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oa(e,t,r){var n=[],i=Xn(e,n,r);return n.length<2?r:i+t(n)}var hm=function(t){var r=Bo(t);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];var f=Pt(c,r.registered,void 0);return Vo(r,f,!1),r.key+"-"+f.name},i=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];var f=Pt(c,r.registered),d="animation-"+f.name;return sa(r,{name:f.name,styles:"@keyframes "+d+"{"+f.styles+"}"}),d},s=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];var f=Pt(c,r.registered);sa(r,f)},o=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];return oa(r.registered,n,pm(c))};return{css:n,cx:o,injectGlobal:s,keyframes:i,hydrate:function(u){u.forEach(function(c){r.inserted[c]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Xn.bind(null,r.registered),merge:oa.bind(null,r.registered,n)}},pm=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(r&&(r+=" "),r+=s)}}return r},mm=hm({key:"css"}),Qn=mm.css,gm=function(t){return function(r,n){var i=g.useRef(!1);t(function(){return function(){i.current=!1}},[]),t(function(){if(!i.current)i.current=!0;else return r()},n)}},lt=function(t){return typeof t=="function"},vm=function(t){return typeof t=="string"},aa=function(t){return typeof t=="number"},ym=!1;const qn=ym;function H(e){qn&&(lt(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=g.useRef(e);t.current=g.useMemo(function(){return e},[e]);var r=g.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const ei=gm(g.useEffect);var ca=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},ua=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},la=function(t,r){var n=r.manual,i=r.ready,s=i===void 0?!0:i,o=r.defaultParams,a=o===void 0?[]:o,u=r.refreshDeps,c=u===void 0?[]:u,l=r.refreshDepsAction,f=g.useRef(!1);return f.current=!1,ei(function(){!n&&s&&(f.current=!0,t.run.apply(t,ua([],ca(a),!1)))},[s]),ei(function(){f.current||n||(f.current=!0,l?l():t.refresh())},ua([],ca(c),!1)),{onBefore:function(){if(!s)return{stopNow:!0}}}};la.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};const bm=la;function ti(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function fa(e,t){var r=g.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!ti(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function Rt(e){var t=g.useRef(e);return t.current=e,t}var _m=function(t){qn&&(lt(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var r=Rt(t);g.useEffect(function(){return function(){r.current()}},[])};const Dt=_m;var Tr=globalThis&&globalThis.__assign||function(){return Tr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tr.apply(this,arguments)},xr=new Map,wm=function(t,r,n){var i=xr.get(t);i!=null&&i.timer&&clearTimeout(i.timer);var s=void 0;r>-1&&(s=setTimeout(function(){xr.delete(t)},r)),xr.set(t,Tr(Tr({},n),{timer:s}))},Sm=function(t){return xr.get(t)},Or=new Map,Cm=function(t){return Or.get(t)},km=function(t,r){Or.set(t,r),r.then(function(n){return Or.delete(t),n}).catch(function(){Or.delete(t)})},Ke={},Em=function(t,r){Ke[t]&&Ke[t].forEach(function(n){return n(r)})},ri=function(t,r){return Ke[t]||(Ke[t]=[]),Ke[t].push(r),function(){var i=Ke[t].indexOf(r);Ke[t].splice(i,1)}},Tm=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},xm=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},Om=function(t,r){var n=r.cacheKey,i=r.cacheTime,s=i===void 0?5*60*1e3:i,o=r.staleTime,a=o===void 0?0:o,u=r.setCache,c=r.getCache,l=g.useRef(),f=g.useRef(),d=function(y,v){u?u(v):wm(y,s,v),Em(y,v.data)},p=function(y,v){return v===void 0&&(v=[]),c?c(v):Sm(y)};return fa(function(){if(!!n){var m=p(n);m&&Object.hasOwnProperty.call(m,"data")&&(t.state.data=m.data,t.state.params=m.params,(a===-1||new Date().getTime()-m.time<=a)&&(t.state.loading=!1)),l.current=ri(n,function(y){t.setState({data:y})})}},[]),Dt(function(){var m;(m=l.current)===null||m===void 0||m.call(l)}),n?{onBefore:function(y){var v=p(n,y);return!v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(y,v){var C=Cm(n);return C&&C!==f.current?{servicePromise:C}:(C=y.apply(void 0,xm([],Tm(v),!1)),f.current=C,km(n,C),{servicePromise:C})},onSuccess:function(y,v){var C;n&&((C=l.current)===null||C===void 0||C.call(l),d(n,{data:y,params:v,time:new Date().getTime()}),l.current=ri(n,function(M){t.setState({data:M})}))},onMutate:function(y){var v;n&&((v=l.current)===null||v===void 0||v.call(l),d(n,{data:y,params:t.state.params,time:new Date().getTime()}),l.current=ri(n,function(C){t.setState({data:C})}))}}:{}};const Am=Om;var Lm=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},Mm=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},Pm=function(t,r){var n=r.debounceWait,i=r.debounceLeading,s=r.debounceTrailing,o=r.debounceMaxWait,a=g.useRef(),u=g.useMemo(function(){var c={};return i!==void 0&&(c.leading=i),s!==void 0&&(c.trailing=s),o!==void 0&&(c.maxWait=o),c},[i,s,o]);return g.useEffect(function(){if(n){var c=t.runAsync.bind(t);return a.current=js(function(l){l()},n,u),t.runAsync=function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new Promise(function(d,p){var m;(m=a.current)===null||m===void 0||m.call(a,function(){c.apply(void 0,Mm([],Lm(l),!1)).then(d).catch(p)})})},function(){var l;(l=a.current)===null||l===void 0||l.cancel(),t.runAsync=c}}},[n,u]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel()}}:{}};const Rm=Pm;var Dm=function(t,r){var n=r.loadingDelay,i=g.useRef();if(!n)return{};var s=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return s(),i.current=setTimeout(function(){t.setState({loading:!0})},n),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}};const Nm=Dm;var Fm=!!(typeof window<"u"&&window.document&&window.document.createElement);const Nt=Fm;function ni(){return Nt?document.visibilityState!=="hidden":!0}var Ft=[];function jm(e){return Ft.push(e),function(){var r=Ft.indexOf(e);Ft.splice(r,1)}}if(Nt){var Im=function(){if(!!ni())for(var t=0;t<Ft.length;t++){var r=Ft[t];r()}};window.addEventListener("visibilitychange",Im,!1)}var Wm=function(t,r){var n=r.pollingInterval,i=r.pollingWhenHidden,s=i===void 0?!0:i,o=r.pollingErrorRetryCount,a=o===void 0?-1:o,u=g.useRef(),c=g.useRef(),l=g.useRef(0),f=function(){var p;u.current&&clearTimeout(u.current),(p=c.current)===null||p===void 0||p.call(c)};return ei(function(){n||f()},[n]),n?{onBefore:function(){f()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){a===-1||a!==-1&&l.current<=a?u.current=setTimeout(function(){!s&&!ni()?c.current=jm(function(){t.refresh()}):t.refresh()},n):l.current=0},onCancel:function(){f()}}:{}};const zm=Wm;var Bm=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},$m=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function Hm(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,$m([],Bm(n),!1)),setTimeout(function(){r=!1},t))}}function Um(){return Nt&&typeof navigator.onLine<"u"?navigator.onLine:!0}var jt=[];function Gm(e){return jt.push(e),function(){var r=jt.indexOf(e);r>-1&&jt.splice(r,1)}}if(Nt){var da=function(){if(!(!ni()||!Um()))for(var t=0;t<jt.length;t++){var r=jt[t];r()}};window.addEventListener("visibilitychange",da,!1),window.addEventListener("focus",da,!1)}var Ym=function(t,r){var n=r.refreshOnWindowFocus,i=r.focusTimespan,s=i===void 0?5e3:i,o=g.useRef(),a=function(){var c;(c=o.current)===null||c===void 0||c.call(o)};return g.useEffect(function(){if(n){var u=Hm(t.refresh.bind(t),s);o.current=Gm(function(){u()})}return function(){a()}},[n,s]),Dt(function(){a()}),{}};const Vm=Ym;var Km=function(t,r){var n=r.retryInterval,i=r.retryCount,s=g.useRef(),o=g.useRef(0),a=g.useRef(!1);return i?{onBefore:function(){a.current||(o.current=0),a.current=!1,s.current&&clearTimeout(s.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,i===-1||o.current<=i){var c=n!=null?n:Math.min(1e3*Math.pow(2,o.current),3e4);s.current=setTimeout(function(){a.current=!0,t.refresh()},c)}else o.current=0},onCancel:function(){o.current=0,s.current&&clearTimeout(s.current)}}:{}};const Xm=Km;var Jm=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},Zm=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},Qm=function(t,r){var n=r.throttleWait,i=r.throttleLeading,s=r.throttleTrailing,o=g.useRef(),a={};return i!==void 0&&(a.leading=i),s!==void 0&&(a.trailing=s),g.useEffect(function(){if(n){var u=t.runAsync.bind(t);return o.current=fh(function(c){c()},n,a),t.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(f,d){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,Zm([],Jm(c),!1)).then(f).catch(d)})})},function(){var c;t.runAsync=u,(c=o.current)===null||c===void 0||c.cancel()}}},[n,i,s]),n?{onCancel:function(){var c;(c=o.current)===null||c===void 0||c.cancel()}}:{}};const qm=Qm;var eg=function(t){qn&&(lt(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),g.useEffect(function(){t==null||t()},[])};const tg=eg;var rg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},ng=function(){var t=rg(g.useState({}),2),r=t[1];return g.useCallback(function(){return r({})},[])};const ig=ng;var ze=globalThis&&globalThis.__assign||function(){return ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ze.apply(this,arguments)},sg=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(f){o(f)}}function u(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?s(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})},og=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ag=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},ft=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},dt=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},cg=function(){function e(t,r,n,i){i===void 0&&(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=ze(ze(ze({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=ze(ze({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(s){var o;return(o=s[t])===null||o===void 0?void 0:o.call.apply(o,dt([s],ft(r),!1))}).filter(Boolean);return Object.assign.apply(Object,dt([{}],ft(i),!1))},e.prototype.runAsync=function(){for(var t,r,n,i,s,o,a,u,c,l,f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];return sg(this,void 0,void 0,function(){var p,m,y,v,C,M,O,x,_,b,E;return og(this,function(R){switch(R.label){case 0:if(this.count+=1,p=this.count,m=this.runPluginHandler("onBefore",f),y=m.stopNow,v=y===void 0?!1:y,C=m.returnNow,M=C===void 0?!1:C,O=ag(m,["stopNow","returnNow"]),v)return[2,new Promise(function(){})];if(this.setState(ze({loading:!0,params:f},O)),M)return[2,Promise.resolve(O.data)];(r=(t=this.options).onBefore)===null||r===void 0||r.call(t,f),R.label=1;case 1:return R.trys.push([1,3,,4]),x=this.runPluginHandler("onRequest",this.serviceRef.current,f).servicePromise,x||(x=(E=this.serviceRef).current.apply(E,dt([],ft(f),!1))),[4,x];case 2:return _=R.sent(),p!==this.count?[2,new Promise(function(){})]:(this.setState({data:_,error:void 0,loading:!1}),(i=(n=this.options).onSuccess)===null||i===void 0||i.call(n,_,f),this.runPluginHandler("onSuccess",_,f),(o=(s=this.options).onFinally)===null||o===void 0||o.call(s,f,_,void 0),p===this.count&&this.runPluginHandler("onFinally",f,_,void 0),[2,_]);case 3:if(b=R.sent(),p!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(u=(a=this.options).onError)===null||u===void 0||u.call(a,b,f),this.runPluginHandler("onError",b,f),(l=(c=this.options).onFinally)===null||l===void 0||l.call(c,f,void 0,b),p===this.count&&this.runPluginHandler("onFinally",f,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,dt([],ft(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,dt([],ft(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,dt([],ft(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=lt(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();const ug=cg;var ii=globalThis&&globalThis.__assign||function(){return ii=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ii.apply(this,arguments)},lg=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},ha=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},pa=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function fg(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,s=lg(t,["manual"]),o=ii({manual:i},s),a=Rt(e),u=ig(),c=fa(function(){var l=r.map(function(f){var d;return(d=f==null?void 0:f.onInit)===null||d===void 0?void 0:d.call(f,o)}).filter(Boolean);return new ug(a,o,u,Object.assign.apply(Object,pa([{}],ha(l),!1)))},[]);return c.options=o,c.pluginImpls=r.map(function(l){return l(c,o)}),tg(function(){if(!i){var l=c.state.params||t.defaultParams||[];c.run.apply(c,pa([],ha(l),!1))}}),Dt(function(){c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:H(c.cancel.bind(c)),refresh:H(c.refresh.bind(c)),refreshAsync:H(c.refreshAsync.bind(c)),run:H(c.run.bind(c)),runAsync:H(c.runAsync.bind(c)),mutate:H(c.mutate.bind(c))}}var dg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},ma=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function ga(e,t,r){return fg(e,t,ma(ma([],dg(r||[]),!1),[Rm,Nm,zm,Vm,qm,bm,Am,Xm],!1))}var hg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s};function va(e,t){e===void 0&&(e=!1);var r=hg(g.useState(e),2),n=r[0],i=r[1],s=g.useMemo(function(){var o=t===void 0?!e:t,a=function(){return i(function(d){return d===e?o:e})},u=function(d){return i(d)},c=function(){return i(e)},l=function(){return i(o)};return{toggle:a,set:u,setLeft:c,setRight:l}},[]);return[n,s]}var pg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s};function mg(e){e===void 0&&(e=!1);var t=pg(va(e),2),r=t[0],n=t[1],i=n.toggle,s=n.set,o=g.useMemo(function(){var a=function(){return s(!0)},u=function(){return s(!1)};return{toggle:i,set:function(l){return s(!!l)},setTrue:a,setFalse:u}},[]);return[r,o]}function Ar(e,t){if(!!Nt){if(!e)return t;var r;return lt(e)?r=e():"current"in e?r=e.current:r=e,r}}var gg=function(t){var r=function(i,s,o){var a=g.useRef(!1),u=g.useRef([]),c=g.useRef([]),l=g.useRef();t(function(){var f,d=Array.isArray(o)?o:[o],p=d.map(function(m){return Ar(m)});if(!a.current){a.current=!0,u.current=p,c.current=s,l.current=i();return}(p.length!==u.current.length||!ti(p,u.current)||!ti(s,c.current))&&((f=l.current)===null||f===void 0||f.call(l),u.current=p,c.current=s,l.current=i())}),Dt(function(){var f;(f=l.current)===null||f===void 0||f.call(l),a.current=!1})};return r},vg=gg(g.useEffect);const ya=vg;var ba={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(mh,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",d="quarter",p="year",m="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,M={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(k){var w=["th","st","nd","rd"],S=k%100;return"["+k+(w[(S-20)%10]||w[S]||w[0])+"]"}},O=function(k,w,S){var L=String(k);return!L||L.length>=w?k:""+Array(w+1-L.length).join(S)+k},x={s:O,z:function(k){var w=-k.utcOffset(),S=Math.abs(w),L=Math.floor(S/60),T=S%60;return(w<=0?"+":"-")+O(L,2,"0")+":"+O(T,2,"0")},m:function k(w,S){if(w.date()<S.date())return-k(S,w);var L=12*(S.year()-w.year())+(S.month()-w.month()),T=w.clone().add(L,f),D=S-T<0,N=w.clone().add(L+(D?-1:1),f);return+(-(L+(S-T)/(D?T-N:N-T))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:p,w:l,d:c,D:m,h:u,m:a,s:o,ms:s,Q:d}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},_="en",b={};b[_]=M;var E=function(k){return k instanceof P},R=function k(w,S,L){var T;if(!w)return _;if(typeof w=="string"){var D=w.toLowerCase();b[D]&&(T=D),S&&(b[D]=S,T=D);var N=w.split("-");if(!T&&N.length>1)return k(N[0])}else{var W=w.name;b[W]=w,T=W}return!L&&T&&(_=T),T||!L&&_},I=function(k,w){if(E(k))return k.clone();var S=typeof w=="object"?w:{};return S.date=k,S.args=arguments,new P(S)},j=x;j.l=R,j.i=E,j.w=function(k,w){return I(k,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var P=function(){function k(S){this.$L=R(S.locale,null,!0),this.parse(S)}var w=k.prototype;return w.parse=function(S){this.$d=function(L){var T=L.date,D=L.utc;if(T===null)return new Date(NaN);if(j.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var N=T.match(v);if(N){var W=N[2]-1||0,Y=(N[7]||"0").substring(0,3);return D?new Date(Date.UTC(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)):new Date(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)}}return new Date(T)}(S),this.$x=S.x||{},this.init()},w.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},w.$utils=function(){return j},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(S,L){var T=I(S);return this.startOf(L)<=T&&T<=this.endOf(L)},w.isAfter=function(S,L){return I(S)<this.startOf(L)},w.isBefore=function(S,L){return this.endOf(L)<I(S)},w.$g=function(S,L,T){return j.u(S)?this[L]:this.set(T,S)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(S,L){var T=this,D=!!j.u(L)||L,N=j.p(S),W=function($e,te){var Oe=j.w(T.$u?Date.UTC(T.$y,te,$e):new Date(T.$y,te,$e),T);return D?Oe:Oe.endOf(c)},Y=function($e,te){return j.w(T.toDate()[$e].apply(T.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(te)),T)},G=this.$W,Q=this.$M,xe=this.$D,pe="set"+(this.$u?"UTC":"");switch(N){case p:return D?W(1,0):W(31,11);case f:return D?W(1,Q):W(0,Q+1);case l:var De=this.$locale().weekStart||0,Ne=(G<De?G+7:G)-De;return W(D?xe-Ne:xe+(6-Ne),Q);case c:case m:return Y(pe+"Hours",0);case u:return Y(pe+"Minutes",1);case a:return Y(pe+"Seconds",2);case o:return Y(pe+"Milliseconds",3);default:return this.clone()}},w.endOf=function(S){return this.startOf(S,!1)},w.$set=function(S,L){var T,D=j.p(S),N="set"+(this.$u?"UTC":""),W=(T={},T[c]=N+"Date",T[m]=N+"Date",T[f]=N+"Month",T[p]=N+"FullYear",T[u]=N+"Hours",T[a]=N+"Minutes",T[o]=N+"Seconds",T[s]=N+"Milliseconds",T)[D],Y=D===c?this.$D+(L-this.$W):L;if(D===f||D===p){var G=this.clone().set(m,1);G.$d[W](Y),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else W&&this.$d[W](Y);return this.init(),this},w.set=function(S,L){return this.clone().$set(S,L)},w.get=function(S){return this[j.p(S)]()},w.add=function(S,L){var T,D=this;S=Number(S);var N=j.p(L),W=function(Q){var xe=I(D);return j.w(xe.date(xe.date()+Math.round(Q*S)),D)};if(N===f)return this.set(f,this.$M+S);if(N===p)return this.set(p,this.$y+S);if(N===c)return W(1);if(N===l)return W(7);var Y=(T={},T[a]=n,T[u]=i,T[o]=r,T)[N]||1,G=this.$d.getTime()+S*Y;return j.w(G,this)},w.subtract=function(S,L){return this.add(-1*S,L)},w.format=function(S){var L=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var D=S||"YYYY-MM-DDTHH:mm:ssZ",N=j.z(this),W=this.$H,Y=this.$m,G=this.$M,Q=T.weekdays,xe=T.months,pe=function(te,Oe,Vt,ue){return te&&(te[Oe]||te(L,D))||Vt[Oe].slice(0,ue)},De=function(te){return j.s(W%12||12,te,"0")},Ne=T.meridiem||function(te,Oe,Vt){var ue=te<12?"AM":"PM";return Vt?ue.toLowerCase():ue},$e={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:j.s(G+1,2,"0"),MMM:pe(T.monthsShort,G,xe,3),MMMM:pe(xe,G),D:this.$D,DD:j.s(this.$D,2,"0"),d:String(this.$W),dd:pe(T.weekdaysMin,this.$W,Q,2),ddd:pe(T.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(W),HH:j.s(W,2,"0"),h:De(1),hh:De(2),a:Ne(W,Y,!0),A:Ne(W,Y,!1),m:String(Y),mm:j.s(Y,2,"0"),s:String(this.$s),ss:j.s(this.$s,2,"0"),SSS:j.s(this.$ms,3,"0"),Z:N};return D.replace(C,function(te,Oe){return Oe||$e[te]||N.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(S,L,T){var D,N=j.p(L),W=I(S),Y=(W.utcOffset()-this.utcOffset())*n,G=this-W,Q=j.m(this,W);return Q=(D={},D[p]=Q/12,D[f]=Q,D[d]=Q/3,D[l]=(G-Y)/6048e5,D[c]=(G-Y)/864e5,D[u]=G/i,D[a]=G/n,D[o]=G/r,D)[N]||G,T?Q:j.a(Q)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return b[this.$L]},w.locale=function(S,L){if(!S)return this.$L;var T=this.clone(),D=R(S,L,!0);return D&&(T.$L=D),T},w.clone=function(){return j.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},k}(),F=P.prototype;return I.prototype=F,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(k){F[k[1]]=function(w){return this.$g(w,k[0],k[1])}}),I.extend=function(k,w){return k.$i||(k(w,P,I),k.$i=!0),I},I.locale=R,I.isDayjs=E,I.unix=function(k){return I(1e3*k)},I.en=b[_],I.Ls=b,I.p={},I})})(ba);const _a=ba.exports;function Lr(e,t,r){r===void 0&&(r={});var n=Rt(t);ya(function(){var i=Ar(r.target,window);if(!!(i!=null&&i.addEventListener)){var s=function(a){return n.current(a)};return i.addEventListener(e,s,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,s,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var yg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s};const si=function(e,t){var r=t||{},n=r.onEnter,i=r.onLeave,s=r.onChange,o=yg(mg(!1),2),a=o[0],u=o[1],c=u.setTrue,l=u.setFalse;return Lr("mouseenter",function(){n==null||n(),c(),s==null||s(!0)},{target:e}),Lr("mouseleave",function(){i==null||i(),l(),s==null||s(!1)},{target:e}),a};var bg=function(t,r){return r===void 0&&(r=[]),Wd(t,r)},_g=function(t,r,n){var i=g.useRef(),s=g.useRef(0);bg(r,i.current)||(i.current=r,s.current+=1),ya(t,[s.current],n)};const wg=_g;var oi=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sg={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},ai={ctrl:function(t){return t.ctrlKey},shift:function(t){return t.shiftKey},alt:function(t){return t.altKey},meta:function(t){return t.metaKey}};function Cg(e){var t=Object.keys(ai).reduce(function(r,n){return ai[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function wa(e,t,r){var n,i;if(!e.key)return!1;if(aa(t))return e.keyCode===t;var s=t.split("."),o=0;try{for(var a=oi(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=ai[c],f=Sg[c.toLowerCase()];(l&&l(e)||f&&f===e.keyCode)&&o++}}catch(d){n={error:d}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r?o===s.length&&Cg(e)===s.length:o===s.length}function kg(e,t){return lt(e)?e:vm(e)||aa(e)?function(r){return wa(r,e,t)}:Array.isArray(e)?function(r){return e.some(function(n){return wa(r,n,t)})}:e?function(){return!0}:function(){return!1}}var Eg=["keydown"];function Se(e,t,r){var n=r||{},i=n.events,s=i===void 0?Eg:i,o=n.target,a=n.exactMatch,u=a===void 0?!1:a,c=Rt(t),l=Rt(e);wg(function(){var f,d,p,m=Ar(o,window);if(!!m){var y=function(x){var _,b=kg(l.current,u);if(b(x))return(_=c.current)===null||_===void 0?void 0:_.call(c,x)};try{for(var v=oi(s),C=v.next();!C.done;C=v.next()){var M=C.value;(p=m==null?void 0:m.addEventListener)===null||p===void 0||p.call(m,M,y)}}catch(O){f={error:O}}finally{try{C&&!C.done&&(d=v.return)&&d.call(v)}finally{if(f)throw f.error}}return function(){var O,x,_;try{for(var b=oi(s),E=b.next();!E.done;E=b.next()){var R=E.value;(_=m==null?void 0:m.removeEventListener)===null||_===void 0||_.call(m,R,y)}}catch(I){O={error:I}}finally{try{E&&!E.done&&(x=b.return)&&x.call(b)}finally{if(O)throw O.error}}}}},[s],o)}var Tg=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s};function xg(e){var t=g.useRef(0),r=Tg(g.useState(e),2),n=r[0],i=r[1],s=g.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(o)})},[]);return Dt(function(){cancelAnimationFrame(t.current)}),[n,s]}var Og=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},Ag={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};const Lg=function(e){var t=Og(xg(Ag),2),r=t[0],n=t[1];return Lr("mousemove",function(i){var s=i.screenX,o=i.screenY,a=i.clientX,u=i.clientY,c=i.pageX,l=i.pageY,f={screenX:s,screenY:o,clientX:a,clientY:u,pageX:c,pageY:l,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},d=Ar(e);if(d){var p=d.getBoundingClientRect(),m=p.left,y=p.top,v=p.width,C=p.height;f.elementPosX=m+window.pageXOffset,f.elementPosY=y+window.pageYOffset,f.elementX=c-f.elementPosX,f.elementY=l-f.elementPosY,f.elementW=v,f.elementH=C}n(f)},{target:function(){return document}}),r},de={modalMask:"_modal-mask_1fjgs_1",modal:"_modal_1fjgs_1",modalHeader:"_modal-header_1fjgs_23",modalBody:"_modal-body_1fjgs_30",modalTitle:"_modal-title_1fjgs_35",btnClose:"_btn-close_1fjgs_42"};let It=0;const Mg=()=>{It++,document.body.style.overflow="hidden"},Pg=()=>{It--,It<0&&(It=0),It===0&&(document.body.style.overflow="overlay")};function ci({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,hideWhenMaskOnClick:s=!1,hideWhenEsc:o=!1}){g.useLayoutEffect(()=>{e?Mg():Pg()},[e]);const a=g.useRef(null),u=An(),{bg:c,c:l}=g.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],v=window.getComputedStyle(document.body).color;return{bg:y,c:v}},[u]),f=g.useMemo(()=>u?{"--bg":c,"--c":l,backgroundColor:c,color:l}:{},[c,l,u]),d=g.useId(),p=g.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+d),document.body.appendChild(y),y},[]),m=H(y=>{var v;(v=a.current)!=null&&v.contains(y.target)||s&&t()});return Se("esc",()=>{!e||o&&t()}),e?me.createPortal(h("div",{className:J(de.modalMask,n),onClick:m,children:h("div",{className:J(de.modal,i),style:f,ref:a,children:r})}),p):null}const ui=e=>h(ct,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});var ht=1e3,pt=ht*60,mt=pt*60,Xe=mt*24,Rg=Xe*7,Dg=Xe*365.25,Ng=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Fg(e);if(r==="number"&&isFinite(e))return t.long?Ig(e):jg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Fg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Dg;case"weeks":case"week":case"w":return r*Rg;case"days":case"day":case"d":return r*Xe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mt;case"minutes":case"minute":case"mins":case"min":case"m":return r*pt;case"seconds":case"second":case"secs":case"sec":case"s":return r*ht;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function jg(e){var t=Math.abs(e);return t>=Xe?Math.round(e/Xe)+"d":t>=mt?Math.round(e/mt)+"h":t>=pt?Math.round(e/pt)+"m":t>=ht?Math.round(e/ht)+"s":e+"ms"}function Ig(e){var t=Math.abs(e);return t>=Xe?Mr(e,t,Xe,"day"):t>=mt?Mr(e,t,mt,"hour"):t>=pt?Mr(e,t,pt,"minute"):t>=ht?Mr(e,t,ht,"second"):e+" ms"}function Mr(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}const Sa="_toast-container_mcbuq_1",Ca="_single-line_mcbuq_17",Ty={toastContainer:Sa,singleLine:Ca};function ce(e,t=2e3){let r=typeof t=="number"?t:Ng(t);const n=document.createElement("div");n.className=Sa,n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(Ca),document.body.appendChild(n),setTimeout(()=>n.remove(),r)}const Wg="\u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!",zg="\u64CD\u4F5C\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!";function ka(){return ce(Wg)}function Ea(){return ce(zg)}function Bg(e){const t=nt({data:Array.from(e||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){const i=this.data.find(s=>s[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 $g="https://api.bilibili.com",Ta="https://app.bilibili.com",li=Jr.default.create({baseURL:$g});li.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 Pr=Jr.default.create({adapter:lc.default});Pr.interceptors.request.use(function(e){return e.params={access_key:fe.accessKey||"",...e.params},e},function(e){return Promise.reject(e)}),Pr.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 Hg(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw ce("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55"),new Error("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55");return e}const Wt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Rr=typeof AbortController=="function"?AbortController:class{constructor(){this.signal=new xa}abort(){this.signal.dispatchEvent("abort")}},Ug=typeof AbortSignal=="function",Gg=typeof Rr.AbortSignal=="function",xa=Ug?AbortSignal:Gg?Rr.AbortController:class{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(t){if(t==="abort"){this.aborted=!0;const r={type:t,target:this};this.onabort(r),this._listeners.forEach(n=>n(r),this)}}onabort(){}addEventListener(t,r){t==="abort"&&this._listeners.push(r)}removeEventListener(t,r){t==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},fi=new Set,di=(e,t)=>{const r=`LRU_CACHE_OPTION_${e}`;Dr(r)&&pi(r,`${e} option`,`options.${t}`,Je)},hi=(e,t)=>{const r=`LRU_CACHE_METHOD_${e}`;if(Dr(r)){const{prototype:n}=Je,{get:i}=Object.getOwnPropertyDescriptor(n,e);pi(r,`${e} method`,`cache.${t}()`,i)}},Yg=(e,t)=>{const r=`LRU_CACHE_PROPERTY_${e}`;if(Dr(r)){const{prototype:n}=Je,{get:i}=Object.getOwnPropertyDescriptor(n,e);pi(r,`${e} property`,`cache.${t}`,i)}},Oa=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},Dr=e=>!fi.has(e),pi=(e,t,r,n)=>{fi.add(e);const i=`The ${t} is deprecated. Please use ${r} instead.`;Oa(i,"DeprecationWarning",e,n)},Be=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Aa=e=>Be(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Nr:null:null;class Nr extends Array{constructor(t){super(t),this.fill(0)}}class Vg{constructor(t){if(t===0)return[];const r=Aa(t);this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class Je{constructor(t={}){const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,disposeAfter:l,noDisposeOnSet:f,noUpdateTTL:d,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:y,fetchMethod:v,fetchContext:C,noDeleteOnFetchRejection:M,noDeleteOnStaleGet:O}=t,{length:x,maxAge:_,stale:b}=t instanceof Je?{}:t;if(r!==0&&!Be(r))throw new TypeError("max option must be a nonnegative integer");const E=r?Aa(r):Array;if(!E)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=p,this.maxEntrySize=m||this.maxSize,this.sizeCalculation=y||x,this.sizeCalculation){if(!this.maxSize&&!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(this.fetchMethod=v||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=C,!this.fetchMethod&&C!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new E(r),this.prev=new E(r),this.head=0,this.tail=0,this.free=new Vg(r),this.initialFill=1,this.size=0,typeof c=="function"&&(this.dispose=c),typeof l=="function"?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!M,this.maxEntrySize!==0){if(this.maxSize!==0&&!Be(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Be(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!u||!!b,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Be(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||_||0,this.ttl){if(!Be(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const R="LRU_CACHE_UNBOUNDED";Dr(R)&&(fi.add(R),Oa("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,Je))}b&&di("stale","allowStale"),_&&di("maxAge","ttl"),x&&di("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Nr(this.max),this.starts=new Nr(this.max),this.setItemTTL=(n,i,s=Wt.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){const o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?Wt.now():0};let t=0;const r=()=>{const n=Wt.now();if(this.ttlResolution>0){t=n;const i=setTimeout(()=>t=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{const i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(t||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(t||r())-this.starts[n]>this.ttls[n]}updateItemAge(t){}setItemTTL(t,r,n){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Nr(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!Be(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,t),!Be(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return n},this.addItemSize=(t,r)=>{if(this.sizes[t]=r,this.maxSize){const n=this.maxSize-this.sizes[t];for(;this.calculatedSize>n;)this.evict(!0)}this.calculatedSize+=this.sizes[t]}}removeItemSize(t){}addItemSize(t,r){}requireSize(t,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(t){return this.keyMap.get(this.keyList[t])===t}*entries(){for(const t of this.indexes())yield[this.keyList[t],this.valList[t]]}*rentries(){for(const t of this.rindexes())yield[this.keyList[t],this.valList[t]]}*keys(){for(const t of this.indexes())yield this.keyList[t]}*rkeys(){for(const t of this.rindexes())yield this.keyList[t]}*values(){for(const t of this.indexes())yield this.valList[t]}*rvalues(){for(const t of this.rindexes())yield this.valList[t]}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of this.indexes())if(t(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],r)}forEach(t,r=this){for(const n of this.indexes())t.call(r,this.valList[n],this.keyList[n],this)}rforEach(t,r=this){for(const n of this.rindexes())t.call(r,this.valList[n],this.keyList[n],this)}get prune(){return hi("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),t=!0);return t}dump(){const t=[];for(const r of this.indexes({allowStale:!0})){const n=this.keyList[r],i=this.valList[r],o={value:this.isBackgroundFetch(i)?i.__staleWhileFetching:i};if(this.ttls){o.ttl=this.ttls[r];const a=Wt.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),t.unshift([n,o])}return t}load(t){this.clear();for(const[r,n]of t){if(n.start){const i=Date.now()-n.start;n.start=Wt.now()-i}this.set(r,n.value,n)}}dispose(t,r,n){}set(t,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL}={}){if(o=this.requireSize(t,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(t),this;let c=this.size===0?void 0:this.keyMap.get(t);if(c===void 0)c=this.newIndex(),this.keyList[c]=t,this.valList[c]=r,this.keyMap.set(t,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,o),u=!1;else{const l=this.valList[c];r!==l&&(this.isBackgroundFetch(l)?l.__abortController.abort():s||(this.dispose(l,t,"set"),this.disposeAfter&&this.disposed.push([l,t,"set"])),this.removeItemSize(c),this.valList[c]=r,this.addItemSize(c,o)),this.moveToTail(c)}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),u||this.setItemTTL(c,n,i),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const t=this.valList[this.head];return this.evict(!0),t}}evict(t){const r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),t&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(t,{updateAgeOnHas:r=this.updateAgeOnHas}={}){const n=this.keyMap.get(t);return n!==void 0&&!this.isStale(n)?(r&&this.updateItemAge(n),!0):!1}peek(t,{allowStale:r=this.allowStale}={}){const n=this.keyMap.get(t);if(n!==void 0&&(r||!this.isStale(n))){const i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(t,r,n,i){const s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;const o=new Rr,a={signal:o.signal,options:n,context:i},u=d=>(o.signal.aborted||this.set(t,d,a.options),d),c=d=>{if(this.valList[r]===f&&(!n.noDeleteOnFetchRejection||f.__staleWhileFetching===void 0?this.delete(t):this.valList[r]=f.__staleWhileFetching),f.__returned===f)throw d},l=d=>d(this.fetchMethod(t,s,a)),f=new Promise(l).then(u,c);return f.__abortController=o,f.__staleWhileFetching=s,f.__returned=null,r===void 0?(this.set(t,f,a.options),r=this.keyMap.get(t)):this.valList[r]=f,f}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,fetchContext:f=this.fetchContext,forceRefresh:d=!1}={}){if(!this.fetchMethod)return this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i});const p={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:l};let m=this.keyMap.get(t);if(m===void 0){const y=this.backgroundFetch(t,m,p,f);return y.__returned=y}else{const y=this.valList[m];if(this.isBackgroundFetch(y))return r&&y.__staleWhileFetching!==void 0?y.__staleWhileFetching:y.__returned=y;if(!d&&!this.isStale(m))return this.moveToTail(m),n&&this.updateItemAge(m),y;const v=this.backgroundFetch(t,m,p,f);return r&&v.__staleWhileFetching!==void 0?v.__staleWhileFetching:v.__returned=v}}get(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet}={}){const s=this.keyMap.get(t);if(s!==void 0){const o=this.valList[s],a=this.isBackgroundFetch(o);return this.isStale(s)?a?r?o.__staleWhileFetching:void 0:(i||this.delete(t),r?o:void 0):a?void 0:(this.moveToTail(s),n&&this.updateItemAge(s),o)}}connect(t,r){this.prev[r]=t,this.next[t]=r}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return hi("del","delete"),this.delete}delete(t){let r=!1;if(this.size!==0){const n=this.keyMap.get(t);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);const i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,t,"delete"),this.disposeAfter&&this.disposed.push([i,t,"delete"])),this.keyMap.delete(t),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const t of this.rindexes({allowStale:!0})){const r=this.valList[t];if(this.isBackgroundFetch(r))r.__abortController.abort();else{const n=this.keyList[t];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return hi("reset","clear"),this.clear}get length(){return Yg("length","size"),this.size}static get AbortController(){return Rr}static get AbortSignal(){return xa}}var Kg=Je;const Xg=Kg;async function Jg(e){return(await li.get("/pvideo",{params:{aid:e}})).data.data}async function Zg(e){return[]}const mi=new Xg({max:200});async function Qg(e){if(mi.has(e))return mi.get(e);const[t,r]=await Promise.all([Jg(e),Zg()]);return mi.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function La(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",Hg());const s=(await li.post("/x/v2/history/toview/"+e,n,{withCredentials:!0})).data,o=(s==null?void 0:s.code)===0&&(s==null?void 0:s.message)==="0";return o||ce((s==null?void 0:s.message)||"\u51FA\u9519\u4E86"),o}}const qg=La("add"),ev=La("del"),Ma=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){var a;const s=(await Pr.get(Ta+t,{params:{goto:r.goto,id:r.param,mid:r.mid,rid:r.tid,tag_id:(a=r.tag)==null?void 0:a.tag_id,reason_id:n,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(s==null?void 0:s.code)===0&&(s==null?void 0:s.message)==="0"}},tv=Ma("dislike"),rv=Ma("cancel"),Ze={modal:"_modal_g0in4_1",titleDesc:"_title-desc_g0in4_4",reasonList:"_reason-list_g0in4_8",reason:"_reason_g0in4_8",reasonNo:"_reason-no_g0in4_29",tips:"_tips_g0in4_43"},Fr=Bg();function nv(){return it(Fr)}function iv(e){const t=nv();if(!!e)return t.get(e)}function sv({show:e,onHide:t,item:r}){const[n,i]=g.useState(!1),s=H(async(u,c)=>{if(!r)return;let l=!1,f=null;try{i(!0),l=await tv(r,u)}catch(d){f=d}finally{i(!1)}if(f)return console.error(f.stack||f),ka();l?ce("\u5DF2\u6807\u8BB0\u4E0D\u60F3\u770B"):Ea(),l&&(Fr.set(r.param,{id:u,name:c}),t())}),o=g.useMemo(()=>{var u;return[...(u=r==null?void 0:r.dislike_reasons)!=null?u:[],{reason_id:12,reason_name:"\u6B64\u7C7B\u5185\u5BB9\u8FC7\u591A"},{reason_id:13,reason_name:"\u63A8\u8350\u8FC7"}]},[r]),a=["1","2","3","4","5","6"];return Se(a,u=>{if(!e||!r||!a.includes(u.key))return;const c=Number(u.key)-1,l=document.querySelectorAll(`.${Ze.reason}`)[c]||null;l==null||l.click()}),A(ci,{show:e,onHide:t,clsModal:Ze.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[A("div",{className:de.modalHeader,children:[A("div",{className:de.modalTitle,children:["\u6211\u4E0D\u60F3\u770B",h("span",{className:Ze.titleDesc,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),h("div",{className:"space",style:{flex:1}}),h(ui,{onClick:t})]}),A("div",{className:de.modalBody,children:[h("div",{className:Ze.reasonList,children:o.map((u,c)=>A("button",{className:Ze.reason,"data-id":u.reason_id,onClick:()=>s(u.reason_id,u.reason_name),disabled:n,children:[h("span",{className:Ze.reasonNo,children:c+1}),u.reason_name]},u.reason_id))}),A("div",{className:Ze.tips,children:[h(ct,{name:"Info",size:15,style:{marginRight:5}}),"\u4F7F\u7528\u5220\u9664\u952E\u6253\u5F00\u5F39\u6846, \u6570\u5B57\u952E\u9009\u62E9, Esc \u5173\u95ED"]})]})]})}const jr={show:!1,onHide:Ra,item:null},Pa=nt({value:jr.show}),ov=function(){return it(Pa).value};function Ra(){Da({show:!1,item:null})}function Da(e){Object.assign(jr,e),Pa.value=jr.show,av().render(h(sv,{...jr,onHide:Ra}))}let gi;function av(){if(!gi){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),gi=rr(e)}return gi}function Na(e){(e==null?void 0:e.param)&&Fr.has(e.param)||Da({show:!0,item:e})}function cv(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(o=>ah(o.toString(),2,"0")).join(":")}function vi(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}\u4E07`}const Z={biliVideoCard:"_bili-video-card_1a93a_1",imageWrapper:"_image-wrapper_1a93a_4",previewCardWrapper:"_preview-card-wrapper_1a93a_8",previewCardInner:"_preview-card-inner_1a93a_21",watchLater:"_watch-later_1a93a_25",badge:"_badge_1a93a_28",recommendReason:"_recommend-reason_1a93a_36",bangumiDesc:"_bangumi-desc_1a93a_51",btnDislike:"_btn-dislike_1a93a_54",btnDislikeIcon:"_btn-dislike-icon_1a93a_69",btnDislikeTip:"_btn-dislike-tip_1a93a_76",dislikedWrapper:"_disliked-wrapper_1a93a_91",dislikeContentCover:"_dislike-content-cover_1a93a_105",dislikeContentCoverInner:"_dislike-content-cover-inner_1a93a_111",dislikeIcon:"_dislike-icon_1a93a_122",dislikeReason:"_dislike-reason_1a93a_125",dislikeDesc:"_dislike-desc_1a93a_129",dislikeContentAction:"_dislike-content-action_1a93a_133"};function yi(e,t){return isNaN(e)?t:e}function uv({className:e,item:t,pvideo:r,enterCursorState:n}){const i=g.useRef(null),s=Lg(i),o={item:t,pvideo:r,cursorState:s,elWidth:yi(s.elementW,n.width),elHeight:yi(s.elementH,n.height),relativeX:yi(s.elementX,n.relativeX)};return h("div",{ref:i,className:J(Z.previewCardWrapper,e),children:r?h(lv,{...o}):!1})}function lv({item:e,pvideo:t,elWidth:r,elHeight:n,relativeX:i}){var b;let s=0,o=0;r&&i&&!isNaN(i)&&!isNaN(r)&&(s=i/r,s<0&&(s=0),s>1&&(s=1),o=Math.floor((e.duration||0)*s));let a=g.useMemo(()=>{const E=(t==null?void 0:t.index)||[];let R=dv(E,o);return R!==-1?R:o>E[E.length-1]?(R=Math.floor(E.length*s)-1,R<0&&(R=0),R):0},[t,o]);const{img_x_len:u,img_y_len:c,img_x_size:l,img_y_size:f}=t,d=c*u;a=a+1;const p=Math.floor(a/d),m=a-p*d,y=((b=t.image)==null?void 0:b[p])||"",v=Math.floor(m/u)+1,C=m-(v-1)*u,M=r*u,O=n*c,x=(v-1)*n,_=(C-1)*r;return h("div",{className:Z.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${y})`,backgroundPosition:`-${_}px -${x}px`,backgroundSize:`${M}px ${O}px`},children:h(fv,{progress:s})})}function fv({progress:e}){return h("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:h("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function dv(e,t){var a;let r=0,n=e.length-1,i=-1;for(;r<=n;){const u=Math.floor((r+n)/2),c=e[u];if(t===c)return u;c<t?(r=u+1,i=u):n=u-1}if(i===-1)return-1;const s=e[i],o=(a=e[i+1])!=null?a:0;return s<t&&t<o?i:-1}const hv=_a().format("YYYY"),pv=e=>{if(!e)return"";const t=_a.unix(e);return t.format("YYYY")===hv?t.format("M-D"):t.format("YY-M-D")},mv=e=>e.replace(/^http:\/\//,"https://"),bi=g.memo(function({style:t,className:r,item:n,loading:i,...s}){i=i!=null?i:!n;const o=A("div",{className:J("bili-video-card__skeleton",{hide:!i}),children:[h("div",{className:"bili-video-card__skeleton--cover"}),h("div",{className:"bili-video-card__skeleton--info",children:A("div",{className:"bili-video-card__skeleton--right",children:[h("p",{className:"bili-video-card__skeleton--text"}),h("p",{className:"bili-video-card__skeleton--text short"}),h("p",{className:"bili-video-card__skeleton--light"})]})})]}),a=iv(n==null?void 0:n.param);return A("div",{style:t,className:J("bili-video-card",Z.biliVideoCard,r),"data-report":"partition_recommend.content",...s,children:[o,!i&&n&&(a?h(gv,{item:n,dislikedReason:a}):h(vv,{item:n}))]})}),gv=g.memo(function({dislikedReason:t,item:r}){const n=H(async()=>{if(!(t!=null&&t.id))return;let i=!1,s=null;try{i=await rv(r,t.id)}catch(o){s=o}if(s)return console.error(s.stack||s),ka();i?ce("\u5DF2\u64A4\u9500"):Ea(),i&&Fr.delete(r.param)});return A("div",{className:J(Z.dislikedWrapper),children:[h("div",{className:Z.dislikeContentCover,children:A("div",{className:Z.dislikeContentCoverInner,children:[h(ct,{name:"DistraughtFace",size:32,className:Z.dislikeIcon}),h("div",{className:Z.dislikeReason,children:t==null?void 0:t.name}),h("div",{className:Z.dislikeDesc,children:"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),h("div",{className:Z.dislikeContentAction,children:A("button",{onClick:n,children:[h(ct,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"\u64A4\u9500"]})})]})}),vv=g.memo(function({item:t}){const r=g.useRef(null),[n,i]=g.useState(()=>({width:0,height:0,relativeX:0}));Lr("mouseenter",ue=>{var oc;const Vr=(oc=r.current)==null?void 0:oc.getBoundingClientRect();if(!Vr)return;const{width:Kr,height:Ui,x:fy}=Vr;i({width:Kr,height:Ui,relativeX:ue.pageX-window.pageXOffset-fy})},{target:r});const s=si(r),o=g.useRef(null),a=si(o),[u,c]=g.useState(!1),{accessKey:l}=Ie(),f=Boolean(l),{param:d,title:p,cover:m,goto:y,play:v,like:C,coin:M,desc:O,danmaku:x,ctime:_,duration:b,name:E,face:R,mid:I,favorite:j,badge:P,rcmd_reason:F}=t,k=g.useMemo(()=>pv(_),[_]),w=g.useMemo(()=>mv(m),[m]),[S,L]=g.useState(null),[T,D]=g.useState(!1),N=H(async()=>{if(!S&&!T)try{D(!0);const ue=await Qg(d);L(ue)}finally{D(!1)}});g.useEffect(()=>{s&&N()},[s]);let W=!1;const Y=H(async ue=>{if(ue.preventDefault(),W)return;W=!0;const Vr=u?ev:qg;let Kr=!1;try{Kr=await Vr(d)}finally{W=!1}Kr&&c(Ui=>!Ui)}),G=g.useRef(null),Q=si(G),xe=H(ue=>{ue.stopPropagation(),ue.preventDefault(),Na(t)}),pe=t.goto==="bangumi",De=t.goto==="av",Ne=De?`/video/av${d}`:t.uri,$e=g.useMemo(()=>cv(b),[b]),te=g.useMemo(()=>vi(v),[v]),Oe=g.useMemo(()=>vi(C),[C]),Vt=g.useMemo(()=>vi(j),[j]);return A("div",{className:"bili-video-card__wrap __scale-wrap",children:[h("a",{href:Ne,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:A("div",{className:"bili-video-card__image __scale-player-wrap",ref:r,children:[A("div",{className:J("bili-video-card__image--wrap",Z.imageWrapper),children:[A("picture",{className:"v-img bili-video-card__cover",children:[h("source",{srcSet:`${w}@672w_378h_1c.webp`,type:"image/webp"}),h("img",{src:`${w}@672w_378h_1c.webp`,alt:p,loading:"lazy"})]}),s&&h(uv,{item:t,pvideo:S==null?void 0:S.pvideoData,enterCursorState:n}),A("div",{className:`bili-watch-later ${Z.watchLater}`,style:{display:s?"flex":"none"},ref:o,onClick:Y,children:[h("svg",{className:"bili-watch-later__icon",children:h("use",{xlinkHref:u?"#widget-watch-save":"#widget-watch-later"})}),h("span",{className:"bili-watch-later__tip",style:{display:a?"block":"none"},children:u?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),f&&A("div",{ref:G,className:Z.btnDislike,onClick:xe,style:{display:s?"flex":"none"},children:[h("svg",{className:Z.btnDislikeIcon,children:h("use",{xlinkHref:"#widget-close"})}),h("span",{className:Z.btnDislikeTip,style:{display:Q?"block":"none"},children:"\u6211\u4E0D\u60F3\u770B"})]})]}),h("div",{className:"bili-video-card__mask",children:A("div",{className:"bili-video-card__stats",children:[A("div",{className:"bili-video-card__stats--left",children:[A("span",{className:"bili-video-card__stats--item",children:[h("svg",{className:"bili-video-card__stats--icon",children:h("use",{xlinkHref:"#widget-play-count"})}),h("span",{className:"bili-video-card__stats--text",children:te})]}),h("span",{className:"bili-video-card__stats--item",children:y==="av"?A(We,{children:[h("svg",{className:"bili-video-card__stats--icon",children:h("use",{xlinkHref:"#widget-agree"})}),h("span",{className:"bili-video-card__stats--text",children:Oe})]}):A(We,{children:[h("svg",{className:"bili-video-card__stats--icon",children:h("use",{xlinkHref:"#widget-agree"})}),h("span",{className:"bili-video-card__stats--text",children:Vt})]})})]}),h("span",{className:"bili-video-card__stats__duration",children:De&&$e})]})})]})}),h("div",{className:"bili-video-card__info __scale-disable",children:A("div",{className:"bili-video-card__info--right",children:[h("a",{href:Ne,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:h("h3",{className:"bili-video-card__info--tit",title:p,children:p})}),A("p",{className:"bili-video-card__info--bottom",children:[De&&A("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${I}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[F!=null&&F.content?h("span",{className:Z.recommendReason,children:F.content}):h("svg",{className:"bili-video-card__info--owner__up",children:h("use",{xlinkHref:"#widget-up"})}),h("span",{className:"bili-video-card__info--author",children:E}),k&&A("span",{className:"bili-video-card__info--date",children:["\xB7 ",k]})]}),pe&&A("a",{className:"bili-video-card__info--owner",href:Ne,target:"_blank",children:[h("span",{className:Z.badge,children:P}),h("span",{className:Z.bangumiDesc,children:O})]})]})]})})]})});var Ir={exports:{}},_i={exports:{}},zt={exports:{}},V=zt.exports={},Ce,ke;function wi(){throw new Error("setTimeout has not been defined")}function Si(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ce=setTimeout:Ce=wi}catch{Ce=wi}try{typeof clearTimeout=="function"?ke=clearTimeout:ke=Si}catch{ke=Si}})();function Fa(e){if(Ce===setTimeout)return setTimeout(e,0);if((Ce===wi||!Ce)&&setTimeout)return Ce=setTimeout,setTimeout(e,0);try{return Ce(e,0)}catch{try{return Ce.call(null,e,0)}catch{return Ce.call(this,e,0)}}}function yv(e){if(ke===clearTimeout)return clearTimeout(e);if((ke===Si||!ke)&&clearTimeout)return ke=clearTimeout,clearTimeout(e);try{return ke(e)}catch{try{return ke.call(null,e)}catch{return ke.call(this,e)}}}var Pe=[],gt=!1,Qe,Wr=-1;function bv(){!gt||!Qe||(gt=!1,Qe.length?Pe=Qe.concat(Pe):Wr=-1,Pe.length&&ja())}function ja(){if(!gt){var e=Fa(bv);gt=!0;for(var t=Pe.length;t;){for(Qe=Pe,Pe=[];++Wr<t;)Qe&&Qe[Wr].run();Wr=-1,t=Pe.length}Qe=null,gt=!1,yv(e)}}V.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];Pe.push(new Ia(e,t)),Pe.length===1&&!gt&&Fa(ja)};function Ia(e,t){this.fun=e,this.array=t}Ia.prototype.run=function(){this.fun.apply(null,this.array)},V.title="browser",V.browser=!0,V.env={},V.argv=[],V.version="",V.versions={};function Re(){}V.on=Re,V.addListener=Re,V.once=Re,V.off=Re,V.removeListener=Re,V.removeAllListeners=Re,V.emit=Re,V.prependListener=Re,V.prependOnceListener=Re,V.listeners=function(e){return[]},V.binding=function(e){throw new Error("process.binding is not supported")},V.cwd=function(){return"/"},V.chdir=function(e){throw new Error("process.chdir is not supported")},V.umask=function(){return 0};var Ci;typeof Object.create=="function"?Ci=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:Ci=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t};const Wa=Ci;var _v=/%[sdj%]/g;function vt(e){if(!$t(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Ee(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,s=String(e).replace(_v,function(a){if(a==="%%")return"%";if(r>=i)return a;switch(a){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 a}}),o=n[r];r<i;o=n[++r])Bt(o)||!qe(o)?s+=" "+o:s+=" "+Ee(o);return s}function ki(e,t){if(Te(global.process))return function(){return ki(e,t).apply(this,arguments)};if(zt.exports.noDeprecation===!0)return e;var r=!1;function n(){if(!r){if(zt.exports.throwDeprecation)throw new Error(t);zt.exports.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n}var zr={},Ei;function za(e){if(Te(Ei)&&(Ei=zt.exports.env.NODE_DEBUG||""),e=e.toUpperCase(),!zr[e])if(new RegExp("\\b"+e+"\\b","i").test(Ei)){var t=0;zr[e]=function(){var r=vt.apply(null,arguments);console.error("%s %d: %s",e,t,r)}}else zr[e]=function(){};return zr[e]}function Ee(e,t){var r={seen:[],stylize:Sv};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),$r(t)?r.showHidden=t:t&&Pi(r,t),Te(r.showHidden)&&(r.showHidden=!1),Te(r.depth)&&(r.depth=2),Te(r.colors)&&(r.colors=!1),Te(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=wv),Br(r,e,r.depth)}Ee.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]},Ee.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function wv(e,t){var r=Ee.styles[t];return r?"\x1B["+Ee.colors[r][0]+"m"+e+"\x1B["+Ee.colors[r][1]+"m":e}function Sv(e,t){return e}function Cv(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function Br(e,t,r){if(e.customInspect&&t&&Gt(t.inspect)&&t.inspect!==Ee&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return $t(n)||(n=Br(e,n,r)),n}var i=kv(e,t);if(i)return i;var s=Object.keys(t),o=Cv(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),Ut(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Ti(t);if(s.length===0){if(Gt(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Ht(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Hr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ut(t))return Ti(t)}var u="",c=!1,l=["{","}"];if(Oi(t)&&(c=!0,l=["[","]"]),Gt(t)){var f=t.name?": "+t.name:"";u=" [Function"+f+"]"}if(Ht(t)&&(u=" "+RegExp.prototype.toString.call(t)),Hr(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Ut(t)&&(u=" "+Ti(t)),s.length===0&&(!c||t.length==0))return l[0]+u+l[1];if(r<0)return Ht(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return c?d=Ev(e,t,r,o,s):d=s.map(function(p){return xi(e,t,r,o,p,c)}),e.seen.pop(),Tv(d,u,l)}function kv(e,t){if(Te(t))return e.stylize("undefined","undefined");if($t(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Ai(t))return e.stylize(""+t,"number");if($r(t))return e.stylize(""+t,"boolean");if(Bt(t))return e.stylize("null","null")}function Ti(e){return"["+Error.prototype.toString.call(e)+"]"}function Ev(e,t,r,n,i){for(var s=[],o=0,a=t.length;o<a;++o)Ya(t,String(o))?s.push(xi(e,t,r,n,String(o),!0)):s.push("");return i.forEach(function(u){u.match(/^\d+$/)||s.push(xi(e,t,r,n,u,!0))}),s}function xi(e,t,r,n,i,s){var o,a,u;if(u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},u.get?u.set?a=e.stylize("[Getter/Setter]","special"):a=e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Ya(n,i)||(o="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(Bt(r)?a=Br(e,u.value,null):a=Br(e,u.value,r-1),a.indexOf(`
`)>-1&&(s?a=a.split(`
`).map(function(c){return"  "+c}).join(`
`).substr(2):a=`
`+a.split(`
`).map(function(c){return"   "+c}).join(`
`))):a=e.stylize("[Circular]","special")),Te(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function Tv(e,t,r){var n=e.reduce(function(i,s){return s.indexOf(`
`)>=0,i+s.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 Oi(e){return Array.isArray(e)}function $r(e){return typeof e=="boolean"}function Bt(e){return e===null}function Ba(e){return e==null}function Ai(e){return typeof e=="number"}function $t(e){return typeof e=="string"}function $a(e){return typeof e=="symbol"}function Te(e){return e===void 0}function Ht(e){return qe(e)&&Li(e)==="[object RegExp]"}function qe(e){return typeof e=="object"&&e!==null}function Hr(e){return qe(e)&&Li(e)==="[object Date]"}function Ut(e){return qe(e)&&(Li(e)==="[object Error]"||e instanceof Error)}function Gt(e){return typeof e=="function"}function Ha(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Ua(e){return Buffer.isBuffer(e)}function Li(e){return Object.prototype.toString.call(e)}function Mi(e){return e<10?"0"+e.toString(10):e.toString(10)}var xv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ov(){var e=new Date,t=[Mi(e.getHours()),Mi(e.getMinutes()),Mi(e.getSeconds())].join(":");return[e.getDate(),xv[e.getMonth()],t].join(" ")}function Ga(){console.log("%s - %s",Ov(),vt.apply(null,arguments))}function Pi(e,t){if(!t||!qe(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function Ya(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Av=vh(Object.freeze(Object.defineProperty({__proto__:null,format:vt,deprecate:ki,debuglog:za,inspect:Ee,isArray:Oi,isBoolean:$r,isNull:Bt,isNullOrUndefined:Ba,isNumber:Ai,isString:$t,isSymbol:$a,isUndefined:Te,isRegExp:Ht,isObject:qe,isDate:Hr,isError:Ut,isFunction:Gt,isPrimitive:Ha,isBuffer:Ua,log:Ga,inherits:Wa,_extend:Pi,default:{inherits:Wa,_extend:Pi,log:Ga,isBuffer:Ua,isPrimitive:Ha,isFunction:Gt,isError:Ut,isDate:Hr,isObject:qe,isRegExp:Ht,isUndefined:Te,isSymbol:$a,isString:$t,isNumber:Ai,isNullOrUndefined:Ba,isNull:Bt,isBoolean:$r,isArray:Oi,inspect:Ee,deprecate:ki,format:vt,debuglog:za}},Symbol.toStringTag,{value:"Module"}))).format;function Lv(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal")}function Mv(e,t){return function(){var r=this,n=[].slice.call(arguments);Lv();var i=new AbortController;return n.push(i.signal),new Promise(function(s,o){var a=setTimeout(function(){var u=new Ur(t);o(u),i.abort()},t);Promise.resolve(e.apply(r,n)).then(function(u){clearTimeout(a),s(u)},function(u){clearTimeout(a),o(u)})})}}class Ur extends Error{constructor(t){super(),this.timeout=t,this.message=Av("timeout of %sms exceed",t),Error.captureStackTrace(this,Ur)}}_i.exports=Mv,_i.exports.TimeoutError=Ur;const Va=_i.exports,Pv=Va.TimeoutError;Ir.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,s=r.timeout;s&&(t=Va(t,s));const o=r.onerror;return async function(){const a=this,u=[].slice.call(arguments),c=new Array(i);for(let l=0;l<i;l++){let f,d;try{f=await t.apply(a,u)}catch(p){d=p}if(!d)return f;if(d instanceof TypeError)throw d;if(d instanceof Rv)throw d.originalError;c[l]=d,o&&o(d,l)}throw new Ka({times:i,timeout:s,fn:n,errors:c})}};class Ka 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 Rv 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 Dv=Ir.exports.RetryError=Ka;Ir.exports.TimeoutError=Pv;const Ri="bilibili-app-recommend";class Di extends Error{constructor(r){super();Xr(this,"json");Error.captureStackTrace(this,Di),this.json=r,this.message=r.message||JSON.stringify(r)}}async function Nv(){const t=(await Pr.get(Ta+"/x/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 Di(t);return ce(`${Ri}: \u672A\u77E5\u9519\u8BEF, \u8BF7\u8054\u7CFB\u5F00\u53D1\u8005

  code=${t.code} message=${t.message||""}`,"5s"),[]}return t.data}const Fv=Ir.exports(Nv,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Ri,t,e)}});async function jv(){try{return await Fv()}catch(e){if(e instanceof Dv){console.error(e.errors);const t=[vt("\u8BF7\u6C42\u51FA\u9519, \u5DF2\u91CD\u8BD5%s\u6B21:",e.times),...e.errors.map((r,n)=>vt("  %s) %s",n+1,r.message)),"","\u8BF7\u91CD\u65B0\u83B7\u53D6 access_key \u540E\u91CD\u8BD5~"].join(`
`);ce(t,"5s")}throw e}}async function Iv(){return Ni(2)}async function Ni(e){const t=new Array(e).fill(0).map(i=>jv());let n=(await Promise.all(t)).reduce((i,s)=>i.concat(s||[]),[]);return n=Wv(n),n.map(i=>({...i,uniqId:i.param+"-"+crypto.randomUUID()}))}function Wv(e){const t=new Set;return e=e.filter(r=>{const{param:n}=r;return t.has(n)?(console.log("[%s]: [uniqRecList]: duplicate",Ri,r),!1):(t.add(n),!0)}),e}var ie={exports:{}},zv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bv=zv,$v=Bv;function Xa(){}function Ja(){}Ja.resetWarningCache=Xa;var Hv=function(){function e(n,i,s,o,a,u){if(u!==$v){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var 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:Ja,resetWarningCache:Xa};return r.PropTypes=r,r};ie.exports=Hv();class Fi extends g.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!=null?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 s=document.documentElement||document.body.parentNode||document.body,o=r.pageYOffset!==void 0?r.pageYOffset:s.scrollTop;this.props.isReverse?i=o:i=this.calculateOffset(t,o)}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:s,isReverse:o,loader:a,loadMore:u,pageStart:c,ref:l,threshold:f,useCapture:d,useWindow:p,getScrollParent:m,...y}=t;y.ref=C=>{this.scrollComponent=C,l&&l(C)};const v=[r];return i&&(a?o?v.unshift(a):v.push(a):this.defaultLoader&&(o?v.unshift(this.defaultLoader):v.push(this.defaultLoader))),se.default.createElement(n,y,v)}}Xr(Fi,"propTypes",{children:ie.exports.node.isRequired,element:ie.exports.node,hasMore:ie.exports.bool,initialLoad:ie.exports.bool,isReverse:ie.exports.bool,loader:ie.exports.node,loadMore:ie.exports.func.isRequired,pageStart:ie.exports.number,ref:ie.exports.func,getScrollParent:ie.exports.func,threshold:ie.exports.number,useCapture:ie.exports.bool,useWindow:ie.exports.bool}),Xr(Fi,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const ji="_video-grid_14t5i_9",Za="_limit-two-lines_14t5i_19",Ii="_internal-testing_14t5i_43",Uv="_limit-one-line_14t5i_50",Qa="_narrow-mode_14t5i_71",tb={videoGrid:ji,limitTwoLines:Za,internalTesting:Ii,limitOneLine:Uv,narrowMode:Qa};function Gv({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:s,openDislikeAt:o,changeScrollY:a}){const[u,c]=g.useState(null),l=H(()=>{var k;if(u===null||!i.current)return!1;const P=s(),F=(k=i.current.querySelector(`.${yt.card}.${yt.cardActive}`))==null?void 0:k.getBoundingClientRect();return!(!P||!F||F.top-P.top<-(P.height+F.height)||F.top-P.top>P.height*2+F.height)}),f=H((P,F)=>{if(!e)return;F==null||F.preventDefault();const k=l()?u+P:x();if(k<r){R(r);return}if(k>n){R(n);return}c(k),R(k)}),d=g.useCallback(P=>{f(-1,P)},[]),p=g.useCallback(P=>{f(1,P)},[]);Se("leftarrow",d),Se("rightarrow",p);const m=g.useCallback(P=>{f(-j(),P)},[]),y=g.useCallback(P=>{f(j(),P)},[]);Se("uparrow",m),Se("downarrow",y);const v=H(()=>{!e||c(null)}),C=H(()=>{!e||typeof u!="number"||I(u)}),M=H(()=>{!e||typeof u!="number"||o(u)});Se("esc",v),Se("enter",C),Se("backspace",M);const O=H(()=>{!e||t()});Se("r",O,{exactMatch:!0});function x(){const P=s();if(!P)return 0;const F=b();for(let k=0;k<F.length;k++)if(F[k].getBoundingClientRect().top>=P.top)return k;return 0}const _=`.${yt.card}`;function b(){var P;return[...((P=i.current)==null?void 0:P.querySelectorAll(_))||[]]}function E(P){return b()[P]}function R(P){var S;const F=E(P);(S=F==null?void 0:F.scrollIntoViewIfNeeded)==null||S.call(F,!1);const k=s(),w=F.getBoundingClientRect();if(!(!k||!w)){if(w.top<=k.top){const L=-(k.top-w.top+10);a==null||a({offset:L});return}if(k.bottom-w.bottom<10){const L=10-(k.bottom-w.bottom);a==null||a({offset:L});return}}}function I(P){const F=E(P);if(!F)return;const k=F.querySelector(".bili-video-card__wrap > a");k==null||k.click()}function j(){if(fe.useNarrowMode)return 2;let P=qa.get(window.innerWidth);if(P)return P;const F=i.current;if(!F)return 0;const k=window.getComputedStyle(F);return k.display!=="grid"?0:(P=k.gridTemplateColumns.split(" ").length,qa.set(window.innerWidth,P),P)}return{activeIndex:u,clearActiveIndex:v}}const qa=new Map,yt={loader:Qn`
    text-align: center;
    line-height: 60px;
    font-size: 120%;
  `,card:Qn`
    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:Qn`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `},ec=g.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},s)=>{const[o,a]=g.useState([]),[u,c]=g.useState(!1);g.useImperativeHandle(s,()=>({refresh:l}));const l=H(async()=>{await(r==null?void 0:r());try{C(),c(!0),a(await Ni(2)),C()}finally{c(!1)}}),f=H(async O=>{const x=await Ni(2);a(_=>[..._,...x])}),{useNarrowMode:d}=Ie(),p=g.useRef(null),m=H(()=>{var O;if(e){const x=mo+50;return new DOMRect(0,x,window.innerWidth,window.innerHeight-x)}else return(O=i==null?void 0:i.current)==null?void 0:O.getBoundingClientRect()}),y=ov(),{activeIndex:v,clearActiveIndex:C}=Gv({enabled:t&&!y,refresh:l,maxIndex:o.length-1,containerRef:p,getScrollerRect:m,openDislikeAt(O){Na(o[O])},changeScrollY:e?function({offset:O,absolute:x}){const _=document.documentElement;if(typeof O=="number"){_.scrollTop+=O;return}if(typeof x=="number"){_.scrollTop=x;return}}:void 0}),M=kt();return h(Fi,{pageStart:0,loadMore:f,hasMore:!0,useWindow:e,threshold:360,style:{minHeight:"100%"},loader:h("div",{className:yt.loader,children:"\u52A0\u8F7D\u4E2D..."},0),children:h("div",{ref:p,className:J(ji,{[Ii]:M},{[Qa]:d},n),children:o.map((O,x)=>h(bi,{loading:u,item:O,className:J(yt.card,{[yt.cardActive]:x===v})},O.uniqId))})})}),Yv={checkbox:"_checkbox_5cp8u_1"};async function Vv(){var u,c;const t=(await Jr.default.get("https://passport.bilibili.com/login/app/third",{params:{appkey:"27eb53fc9058f8c3",api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((u=t==null?void 0:t.data)!=null&&u.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:t};if(!((c=t==null?void 0:t.data)!=null&&c.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:t};const r=t.data.confirm_uri;let n;const i=new Promise(l=>{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 l({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});l(d[1])}),n=setTimeout(()=>{l({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},10*1e3)}),s=document.createElement("iframe");s.src=r,s.style.display="none",document.body.appendChild(s);function o(){s.remove(),n&&(clearTimeout(n),n=null)}const a=await i;return o(),a}async function Kv(){const e=await Vv();if(typeof e=="object"&&"errmsg"in e){ce(e.errmsg);return}const t=e;return fe.accessKey=t,ce("\u83B7\u53D6\u6210\u529F"),t}function Xv(){fe.accessKey="",ce("\u5DF2\u5220\u9664 access_key")}function Wi(){const e=g.useRef(null),{accessKey:t}=Ie(),r=ga(Kv,{manual:!0}),n=H(async()=>{var a;await r.runAsync()&&((a=e.current)==null||a.set(!1))}),i=Xv,s=H(()=>{const o="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(o,"_blank")});return h(We,{children:t?A(We,{children:[h("button",{className:"primary-btn roll-btn",onClick:s,children:h("span",{children:"access_key \u8BF4\u660E"})}),h("button",{className:"primary-btn roll-btn",onClick:()=>n(),disabled:r.loading,children:h("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),h("button",{className:"primary-btn roll-btn",onClick:i,children:h("span",{children:"\u5220\u9664 access_key"})})]}):A(We,{children:[h("button",{className:"primary-btn roll-btn",onClick:s,children:h("span",{children:"access_key \u8BF4\u660E"})}),h("button",{className:"primary-btn roll-btn",onClick:n,disabled:r.loading,children:h("span",{children:"\u83B7\u53D6 access_key"})})]})})}const zi={container:{name:"8irbms",styles:"display:inline-flex;align-items:center"},checkbox:{name:"4l4ubo",styles:"cursor:pointer;outline:none"},label:{name:"side0b",styles:"margin-left:2px;user-select:none;cursor:pointer"}};function Gr({configKey:e,label:t,className:r}){const i=!!Ie()[e],s=g.useCallback(a=>{const u=a.target.checked;Nh({[e]:u}),u&&e==="initialShowMore"&&ce("\u5DF2\u5F00\u542F\u81EA\u52A8\u67E5\u770B\u66F4\u591A: \u4E0B\u6B21\u6253\u5F00\u9996\u9875\u65F6\u5C06\u76F4\u63A5\u5C55\u793A\u63A8\u8350\u5F39\u6846")},[]),o=g.useId();return A("span",{css:zi.container,className:r,children:[h("input",{type:"checkbox",id:o,checked:i,onChange:s,css:zi.checkbox}),h("label",{htmlFor:o,css:zi.label,children:t||e})]})}var Jv={name:"1qkltea",styles:"margin-left:5px"};const Zv=function(){const e=Jv;return A(We,{children:[h(Gr,{configKey:"initialShowMore",label:"\u81EA\u52A8\u67E5\u770B\u66F4\u591A",css:e}),h(Gr,{configKey:"useNarrowMode",label:"\u542F\u7528\u5C45\u4E2D\u6A21\u5F0F(\u5C45\u4E2D\u4E24\u5217)",css:e})]})},he={configIcon:"_config-icon_1jab1_1",settingsGroup:"_settings-group_1jab1_6",settingsGroupTitle:"_settings-group-title_1jab1_9",settingsGroupContent:"_settings-group-content_1jab1_12",row:"_row_1jab1_18",check:"_check_1jab1_22"};function Qv({show:e,onHide:t}){const r=g.useId(),{pureRecommend:n}=Ie();return A(ci,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[A("div",{className:de.modalHeader,children:[A("div",{className:de.modalTitle,children:[h(ct,{name:"Config",className:he.configIcon}),"\u8BBE\u7F6E\u9879"]}),h("div",{className:"space",style:{flex:1}}),h(ui,{onClick:t})]}),A("main",{className:de.modalBody,children:[A("div",{className:he.settingsGroup,children:[h("div",{className:he.settingsGroupTitle,children:"Auth"}),h("div",{className:J(he.settingsGroupContent,he.row),children:h(Wi,{})})]}),A("div",{className:he.settingsGroup,children:[h("div",{className:he.settingsGroupTitle,children:"\u5F00\u5173"}),A("div",{className:J(he.settingsGroupContent,he.row),children:[h("input",{type:"checkbox",className:Yv.checkbox,id:r,checked:n,onChange:async i=>{fe.pureRecommend=i.target.checked,ce("\u5373\u5C06\u5237\u65B0\u7F51\u9875"),await Ct.exports(500),location.reload()}}),h("label",{htmlFor:r,children:"\u5F00\u542F\u7EAF\u63A8\u8350\u6A21\u5F0F"}),h(Gr,{configKey:"initialShowMore",label:"\u81EA\u52A8\u67E5\u770B\u66F4\u591A",className:he.check}),h(Gr,{configKey:"useNarrowMode",label:"\u542F\u7528\u5C45\u4E2D\u6A21\u5F0F(\u5C45\u4E2D\u4E24\u5217)",className:he.check})]})]})]})]})}const tc={expandBtn:"_expand-btn_wdzp9_1",expanded:"_expanded_wdzp9_12"},rc=g.forwardRef(function({children:t},r){const[n,i]=va(!1);g.useImperativeHandle(r,()=>i,[i]);const s=h("button",{className:J("primary-btn",tc.expandBtn),onClick:i.toggle,children:h("svg",{className:J({[tc.expanded]:n}),children:h("use",{xlinkHref:"#widget-arrow"})})});return A(We,{children:[s,n&&t]})}),Yt={modalMask:"_modal-mask_1as61_1",narrowMode:"_narrow-mode_1as61_1",modal:"_modal_1as61_1",modalHeader:"_modal-header_1as61_21",modalBody:"_modal-body_1as61_22",btnRefresh:"_btn-refresh_1as61_25"},qv=g.memo(function({show:t,onHide:r}){const n=g.useRef(null),i=g.useRef(null),{useNarrowMode:s}=Ie(),o=g.useMemo(()=>({[Yt.narrowMode]:s}),[s]),a=H(()=>{var c;return(c=i.current)==null?void 0:c.refresh()}),u=H(()=>{n.current&&(n.current.scrollTop=0)});return A(ci,{show:t,onHide:r,clsModalMask:J(o),clsModal:J(Yt.modal,o),children:[A("div",{className:J(de.modalHeader,Yt.modalHeader),children:[h("div",{className:de.modalTitle,children:"\u63A8\u8350"}),h("div",{className:"space",style:{flex:1}}),h(rc,{children:h(Zv,{})}),A("button",{className:`primary-btn roll-btn ${Yt.btnRefresh}`,onClick:a,children:[h("svg",{children:h("use",{xlinkHref:"#widget-roll"})}),h("span",{children:"\u6362\u4E00\u6362"})]}),h(ui,{onClick:r})]}),h("div",{className:J(de.modalBody,Yt.modalBody),ref:n,children:h(ec,{ref:i,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:n})})]})});var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});var nc=Bi.useSticky=void 0;const $i=se.default;function ey(){const e=(0,$i.useRef)(null),[t,r]=(0,$i.useState)(!1);return(0,$i.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,s=parseInt(getComputedStyle(e.current).top),o=i<=s;o&&!t?r(!0):!o&&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]}nc=Bi.useSticky=ey;const ic={btn:ut`
    padding: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
  `,icon:ut`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Yr=nt({showMore:fe.initialShowMore}),ty=function(){return it(Yr)},ry=()=>{Yr.showMore=!0},ny=()=>{Yr.showMore=!1};function sc({onRefresh:e}){const{accessKey:t,pureRecommend:r}=Ie(),n=g.useRef(null),{showMore:i}=it(Yr),[s,o]=g.useState(!1),a=g.useCallback(()=>{o(!0)},[]),u=g.useCallback(()=>{o(!1)},[]),[c,l]=nc();return An(),A(We,{children:[A("div",{ref:c,className:"area-header",css:[ut`
            margin-bottom: 0;
            height: 50px;
          `,r&&ut`
              position: sticky;
              top: ${mo}px;
              z-index: 1000;
            `,r&&l&&ut`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[A("div",{className:"left",children:[h("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),h("svg",{className:"icon",children:h("use",{xlinkHref:"#channel-cinephile"})}),h("a",{className:"title",href:"#",children:h("span",{children:"\u63A8\u8350"})})]}),A("div",{className:"right",children:[h("button",{className:"primary-btn",css:ic.btn,onClick:a,children:h(ct,{name:"Config",css:ic.icon})}),t?h(rc,{ref:n,children:h(Wi,{})}):h(Wi,{}),A("button",{className:"primary-btn roll-btn",onClick:e,children:[h("svg",{style:{transform:"rotate(0deg)"},children:h("use",{xlinkHref:"#widget-roll"})}),h("span",{children:"\u6362\u4E00\u6362"})]}),A("button",{className:"primary-btn see-more",onClick:ry,children:[h("span",{children:"\u67E5\u770B\u66F4\u591A"}),h("svg",{children:h("use",{xlinkHref:"#widget-arrow"})})]})]})]}),h(qv,{show:i,onHide:ny}),h(Qv,{show:s,onHide:u})]})}const iy={grid:ut`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function sy(){const{useNarrowMode:e}=Ie(),{showMore:t}=ty(),r=g.useRef(null),n=H(()=>{var s;return(s=r.current)==null?void 0:s.refresh()}),i=H(()=>{document.documentElement.scrollTop=0});return A("section",{"data-area":"\u63A8\u8350",children:[h(sc,{onRefresh:n}),h(ec,{ref:r,css:[e&&iy.grid,"",""],shortcutEnabled:!t,infiteScrollUseWindow:!0,onScrollToTop:i})]})}function oy(){const e=g.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),{data:t,loading:r,error:n,refresh:i}=ga(Iv);n&&console.error(n.stack||n);const s=kt();return A("section",{"data-area":"\u63A8\u8350",children:[h(sc,{onRefresh:i}),h("div",{className:J(ji,Za,{[Ii]:s}),style:{marginBottom:s?30:0},children:r||n?e.map(o=>h(bi,{},o)):t.map(o=>h(bi,{item:o},o.uniqId))})]})}const ay=10*1e3;async function Hi(e){let t=[];const r=()=>{t=Array.from(document.querySelectorAll(e))},n=performance.now();for(;!t.length&&performance.now()-n<ay;)await Ct.exports(100),r();t.forEach(i=>{i.remove()})}(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 cy()})();async function cy(){return fe.pureRecommend?ly():uy()}async function uy(){const t=Date.now()+1e4;let r=null;for(;;){if(document.querySelector(".bili-layout > section.bili-grid")){r=document.querySelector(".bili-layout > section.bili-grid");break}if(kt()&&document.querySelector(".recommended-container")){r=document.querySelector(".recommended-container");break}if(Date.now()>t)break;await Ct.exports(100)}if(!r){console.error("[bilibili-app-recommend]: init fail");return}const n=document.createElement("section");r.insertAdjacentElement("afterend",n),rr(n).render(h(oy,{}))}async function ly(){var i,s;kt()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Hi(".bili-feed4 .header-channel")):((s=document.querySelector(".bili-layout"))==null||s.remove(),Hi(".bili-footer"),Hi(".adblock-tips"));const e=document.createElement("div");e.classList.add(kt()?"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),rr(r).render(h(sy,{}))}})(React,ReactDOM,axios,axiosGmxhrAdapter);

QingJ © 2025

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