您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Add app like recommend part to bilibili homepage
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.0.9 // @description Add app like recommend part to bilibili homepage // @description:zh-CN 为B站首页添加像App一样的推荐 // @author magicdawn // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @homepageURL https://github.com/magicdawn/bilibili-app-recommend // @license MIT // // @match *://www.bilibili.com/* // // @include https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // // @grant GM.xmlHttpRequest // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant unsafeWindow // // @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]/dist/jquery.min.js // @require https://unpkg.com/react@18/umd/react.production.min.js // @require https://unpkg.com/react-dom@18/umd/react-dom.production.min.js // // ==/UserScript== (()=>{var n={803:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r,i=typeof n;if("string"==i||"number"==i)e.push(n);else if(Array.isArray(n))!n.length||(r=a.apply(null,n))&&e.push(r);else if("object"==i)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?e.exports=a.default=a:void 0!==(n=function(){return a}.apply(t,[]))&&(e.exports=n)}()},312:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>i,Kh:()=>l,X3:()=>o,ZP:()=>h,a0:()=>d,d$:()=>a,o4:()=>u,oC:()=>s,o_:()=>c});var t=n(117),t=n.n(t),r=n(488),n=n.n(r)()(t()),i=(n.push([e.id,".modal-mask_HxnuB {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 11003;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.modal_LojaL {\n width: 500px;\n max-height: calc(80vh - 50px);\n border-radius: 10px;\n overflow: hidden;\n background-color: #fff;\n padding: 0 15px 15px 15px;\n display: flex;\n flex-direction: column;\n}\n.modal_LojaL .modal-header_qOmD9 {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: none;\n display: flex;\n align-items: center;\n}\n.modal_LojaL .modal-header_qOmD9 .modal-title_tQHq7 {\n font-size: 1.5rem;\n margin-bottom: 0;\n line-height: 1.5;\n}\nbody.dark .modal_LojaL .modal-header_qOmD9 .btn-refresh_YczJ4,\nbody.dark .modal_LojaL .modal-header_qOmD9 .btn-close_S2u9M {\n color: #eee !important;\n background-color: #333 !important;\n border-color: transparent !important;\n height: auto;\n padding: 8px 12px;\n line-height: 16px;\n font-size: 13px;\n}\n.modal_LojaL .modal-header_qOmD9 .btn-close_S2u9M {\n margin-left: 10px;\n}\n.modal_LojaL .modal-body_gHML9 {\n padding-top: 0;\n flex-grow: 1;\n overflow-y: scroll;\n}\n.reason-list_ukHPg {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.reason_mB3ny {\n color: inherit;\n width: 45%;\n text-align: center;\n line-height: 20px;\n border: 1px solid #fa6a9d;\n margin: 5px;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n",""]),"modal-mask_HxnuB"),s="modal_LojaL",o="modal-header_qOmD9",a="modal-title_tQHq7",l="btn-close_S2u9M",c="modal-body_gHML9",d="reason-list_ukHPg",u="reason_mB3ny";const h=n},890:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>i,Kh:()=>c,X3:()=>o,YD:()=>u,ZP:()=>f,_m:()=>h,d$:()=>a,jm:()=>l,oC:()=>s,o_:()=>d});var t=n(117),t=n.n(t),r=n(488),n=n.n(r)()(t()),i=(n.push([e.id,".modal-mask_FKlSg {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 11000;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.modal_bVes0 {\n width: calc(100vw - 50px);\n height: calc(100vh - 50px);\n border: 1px solid #fa6a9d;\n border-radius: 10px;\n overflow: hidden;\n background-color: #fff;\n padding: 0 15px 15px 15px;\n display: flex;\n flex-direction: column;\n}\n.modal_bVes0 .modal-header_o9hlK {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: none;\n display: flex;\n align-items: center;\n}\n.modal_bVes0 .modal-header_o9hlK .modal-title_Pyz37 {\n font-size: 1.5rem;\n margin-bottom: 0;\n line-height: 1.5;\n}\nbody.dark .modal_bVes0 .modal-header_o9hlK .btn-refresh_wWa1E,\nbody.dark .modal_bVes0 .modal-header_o9hlK .btn-close_F5j3r {\n color: #eee !important;\n background-color: #333 !important;\n border-color: transparent !important;\n height: auto;\n padding: 8px 12px;\n line-height: 16px;\n font-size: 13px;\n}\n.modal_bVes0 .modal-header_o9hlK .btn-close_F5j3r {\n margin-left: 10px;\n}\n.modal_bVes0 .modal-body_YwOQL {\n padding-top: 0;\n flex-grow: 1;\n overflow-y: scroll;\n}\n.list_zBH17 {\n color: inherit;\n}\n.card_uAIRm {\n color: inherit;\n}\n.video-card-list_Ixfjz.is-full .video-card-body.more-class1.more-class2 > * {\n display: block !important;\n}\n.loader_ASd8K {\n text-align: center;\n line-height: 60px;\n font-size: 120%;\n}\n",""]),"modal-mask_FKlSg"),s="modal_bVes0",o="modal-header_o9hlK",a="modal-title_Pyz37",l="btn-refresh_wWa1E",c="btn-close_F5j3r",d="modal-body_YwOQL",u="video-card-list_Ixfjz",h="loader_ASd8K";const f=n},730:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>v,Mi:()=>m,N0:()=>u,NS:()=>b,Nd:()=>c,R0:()=>l,Rs:()=>d,Xm:()=>h,ZP:()=>x,Zl:()=>a,_W:()=>f,be:()=>s,f8:()=>y,k7:()=>i,qH:()=>g,sA:()=>p,sN:()=>o});var t=n(117),t=n.n(t),r=n(488),n=n.n(r)()(t()),i=(n.push([e.id,".bili-video-card_QhI4T {\n position: relative;\n}\n.image-wrapper_xDARo {\n border-radius: '6px';\n overflow: 'hidden';\n}\n.preview-card-wrapper_obs_2 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.watch-later_QtZPa {\n z-index: 3;\n}\n.badge_oIZF5 {\n color: #fa6a9d;\n border-radius: 2px;\n border: 1px #fa6a9d solid;\n line-height: 20px;\n padding: 0 10px;\n transform: scale(0.8);\n}\n.recommend-reason__Cdvz {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n display: inline-block;\n color: var(--Or5);\n background-color: var(--Or1);\n border-radius: 4px;\n margin-right: 4px;\n font-size: var(--follow-icon-font-size);\n line-height: var(--follow-icon-line-height);\n height: var(--follow-icon-line-height);\n padding: 0 4px;\n cursor: default;\n}\n.bangumi-desc_dFbZr {\n color: default;\n}\n.btn-dislike_n_tLk {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 8px;\n left: 8px;\n width: 28px;\n height: 28px;\n border-radius: 6px;\n cursor: pointer;\n background-color: rgba(33, 33, 33, 0.8);\n z-index: 9;\n transform: translateZ(0);\n}\n.btn-dislike_n_tLk .btn-dislike-icon_ok4uD {\n pointer-events: none;\n user-select: none;\n width: 16px;\n height: 16px;\n color: #fff;\n}\n.btn-dislike_n_tLk .btn-dislike-tip_J1o6Z {\n pointer-events: none;\n user-select: none;\n position: absolute;\n bottom: -6px;\n left: -5px;\n transform: translateY(100%);\n font-size: 12px;\n color: #fff;\n border-radius: 4px;\n line-height: 18px;\n padding: 4px 8px;\n background-color: rgba(0, 0, 0, 0.8);\n white-space: nowrap;\n}\n.disliked-wrapper_YMf_U {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n border: 1px solid #ccc;\n border-radius: 6px;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ {\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n padding-top: 56.25%;\n position: relative;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-icon_RkFpM {\n color: inherit;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-reason_Udnlx {\n font-size: 20px;\n text-align: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-desc_rnRJY {\n font-size: 16px;\n text-align: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-action_xracr {\n flex: 1;\n width: 100%;\n border-top: 1px solid #ccc;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-action_xracr button {\n font-size: 18px;\n color: inherit;\n}\n",""]),"bili-video-card_QhI4T"),s="image-wrapper_xDARo",o="preview-card-wrapper_obs_2",a="watch-later_QtZPa",l="badge_oIZF5",c="recommend-reason__Cdvz",d="bangumi-desc_dFbZr",u="btn-dislike_n_tLk",h="btn-dislike-icon_ok4uD",f="btn-dislike-tip_J1o6Z",p="disliked-wrapper_YMf_U",m="dislike-content-cover_l4QF_",v="dislike-content-cover-inner_nN6hk",g="dislike-reason_Udnlx",y="dislike-desc_rnRJY",b="dislike-content-action_xracr";const x=n},181:(e,t,n)=>{"use strict";n.d(t,{GG:()=>o,YD:()=>s,ZP:()=>l,eC:()=>i,zh:()=>a});var t=n(117),t=n.n(t),r=n(488),n=n.n(r)()(t()),i=(n.push([e.id,".grid_L8TTJ {\n color: default;\n}\n@media (min-width: 2200px) {\n .video-card-list_dUuWi.is-full {\n grid-column: span 7 !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 {\n grid-column: span 7 !important;\n grid-template-columns: repeat(7, 1fr) !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 > * {\n display: block !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 > *:nth-of-type(1n + 15) {\n display: none !important;\n }\n}\n.expand-btn_wnnXm {\n padding: 0;\n width: 31px;\n height: 31px;\n border-radius: 50%;\n}\n.expand-btn_wnnXm svg {\n width: 13px;\n height: 13px;\n transform: rotateZ(180deg);\n}\n.expand-btn_wnnXm svg.expanded_Uzmr_ {\n transform: rotateZ(0deg);\n}\n",""]),"grid_L8TTJ"),s="video-card-list_dUuWi",o="expand-btn_wnnXm",a="expanded_Uzmr_";const l=n},913:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var t=n(117),t=n.n(t),r=n(488),n=n.n(r)()(t()),i=(n.push([e.id,".toast-container_LjLRu {\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 999999;\n padding: 12px 24px;\n font-size: 14px;\n width: 240px;\n margin-left: -120px;\n background: #ffb243;\n color: #fff;\n border-radius: 6px;\n}\n",""]),"toast-container_LjLRu");const s=n},488:e=>{"use strict";e.exports=function(r){var d=[];return d.toString=function(){return this.map(function(e){var t="",n=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),n&&(t+="@layer".concat(0<e[5].length?" ".concat(e[5]):""," {")),t+=r(e),n&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t}).join("")},d.i=function(e,t,n,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(s[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&s[c[0]]||(void 0!==i&&(void 0!==c[5]&&(c[1]="@layer".concat(0<c[5].length?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),t&&(c[2]&&(c[1]="@media ".concat(c[2]," {").concat(c[1],"}")),c[2]=t),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),d.push(c))}},d}},117:e=>{"use strict";e.exports=function(e){return e[1]}},624:function(e){e.exports=function(){"use strict";var c=1e3,d=6e4,u=36e5,l="millisecond",f="second",p="minute",m="hour",v="day",g="week",y="month",h="quarter",b="year",x="date",_="Invalid Date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,e={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("_")},s=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},t={s:s,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+s(r,2,"0")+":"+s(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,y),s=n-i<0,o=t.clone().add(r+(s?-1:1),y);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:y,y:b,w:g,d:v,D:x,h:m,m:p,s:f,ms:l,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},k="en",j={},r=(j[k]=e,function(e){return e instanceof a}),i=function e(t,n,r){var i;if(!t)return k;if("string"==typeof t){var s=t.toLowerCase();j[s]&&(i=s),n&&(j[s]=n,i=s);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var a=t.name;j[a]=t,i=a}return!r&&i&&(k=i),i||!r&&k},S=function(e,t){if(r(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new a(n)},N=t,a=(N.l=i,N.i=r,N.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},function(){function e(e){this.$L=i(e.locale,null,!0),this.parse(e)}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(o);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return N},t.isValid=function(){return!(this.$d.toString()===_)},t.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return S(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<S(e)},t.$g=function(e,t,n){return N.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var r=this,i=!!N.u(t)||t,n=N.p(e),s=function(e,t){var n=N.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return i?n:n.endOf(v)},o=function(e,t){return N.w(r.toDate()[e].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},a=this.$W,l=this.$M,c=this.$D,d="set"+(this.$u?"UTC":"");switch(n){case b:return i?s(1,0):s(31,11);case y:return i?s(1,l):s(0,l+1);case g:var u=this.$locale().weekStart||0,h=(a<u?a+7:a)-u;return s(i?c-h:c+(6-h),l);case v:case x:return o(d+"Hours",0);case m:return o(d+"Minutes",1);case p:return o(d+"Seconds",2);case f:return o(d+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,r=N.p(e),i="set"+(this.$u?"UTC":""),s=(n={},n[v]=i+"Date",n[x]=i+"Date",n[y]=i+"Month",n[b]=i+"FullYear",n[m]=i+"Hours",n[p]=i+"Minutes",n[f]=i+"Seconds",n[l]=i+"Milliseconds",n)[r],o=r===v?this.$D+(t-this.$W):t;if(r===y||r===b){var a=this.clone().set(x,1);a.$d[s](o),a.init(),this.$d=a.set(x,Math.min(this.$D,a.daysInMonth())).$d}else s&&this.$d[s](o);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[N.p(e)]()},t.add=function(n,e){var t,r=this;n=Number(n);var i=N.p(e),s=function(e){var t=S(r);return N.w(t.date(t.date()+Math.round(e*n)),r)};if(i===y)return this.set(y,this.$M+n);if(i===b)return this.set(b,this.$y+n);if(i===v)return s(1);if(i===g)return s(7);var o=(t={},t[p]=d,t[m]=u,t[f]=c,t)[i]||1,a=this.$d.getTime()+n*o;return N.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var i=this,t=this.$locale();if(!this.isValid())return t.invalidDate||_;var s=e||"YYYY-MM-DDTHH:mm:ssZ",n=N.z(this),r=this.$H,o=this.$m,a=this.$M,l=t.weekdays,c=t.months,d=function(e,t,n,r){return e&&(e[t]||e(i,s))||n[t].slice(0,r)},u=function(e){return N.s(r%12||12,e,"0")},h=t.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:N.s(a+1,2,"0"),MMM:d(t.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:d(t.weekdaysMin,this.$W,l,2),ddd:d(t.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:N.s(r,2,"0"),h:u(1),hh:u(2),a:h(r,o,!0),A:h(r,o,!1),m:String(o),mm:N.s(o,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:n};return s.replace(w,function(e,t){return t||f[e]||n.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var r,i=N.p(t),s=S(e),o=(s.utcOffset()-this.utcOffset())*d,a=this-s,l=N.m(this,s);return l=(r={},r[b]=l/12,r[y]=l,r[h]=l/3,r[g]=(a-o)/6048e5,r[v]=(a-o)/864e5,r[m]=a/u,r[p]=a/d,r[f]=a/c,r)[i]||a,n?l:N.a(l)},t.daysInMonth=function(){return this.endOf(y).$D},t.$locale=function(){return j[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=i(e,t,!0);return r&&(n.$L=r),n},t.clone=function(){return N.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}()),n=a.prototype;return S.prototype=n,[["$ms",l],["$s",f],["$m",p],["$H",m],["$W",v],["$M",y],["$y",b],["$D",x]].forEach(function(t){n[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),S.extend=function(e,t){return e.$i||(e(t,a,S),e.$i=!0),S},S.locale=i,S.isDayjs=r,S.unix=function(e){return S(1e3*e)},S.en=j[k],S.Ls=j,S.p={},S}()},746:e=>{"use strict";const h=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},t=({clearTimeout:c,setTimeout:d,willResolve:u})=>(n,{value:r,signal:i}={})=>{if(i&&i.aborted)return Promise.reject(h());let s,o,a;const e=c||clearTimeout,l=()=>{e(s),a(h())},t=new Promise((e,t)=>{o=()=>{i&&i.removeEventListener("abort",l),(u?e:t)(r)},a=t,s=(d||setTimeout)(o,n)});return i&&i.addEventListener("abort",l,{once:!0}),t.clear=()=>{e(s),s=null,o()},t};var n=e=>{const r=t({...e,willResolve:!0});return r.reject=t({...e,willResolve:!1}),r.range=(e,t,n)=>r(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,t),n),r};const r=n();r.createWithTimers=n,e.exports=r,e.exports.default=r},555:e=>{const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date;const a="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new a.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),y=new Set,b=(e,t)=>{var n="LRU_CACHE_OPTION_"+e;_(n)&&i(n,e+" option","options."+t,S)},t=(e,t)=>{var n,r="LRU_CACHE_METHOD_"+e;_(r)&&(n=S["prototype"],n=Object.getOwnPropertyDescriptor(n,e)["get"],i(r,e+" method",`cache.${t}()`,n))},x=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},_=e=>!y.has(e),i=(e,t,n,r)=>{y.add(e);t=`The ${t} is deprecated. Please use ${n} instead.`;x(t,"DeprecationWarning",e,r)},w=e=>e&&e===Math.floor(e)&&0<e&&isFinite(e),k=e=>w(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?s:null:null;class s extends Array{constructor(e){super(e),this.fill(0)}}class j{constructor(e){if(0===e)return[];const t=k(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class S{constructor(e={}){var{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:u,maxSize:h=0,sizeCalculation:f,fetchMethod:p}=e,{length:e,maxAge:m,stale:v}=e instanceof S?{}:e;if(0!==t&&!w(t))throw new TypeError("max option must be a nonnegative integer");const g=t?k(t):Array;if(!g)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=h,this.sizeCalculation=f||e,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=p||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new g(t),this.prev=new g(t),this.head=0,this.tail=0,this.free=new j(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof c?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!u,0!==this.maxSize){if(!w(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!v,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=w(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||m||0,this.ttl){if(!w(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");this.ttlAutopurge||this.max||this.maxSize||(h="LRU_CACHE_UNBOUNDED",_(h)&&(y.add(h),x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",h,S))),v&&b("stale","allowStale"),m&&b("maxAge","ttl"),e&&b("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new s(this.max),this.starts=new s(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,0!==(this.ttls[e]=t)&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let n=0;const t=()=>{var e=r.now();if(0<this.ttlResolution){n=e;const t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=e=>{e=this.keyMap.get(e);return void 0===e?0:0===this.ttls[e]||0===this.starts[e]?1/0:this.starts[e]+this.ttls[e]-(n||t())},this.isStale=e=>0!==this.ttls[e]&&0!==this.starts[e]&&(n||t())-this.starts[e]>this.ttls[e]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new s(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,n,r)=>{if(!w(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!w(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t,n,r)=>{this.sizes[e]=r;for(var i=this.maxSize-this.sizes[e];this.calculatedSize>i;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{var t;return 0!==this.size&&void 0!==(t=this.keyMap.get(e))&&(this.calculatedSize-=this.sizes[t]),S.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,n,r){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.tail;;){1;{if(!this.isValidIndex(e))break;if(!t&&this.isStale(e)||(yield e),e===this.head)break;e=this.prev[e]}}}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.head;;){1;{if(!this.isValidIndex(e))break;if(!t&&this.isStale(e)||(yield e),e===this.tail)break;e=this.next[e]}}}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return t("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const n of this.indexes()){var t=this.keyList[n];const r={value:this.valList[n]};this.ttls&&(r.ttl=this.ttls[n]),this.sizes&&(r.size=this.sizes[n]),e.unshift([t,r])}return e}load(e){this.clear();for(var[t,n]of e)this.set(t,n.value,n)}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:i=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){i=this.requireSize(e,t,i,s);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,i),o=!1;else{const l=this.valList[a];t!==l&&(this.isBackgroundFetch(l)?l.__abortController.abort():r||(this.dispose(l,e,"set"),this.disposeAfter&&this.disposed.push([l,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,i)),this.moveToTail(a)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),o||this.setItemTTL(a,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){var e;if(this.size)return e=this.valList[this.head],this.evict(!0),e}evict(e){var t=this.head,n=this.keyList[t];const r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){e=this.keyMap.get(e);return void 0!==e&&!this.isStale(e)&&(t&&this.updateItemAge(e),!0)}peek(e,{allowStale:t=this.allowStale}={}){e=this.keyMap.get(e);if(void 0!==e&&(t||!this.isStale(e)))return this.valList[e]}backgroundFetch(t,e,n){var r=void 0===e?void 0:this.valList[e];if(this.isBackgroundFetch(r))return r;const i=new a,s={signal:i.signal,options:n},o=Promise.resolve(this.fetchMethod(t,r,s)).then(e=>(i.signal.aborted||this.set(t,e,s.options),e));return o.__abortController=i,o.__staleWhileFetching=r,void 0===e?(this.set(t,o,s.options),e=this.keyMap.get(t)):this.valList[e]=o,o}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,ttl:r=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n});r={allowStale:t,updateAgeOnGet:n,ttl:r,noDisposeOnSet:i,size:s,sizeCalculation:o,noUpdateTTL:a},i=this.keyMap.get(e);if(void 0===i)return this.backgroundFetch(e,i,r);s=this.valList[i];if(this.isBackgroundFetch(s))return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s;if(!this.isStale(i))return this.moveToTail(i),n&&this.updateItemAge(i),s;o=this.backgroundFetch(e,i,r);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet}={}){var r,i,s=this.keyMap.get(e);if(void 0!==s)return r=this.valList[s],i=this.isBackgroundFetch(r),this.isStale(s)?i?t?r.__staleWhileFetching:void 0:(this.delete(e),t?r:void 0):i?void 0:(this.moveToTail(s),n&&this.updateItemAge(s),r)}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return t("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){var n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const r=this.valList[n];this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,e,"delete"),this.disposeAfter&&this.disposed.push([r,e,"delete"])),this.keyMap.delete(e),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 t}clear(){for(const t of this.rindexes({allowStale:!0})){const n=this.valList[t];var e;this.isBackgroundFetch(n)?n.__abortController.abort():(e=this.keyList[t],this.dispose(n,e,"delete"),this.disposeAfter&&this.disposed.push([n,e,"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 t("reset","clear"),this.clear}get length(){var e,t,n,r;return t="size",r="LRU_CACHE_PROPERTY_"+(e="length"),_(r)&&(n=S["prototype"],n=Object.getOwnPropertyDescriptor(n,e)["get"],i(r,e+" property","cache."+t,n)),this.size}}e.exports=S},49:(e,t,n)=>{"use strict";var o=n(257);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o)throw s=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"),s.name="Invariant Violation",s}function t(){return e}var n={array:e.isRequired=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:i,resetWarningCache:r};return n.PropTypes=n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},529:(e,t,n)=>{"use strict";n=n(533);t.s=n.createRoot,n.hydrateRoot},103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(363),l=o(s),n=o(n(507));function o(e){return e&&e.__esModule?e:{default:e}}s=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return e.scrollListener=e.scrollListener.bind(e),e.eventListenerOptions=e.eventListenerOptions.bind(e),e.mousewheelListener=e.mousewheelListener.bind(e),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){var e;this.props.isReverse&&this.loadMore&&((e=this.getParentElement(this.scrollComponent)).scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1),this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;(e=!1===this.props.useWindow?this.scrollComponent.parentNode:e).removeEventListener("mousewheel",this.mousewheelListener,this.options||this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;(e=!1===this.props.useWindow?this.getParentElement(this.scrollComponent):e).removeEventListener("scroll",this.scrollListener,this.options||this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options||this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e,t=this.getParentElement(this.scrollComponent);this.props.hasMore&&t&&(e=window,(e=!1===this.props.useWindow?t:e).addEventListener("mousewheel",this.mousewheelListener,this.options||this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.options||this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.options||this.props.useCapture),this.props.initialLoad&&this.scrollListener())}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e,t=this.scrollComponent,n=window,r=this.getParentElement(t);(this.props.useWindow?(e=document.documentElement||document.body.parentNode||document.body,n=void 0!==n.pageYOffset?n.pageYOffset:e.scrollTop,this.props.isReverse?n:this.calculateOffset(t,n)):this.props.isReverse?r.scrollTop:t.scrollHeight-r.scrollTop-r.clientHeight)<Number(this.props.threshold)&&t&&null!==t.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var t=this,e=this.filterProps(this.props),n=e.children,r=e.element,i=e.hasMore,s=(e.initialLoad,e.isReverse),o=e.loader,a=(e.loadMore,e.pageStart,e.ref),e=(e.threshold,e.useCapture,e.useWindow,e.getScrollParent,function(e,t){var n,r={};for(n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"])),n=(e.ref=function(e){t.scrollComponent=e,a&&a(e)},[n]);return i&&(o?s?n.unshift(o):n.push(o):this.defaultLoader&&(s?n.unshift(this.defaultLoader):n.push(this.defaultLoader))),l.default.createElement(r,e,n)}}]),n}(s.Component);s.propTypes={children:n.default.node.isRequired,element:n.default.node,hasMore:n.default.bool,initialLoad:n.default.bool,isReverse:n.default.bool,loader:n.default.node,loadMore:n.default.func.isRequired,pageStart:n.default.number,ref:n.default.func,getScrollParent:n.default.func,threshold:n.default.number,useCapture:n.default.bool,useWindow:n.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},381:(e,t,n)=>{e.exports=n(103)},768:(e,t,n)=>{"use strict";var n=n(363),a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,n){var r,i={},s=null,o=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(o=t.ref),t)l.call(t,r)&&!d.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:s,ref:o,props:i,_owner:c.current}}t.Fragment=r,t.jsx=i,t.jsxs=i},10:(e,t,n)=>{"use strict";e.exports=n(768)},590:e=>{"use strict";var c=[];function d(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],o=t.base?s[0]+t.base:s[0],a=n[o]||0,l="".concat(o," ").concat(a),o=(n[o]=a+1,d(l)),a={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};-1!==o?(c[o].references++,c[o].updater(a)):(s=function(t,e){var n=e.domAPI(e);return n.update(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer||n.update(t=e):n.remove()}}(a,t),t.byIndex=i,c.splice(i,0,{identifier:l,updater:s,references:1})),r.push(l)}return r}e.exports=function(e,s){var o=a(e=e||[],s=s||{});return function(e){e=e||[];for(var t=0;t<o.length;t++){var n=d(o[t]);c[n].references--}for(var e=a(e,s),r=0;r<o.length;r++){var i=d(o[r]);0===c[i].references&&(c[i].updater(),c.splice(i,1))}o=e}}},804:e=>{"use strict";var n={};e.exports=function(e,t){if(!(e=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e)))throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(t)}},980:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},98:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},937:e=>{"use strict";e.exports=function(s){var o=s.insertStyleElement(s);return{update:function(e){var t,n,r,i;t=o,n=s,r="",(e=e).supports&&(r+="@supports (".concat(e.supports,") {")),e.media&&(r+="@media ".concat(e.media," {")),(i=void 0!==e.layer)&&(r+="@layer".concat(0<e.layer.length?" ".concat(e.layer):""," {")),r+=e.css,i&&(r+="}"),e.media&&(r+="}"),e.supports&&(r+="}"),(i=e.sourceMap)&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(r,t,n.options)},remove:function(){var e;null!==(e=o).parentNode&&e.parentNode.removeChild(e)}}}},776:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},52:(e,t,n)=>{"use strict";n=n(363);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return 1}}var i="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return l(function(){i.value=n,i.getSnapshot=t,d(i)&&s({inst:i})},[e,n,t]),a(function(){return d(i)&&s({inst:i}),e(function(){d(i)&&s({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:i},108:(e,t,n)=>{"use strict";e.exports=n(52)},363:e=>{"use strict";e.exports=React},533:e=>{"use strict";e.exports=ReactDOM}},r={};function cn(e){var t=r[e];if(void 0!==t)return t.exports;t=r[e]={id:e,exports:{}};return n[e].call(t.exports,t,t.exports,cn),t.exports}cn.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return cn.d(t,{a:t}),t},cn.d=(e,t)=>{for(var n in t)cn.o(t,n)&&!cn.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},cn.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";var U=cn(10),O=cn(529),e=$,s=cn.n(e),e=cn(803),Z=cn.n(e),X=cn(363),T=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o};const P=function(n,e){void 0===n&&(n=!1);var t=T((0,X.useState)(n),2),r=t[0],i=t[1];return[r,(0,X.useMemo)(function(){var t=void 0===e?!n:e;return{toggle:function(){return i(function(e){return e===n?t:n})},set:function(e){return i(e)},setLeft:function(){return i(n)},setRight:function(){return i(t)}}},[])]};const K=function(e){var n=(0,X.useRef)(e),t=(n.current=(0,X.useMemo)(function(){return e},[e]),(0,X.useRef)());return t.current||(t.current=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.current.apply(this,e)}),t.current};const z=function(){var e=(0,X.useRef)(!1);return(0,X.useEffect)(function(){return e.current=!1,function(){e.current=!0}},[]),e};var E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o};const q=function(e){var t=z(),n=(e=E((0,X.useState)(e),2))[0],r=e[1];return[n,(0,X.useCallback)(function(e){t.current||r(e)},[])]};const A=function(e){(0,X.useEffect)(function(){null!=e&&e()},[])},o=Symbol(),C=Symbol(),D=Symbol(),R=Object.getPrototypeOf,H=new WeakMap,F=e=>e&&(H.has(e)?H.get(e):R(e)===Object.prototype||R(e)===Array.prototype),a=e=>"object"==typeof e&&null!==e,Y=(i,e)=>{let s=!1;const n=(t,n,r)=>{if(!s){let e=t.a.get(i);e||(e=new Set,t.a.set(i,e)),r&&e.has(o)||e.add(n)}},t={f:e,get(e,t){return t===D?i:(n(this,t),I(e[t],this.a,this.c))},has(e,t){return t===C?(s=!0,this.a.delete(i),!0):(n(this,t),t in e)},getOwnPropertyDescriptor(e,t){return n(this,t,!0),Object.getOwnPropertyDescriptor(e,t)},ownKeys(e){return n(this,o),Reflect.ownKeys(e)}};return e&&(t.set=t.deleteProperty=()=>!1),t},I=(e,t,n)=>{if(!F(e))return e;var e=e[D]||e,r=(r=e,Object.isFrozen(r)||Object.values(Object.getOwnPropertyDescriptors(r)).some(e=>!e.writable));let i=n&&n.get(e);return i&&i.f===r||((i=Y(e,r)).p=new Proxy(r?(e=>{if(Array.isArray(e))return Array.from(e);var t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(R(e),t)})(e):e,i),n&&n.set(e,i)),i.a=t,i.c=n,i.p},W=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((e,t)=>e!==r[t])},G=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!a(e)||!a(t))return!0;const i=n.get(e);if(!i)return!0;if(r){const o=r.get(e);if(o&&o.n===t)return o.g;r.set(e,{n:t,g:!1})}let s=null;for(const a of i){const i=a===o?W(e,t):G(e[a],t[a],n,r);if(s=!0!==i&&!1!==i?s:i)break}return null===s&&(s=!0),r&&r.set(e,{n:t,g:s}),s},Q=(e,t=!0)=>{H.set(e,t)},J=(e,r)=>{const i=[],s=new WeakSet,o=(t,n)=>{if(!s.has(t)){a(t)&&s.add(t);const e=r.get(t);e?e.forEach(e=>{o(t[e],n?[...n,e]:[e])}):n&&i.push(n)}};return o(e),i};e=cn(108);const ee=Symbol("VERSION"),h=Symbol("LISTENERS"),f=Symbol("SNAPSHOT"),te=Symbol("HANDLER"),p=Symbol("PROMISE_RESULT"),ne=Symbol("PROMISE_ERROR"),re=new WeakSet;const ie=e=>"object"==typeof e&&null!==e,se=e=>ie(e)&&!re.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),oe=new WeakMap;let ae=1;const le=new WeakMap;function ce(n={}){if(!ie(n))throw new Error("object required");var e=oe.get(n);if(e)return e;let o=ae;const a=new Set,l=(t,n=++ae)=>{o!==n&&(o=n,a.forEach(e=>e(t,n)))},i=new Map,c=r=>{let e=i.get(r);return e||(e=(e,t)=>{const n=[...e];n[1]=[r,...n[1]],l(n,t)},i.set(r,e)),e},d=e=>{var t=i.get(e);return i.delete(e),t},r=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),u={get(e,t,n){if(t===ee)return o;if(t===h)return a;if(t!==f)return t===te?u:Reflect.get(e,t,n);{var r=e;var i=n;t=le.get(i);if((null==t?void 0:t[0])===o)return t[1];const s=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r));return Q(s,!0),le.set(i,[o,s]),Reflect.ownKeys(r).forEach(e=>{const t=Reflect.get(r,e,i);if(re.has(t))Q(t,!1),s[e]=t;else if(t instanceof Promise)if(p in t)s[e]=t[p];else{const n=t[ne]||t;Object.defineProperty(s,e,{get(){if(p in t)return t[p];throw n}})}else null!=t&&t[h]?s[e]=t[f]:s[e]=t}),Object.freeze(s),s}},deleteProperty(e,t){var n=Reflect.get(e,t);const r=null==n?void 0:n[h];r&&r.delete(d(t));e=Reflect.deleteProperty(e,t);return e&&l(["delete",[t],n]),e},is:Object.is,canProxy:se,set(e,t,n,r){var i=Reflect.has(e,t),s=Reflect.get(e,t,r);if(i&&this.is(s,n))return!0;const o=null==s?void 0:s[h];o&&o.delete(d(t)),ie(n)&&(i=n,n=F(i)&&i[D]||null||n);let a;return null!=(i=Object.getOwnPropertyDescriptor(e,t))&&i.set?a=n:n instanceof Promise?a=n.then(e=>(a[p]=e,l(["resolve",[t],e]),e)).catch(e=>{a[ne]=e,l(["reject",[t],e])}):null!=n&&n[h]?(a=n)[h].add(c(t)):this.canProxy(n)?(a=ce(n))[h].add(c(t)):a=n,Reflect.set(e,t,a,r),l(["set",[t],n,s]),!0}},s=new Proxy(r,u);return oe.set(n,s),Reflect.ownKeys(n).forEach(e=>{var t=Object.getOwnPropertyDescriptor(n,e);t.get||t.set?Object.defineProperty(r,e,t):s[e]=n[e]}),s}function de(e,t,n){null!=e&&e[h]||console.warn("Please use proxy object");let r;const i=[],s=e=>{i.push(e),n?t(i.splice(0)):r=r||Promise.resolve().then(()=>{r=void 0,t(i.splice(0))})};return e[h].add(s),()=>{e[h].delete(s)}}function ue(e){return null!=e&&e[f]||console.warn("Please use proxy object"),e[f]}const he=e["useSyncExternalStore"];function fe(n,e){const r=null==e?void 0:e.sync,t=(0,X.useRef)(),i=(0,X.useRef)();let s=!0;const o=he((0,X.useCallback)(e=>{var t=de(n,e,r);return e(),t},[n,r]),()=>{var e=ue(n);try{if(!s&&t.current&&i.current&&!G(t.current,e,i.current,new WeakMap))return t.current}catch(e){}return e},()=>ue(n)),a=(s=!1,new WeakMap);(0,X.useEffect)(()=>{t.current=o,i.current=a});{var l=o;var c=a;const d=(0,X.useRef)();(0,X.useEffect)(()=>{d.current=J(l,c)}),(0,X.useDebugValue)(d.current)}e=(0,X.useMemo)(()=>new WeakMap,[]);return I(o,a,e)}const t=ce({accessKey:""}),pe=function(){return fe(t)};const me="bilibili-app-recommend.config";function ve(e){Object.assign(t,e),GM_setValue(me,t)}(e=GM_getValue(me))&&"object"==typeof e&&Object.assign(t,e);var e=axios,ge=cn.n(e),e=cn(590),e=cn.n(e),n=cn(937),n=cn.n(n),r=cn(804),r=cn.n(r),i=cn(98),i=cn.n(i),l=cn(980),l=cn.n(l),c=cn(776),c=cn.n(c),d=cn(913),u={};u.styleTagTransform=c(),u.setAttributes=i(),u.insert=r().bind(null,"head"),u.domAPI=n(),u.insertStyleElement=l(),e()(d.Z,u),d.Z&&d.Z.locals&&d.Z.locals;function B(e,t=2e3){const n=s()(`<div class='${d.C}'>${e}</div>`);n.appendTo(document.body),setTimeout(()=>n.remove(),t)}async function ye(){var e=await async function(){var e=(await ge().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(!e?.data?.has_login)return{errmsg:"你必须登录B站之后才能使用授权",json:e};if(!e?.data?.confirm_uri)return{errmsg:"无法获得授权网址",json:e};e=e.data.confirm_uri;let n;var t=new Promise(t=>{window.addEventListener("message",e=>{if("https://www.mcbbs.net"==e.origin&&e.data)return e=e.data.match(/access_key=([0-9a-z]{32})/),e&&e[1]?void t(e[1]):t({errmsg:"没有获得匹配的密钥"})}),n=setTimeout(()=>{t({errmsg:"获取授权超时"})},5e3)});const r=s()(`<iframe src='${e}' style="display: none;" />`);return r.appendTo(document.body),e=await t,r.remove(),n&&(clearTimeout(n),n=null),e}();{if(!("object"==typeof e&&"errmsg"in e))return ve({accessKey:e}),B("获取成功"),e;B(e.errmsg)}}function be(){ve({accessKey:""}),B("已删除 access_key")}u=axiosGmxhrAdapter,u=cn.n(u);const xe="https://app.bilibili.com",_e=ge().create({baseURL:"https://api.bilibili.com"}),we=(_e.interceptors.request.use(function(e){return e.params?._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)}),ge().create({adapter:u()}));async function ke(e){e=new Array(e).fill(0).map(e=>async function(){return(await we.get(xe+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}());const t=await Promise.all(e);let n=t.reduce((e,t)=>e.concat(t),[]);const r=new Set;return n=n.filter(e=>{var t=e["param"];return r.has(t)?(console.log("[getRecommendTimes]: duplicate",e),!1):(r.add(t),!0)})}we.interceptors.request.use(function(e){return e.params={access_key:t.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});var u=cn(746),je=cn.n(u),u=cn(381),Se=cn.n(u),Ne=cn(533);function Me({show:e,onHide:t,children:n,clsModalMask:r,clsModal:i,hideWhenMaskOnClick:s=!1}){(0,X.useLayoutEffect)(()=>{document.body.style.overflow=e?"hidden":"auto"},[e]);const o=(0,X.useRef)(null),a=((0,X.useEffect)(()=>{const e=o.current;var t,n;e&&document.body.classList.contains("dark")&&(t=window.getComputedStyle(document.body)["background-color"],n=window.getComputedStyle(document.body).color,e.style.setProperty("--bg",t),e.style.setProperty("--c",n),e.style.setProperty("background-color","var(--bg)"),e.style.setProperty("color","var(--c)"))},[e]),(0,X.useId)());var l=(0,X.useMemo)(()=>{const e=document.createElement("div");return e.setAttribute("data-id","modal-feed-"+a),document.body.appendChild(e),e},[]),c=K(e=>{o.current?.contains(e.target)||s&&t()});return e?(0,Ne.createPortal)((0,U.jsx)("div",{className:Z()(r),onClick:c,children:(0,U.jsx)("div",{className:Z()(i),ref:o,children:n})}),l):null}var Le=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o};const Oe=function(e){var t=(0,X.useRef)(e);return t.current=e,t},Te=!("undefined"==typeof window||!window.document||!window.document.createElement);function Pe(e,t){if(Te){if(!e)return t;t="function"==typeof e?e():"current"in e?e.current:e;return t}}const ze=function(e){var t=Oe(e);(0,X.useEffect)(function(){return function(){t.current()}},[])};function Ee(e,t){if(e===t)return 1;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return;return 1}const Ae=function(e){return function(n,r,i){var s=(0,X.useRef)(!1),o=(0,X.useRef)([]),a=(0,X.useRef)([]),l=(0,X.useRef)();e(function(){var e,t=(Array.isArray(i)?i:[i]).map(function(e){return Pe(e)});if(!s.current)return s.current=!0,o.current=t,a.current=r,void(l.current=n());t.length===o.current.length&&Ee(t,o.current)&&Ee(r,a.current)||(null!=(e=l.current)&&e.call(l),o.current=t,a.current=r,l.current=n())}),ze(function(){var e;null!=(e=l.current)&&e.call(l),s.current=!1})}},Ce=Ae(X.useEffect);const De=function(n,e,r){void 0===r&&(r={});var i=Oe(e);Ce(function(){var e,t=Pe(r.target,window);if(null!=t&&t.addEventListener)return e=function(e){return i.current(e)},t.addEventListener(n,e,{capture:r.capture,once:r.once,passive:r.passive}),function(){t.removeEventListener(n,e,{capture:r.capture})}},[n,r.capture,r.once,r.passive],r.target)};var $e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o};function Re(e,t){var n,r,i=(t=t||{}).onEnter,s=t.onLeave,o=(t=$e((void 0===(t=!1)&&(t=!1),o=(t=Le(P(t),2))[0],n=(t=t[1]).toggle,r=t.set,[o,(0,X.useMemo)(function(){return{toggle:n,set:function(e){return r(!!e)},setTrue:function(){return r(!0)},setFalse:function(){return r(!1)}}},[])]),2))[0],a=(t=t[1]).setTrue,l=t.setFalse;return De("mouseenter",function(){null!=i&&i(),a()},{target:e}),De("mouseleave",function(){null!=s&&s(),l()},{target:e}),o}var u=cn(624),He=cn.n(u),Fe=Math.floor;const Ye=function(e,t){var n="";if(!e||t<1||9007199254740991<t)return n;for(;t%2&&(n+=e),(t=Fe(t/2))&&(e+=e),t;);return n};var u="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,u=(u||m||Function("return this")()).Symbol;const Ie=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},We=Array.isArray;var m=Object.prototype,Ue=m.hasOwnProperty,Ze=m.toString,v=u?u.toStringTag:void 0;const Xe=function(e){var t=Ue.call(e,v),n=e[v];try{var r=!(e[v]=void 0)}catch(e){}var i=Ze.call(e);return r&&(t?e[v]=n:delete e[v]),i};var Ke=Object.prototype.toString;const qe=function(e){return Ke.call(e)};var Be=u?u.toStringTag:void 0;const Ve=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(Be&&Be in Object(e)?Xe:qe)(e)};const Ge=function(e){return null!=e&&"object"==typeof e};const Qe=function(e){return"symbol"==typeof e||Ge(e)&&"[object Symbol]"==Ve(e)};var m=u?u.prototype:void 0,Je=m?m.toString:void 0;const et=function e(t){if("string"==typeof t)return t;if(We(t))return Ie(t,e)+"";if(Qe(t))return Je?Je.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const tt=function(e,t,n){for(var r=-1,i=e.length,s=((n=i<n?i:n)<0&&(n+=i),i=n<(t=t<0?i<-t?0:i+t:t)?0:n-t>>>0,t>>>=0,Array(i));++r<i;)s[r]=e[r+t];return s};const nt=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&r<=n?e:tt(e,t,n)};var rt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const it=function(e){return rt.test(e)};const st=function(t){return function(e){return null==e?void 0:e[t]}},ot=st("length");var u="\\ud800-\\udfff",m="["+u+"]",g="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",y="\\ud83c[\\udffb-\\udfff]",u="[^"+u+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",w="[\\ufe0e\\ufe0f]?",w=w+_+("(?:\\u200d(?:"+[u,b,x].join("|")+")"+w+_+")*"),_="(?:"+[u+g+"?",g,b,x,m].join("|")+")",at=RegExp(y+"(?="+y+")|"+_+w,"g");const lt=function(e){for(var t=at.lastIndex=0;at.test(e);)++t;return t};const ct=function(e){return(it(e)?lt:ot)(e)};const dt=function(e){return e.split("")};var u="\\ud800-\\udfff",g="["+u+"]",b="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",x="\\ud83c[\\udffb-\\udfff]",m="[^"+u+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",w="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",u="[\\ufe0e\\ufe0f]?",u=u+w+("(?:\\u200d(?:"+[m,y,_].join("|")+")"+u+w+")*"),w="(?:"+[m+b+"?",b,y,_,g].join("|")+")",ut=RegExp(x+"(?="+x+")|"+w+u,"g");const ht=function(e){return e.match(ut)||[]};const ft=function(e){return(it(e)?ht:dt)(e)};var pt=Math.ceil;const mt=function(e,t){var n=(t=void 0===t?" ":et(t)).length;return n<2?n?Ye(t,e):t:(n=Ye(t,pt(e/ct(t))),it(t)?nt(ft(n),0,e).join(""):n.slice(0,e))};var vt=/\s/;const gt=function(e){for(var t=e.length;t--&&vt.test(e.charAt(t)););return t};var yt=/^\s+/;const bt=function(e){return e&&e.slice(0,gt(e)+1).replace(yt,"")};const xt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var _t=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,jt=parseInt;const St=function(e){if("number"==typeof e)return e;if(Qe(e))return NaN;if(xt(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=xt(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=bt(e);var t=wt.test(e);return t||kt.test(e)?jt(e.slice(2),t?2:8):_t.test(e)?NaN:+e};const Nt=function(e){return e?(e=St(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const Mt=function(e){var t=(e=Nt(e))%1;return e==e?t?e-t:e:0};const Lt=function(e){return null==e?"":et(e)};const Ot=function(e,t,n){e=Lt(e);var r=(t=Mt(t))?ct(e):0;return t&&r<t?mt(t-r,n)+e:e};function Tt(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return(t=t.replace(/\.0$/,""))+"万"}var Pt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o};const zt=function(e){var t=(0,X.useRef)(0),n=(e=Pt((0,X.useState)(e),2))[0],r=e[1],e=(0,X.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){r(e)})},[]);return ze(function(){cancelAnimationFrame(t.current)}),[n,e]};var Et=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},At={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};function Ct({className:e,item:t,pvideo:n}){var r=(0,X.useRef)(null);a=r.current,i=Et(zt(At),2),s=i[0],l=i[1],De("mousemove",function(e){var t,n=e.screenX,r=e.screenY,i=e.clientX,s=e.clientY,o=e.pageX,e=e.pageY,n={screenX:n,screenY:r,clientX:i,clientY:s,pageX:o,pageY:e,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},r=Pe(a);r&&(s=(i=r.getBoundingClientRect()).left,r=i.top,t=i.width,i=i.height,n.elementPosX=s+window.pageXOffset,n.elementPosY=r+window.pageYOffset,n.elementX=o-n.elementPosX,n.elementY=e-n.elementPosY,n.elementW=t,n.elementH=i),l(n)},{target:document});var a,l,{elementW:i,elementH:s,elementX:o}=s;let c=0,d=0;i&&o&&!isNaN(o)&&!isNaN(i)&&(1<(c=(c=o/i)<0?0:c)&&(c=1),d=Math.floor((t.duration||0)*c));var o=(0,X.useMemo)(()=>{var e=n?.index||[];let t=function(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){var s=Math.floor((n+r)/2),o=e[s];if(t===o)return s;o<t?(n=s+1,i=s):r=s-1}if(-1===i)return-1;var a=e[i],l=e[i+1]??0;return a<t&&t<l?i:-1}(e,d);return-1!==t?t:d>e[e.length-1]?t=(t=Math.floor(e.length*c)-1)<0?0:t:0},[n,d]),{img_x_len:t,img_y_len:u}=n,h=u*t,f=(o+=1,Math.floor(o/h)),o=o-f*h,h=n.image?.[f]||"",f=Math.floor(o/t)+1;return(0,U.jsx)("div",{ref:r,className:e,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${(o-(f-1)*t-1)*i}px -${(f-1)*s}px`,backgroundSize:i*t+`px ${s*u}px`},children:(0,U.jsx)(Dt,{progress:c})})}function Dt({progress:e}){return(0,U.jsx)("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:(0,U.jsx)("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:100*e+"%"}})})}m=cn(555);const $t=new(cn.n(m)())({max:200});async function Rt(e){if($t.has(e))return $t.get(e);var[t,n]=await Promise.all([async function(e){return(await _e.get("/pvideo",{params:{aid:e}})).data.data}(e),async function(){return[]}()]);return $t.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Ht(n){return async function(e){const t=new FormData;t.append("aid",e),t.append("csrf",function(){var e=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/)?.[1];if(e)return e;throw B("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录")}());e=(await _e.post("/x/v2/history/toview/"+n,t,{withCredentials:!0})).data;return 0===e?.code&&"0"===e?.message}}const Ft=Ht("add"),Yt=Ht("del");b=e=>{const n={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(e,t){e=(await we.get(xe+n,{params:{goto:e.goto,id:e.param,mid:e.mid,rid:e.tid,tag_id:e.tag?.tag_id,reason_id:t,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return 0===e?.code&&"0"===e?.message}};const It=b("dislike"),Wt=b("cancel");var V=cn(730),y={};y.styleTagTransform=c(),y.setAttributes=i(),y.insert=r().bind(null,"head"),y.domAPI=n(),y.insertStyleElement=l(),e()(V.ZP,y),V.ZP&&V.ZP.locals&&V.ZP.locals;Symbol();const k=new WeakMap,j=new WeakMap,Ut=(t,e)=>{const n=k.get(t);n&&(n[0].forEach(e=>{e=e.d;t!==e&&Ut(e)}),++n[2],e&&n[3].add(e))},Zt=t=>{const e=k.get(t);e&&(--e[2],e[2]||(e[3].forEach(e=>e()),e[3].clear()),e[0].forEach(e=>{e=e.d;t!==e&&Zt(e)}))},Xt=e=>{const{s:o,d:t}=e;let n=j.get(t),r=(n||(n=[new Set],j.set(e.d,n)),n[0].add(e),k.get(o));if(!r){const a=new Set;var i=de(o,s=>{a.forEach(e=>{const{d:t,c:n,n:r,i}=e;o===t&&s.every(e=>1===e[1].length&&i.includes(e[1][0]))||e.p||(Ut(o,n),r?Zt(o):e.p=Promise.resolve().then(()=>{delete e.p,Zt(o)}))})},!0);r=[a,i,0,new Set],k.set(o,r)}r[0].add(e)},Kt=e=>{var{s:t,d:n}=e;const r=j.get(n);null!=r&&r[0].delete(e),0===(null==r?void 0:r[0].size)&&j.delete(n);n=k.get(t);if(n){const[i,s]=n;i.delete(e),i.size||(s(),k.delete(t))}},qt=e=>{e=j.get(e);return e?Array.from(e[0]):[]};Xt,Kt,qt;var S,N=cn(312),_={};_.styleTagTransform=c(),_.setAttributes=i(),_.insert=r().bind(null,"head"),_.domAPI=n(),_.insertStyleElement=l(),e()(N.ZP,_),N.ZP&&N.ZP.locals&&N.ZP.locals;S=ce({data:Array.from(S||[]),has(t){return this.data.some(e=>e[0]===t)},set(t,e){const n=this.data.find(e=>e[0]===t);return n?n[1]=e:this.data.push([t,e]),this},get(t){var e;return null==(e=this.data.find(e=>e[0]===t))?void 0:e[1]},delete(t){var e=this.data.findIndex(e=>e[0]===t);return-1!==e&&(this.data.splice(e,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(t){this.data.forEach(e=>{t(e[1],e[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}}),Object.defineProperties(S,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(S);const Bt=S;function Vt(e){const t=fe(Bt);return t.get(e)}function Gt({show:e,onHide:i,item:s}){const[t,o]=q(!1),n=K(async(n,r)=>{if(s){let e=!1,t=null;try{o(!0),e=await It(s,n)}catch(e){t=e}finally{o(!1)}if(t)return B("标记不喜欢: 请求失败, 请重试!"),void console.error(t.stack||t);B("标记不喜欢: "+(e?"成功":"失败")),e&&(Bt.set(s.param,{id:n,name:r}),i())}}),r=(0,X.useMemo)(()=>[...s?.dislike_reasons??[],{reason_id:12,reason_name:"此类内容过多"},{reason_id:13,reason_name:"推荐过"}],[s]);return(0,U.jsxs)(Me,{show:e,onHide:i,clsModalMask:N.Fy,clsModal:N.oC,hideWhenMaskOnClick:!0,children:[(0,U.jsxs)("div",{className:N.X3,children:[(0,U.jsx)("div",{className:N.d$,children:"不喜欢"}),(0,U.jsx)("div",{className:"space",style:{flex:1}}),(0,U.jsxs)("button",{className:"primary-btn roll-btn "+N.Kh,onClick:i,children:[(0,U.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,U.jsx)("use",{xlinkHref:"#widget-close"})}),(0,U.jsx)("span",{children:"关闭"})]})]}),(0,U.jsx)("div",{className:N.o_,children:(0,U.jsx)("div",{className:N.a0,children:r.map(e=>(0,U.jsx)("button",{className:N.o4,"data-id":e.reason_id,onClick:()=>n(e.reason_id,e.reason_name),disabled:t,children:e.reason_name},e.reason_id))})})]})}let Qt={show:!1,onHide:Jt,item:null};function Jt(){en({show:!1,item:null})}function en(e){Object.assign(Qt,e),function(){if(!tn){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),tn=(0,O.s)(e)}return tn}().render((0,U.jsx)(Gt,{...Qt,onHide:Jt}))}let tn;const nn=He()().format("YYYY"),rn=e=>{if(!e)return"";const t=He().unix(e);return t.format("YYYY")===nn?t.format("M-D"):t.format("YY-M-D")},sn=e=>e.replace(/^http:\/\//,"https://");function on({item:n,className:e,loading:t}){var r=(0,X.useRef)(null);const i=Re(r);var s=(0,X.useRef)(null),o=Re(s);const[a,l]=q(!1),{param:c,title:d,cover:u,goto:h,play:f,like:p,desc:m,ctime:v,duration:g,name:y,mid:b,favorite:x,badge:_,rcmd_reason:w}=n;var k=(0,X.useMemo)(()=>rn(v),[v]),j=(0,X.useMemo)(()=>sn(u),[u]);const[S,N]=q(null),[M,L]=q(!1),O=K(async()=>{if(console.log(n),!S&&!M)try{L(!0);var e=await Rt(c);N(e),console.log(e)}finally{L(!1)}});(0,X.useEffect)(()=>{i&&O()},[i]);let T=!1;var D=K(async e=>{if(e.preventDefault(),!T){T=!0;const t=a?Yt:Ft;let e=!1;try{e=await t(c)}finally{T=!1}e&&l(e=>!e)}});const P=Vt(c);var z=Boolean(P),E=(0,X.useRef)(null),$=Re(E),R=K(e=>{e.stopPropagation(),e.preventDefault(),en({show:!0,item:n})}),A=K(async()=>{if(P?.id){let e=!1,t=null;try{e=await Wt(n,P.id)}catch(e){t=e}if(t)return console.error(t.stack||t),B("请求失败!");B(`撤销不喜欢: 操作${e?"成功":"失败"}!`),e&&Bt.delete(c)}}),C="av"===n.goto?"/video/av"+c:n.uri,H=(0,X.useMemo)(()=>{{var e;if(!(e=g))return"00:00";var t=Math.trunc(e/3600),n=(e-=3600*t,Math.trunc(e/60)),e=e-=60*n;const r=[t,n,e];return 0===r[0]&&r.shift(),r.map(e=>Ot(e.toString(),2,"0")).join(":")}},[g]),F=(0,X.useMemo)(()=>Tt(f),[f]),Y=(0,X.useMemo)(()=>Tt(p),[p]),I=(0,X.useMemo)(()=>Tt(x),[x]),W=(0,U.jsxs)("div",{className:Z()("bili-video-card__skeleton",{hide:!t}),children:[(0,U.jsx)("div",{className:"bili-video-card__skeleton--cover"}),(0,U.jsx)("div",{className:"bili-video-card__skeleton--info",children:(0,U.jsxs)("div",{className:"bili-video-card__skeleton--right",children:[(0,U.jsx)("p",{className:"bili-video-card__skeleton--text"}),(0,U.jsx)("p",{className:"bili-video-card__skeleton--text short"}),(0,U.jsx)("p",{className:"bili-video-card__skeleton--light"})]})})]}),A=(0,U.jsxs)("div",{className:Z()(V.sA),children:[(0,U.jsx)("div",{className:V.Mi,children:(0,U.jsxs)("div",{className:V.Cf,children:[(0,U.jsx)("div",{className:"icon"}),(0,U.jsx)("div",{className:V.qH,children:P?.name}),(0,U.jsx)("div",{className:V.f8,children:"将减少此类内容推荐"})]})}),(0,U.jsx)("div",{className:V.NS,children:(0,U.jsx)("button",{onClick:A,children:"撤销"})})]});return(0,U.jsxs)("div",{className:Z()("bili-video-card",V.k7,e),"data-report":"partition_recommend.content",children:[W,!t&&z&&A,!t&&!z&&(0,U.jsxs)("div",{className:"bili-video-card__wrap __scale-wrap",style:{backgroundColor:z?"red":"unset"},children:[(0,U.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,U.jsxs)("div",{className:"bili-video-card__image __scale-player-wrap",ref:r,children:[(0,U.jsxs)("div",{className:Z()("bili-video-card__image--wrap",V.be),children:[(0,U.jsxs)("picture",{className:"v-img bili-video-card__cover",children:[(0,U.jsx)("source",{srcSet:j+"@672w_378h_1c.webp",type:"image/webp"}),(0,U.jsx)("img",{src:j+"@672w_378h_1c.webp",alt:d,loading:"lazy"})]}),i&&S?.pvideoData?(0,U.jsx)(Ct,{className:V.sN,item:n,pvideo:S?.pvideoData}):null,(0,U.jsxs)("div",{className:"bili-watch-later "+V.Zl,style:{display:i?"flex":"none"},ref:s,onClick:D,children:[(0,U.jsx)("svg",{className:"bili-watch-later__icon",children:(0,U.jsx)("use",{xlinkHref:a?"#widget-watch-save":"#widget-watch-later"})}),(0,U.jsx)("span",{className:"bili-watch-later__tip",style:{display:o?"block":"none"},children:a?"移除":"稍后再看"})]}),(0,U.jsxs)("div",{ref:E,className:V.N0,onClick:R,style:{display:i?"flex":"none"},children:[(0,U.jsx)("svg",{className:V.Xm,children:(0,U.jsx)("use",{xlinkHref:"#widget-close"})}),(0,U.jsx)("span",{className:V._W,style:{display:$?"block":"none"},children:"不喜欢"})]})]}),(0,U.jsx)("div",{className:"bili-video-card__mask",children:(0,U.jsxs)("div",{className:"bili-video-card__stats",children:[(0,U.jsxs)("div",{className:"bili-video-card__stats--left",children:[(0,U.jsxs)("span",{className:"bili-video-card__stats--item",children:[(0,U.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,U.jsx)("use",{xlinkHref:"#widget-play-count"})}),(0,U.jsx)("span",{className:"bili-video-card__stats--text",children:F})]}),(0,U.jsx)("span",{className:"bili-video-card__stats--item",children:"av"===h?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,U.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,U.jsx)("span",{className:"bili-video-card__stats--text",children:Y})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,U.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,U.jsx)("span",{className:"bili-video-card__stats--text",children:I})]})})]}),(0,U.jsx)("span",{className:"bili-video-card__stats__duration",children:H})]})})]})}),(0,U.jsx)("div",{className:"bili-video-card__info __scale-disable",children:(0,U.jsxs)("div",{className:"bili-video-card__info--right",children:[(0,U.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,U.jsx)("h3",{className:"bili-video-card__info--tit",title:d,children:d})}),(0,U.jsxs)("p",{className:"bili-video-card__info--bottom",children:["av"===h?(0,U.jsxs)("a",{className:"bili-video-card__info--owner",href:"//space.bilibili.com/"+b,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[w?.content?(0,U.jsx)("span",{className:V.Nd,children:w.content}):(0,U.jsx)("svg",{className:"bili-video-card__info--owner__up",children:(0,U.jsx)("use",{xlinkHref:"#widget-up"})}),(0,U.jsx)("span",{className:"bili-video-card__info--author",children:y}),k?(0,U.jsxs)("span",{className:"bili-video-card__info--date",children:["· ",k]}):null]}):null,"bangumi"===h?(0,U.jsxs)("a",{className:"bili-video-card__info--owner",href:C,target:"_blank",children:[(0,U.jsx)("span",{className:V.R0,children:_}),(0,U.jsx)("span",{className:V.Rs,children:m})]}):null]})]})})]})]})}var M=cn(890),g={};g.styleTagTransform=c(),g.setAttributes=i(),g.insert=r().bind(null,"head"),g.domAPI=n(),g.insertStyleElement=l(),e()(M.ZP,g),M.ZP&&M.ZP.locals&&M.ZP.locals;function an({show:e,onHide:t}){const[n,r]=q([]),[i,s]=q(!1),o=(0,X.useRef)(null);var a=K(async()=>{o.current&&(o.current.scrollTop=0),await je()(50);try{s(!0),r(await ke(2))}finally{s(!1)}}),l=K(async e=>{const t=await ke(2);r(e=>[...e,...t])});return(0,U.jsxs)(Me,{show:e,onHide:t,clsModalMask:M.Fy,clsModal:M.oC,children:[(0,U.jsxs)("div",{className:M.X3,children:[(0,U.jsx)("div",{className:M.d$,children:"推荐"}),(0,U.jsx)("div",{className:"space",style:{flex:1}}),(0,U.jsxs)("button",{className:"primary-btn roll-btn "+M.jm,onClick:a,children:[(0,U.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,U.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,U.jsx)("span",{children:"换一换"})]}),(0,U.jsxs)("button",{className:"primary-btn roll-btn "+M.Kh,onClick:t,children:[(0,U.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,U.jsx)("use",{xlinkHref:"#widget-close"})}),(0,U.jsx)("span",{children:"关闭"})]})]}),(0,U.jsx)("div",{className:M.o_,ref:o,children:(0,U.jsx)(Se(),{pageStart:0,loadMore:l,hasMore:!0,useWindow:!1,threshold:320,loader:(0,U.jsx)("div",{className:M._m,children:"加载中..."},0),children:(0,U.jsx)("div",{className:"video-card-list is-full "+M.YD,children:(0,U.jsx)("div",{className:"video-card-body more-class1 more-class2",children:n.map(e=>(0,U.jsx)(on,{item:e,loading:i},e.param))})})})})]})}var L=cn(181),x={};x.styleTagTransform=c(),x.setAttributes=i(),x.insert=r().bind(null,"head"),x.domAPI=n(),x.insertStyleElement=l(),e()(L.ZP,x),L.ZP&&L.ZP.locals&&L.ZP.locals;function ln(){const[e,t]=P(!1);var n=pe()["accessKey"];const r=K(async(e=0)=>{await ye()&&t.set(!1)});var i=be;const[s,o]=q([]),[a,l]=q(!1),c=K(async()=>{l(!0);try{var e=await ke(2);o(e)}finally{l(!1)}}),[d,u]=(A(async()=>{c()}),q(!1));var h=K(()=>{u(!0)});return(0,U.jsx)("section",{className:Z()("bili-grid no-margin",L.eC),"data-area":"推荐",children:(0,U.jsxs)("div",{className:"video-card-list is-full "+L.YD,children:[(0,U.jsxs)("div",{className:"area-header",children:[(0,U.jsxs)("div",{className:"left",children:[(0,U.jsx)("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),(0,U.jsx)("svg",{className:"icon",children:(0,U.jsx)("use",{xlinkHref:"#channel-cinephile"})}),(0,U.jsx)("a",{className:"title",href:"#",children:(0,U.jsx)("span",{children:"推荐"})})]}),(0,U.jsxs)("div",{className:"right",children:[n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("button",{className:Z()("primary-btn",L.GG),onClick:t.toggle,children:(0,U.jsx)("svg",{className:Z()({[L.zh]:e}),children:(0,U.jsx)("use",{xlinkHref:"#widget-arrow"})})}),e&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("button",{className:"primary-btn roll-btn",onClick:()=>r(!0),children:(0,U.jsx)("span",{children:"重新获取 access_key"})}),(0,U.jsx)("button",{className:"primary-btn roll-btn",onClick:i,children:(0,U.jsx)("span",{children:"删除 access_key"})})]})]}):(0,U.jsx)("button",{className:"primary-btn roll-btn",onClick:r,children:(0,U.jsx)("span",{children:"获取 access_key"})}),(0,U.jsxs)("button",{className:"primary-btn roll-btn",onClick:c,children:[(0,U.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,U.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,U.jsx)("span",{children:"换一换"})]}),(0,U.jsxs)("button",{className:"primary-btn see-more",onClick:h,children:[(0,U.jsx)("span",{children:"查看更多"}),(0,U.jsx)("svg",{children:(0,U.jsx)("use",{xlinkHref:"#widget-arrow"})})]})]})]}),(0,U.jsx)(an,{show:d,onHide:()=>u(!1)}),(0,U.jsx)("div",{className:"video-card-body more-class1 more-class2",children:s.map(e=>(0,U.jsx)(on,{item:e,loading:a},e.param))})]})})}location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")?(window.stop(),window.top?.postMessage(location.href,"https://www.bilibili.com")):"/"===location.pathname&&async function(){var e=Date.now(),t=()=>0<s()(".bili-layout > section.bili-grid").length;for(;!t()&&Date.now()-e<1e4;)await je()(100);if(t()){var n=s()(".bili-layout > section.bili-grid").eq(0);const r=s()("<section></section>");r.insertAfter(n);n=r[0];const i=(0,O.s)(n);i.render((0,U.jsx)(ln,{}))}else console.error("[bilibili-app-recommend]: init fail")}()})()})();