Greasy Fork

Greasy Fork is available in English.

bilibili-app-recommend

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

当前为 2022-06-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.2.1
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://github.com/magicdawn/bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @include      https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        *://www.bilibili.com/*
// @require      https://unpkg.com/[email protected]/dist/jquery.min.js
// @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_xmlhttpRequest
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue
// @grant        unsafeWindow
// ==/UserScript==

;(({ cssTextList = [] }) => {
  cssTextList.forEach((s) => {
    const style = document.createElement("style");
    style.innerText = s;
    style.dataset.source = "vite-plugin-monkey";
    document.head.appendChild(style);
  });
})({
  "cssTextList": [
    "._toast-container_9119l_1{position:fixed;top:50%;left:50%;z-index:999999;padding:12px 24px;font-size:14px;width:240px;margin-left:-120px;background:#ffb243;color:#fff;border-radius:6px}._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}._bili-video-card_3h2r6_1{position:relative}._image-wrapper_3h2r6_4{border-radius:\"6px\";overflow:\"hidden\"}._preview-card-wrapper_3h2r6_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}._watch-later_3h2r6_21{z-index:3}._badge_3h2r6_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_3h2r6_32{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_3h2r6_47{color:default}._btn-dislike_3h2r6_50{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_3h2r6_50 ._btn-dislike-icon_3h2r6_65{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_3h2r6_50 ._btn-dislike-tip_3h2r6_72{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_3h2r6_87{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_3h2r6_87{border:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-icon_3h2r6_118{color:inherit}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-reason_3h2r6_121{font-size:20px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-desc_3h2r6_125{font-size:16px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{border-top:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129 button{font-size:18px;color:inherit}._modal-mask_vh629_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_vh629_1{width:500px;max-height:calc(80vh - 50px);border-radius:10px;overflow:hidden;background-color:#fff;padding:0 15px 15px;display:flex;flex-direction:column}._modal_vh629_1 ._modal-header_vh629_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal_vh629_1 ._modal-header_vh629_23 ._modal-title_vh629_30{font-size:1.5rem;margin-bottom:0;line-height:1.5}._modal_vh629_1 ._modal-header_vh629_23 ._title-desc_vh629_35{margin-left:5px;font-size:40%}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{margin-left:10px}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_vh629_1 ._modal-body_vh629_57{padding-top:0;flex-grow:1;overflow-y:scroll}._reason-list_vh629_62{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_vh629_62{color:inherit;width:45%;text-align:center;line-height:20px;border:1px solid #eee;margin-top:8px;margin-bottom:8px;padding-top:5px;padding-bottom:5px}body.dark ._reason_vh629_62{border:1px solid #333}._modal-mask_1mlbh_1{position:fixed;left:0;top:0;right:0;bottom:0;z-index:11000;background-color:#00000080;display:flex;align-items:center;justify-content:center}._modal-mask_1mlbh_1._narrow-mode_1mlbh_13{background-color:#000000e6}._modal_1mlbh_1{width:calc(100vw - 50px);height:calc(100vh - 50px);border:1px solid #fa6a9d;border-radius:10px;overflow:hidden;background-color:#fff;padding:0 0 15px 15px;display:flex;flex-direction:column}._modal_1mlbh_1._narrow-mode_1mlbh_13{width:606px;height:calc(100vh - 10px)}._modal_1mlbh_1 ._modal-header_1mlbh_32{padding-top:10px;padding-bottom:10px;border-bottom:none;padding-right:15px;display:flex;align-items:center}._modal_1mlbh_1 ._modal-header_1mlbh_32 ._modal-title_1mlbh_40{font-size:1.5rem;margin-bottom:0;line-height:1.5}body.dark ._modal_1mlbh_1 ._modal-header_1mlbh_32 ._btn-refresh_1mlbh_45,body.dark ._modal_1mlbh_1 ._modal-header_1mlbh_32 ._btn-close_1mlbh_46{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1mlbh_1 ._modal-header_1mlbh_32 ._btn-close_1mlbh_46{margin-left:10px}._modal_1mlbh_1 ._modal-header_1mlbh_32 ._btn-close_1mlbh_46 svg{width:10px;height:10px}._modal_1mlbh_1 ._modal-body_1mlbh_62{padding-top:0;flex-grow:1;overflow-y:scroll;padding-right:15px}._list_1mlbh_68{color:inherit}._card_1mlbh_71{border:2px solid transparent}._card_1mlbh_71._active_1mlbh_74{border-color:#fa6a9d;border-radius:6px}._video-card-list_1mlbh_78{display:block!important}#_video-card-body_1mlbh_1>*{display:block!important}#_video-card-body_1mlbh_1._narrow-mode_1mlbh_13{grid-template-columns:repeat(2,1fr)}._loader_1mlbh_87{text-align:center;line-height:60px;font-size:120%}#_use-narrow-mode_1mlbh_1{margin-left:5px;margin-top:1px;cursor:pointer}#_use-narrow-mode_1mlbh_1+label{margin-left:2px;user-select:none;cursor:pointer}._grid_p5dvw_1{color:default}@media (min-width: 2200px){._video-card-list_p5dvw_5.is-full{grid-column:span 7!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2{grid-column:span 7!important;grid-template-columns:repeat(7,1fr)!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*{display:block!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*:nth-of-type(1n + 15){display:none!important}}._expand-btn_p5dvw_19{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_p5dvw_19 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_p5dvw_19 svg._expanded_p5dvw_30{transform:rotate(0)}\n"
  ]
});

var FT=Object.defineProperty,BT=Object.defineProperties;var WT=Object.getOwnPropertyDescriptors;var wi=Object.getOwnPropertySymbols;var Of=Object.prototype.hasOwnProperty,Rf=Object.prototype.propertyIsEnumerable;var Na=(Oe,Te,D)=>Te in Oe?FT(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:D}):Oe[Te]=D,Bn=(Oe,Te)=>{for(var D in Te||(Te={}))Of.call(Te,D)&&Na(Oe,D,Te[D]);if(wi)for(var D of wi(Te))Rf.call(Te,D)&&Na(Oe,D,Te[D]);return Oe},cr=(Oe,Te)=>BT(Oe,WT(Te));var Mf=(Oe,Te)=>{var D={};for(var yt in Oe)Of.call(Oe,yt)&&Te.indexOf(yt)<0&&(D[yt]=Oe[yt]);if(Oe!=null&&wi)for(var yt of wi(Oe))Te.indexOf(yt)<0&&Rf.call(Oe,yt)&&(D[yt]=Oe[yt]);return D};var $a=(Oe,Te,D)=>(Na(Oe,typeof Te!="symbol"?Te+"":Te,D),D);(function(Oe,Te,D,yt,Df){"use strict";function Wn(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var kn=Wn(Oe),If=Wn(Te),bi=Wn(D),Si=Wn(yt),Pf=Wn(Df),Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},xi={exports:{}};const Nf=(i,s)=>Math.floor(Math.random()*(s-i+1)+i),Fa=()=>{const i=new Error("Delay aborted");return i.name="AbortError",i},Ba=({clearTimeout:i,setTimeout:s,willResolve:r})=>(u,{value:f,signal:h}={})=>{if(h&&h.aborted)return Promise.reject(Fa());let g,m,w;const A=i||clearTimeout,R=()=>{A(g),w(Fa())},L=()=>{h&&h.removeEventListener("abort",R)},O=new Promise((E,M)=>{m=()=>{L(),r?E(f):M(f)},w=M,g=(s||setTimeout)(m,u)});return h&&h.addEventListener("abort",R,{once:!0}),O.clear=()=>{A(g),g=null,m()},O},Wa=i=>{const s=Ba(cr(Bn({},i),{willResolve:!0}));return s.reject=Ba(cr(Bn({},i),{willResolve:!1})),s.range=(r,u,f)=>s(Nf(r,u),f),s},Ai=Wa();Ai.createWithTimers=Wa,xi.exports=Ai,xi.exports.default=Ai;var ka=xi.exports,Ti,$f=If.default;Ti=$f.createRoot;var Ua={exports:{}};/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(i){(function(){var s={}.hasOwnProperty;function r(){for(var u=[],f=0;f<arguments.length;f++){var h=arguments[f];if(!!h){var g=typeof h;if(g==="string"||g==="number")u.push(h);else if(Array.isArray(h)){if(h.length){var m=r.apply(null,h);m&&u.push(m)}}else if(g==="object")if(h.toString===Object.prototype.toString)for(var w in h)s.call(h,w)&&h[w]&&u.push(w);else u.push(h.toString())}}return u.join(" ")}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ua);var Qe=Ua.exports;function ze(i){var s=D.useRef(i);s.current=D.useMemo(function(){return i},[i]);var r=D.useRef();return r.current||(r.current=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.current.apply(this,u)}),r.current}function Ha(i,s){if(i===s)return!0;for(var r=0;r<i.length;r++)if(!Object.is(i[r],s[r]))return!1;return!0}function fr(i){var s=D.useRef(i);return s.current=i,s}var Ff=function(s){var r=fr(s);D.useEffect(function(){return function(){r.current()}},[])},za=Ff;function Bf(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var Ga=Bf,Wf=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,Ka=Wf,kf=Ka,Uf=typeof self=="object"&&self&&self.Object===Object&&self,Hf=kf||Uf||Function("return this")(),It=Hf,zf=It,Gf=zf.Symbol,Ci=Gf,Ya=Ci,Xa=Object.prototype,Kf=Xa.hasOwnProperty,Yf=Xa.toString,Un=Ya?Ya.toStringTag:void 0;function Xf(i){var s=Kf.call(i,Un),r=i[Un];try{i[Un]=void 0;var u=!0}catch{}var f=Yf.call(i);return u&&(s?i[Un]=r:delete i[Un]),f}var Zf=Xf,Jf=Object.prototype,qf=Jf.toString;function jf(i){return qf.call(i)}var Vf=jf,Za=Ci,Qf=Zf,eh=Vf,th="[object Null]",nh="[object Undefined]",Ja=Za?Za.toStringTag:void 0;function rh(i){return i==null?i===void 0?nh:th:Ja&&Ja in Object(i)?Qf(i):eh(i)}var hr=rh;function ih(i){return i!=null&&typeof i=="object"}var dr=ih,sh=function(s){D.useEffect(function(){s==null||s()},[])},ah=sh,oh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function qa(i,s){i===void 0&&(i=!1);var r=oh(D.useState(i),2),u=r[0],f=r[1],h=D.useMemo(function(){var g=s===void 0?!i:s,m=function(){return f(function(O){return O===i?g:i})},w=function(O){return f(O)},A=function(){return f(i)},R=function(){return f(g)};return{toggle:m,set:w,setLeft:A,setRight:R}},[]);return[u,h]}var uh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function lh(i){i===void 0&&(i=!1);var s=uh(qa(i),2),r=s[0],u=s[1],f=u.toggle,h=u.set,g=D.useMemo(function(){var m=function(){return h(!0)},w=function(){return h(!1)};return{toggle:f,set:function(R){return h(!!R)},setTrue:m,setFalse:w}},[]);return[r,g]}var ch=!!(typeof window!="undefined"&&window.document&&window.document.createElement),fh=ch;function pr(i,s){if(!!fh){if(!i)return s;var r;return typeof i=="function"?r=i():"current"in i?r=i.current:r=i,r}}var hh=function(s){var r=function(f,h,g){var m=D.useRef(!1),w=D.useRef([]),A=D.useRef([]),R=D.useRef();s(function(){var L,O=Array.isArray(g)?g:[g],E=O.map(function(M){return pr(M)});if(!m.current){m.current=!0,w.current=E,A.current=h,R.current=f();return}(E.length!==w.current.length||!Ha(E,w.current)||!Ha(h,A.current))&&((L=R.current)===null||L===void 0||L.call(R),w.current=E,A.current=h,R.current=f())}),za(function(){var L;(L=R.current)===null||L===void 0||L.call(R),m.current=!1})};return r},dh=hh,ph=dh(D.useEffect),ja=ph,Va={exports:{}};(function(i,s){(function(r,u){i.exports=u()})(Ct,function(){var r=1e3,u=6e4,f=36e5,h="millisecond",g="second",m="minute",w="hour",A="day",R="week",L="month",O="quarter",E="year",M="date",U="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,de={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("_")},re=function(q,W,I){var Z=String(q);return!Z||Z.length>=W?q:""+Array(W+1-Z.length).join(I)+q},ie={s:re,z:function(q){var W=-q.utcOffset(),I=Math.abs(W),Z=Math.floor(I/60),P=I%60;return(W<=0?"+":"-")+re(Z,2,"0")+":"+re(P,2,"0")},m:function q(W,I){if(W.date()<I.date())return-q(I,W);var Z=12*(I.year()-W.year())+(I.month()-W.month()),P=W.clone().add(Z,L),z=I-P<0,J=W.clone().add(Z+(z?-1:1),L);return+(-(Z+(I-P)/(z?P-J:J-P))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:L,y:E,w:R,d:A,D:M,h:w,m,s:g,ms:h,Q:O}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},K="en",Q={};Q[K]=de;var be=function(q){return q instanceof Ge},Re=function q(W,I,Z){var P;if(!W)return K;if(typeof W=="string"){var z=W.toLowerCase();Q[z]&&(P=z),I&&(Q[z]=I,P=z);var J=W.split("-");if(!P&&J.length>1)return q(J[0])}else{var oe=W.name;Q[oe]=W,P=oe}return!Z&&P&&(K=P),P||!Z&&K},ve=function(q,W){if(be(q))return q.clone();var I=typeof W=="object"?W:{};return I.date=q,I.args=arguments,new Ge(I)},ae=ie;ae.l=Re,ae.i=be,ae.w=function(q,W){return ve(q,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Ge=function(){function q(I){this.$L=Re(I.locale,null,!0),this.parse(I)}var W=q.prototype;return W.parse=function(I){this.$d=function(Z){var P=Z.date,z=Z.utc;if(P===null)return new Date(NaN);if(ae.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var J=P.match(F);if(J){var oe=J[2]-1||0,fe=(J[7]||"0").substring(0,3);return z?new Date(Date.UTC(J[1],oe,J[3]||1,J[4]||0,J[5]||0,J[6]||0,fe)):new Date(J[1],oe,J[3]||1,J[4]||0,J[5]||0,J[6]||0,fe)}}return new Date(P)}(I),this.$x=I.x||{},this.init()},W.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},W.$utils=function(){return ae},W.isValid=function(){return this.$d.toString()!==U},W.isSame=function(I,Z){var P=ve(I);return this.startOf(Z)<=P&&P<=this.endOf(Z)},W.isAfter=function(I,Z){return ve(I)<this.startOf(Z)},W.isBefore=function(I,Z){return this.endOf(Z)<ve(I)},W.$g=function(I,Z,P){return ae.u(I)?this[Z]:this.set(P,I)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(I,Z){var P=this,z=!!ae.u(Z)||Z,J=ae.p(I),oe=function(We,Ee){var ct=ae.w(P.$u?Date.UTC(P.$y,Ee,We):new Date(P.$y,Ee,We),P);return z?ct:ct.endOf(A)},fe=function(We,Ee){return ae.w(P.toDate()[We].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Ee)),P)},he=this.$W,Ce=this.$M,tt=this.$D,Ne="set"+(this.$u?"UTC":"");switch(J){case E:return z?oe(1,0):oe(31,11);case L:return z?oe(1,Ce):oe(0,Ce+1);case R:var lt=this.$locale().weekStart||0,Nt=(he<lt?he+7:he)-lt;return oe(z?tt-Nt:tt+(6-Nt),Ce);case A:case M:return fe(Ne+"Hours",0);case w:return fe(Ne+"Minutes",1);case m:return fe(Ne+"Seconds",2);case g:return fe(Ne+"Milliseconds",3);default:return this.clone()}},W.endOf=function(I){return this.startOf(I,!1)},W.$set=function(I,Z){var P,z=ae.p(I),J="set"+(this.$u?"UTC":""),oe=(P={},P[A]=J+"Date",P[M]=J+"Date",P[L]=J+"Month",P[E]=J+"FullYear",P[w]=J+"Hours",P[m]=J+"Minutes",P[g]=J+"Seconds",P[h]=J+"Milliseconds",P)[z],fe=z===A?this.$D+(Z-this.$W):Z;if(z===L||z===E){var he=this.clone().set(M,1);he.$d[oe](fe),he.init(),this.$d=he.set(M,Math.min(this.$D,he.daysInMonth())).$d}else oe&&this.$d[oe](fe);return this.init(),this},W.set=function(I,Z){return this.clone().$set(I,Z)},W.get=function(I){return this[ae.p(I)]()},W.add=function(I,Z){var P,z=this;I=Number(I);var J=ae.p(Z),oe=function(Ce){var tt=ve(z);return ae.w(tt.date(tt.date()+Math.round(Ce*I)),z)};if(J===L)return this.set(L,this.$M+I);if(J===E)return this.set(E,this.$y+I);if(J===A)return oe(1);if(J===R)return oe(7);var fe=(P={},P[m]=u,P[w]=f,P[g]=r,P)[J]||1,he=this.$d.getTime()+I*fe;return ae.w(he,this)},W.subtract=function(I,Z){return this.add(-1*I,Z)},W.format=function(I){var Z=this,P=this.$locale();if(!this.isValid())return P.invalidDate||U;var z=I||"YYYY-MM-DDTHH:mm:ssZ",J=ae.z(this),oe=this.$H,fe=this.$m,he=this.$M,Ce=P.weekdays,tt=P.months,Ne=function(Ee,ct,Ot,wt){return Ee&&(Ee[ct]||Ee(Z,z))||Ot[ct].slice(0,wt)},lt=function(Ee){return ae.s(oe%12||12,Ee,"0")},Nt=P.meridiem||function(Ee,ct,Ot){var wt=Ee<12?"AM":"PM";return Ot?wt.toLowerCase():wt},We={YY:String(this.$y).slice(-2),YYYY:this.$y,M:he+1,MM:ae.s(he+1,2,"0"),MMM:Ne(P.monthsShort,he,tt,3),MMMM:Ne(tt,he),D:this.$D,DD:ae.s(this.$D,2,"0"),d:String(this.$W),dd:Ne(P.weekdaysMin,this.$W,Ce,2),ddd:Ne(P.weekdaysShort,this.$W,Ce,3),dddd:Ce[this.$W],H:String(oe),HH:ae.s(oe,2,"0"),h:lt(1),hh:lt(2),a:Nt(oe,fe,!0),A:Nt(oe,fe,!1),m:String(fe),mm:ae.s(fe,2,"0"),s:String(this.$s),ss:ae.s(this.$s,2,"0"),SSS:ae.s(this.$ms,3,"0"),Z:J};return z.replace(H,function(Ee,ct){return ct||We[Ee]||J.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(I,Z,P){var z,J=ae.p(Z),oe=ve(I),fe=(oe.utcOffset()-this.utcOffset())*u,he=this-oe,Ce=ae.m(this,oe);return Ce=(z={},z[E]=Ce/12,z[L]=Ce,z[O]=Ce/3,z[R]=(he-fe)/6048e5,z[A]=(he-fe)/864e5,z[w]=he/f,z[m]=he/u,z[g]=he/r,z)[J]||he,P?Ce:ae.a(Ce)},W.daysInMonth=function(){return this.endOf(L).$D},W.$locale=function(){return Q[this.$L]},W.locale=function(I,Z){if(!I)return this.$L;var P=this.clone(),z=Re(I,Z,!0);return z&&(P.$L=z),P},W.clone=function(){return ae.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()},q}(),Pt=Ge.prototype;return ve.prototype=Pt,[["$ms",h],["$s",g],["$m",m],["$H",w],["$W",A],["$M",L],["$y",E],["$D",M]].forEach(function(q){Pt[q[1]]=function(W){return this.$g(W,q[0],q[1])}}),ve.extend=function(q,W){return q.$i||(q(W,Ge,ve),q.$i=!0),ve},ve.locale=Re,ve.isDayjs=be,ve.unix=function(q){return ve(1e3*q)},ve.en=Q[K],ve.Ls=Q,ve.p={},ve})})(Va);var Qa=Va.exports;function gh(){this.__data__=[],this.size=0}var vh=gh;function _h(i,s){return i===s||i!==i&&s!==s}var eo=_h,mh=eo;function yh(i,s){for(var r=i.length;r--;)if(mh(i[r][0],s))return r;return-1}var gr=yh,wh=gr,bh=Array.prototype,Sh=bh.splice;function xh(i){var s=this.__data__,r=wh(s,i);if(r<0)return!1;var u=s.length-1;return r==u?s.pop():Sh.call(s,r,1),--this.size,!0}var Ah=xh,Th=gr;function Ch(i){var s=this.__data__,r=Th(s,i);return r<0?void 0:s[r][1]}var Eh=Ch,Lh=gr;function Oh(i){return Lh(this.__data__,i)>-1}var Rh=Oh,Mh=gr;function Dh(i,s){var r=this.__data__,u=Mh(r,i);return u<0?(++this.size,r.push([i,s])):r[u][1]=s,this}var Ih=Dh,Ph=vh,Nh=Ah,$h=Eh,Fh=Rh,Bh=Ih;function vn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}vn.prototype.clear=Ph,vn.prototype.delete=Nh,vn.prototype.get=$h,vn.prototype.has=Fh,vn.prototype.set=Bh;var vr=vn,Wh=vr;function kh(){this.__data__=new Wh,this.size=0}var Uh=kh;function Hh(i){var s=this.__data__,r=s.delete(i);return this.size=s.size,r}var zh=Hh;function Gh(i){return this.__data__.get(i)}var Kh=Gh;function Yh(i){return this.__data__.has(i)}var Xh=Yh,Zh=hr,Jh=Ga,qh="[object AsyncFunction]",jh="[object Function]",Vh="[object GeneratorFunction]",Qh="[object Proxy]";function ed(i){if(!Jh(i))return!1;var s=Zh(i);return s==jh||s==Vh||s==qh||s==Qh}var to=ed,td=It,nd=td["__core-js_shared__"],rd=nd,Ei=rd,no=function(){var i=/[^.]+$/.exec(Ei&&Ei.keys&&Ei.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function id(i){return!!no&&no in i}var sd=id,ad=Function.prototype,od=ad.toString;function ud(i){if(i!=null){try{return od.call(i)}catch{}try{return i+""}catch{}}return""}var ro=ud,ld=to,cd=sd,fd=Ga,hd=ro,dd=/[\\^$.*+?()[\]{}|]/g,pd=/^\[object .+?Constructor\]$/,gd=Function.prototype,vd=Object.prototype,_d=gd.toString,md=vd.hasOwnProperty,yd=RegExp("^"+_d.call(md).replace(dd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wd(i){if(!fd(i)||cd(i))return!1;var s=ld(i)?yd:pd;return s.test(hd(i))}var bd=wd;function Sd(i,s){return i==null?void 0:i[s]}var xd=Sd,Ad=bd,Td=xd;function Cd(i,s){var r=Td(i,s);return Ad(r)?r:void 0}var _n=Cd,Ed=_n,Ld=It,Od=Ed(Ld,"Map"),Li=Od,Rd=_n,Md=Rd(Object,"create"),_r=Md,io=_r;function Dd(){this.__data__=io?io(null):{},this.size=0}var Id=Dd;function Pd(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}var Nd=Pd,$d=_r,Fd="__lodash_hash_undefined__",Bd=Object.prototype,Wd=Bd.hasOwnProperty;function kd(i){var s=this.__data__;if($d){var r=s[i];return r===Fd?void 0:r}return Wd.call(s,i)?s[i]:void 0}var Ud=kd,Hd=_r,zd=Object.prototype,Gd=zd.hasOwnProperty;function Kd(i){var s=this.__data__;return Hd?s[i]!==void 0:Gd.call(s,i)}var Yd=Kd,Xd=_r,Zd="__lodash_hash_undefined__";function Jd(i,s){var r=this.__data__;return this.size+=this.has(i)?0:1,r[i]=Xd&&s===void 0?Zd:s,this}var qd=Jd,jd=Id,Vd=Nd,Qd=Ud,ep=Yd,tp=qd;function mn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}mn.prototype.clear=jd,mn.prototype.delete=Vd,mn.prototype.get=Qd,mn.prototype.has=ep,mn.prototype.set=tp;var np=mn,so=np,rp=vr,ip=Li;function sp(){this.size=0,this.__data__={hash:new so,map:new(ip||rp),string:new so}}var ap=sp;function op(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}var up=op,lp=up;function cp(i,s){var r=i.__data__;return lp(s)?r[typeof s=="string"?"string":"hash"]:r.map}var mr=cp,fp=mr;function hp(i){var s=fp(this,i).delete(i);return this.size-=s?1:0,s}var dp=hp,pp=mr;function gp(i){return pp(this,i).get(i)}var vp=gp,_p=mr;function mp(i){return _p(this,i).has(i)}var yp=mp,wp=mr;function bp(i,s){var r=wp(this,i),u=r.size;return r.set(i,s),this.size+=r.size==u?0:1,this}var Sp=bp,xp=ap,Ap=dp,Tp=vp,Cp=yp,Ep=Sp;function yn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}yn.prototype.clear=xp,yn.prototype.delete=Ap,yn.prototype.get=Tp,yn.prototype.has=Cp,yn.prototype.set=Ep;var ao=yn,Lp=vr,Op=Li,Rp=ao,Mp=200;function Dp(i,s){var r=this.__data__;if(r instanceof Lp){var u=r.__data__;if(!Op||u.length<Mp-1)return u.push([i,s]),this.size=++r.size,this;r=this.__data__=new Rp(u)}return r.set(i,s),this.size=r.size,this}var Ip=Dp,Pp=vr,Np=Uh,$p=zh,Fp=Kh,Bp=Xh,Wp=Ip;function wn(i){var s=this.__data__=new Pp(i);this.size=s.size}wn.prototype.clear=Np,wn.prototype.delete=$p,wn.prototype.get=Fp,wn.prototype.has=Bp,wn.prototype.set=Wp;var kp=wn,Up="__lodash_hash_undefined__";function Hp(i){return this.__data__.set(i,Up),this}var zp=Hp;function Gp(i){return this.__data__.has(i)}var Kp=Gp,Yp=ao,Xp=zp,Zp=Kp;function yr(i){var s=-1,r=i==null?0:i.length;for(this.__data__=new Yp;++s<r;)this.add(i[s])}yr.prototype.add=yr.prototype.push=Xp,yr.prototype.has=Zp;var Jp=yr;function qp(i,s){for(var r=-1,u=i==null?0:i.length;++r<u;)if(s(i[r],r,i))return!0;return!1}var jp=qp;function Vp(i,s){return i.has(s)}var Qp=Vp,eg=Jp,tg=jp,ng=Qp,rg=1,ig=2;function sg(i,s,r,u,f,h){var g=r&rg,m=i.length,w=s.length;if(m!=w&&!(g&&w>m))return!1;var A=h.get(i),R=h.get(s);if(A&&R)return A==s&&R==i;var L=-1,O=!0,E=r&ig?new eg:void 0;for(h.set(i,s),h.set(s,i);++L<m;){var M=i[L],U=s[L];if(u)var F=g?u(U,M,L,s,i,h):u(M,U,L,i,s,h);if(F!==void 0){if(F)continue;O=!1;break}if(E){if(!tg(s,function(H,de){if(!ng(E,de)&&(M===H||f(M,H,r,u,h)))return E.push(de)})){O=!1;break}}else if(!(M===U||f(M,U,r,u,h))){O=!1;break}}return h.delete(i),h.delete(s),O}var oo=sg,ag=It,og=ag.Uint8Array,ug=og;function lg(i){var s=-1,r=Array(i.size);return i.forEach(function(u,f){r[++s]=[f,u]}),r}var cg=lg;function fg(i){var s=-1,r=Array(i.size);return i.forEach(function(u){r[++s]=u}),r}var hg=fg,uo=Ci,lo=ug,dg=eo,pg=oo,gg=cg,vg=hg,_g=1,mg=2,yg="[object Boolean]",wg="[object Date]",bg="[object Error]",Sg="[object Map]",xg="[object Number]",Ag="[object RegExp]",Tg="[object Set]",Cg="[object String]",Eg="[object Symbol]",Lg="[object ArrayBuffer]",Og="[object DataView]",co=uo?uo.prototype:void 0,Oi=co?co.valueOf:void 0;function Rg(i,s,r,u,f,h,g){switch(r){case Og:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Lg:return!(i.byteLength!=s.byteLength||!h(new lo(i),new lo(s)));case yg:case wg:case xg:return dg(+i,+s);case bg:return i.name==s.name&&i.message==s.message;case Ag:case Cg:return i==s+"";case Sg:var m=gg;case Tg:var w=u&_g;if(m||(m=vg),i.size!=s.size&&!w)return!1;var A=g.get(i);if(A)return A==s;u|=mg,g.set(i,s);var R=pg(m(i),m(s),u,f,h,g);return g.delete(i),R;case Eg:if(Oi)return Oi.call(i)==Oi.call(s)}return!1}var Mg=Rg;function Dg(i,s){for(var r=-1,u=s.length,f=i.length;++r<u;)i[f+r]=s[r];return i}var Ig=Dg,Pg=Array.isArray,Ri=Pg,Ng=Ig,$g=Ri;function Fg(i,s,r){var u=s(i);return $g(i)?u:Ng(u,r(i))}var Bg=Fg;function Wg(i,s){for(var r=-1,u=i==null?0:i.length,f=0,h=[];++r<u;){var g=i[r];s(g,r,i)&&(h[f++]=g)}return h}var kg=Wg;function Ug(){return[]}var Hg=Ug,zg=kg,Gg=Hg,Kg=Object.prototype,Yg=Kg.propertyIsEnumerable,fo=Object.getOwnPropertySymbols,Xg=fo?function(i){return i==null?[]:(i=Object(i),zg(fo(i),function(s){return Yg.call(i,s)}))}:Gg,Zg=Xg;function Jg(i,s){for(var r=-1,u=Array(i);++r<i;)u[r]=s(r);return u}var qg=Jg,jg=hr,Vg=dr,Qg="[object Arguments]";function ev(i){return Vg(i)&&jg(i)==Qg}var tv=ev,ho=tv,nv=dr,po=Object.prototype,rv=po.hasOwnProperty,iv=po.propertyIsEnumerable,sv=ho(function(){return arguments}())?ho:function(i){return nv(i)&&rv.call(i,"callee")&&!iv.call(i,"callee")},av=sv,wr={exports:{}};function ov(){return!1}var uv=ov;(function(i,s){var r=It,u=uv,f=s&&!s.nodeType&&s,h=f&&!0&&i&&!i.nodeType&&i,g=h&&h.exports===f,m=g?r.Buffer:void 0,w=m?m.isBuffer:void 0,A=w||u;i.exports=A})(wr,wr.exports);var lv=9007199254740991,cv=/^(?:0|[1-9]\d*)$/;function fv(i,s){var r=typeof i;return s=s==null?lv:s,!!s&&(r=="number"||r!="symbol"&&cv.test(i))&&i>-1&&i%1==0&&i<s}var hv=fv,dv=9007199254740991;function pv(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=dv}var go=pv,gv=hr,vv=go,_v=dr,mv="[object Arguments]",yv="[object Array]",wv="[object Boolean]",bv="[object Date]",Sv="[object Error]",xv="[object Function]",Av="[object Map]",Tv="[object Number]",Cv="[object Object]",Ev="[object RegExp]",Lv="[object Set]",Ov="[object String]",Rv="[object WeakMap]",Mv="[object ArrayBuffer]",Dv="[object DataView]",Iv="[object Float32Array]",Pv="[object Float64Array]",Nv="[object Int8Array]",$v="[object Int16Array]",Fv="[object Int32Array]",Bv="[object Uint8Array]",Wv="[object Uint8ClampedArray]",kv="[object Uint16Array]",Uv="[object Uint32Array]",we={};we[Iv]=we[Pv]=we[Nv]=we[$v]=we[Fv]=we[Bv]=we[Wv]=we[kv]=we[Uv]=!0,we[mv]=we[yv]=we[Mv]=we[wv]=we[Dv]=we[bv]=we[Sv]=we[xv]=we[Av]=we[Tv]=we[Cv]=we[Ev]=we[Lv]=we[Ov]=we[Rv]=!1;function Hv(i){return _v(i)&&vv(i.length)&&!!we[gv(i)]}var zv=Hv;function Gv(i){return function(s){return i(s)}}var Kv=Gv,Mi={exports:{}};(function(i,s){var r=Ka,u=s&&!s.nodeType&&s,f=u&&!0&&i&&!i.nodeType&&i,h=f&&f.exports===u,g=h&&r.process,m=function(){try{var w=f&&f.require&&f.require("util").types;return w||g&&g.binding&&g.binding("util")}catch{}}();i.exports=m})(Mi,Mi.exports);var Yv=zv,Xv=Kv,vo=Mi.exports,_o=vo&&vo.isTypedArray,Zv=_o?Xv(_o):Yv,mo=Zv,Jv=qg,qv=av,jv=Ri,Vv=wr.exports,Qv=hv,e_=mo,t_=Object.prototype,n_=t_.hasOwnProperty;function r_(i,s){var r=jv(i),u=!r&&qv(i),f=!r&&!u&&Vv(i),h=!r&&!u&&!f&&e_(i),g=r||u||f||h,m=g?Jv(i.length,String):[],w=m.length;for(var A in i)(s||n_.call(i,A))&&!(g&&(A=="length"||f&&(A=="offset"||A=="parent")||h&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Qv(A,w)))&&m.push(A);return m}var i_=r_,s_=Object.prototype;function a_(i){var s=i&&i.constructor,r=typeof s=="function"&&s.prototype||s_;return i===r}var o_=a_;function u_(i,s){return function(r){return i(s(r))}}var l_=u_,c_=l_,f_=c_(Object.keys,Object),h_=f_,d_=o_,p_=h_,g_=Object.prototype,v_=g_.hasOwnProperty;function __(i){if(!d_(i))return p_(i);var s=[];for(var r in Object(i))v_.call(i,r)&&r!="constructor"&&s.push(r);return s}var m_=__,y_=to,w_=go;function b_(i){return i!=null&&w_(i.length)&&!y_(i)}var S_=b_,x_=i_,A_=m_,T_=S_;function C_(i){return T_(i)?x_(i):A_(i)}var E_=C_,L_=Bg,O_=Zg,R_=E_;function M_(i){return L_(i,R_,O_)}var D_=M_,yo=D_,I_=1,P_=Object.prototype,N_=P_.hasOwnProperty;function $_(i,s,r,u,f,h){var g=r&I_,m=yo(i),w=m.length,A=yo(s),R=A.length;if(w!=R&&!g)return!1;for(var L=w;L--;){var O=m[L];if(!(g?O in s:N_.call(s,O)))return!1}var E=h.get(i),M=h.get(s);if(E&&M)return E==s&&M==i;var U=!0;h.set(i,s),h.set(s,i);for(var F=g;++L<w;){O=m[L];var H=i[O],de=s[O];if(u)var re=g?u(de,H,O,s,i,h):u(H,de,O,i,s,h);if(!(re===void 0?H===de||f(H,de,r,u,h):re)){U=!1;break}F||(F=O=="constructor")}if(U&&!F){var ie=i.constructor,K=s.constructor;ie!=K&&"constructor"in i&&"constructor"in s&&!(typeof ie=="function"&&ie instanceof ie&&typeof K=="function"&&K instanceof K)&&(U=!1)}return h.delete(i),h.delete(s),U}var F_=$_,B_=_n,W_=It,k_=B_(W_,"DataView"),U_=k_,H_=_n,z_=It,G_=H_(z_,"Promise"),K_=G_,Y_=_n,X_=It,Z_=Y_(X_,"Set"),J_=Z_,q_=_n,j_=It,V_=q_(j_,"WeakMap"),Q_=V_,Di=U_,Ii=Li,Pi=K_,Ni=J_,$i=Q_,wo=hr,bn=ro,bo="[object Map]",em="[object Object]",So="[object Promise]",xo="[object Set]",Ao="[object WeakMap]",To="[object DataView]",tm=bn(Di),nm=bn(Ii),rm=bn(Pi),im=bn(Ni),sm=bn($i),rn=wo;(Di&&rn(new Di(new ArrayBuffer(1)))!=To||Ii&&rn(new Ii)!=bo||Pi&&rn(Pi.resolve())!=So||Ni&&rn(new Ni)!=xo||$i&&rn(new $i)!=Ao)&&(rn=function(i){var s=wo(i),r=s==em?i.constructor:void 0,u=r?bn(r):"";if(u)switch(u){case tm:return To;case nm:return bo;case rm:return So;case im:return xo;case sm:return Ao}return s});var am=rn,Fi=kp,om=oo,um=Mg,lm=F_,Co=am,Eo=Ri,Lo=wr.exports,cm=mo,fm=1,Oo="[object Arguments]",Ro="[object Array]",br="[object Object]",hm=Object.prototype,Mo=hm.hasOwnProperty;function dm(i,s,r,u,f,h){var g=Eo(i),m=Eo(s),w=g?Ro:Co(i),A=m?Ro:Co(s);w=w==Oo?br:w,A=A==Oo?br:A;var R=w==br,L=A==br,O=w==A;if(O&&Lo(i)){if(!Lo(s))return!1;g=!0,R=!1}if(O&&!R)return h||(h=new Fi),g||cm(i)?om(i,s,r,u,f,h):um(i,s,w,r,u,f,h);if(!(r&fm)){var E=R&&Mo.call(i,"__wrapped__"),M=L&&Mo.call(s,"__wrapped__");if(E||M){var U=E?i.value():i,F=M?s.value():s;return h||(h=new Fi),f(U,F,r,u,h)}}return O?(h||(h=new Fi),lm(i,s,r,u,f,h)):!1}var pm=dm,gm=pm,Do=dr;function Io(i,s,r,u,f){return i===s?!0:i==null||s==null||!Do(i)&&!Do(s)?i!==i&&s!==s:gm(i,s,r,u,Io,f)}var vm=Io,_m=vm;function mm(i,s){return _m(i,s)}var ym=mm;function Bi(i,s,r){r===void 0&&(r={});var u=fr(s);ja(function(){var f=pr(r.target,window);if(!!(f!=null&&f.addEventListener)){var h=function(m){return u.current(m)};return f.addEventListener(i,h,{capture:r.capture,once:r.once,passive:r.passive}),function(){f.removeEventListener(i,h,{capture:r.capture})}}},[i,r.capture,r.once,r.passive],r.target)}var wm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Wi=function(i,s){var r=s||{},u=r.onEnter,f=r.onLeave,h=wm(lh(!1),2),g=h[0],m=h[1],w=m.setTrue,A=m.setFalse;return Bi("mouseenter",function(){u==null||u(),w()},{target:i}),Bi("mouseleave",function(){f==null||f(),A()},{target:i}),g},bm=function(s,r){return r===void 0&&(r=[]),ym(s,r)},Sm=function(s,r,u){var f=D.useRef(),h=D.useRef(0);bm(r,f.current)||(f.current=r,h.current+=1),ja(s,[h.current],u)},xm=Sm,ki=globalThis&&globalThis.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&i[s],u=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Am={"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},Ui={ctrl:function(s){return s.ctrlKey},shift:function(s){return s.shiftKey},alt:function(s){return s.altKey},meta:function(s){return s.metaKey}};function Tm(i){var s=Object.keys(Ui).reduce(function(r,u){return Ui[u](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?s:s+1}function Po(i,s,r){var u,f;if(!i.key)return!1;if(typeof s=="number")return i.keyCode===s;var h=s.split("."),g=0;try{for(var m=ki(h),w=m.next();!w.done;w=m.next()){var A=w.value,R=Ui[A],L=Am[A.toLowerCase()];(R&&R(i)||L&&L===i.keyCode)&&g++}}catch(O){u={error:O}}finally{try{w&&!w.done&&(f=m.return)&&f.call(m)}finally{if(u)throw u.error}}return r?g===h.length&&Tm(i)===h.length:g===h.length}function Cm(i,s){return typeof i=="function"?i:typeof i=="string"||typeof i=="number"?function(r){return Po(r,i,s)}:Array.isArray(i)?function(r){return i.some(function(u){return Po(r,u,s)})}:i?function(){return!0}:function(){return!1}}var Em=["keydown"];function sn(i,s,r){var u=r||{},f=u.events,h=f===void 0?Em:f,g=u.target,m=u.exactMatch,w=m===void 0?!1:m,A=fr(s),R=fr(i);xm(function(){var L,O,E,M=pr(g,window);if(!!M){var U=function(ie){var K,Q=Cm(R.current,w);if(Q(ie))return(K=A.current)===null||K===void 0?void 0:K.call(A,ie)};try{for(var F=ki(h),H=F.next();!H.done;H=F.next()){var de=H.value;(E=M==null?void 0:M.addEventListener)===null||E===void 0||E.call(M,de,U)}}catch(re){L={error:re}}finally{try{H&&!H.done&&(O=F.return)&&O.call(F)}finally{if(L)throw L.error}}return function(){var re,ie,K;try{for(var Q=ki(h),be=Q.next();!be.done;be=Q.next()){var Re=be.value;(K=M==null?void 0:M.removeEventListener)===null||K===void 0||K.call(M,Re,U)}}catch(ve){re={error:ve}}finally{try{be&&!be.done&&(ie=Q.return)&&ie.call(Q)}finally{if(re)throw re.error}}}}},[h],g)}var Lm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Om(i){var s=D.useRef(0),r=Lm(D.useState(i),2),u=r[0],f=r[1],h=D.useCallback(function(g){cancelAnimationFrame(s.current),s.current=requestAnimationFrame(function(){f(g)})},[]);return za(function(){cancelAnimationFrame(s.current)}),[u,h]}var Rm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Mm={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Dm=function(i){var s=Rm(Om(Mm),2),r=s[0],u=s[1];return Bi("mousemove",function(f){var h=f.screenX,g=f.screenY,m=f.clientX,w=f.clientY,A=f.pageX,R=f.pageY,L={screenX:h,screenY:g,clientX:m,clientY:w,pageX:A,pageY:R,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},O=pr(i);if(O){var E=O.getBoundingClientRect(),M=E.left,U=E.top,F=E.width,H=E.height;L.elementPosX=M+window.pageXOffset,L.elementPosY=U+window.pageYOffset,L.elementX=A-L.elementPosX,L.elementY=R-L.elementPosY,L.elementW=F,L.elementH=H}u(L)},{target:document}),r},Im=function(){var s=D.useRef(!1);return D.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]),s},Pm=Im,Nm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Et(i){var s=Pm(),r=Nm(D.useState(i),2),u=r[0],f=r[1],h=D.useCallback(function(g){s.current||f(g)},[]);return[u,h]}const Hi=Symbol(),$m=Symbol(),zi=Symbol(),Gi=Object.getPrototypeOf,Ki=new WeakMap,No=i=>i&&(Ki.has(i)?Ki.get(i):Gi(i)===Object.prototype||Gi(i)===Array.prototype),Yi=i=>typeof i=="object"&&i!==null,Fm=(i,s)=>{let r=!1;const u=(h,g,m)=>{if(!r){let w=h.a.get(i);w||(w=new Set,h.a.set(i,w)),m&&w.has(Hi)||w.add(g)}},f={f:s,get(h,g){return g===zi?i:(u(this,g),$o(h[g],this.a,this.c))},has(h,g){return g===$m?(r=!0,this.a.delete(i),!0):(u(this,g),g in h)},getOwnPropertyDescriptor(h,g){return u(this,g,!0),Object.getOwnPropertyDescriptor(h,g)},ownKeys(h){return u(this,Hi),Reflect.ownKeys(h)}};return s&&(f.set=f.deleteProperty=()=>!1),f},$o=(i,s,r)=>{if(!No(i))return i;const u=i[zi]||i,f=(g=>Object.isFrozen(g)||Object.values(Object.getOwnPropertyDescriptors(g)).some(m=>!m.writable))(u);let h=r&&r.get(u);return h&&h.f===f||(h=Fm(u,f),h.p=new Proxy(f?(g=>{if(Array.isArray(g))return Array.from(g);const m=Object.getOwnPropertyDescriptors(g);return Object.values(m).forEach(w=>{w.configurable=!0}),Object.create(Gi(g),m)})(u):u,h),r&&r.set(u,h)),h.a=s,h.c=r,h.p},Bm=(i,s)=>{const r=Reflect.ownKeys(i),u=Reflect.ownKeys(s);return r.length!==u.length||r.some((f,h)=>f!==u[h])},Fo=(i,s,r,u)=>{if(Object.is(i,s))return!1;if(!Yi(i)||!Yi(s))return!0;const f=r.get(i);if(!f)return!0;if(u){const g=u.get(i);if(g&&g.n===s)return g.g;u.set(i,{n:s,g:!1})}let h=null;for(const g of f){const m=g===Hi?Bm(i,s):Fo(i[g],s[g],r,u);if(m!==!0&&m!==!1||(h=m),h)break}return h===null&&(h=!0),u&&u.set(i,{n:s,g:h}),h},Wm=i=>No(i)&&i[zi]||null,Bo=(i,s)=>{Ki.set(i,s)},km=(i,s)=>{const r=[],u=new WeakSet,f=(h,g)=>{if(u.has(h))return;Yi(h)&&u.add(h);const m=s.get(h);m?m.forEach(w=>{f(h[w],g?[...g,w]:[w])}):g&&r.push(g)};return f(i),r};var Wo={exports:{}},ko={};/**
 * @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 Sn=bi.default;function Um(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Hm=typeof Object.is=="function"?Object.is:Um,zm=Sn.useState,Gm=Sn.useEffect,Km=Sn.useLayoutEffect,Ym=Sn.useDebugValue;function Xm(i,s){var r=s(),u=zm({inst:{value:r,getSnapshot:s}}),f=u[0].inst,h=u[1];return Km(function(){f.value=r,f.getSnapshot=s,Xi(f)&&h({inst:f})},[i,r,s]),Gm(function(){return Xi(f)&&h({inst:f}),i(function(){Xi(f)&&h({inst:f})})},[i]),Ym(r),r}function Xi(i){var s=i.getSnapshot;i=i.value;try{var r=s();return!Hm(i,r)}catch{return!0}}function Zm(i,s){return s()}var Jm=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Zm:Xm;ko.useSyncExternalStore=Sn.useSyncExternalStore!==void 0?Sn.useSyncExternalStore:Jm,Wo.exports=ko;var qm=Wo.exports;const jm=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Lt=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Sr=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),Vm=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),Hn=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),Uo=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),Ho=new WeakSet,Zi=i=>typeof i=="object"&&i!==null,Qm=i=>Zi(i)&&!Ho.has(i)&&(Array.isArray(i)||!(Symbol.iterator in i))&&!(i instanceof WeakMap)&&!(i instanceof WeakSet)&&!(i instanceof Error)&&!(i instanceof Number)&&!(i instanceof Date)&&!(i instanceof String)&&!(i instanceof RegExp)&&!(i instanceof ArrayBuffer),zo=new WeakMap;let Go=1;const Ko=new WeakMap;function Ji(i={}){if(!Zi(i))throw new Error("object required");const s=zo.get(i);if(s)return s;let r=Go;const u=new Set,f=(O,E=++Go)=>{r!==E&&(r=E,u.forEach(M=>M(O,E)))},h=new Map,g=O=>{let E=h.get(O);return E||(E=(M,U)=>{const F=[...M];F[1]=[O,...F[1]],f(F,U)},h.set(O,E)),E},m=O=>{const E=h.get(O);return h.delete(O),E},w=(O,E)=>{const M=Ko.get(E);if((M==null?void 0:M[0])===r)return M[1];const U=Array.isArray(O)?[]:Object.create(Object.getPrototypeOf(O));return Bo(U,!0),Ko.set(E,[r,U]),Reflect.ownKeys(O).forEach(F=>{const H=Reflect.get(O,F,E);if(Ho.has(H))Bo(H,!1),U[F]=H;else if(H instanceof Promise)if(Hn in H)U[F]=H[Hn];else{const de=H[Uo]||H;Object.defineProperty(U,F,{get(){if(Hn in H)return H[Hn];throw de}})}else H!=null&&H[Lt]?U[F]=H[Sr]:U[F]=H}),Object.freeze(U),U},A=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),R={get(O,E,M){return E===jm?r:E===Lt?u:E===Sr?w(O,M):E===Vm?R:Reflect.get(O,E,M)},deleteProperty(O,E){const M=Reflect.get(O,E),U=M==null?void 0:M[Lt];U&&U.delete(m(E));const F=Reflect.deleteProperty(O,E);return F&&f(["delete",[E],M]),F},is:Object.is,canProxy:Qm,set(O,E,M,U){var F;const H=Reflect.has(O,E),de=Reflect.get(O,E,U);if(H&&this.is(de,M))return!0;const re=de==null?void 0:de[Lt];re&&re.delete(m(E)),Zi(M)&&(M=Wm(M)||M);let ie;return(F=Object.getOwnPropertyDescriptor(O,E))!=null&&F.set?ie=M:M instanceof Promise?ie=M.then(K=>(ie[Hn]=K,f(["resolve",[E],K]),K)).catch(K=>{ie[Uo]=K,f(["reject",[E],K])}):M!=null&&M[Lt]?(ie=M,ie[Lt].add(g(E))):this.canProxy(M)?(ie=Ji(M),ie[Lt].add(g(E))):ie=M,Reflect.set(O,E,ie,U),f(["set",[E],M,de]),!0}},L=new Proxy(A,R);return zo.set(i,L),Reflect.ownKeys(i).forEach(O=>{const E=Object.getOwnPropertyDescriptor(i,O);E.get||E.set?Object.defineProperty(A,O,E):L[O]=i[O]}),L}function e0(i,s,r){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[Lt])&&console.warn("Please use proxy object");let u;const f=[],h=g=>{if(f.push(g),r){s(f.splice(0));return}u||(u=Promise.resolve().then(()=>{u=void 0,s(f.splice(0))}))};return i[Lt].add(h),()=>{i[Lt].delete(h)}}function Yo(i){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[Sr])&&console.warn("Please use proxy object"),i[Sr]}const{useSyncExternalStore:t0}=qm,n0=(i,s)=>{const r=D.useRef();D.useEffect(()=>{r.current=km(i,s)}),D.useDebugValue(r.current)};function Xo(i,s){const r=s==null?void 0:s.sync,u=D.useRef(),f=D.useRef();let h=!0;const g=t0(D.useCallback(A=>{const R=e0(i,A,r);return A(),R},[i,r]),()=>{const A=Yo(i);try{if(!h&&u.current&&f.current&&!Fo(u.current,A,f.current,new WeakMap))return u.current}catch{}return A},()=>Yo(i));h=!1;const m=new WeakMap;D.useEffect(()=>{u.current=g,f.current=m}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&n0(g,m);const w=D.useMemo(()=>new WeakMap,[]);return $o(g,m,w)}const zn=Ji({accessKey:"",useNarrowMode:!1}),qi=function(){return Xo(zn)},Zo="bilibili-app-recommend.config";function r0(){const i=GM_getValue(Zo);i&&typeof i=="object"&&Object.assign(zn,i)}function i0(){GM_setValue(Zo,zn)}function ji(i){Object.assign(zn,i),i0()}r0();const Jo="_toast-container_9119l_1";var UT={toastContainer:Jo};function Kt(i,s=2e3){const r=kn.default(`<div class='${Jo}'>${i}</div>`);r.appendTo(document.body),setTimeout(()=>r.remove(),s)}async function s0(){var w,A;const s=(await Si.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(!((w=s==null?void 0:s.data)!=null&&w.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:s};if(!((A=s==null?void 0:s.data)!=null&&A.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:s};const r=s.data.confirm_uri;let u;const f=new Promise(R=>{window.addEventListener("message",L=>{if(L.origin!="https://www.mcbbs.net"||!L.data)return;const O=L.data.match(/access_key=([0-9a-z]{32})/);if(!O||!O[1])return R({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});R(O[1])}),u=setTimeout(()=>{R({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},5e3)}),h=kn.default(`<iframe src='${r}' style="display: none;" />`);h.appendTo(document.body);function g(){h.remove(),u&&(clearTimeout(u),u=null)}const m=await f;return g(),m}async function a0(){const i=await s0();if(typeof i=="object"&&"errmsg"in i){Kt(i.errmsg);return}const s=i;return ji({accessKey:s}),Kt("\u83B7\u53D6\u6210\u529F"),s}function o0(){ji({accessKey:""}),Kt("\u5DF2\u5220\u9664 access_key")}const u0="https://api.bilibili.com",qo="https://app.bilibili.com",Vi=Si.default.create({baseURL:u0});Vi.interceptors.request.use(function(i){var s;return(s=i.params)!=null&&s._||(i.params=cr(Bn({},i.params),{_:Date.now()})),i},function(i){return Promise.reject(i)});const Qi=Si.default.create({adapter:Pf.default});Qi.interceptors.request.use(function(i){return i.params=Bn({access_key:zn.accessKey||""},i.params),i},function(i){return Promise.reject(i)});async function l0(){return(await Qi.get(qo+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}async function c0(){return es(2)}async function es(i){const s=new Array(i).fill(0).map(h=>l0());let u=(await Promise.all(s)).reduce((h,g)=>h.concat(g),[]);const f=new Set;return u=u.filter(h=>{const{param:g}=h;return f.has(g)?(console.log("[getRecommendTimes]: duplicate",h),!1):(f.add(g),!0)}),u}const jo="_expand-btn_wdzp9_1",Vo="_expanded_wdzp9_12";var HT={expandBtn:jo,expanded:Vo},xr={exports:{}},Ar={};/**
 * @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 f0=bi.default,h0=Symbol.for("react.element"),d0=Symbol.for("react.fragment"),p0=Object.prototype.hasOwnProperty,g0=f0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v0={key:!0,ref:!0,__self:!0,__source:!0};function Qo(i,s,r){var u,f={},h=null,g=null;r!==void 0&&(h=""+r),s.key!==void 0&&(h=""+s.key),s.ref!==void 0&&(g=s.ref);for(u in s)p0.call(s,u)&&!v0.hasOwnProperty(u)&&(f[u]=s[u]);if(i&&i.defaultProps)for(u in s=i.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:h0,type:i,key:h,ref:g,props:f,_owner:g0.current}}Ar.Fragment=d0,Ar.jsx=Qo,Ar.jsxs=Qo,xr.exports=Ar;const C=xr.exports.jsx,ne=xr.exports.jsxs,Tr=xr.exports.Fragment,eu=D.forwardRef(function({children:s},r){const[u,f]=qa(!1);D.useImperativeHandle(r,()=>f,[f]);const h=C("button",{className:Qe("primary-btn",jo),onClick:f.toggle,children:C("svg",{className:Qe({[Vo]:u}),children:C("use",{xlinkHref:"#widget-arrow"})})});return ne(Tr,{children:[h,u&&s]})});var tu={exports:{}},_0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",m0=_0,y0=m0;function nu(){}function ru(){}ru.resetWarningCache=nu;var w0=function(){function i(u,f,h,g,m,w){if(w!==y0){var A=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 A.name="Invariant Violation",A}}i.isRequired=i;function s(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:ru,resetWarningCache:nu};return r.PropTypes=r,r};tu.exports=w0();var et=tu.exports;class ts extends D.Component{constructor(s){super(s),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 s=this.getParentElement(this.scrollComponent);s.scrollTop=s.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let s=!1;const r={get passive(){s=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return s}eventListenerOptions(){let s=this.props.useCapture;return this.isPassiveSupported()?s={useCapture:this.props.useCapture,passive:!0}:s={passive:!1},s}setDefaultLoader(s){this.defaultLoader=s}detachMousewheelListener(){let s=window;this.props.useWindow===!1&&(s=this.scrollComponent.parentNode),s.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let s=window;this.props.useWindow===!1&&(s=this.getParentElement(this.scrollComponent)),s.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(s){const r=this.props.getScrollParent&&this.props.getScrollParent();return r!=null?r:s&&s.parentNode}filterProps(s){return s}attachScrollListener(){const s=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!s)return;let r=window;this.props.useWindow===!1&&(r=s),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(s){s.deltaY===1&&!this.isPassiveSupported()&&s.preventDefault()}scrollListener(){const s=this.scrollComponent,r=window,u=this.getParentElement(s);let f;if(this.props.useWindow){const h=document.documentElement||document.body.parentNode||document.body,g=r.pageYOffset!==void 0?r.pageYOffset:h.scrollTop;this.props.isReverse?f=g:f=this.calculateOffset(s,g)}else this.props.isReverse?f=u.scrollTop:f=s.scrollHeight-u.scrollTop-u.clientHeight;f<Number(this.props.threshold)&&s&&s.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=u.scrollHeight,this.beforeScrollTop=u.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(s,r){return s?this.calculateTopPosition(s)+(s.offsetHeight-r-window.innerHeight):0}calculateTopPosition(s){return s?s.offsetTop+this.calculateTopPosition(s.offsetParent):0}render(){const H=this.filterProps(this.props),{children:r,element:u,hasMore:f,initialLoad:h,isReverse:g,loader:m,loadMore:w,pageStart:A,ref:R,threshold:L,useCapture:O,useWindow:E,getScrollParent:M}=H,U=Mf(H,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=de=>{this.scrollComponent=de,R&&R(de)};const F=[r];return f&&(m?g?F.unshift(m):F.push(m):this.defaultLoader&&(g?F.unshift(this.defaultLoader):F.push(this.defaultLoader))),bi.default.createElement(u,U,F)}}$a(ts,"propTypes",{children:et.node.isRequired,element:et.node,hasMore:et.bool,initialLoad:et.bool,isReverse:et.bool,loader:et.node,loadMore:et.func.isRequired,pageStart:et.number,ref:et.func,getScrollParent:et.func,threshold:et.number,useCapture:et.bool,useWindow:et.bool}),$a(ts,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});let Gn=0;const b0=()=>{Gn++,document.body.style.overflow="hidden"},S0=()=>{Gn--,Gn<0&&(Gn=0),Gn===0&&(document.body.style.overflow="overlay")};function iu({show:i,onHide:s,children:r,clsModalMask:u,clsModal:f,hideWhenMaskOnClick:h=!1}){D.useLayoutEffect(()=>{i?b0():S0()},[i]);const g=D.useRef(null);D.useEffect(()=>{const R=g.current;if(!R)return;if(document.body.classList.contains("dark")){const O=window.getComputedStyle(document.body)["background-color"],E=window.getComputedStyle(document.body).color;R.style.setProperty("--bg",O),R.style.setProperty("--c",E),R.style.setProperty("background-color","var(--bg)"),R.style.setProperty("color","var(--c)")}},[i]);const m=D.useId(),w=D.useMemo(()=>{const R=document.createElement("div");return R.setAttribute("data-id","base-modal-"+m),document.body.appendChild(R),R},[]),A=ze(R=>{var L;(L=g.current)!=null&&L.contains(R.target)||h&&s()});return i?Te.createPortal(C("div",{className:Qe(u),onClick:A,children:C("div",{className:Qe(f),ref:g,children:r})}),w):null}var ns={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(i,s){(function(){var r,u="4.17.21",f=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",m="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",A=500,R="__lodash_placeholder__",L=1,O=2,E=4,M=1,U=2,F=1,H=2,de=4,re=8,ie=16,K=32,Q=64,be=128,Re=256,ve=512,ae=30,Ge="...",Pt=800,q=16,W=1,I=2,Z=3,P=1/0,z=9007199254740991,J=17976931348623157e292,oe=0/0,fe=4294967295,he=fe-1,Ce=fe>>>1,tt=[["ary",be],["bind",F],["bindKey",H],["curry",re],["curryRight",ie],["flip",ve],["partial",K],["partialRight",Q],["rearg",Re]],Ne="[object Arguments]",lt="[object Array]",Nt="[object AsyncFunction]",We="[object Boolean]",Ee="[object Date]",ct="[object DOMException]",Ot="[object Error]",wt="[object Function]",Or="[object GeneratorFunction]",nt="[object Map]",ke="[object Number]",Xt="[object Null]",Ze="[object Object]",Rr="[object Promise]",t1="[object Proxy]",Kn="[object RegExp]",bt="[object Set]",Yn="[object String]",Mr="[object Symbol]",n1="[object Undefined]",Xn="[object WeakMap]",r1="[object WeakSet]",Zn="[object ArrayBuffer]",xn="[object DataView]",ps="[object Float32Array]",gs="[object Float64Array]",vs="[object Int8Array]",_s="[object Int16Array]",ms="[object Int32Array]",ys="[object Uint8Array]",ws="[object Uint8ClampedArray]",bs="[object Uint16Array]",Ss="[object Uint32Array]",i1=/\b__p \+= '';/g,s1=/\b(__p \+=) '' \+/g,a1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qu=/&(?:amp|lt|gt|quot|#39);/g,el=/[&<>"']/g,o1=RegExp(Qu.source),u1=RegExp(el.source),l1=/<%-([\s\S]+?)%>/g,c1=/<%([\s\S]+?)%>/g,tl=/<%=([\s\S]+?)%>/g,f1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h1=/^\w*$/,d1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xs=/[\\^$.*+?()[\]{}|]/g,p1=RegExp(xs.source),As=/^\s+/,g1=/\s/,v1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_1=/\{\n\/\* \[wrapped with (.+)\] \*/,m1=/,? & /,y1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,w1=/[()=,{}\[\]\/\s]/,b1=/\\(\\)?/g,S1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nl=/\w*$/,x1=/^[-+]0x[0-9a-f]+$/i,A1=/^0b[01]+$/i,T1=/^\[object .+?Constructor\]$/,C1=/^0o[0-7]+$/i,E1=/^(?:0|[1-9]\d*)$/,L1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dr=/($^)/,O1=/['\n\r\u2028\u2029\\]/g,Ir="\\ud800-\\udfff",R1="\\u0300-\\u036f",M1="\\ufe20-\\ufe2f",D1="\\u20d0-\\u20ff",rl=R1+M1+D1,il="\\u2700-\\u27bf",sl="a-z\\xdf-\\xf6\\xf8-\\xff",I1="\\xac\\xb1\\xd7\\xf7",P1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",N1="\\u2000-\\u206f",$1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",al="A-Z\\xc0-\\xd6\\xd8-\\xde",ol="\\ufe0e\\ufe0f",ul=I1+P1+N1+$1,Ts="['\u2019]",F1="["+Ir+"]",ll="["+ul+"]",Pr="["+rl+"]",cl="\\d+",B1="["+il+"]",fl="["+sl+"]",hl="[^"+Ir+ul+cl+il+sl+al+"]",Cs="\\ud83c[\\udffb-\\udfff]",W1="(?:"+Pr+"|"+Cs+")",dl="[^"+Ir+"]",Es="(?:\\ud83c[\\udde6-\\uddff]){2}",Ls="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+al+"]",pl="\\u200d",gl="(?:"+fl+"|"+hl+")",k1="(?:"+An+"|"+hl+")",vl="(?:"+Ts+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+Ts+"(?:D|LL|M|RE|S|T|VE))?",ml=W1+"?",yl="["+ol+"]?",U1="(?:"+pl+"(?:"+[dl,Es,Ls].join("|")+")"+yl+ml+")*",H1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",z1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=yl+ml+U1,G1="(?:"+[B1,Es,Ls].join("|")+")"+wl,K1="(?:"+[dl+Pr+"?",Pr,Es,Ls,F1].join("|")+")",Y1=RegExp(Ts,"g"),X1=RegExp(Pr,"g"),Os=RegExp(Cs+"(?="+Cs+")|"+K1+wl,"g"),Z1=RegExp([An+"?"+fl+"+"+vl+"(?="+[ll,An,"$"].join("|")+")",k1+"+"+_l+"(?="+[ll,An+gl,"$"].join("|")+")",An+"?"+gl+"+"+vl,An+"+"+_l,z1,H1,cl,G1].join("|"),"g"),J1=RegExp("["+pl+Ir+rl+ol+"]"),q1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,j1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],V1=-1,Se={};Se[ps]=Se[gs]=Se[vs]=Se[_s]=Se[ms]=Se[ys]=Se[ws]=Se[bs]=Se[Ss]=!0,Se[Ne]=Se[lt]=Se[Zn]=Se[We]=Se[xn]=Se[Ee]=Se[Ot]=Se[wt]=Se[nt]=Se[ke]=Se[Ze]=Se[Kn]=Se[bt]=Se[Yn]=Se[Xn]=!1;var ye={};ye[Ne]=ye[lt]=ye[Zn]=ye[xn]=ye[We]=ye[Ee]=ye[ps]=ye[gs]=ye[vs]=ye[_s]=ye[ms]=ye[nt]=ye[ke]=ye[Ze]=ye[Kn]=ye[bt]=ye[Yn]=ye[Mr]=ye[ys]=ye[ws]=ye[bs]=ye[Ss]=!0,ye[Ot]=ye[wt]=ye[Xn]=!1;var Q1={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ey={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ty={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ny={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ry=parseFloat,iy=parseInt,bl=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,sy=typeof self=="object"&&self&&self.Object===Object&&self,Fe=bl||sy||Function("return this")(),Rs=s&&!s.nodeType&&s,on=Rs&&!0&&i&&!i.nodeType&&i,Sl=on&&on.exports===Rs,Ms=Sl&&bl.process,ft=function(){try{var v=on&&on.require&&on.require("util").types;return v||Ms&&Ms.binding&&Ms.binding("util")}catch{}}(),xl=ft&&ft.isArrayBuffer,Al=ft&&ft.isDate,Tl=ft&&ft.isMap,Cl=ft&&ft.isRegExp,El=ft&&ft.isSet,Ll=ft&&ft.isTypedArray;function rt(v,b,y){switch(y.length){case 0:return v.call(b);case 1:return v.call(b,y[0]);case 2:return v.call(b,y[0],y[1]);case 3:return v.call(b,y[0],y[1],y[2])}return v.apply(b,y)}function ay(v,b,y,B){for(var j=-1,pe=v==null?0:v.length;++j<pe;){var Ie=v[j];b(B,Ie,y(Ie),v)}return B}function ht(v,b){for(var y=-1,B=v==null?0:v.length;++y<B&&b(v[y],y,v)!==!1;);return v}function oy(v,b){for(var y=v==null?0:v.length;y--&&b(v[y],y,v)!==!1;);return v}function Ol(v,b){for(var y=-1,B=v==null?0:v.length;++y<B;)if(!b(v[y],y,v))return!1;return!0}function Zt(v,b){for(var y=-1,B=v==null?0:v.length,j=0,pe=[];++y<B;){var Ie=v[y];b(Ie,y,v)&&(pe[j++]=Ie)}return pe}function Nr(v,b){var y=v==null?0:v.length;return!!y&&Tn(v,b,0)>-1}function Ds(v,b,y){for(var B=-1,j=v==null?0:v.length;++B<j;)if(y(b,v[B]))return!0;return!1}function xe(v,b){for(var y=-1,B=v==null?0:v.length,j=Array(B);++y<B;)j[y]=b(v[y],y,v);return j}function Jt(v,b){for(var y=-1,B=b.length,j=v.length;++y<B;)v[j+y]=b[y];return v}function Is(v,b,y,B){var j=-1,pe=v==null?0:v.length;for(B&&pe&&(y=v[++j]);++j<pe;)y=b(y,v[j],j,v);return y}function uy(v,b,y,B){var j=v==null?0:v.length;for(B&&j&&(y=v[--j]);j--;)y=b(y,v[j],j,v);return y}function Ps(v,b){for(var y=-1,B=v==null?0:v.length;++y<B;)if(b(v[y],y,v))return!0;return!1}var ly=Ns("length");function cy(v){return v.split("")}function fy(v){return v.match(y1)||[]}function Rl(v,b,y){var B;return y(v,function(j,pe,Ie){if(b(j,pe,Ie))return B=pe,!1}),B}function $r(v,b,y,B){for(var j=v.length,pe=y+(B?1:-1);B?pe--:++pe<j;)if(b(v[pe],pe,v))return pe;return-1}function Tn(v,b,y){return b===b?xy(v,b,y):$r(v,Ml,y)}function hy(v,b,y,B){for(var j=y-1,pe=v.length;++j<pe;)if(B(v[j],b))return j;return-1}function Ml(v){return v!==v}function Dl(v,b){var y=v==null?0:v.length;return y?Fs(v,b)/y:oe}function Ns(v){return function(b){return b==null?r:b[v]}}function $s(v){return function(b){return v==null?r:v[b]}}function Il(v,b,y,B,j){return j(v,function(pe,Ie,me){y=B?(B=!1,pe):b(y,pe,Ie,me)}),y}function dy(v,b){var y=v.length;for(v.sort(b);y--;)v[y]=v[y].value;return v}function Fs(v,b){for(var y,B=-1,j=v.length;++B<j;){var pe=b(v[B]);pe!==r&&(y=y===r?pe:y+pe)}return y}function Bs(v,b){for(var y=-1,B=Array(v);++y<v;)B[y]=b(y);return B}function py(v,b){return xe(b,function(y){return[y,v[y]]})}function Pl(v){return v&&v.slice(0,Bl(v)+1).replace(As,"")}function it(v){return function(b){return v(b)}}function Ws(v,b){return xe(b,function(y){return v[y]})}function Jn(v,b){return v.has(b)}function Nl(v,b){for(var y=-1,B=v.length;++y<B&&Tn(b,v[y],0)>-1;);return y}function $l(v,b){for(var y=v.length;y--&&Tn(b,v[y],0)>-1;);return y}function gy(v,b){for(var y=v.length,B=0;y--;)v[y]===b&&++B;return B}var vy=$s(Q1),_y=$s(ey);function my(v){return"\\"+ny[v]}function yy(v,b){return v==null?r:v[b]}function Cn(v){return J1.test(v)}function wy(v){return q1.test(v)}function by(v){for(var b,y=[];!(b=v.next()).done;)y.push(b.value);return y}function ks(v){var b=-1,y=Array(v.size);return v.forEach(function(B,j){y[++b]=[j,B]}),y}function Fl(v,b){return function(y){return v(b(y))}}function qt(v,b){for(var y=-1,B=v.length,j=0,pe=[];++y<B;){var Ie=v[y];(Ie===b||Ie===R)&&(v[y]=R,pe[j++]=y)}return pe}function Fr(v){var b=-1,y=Array(v.size);return v.forEach(function(B){y[++b]=B}),y}function Sy(v){var b=-1,y=Array(v.size);return v.forEach(function(B){y[++b]=[B,B]}),y}function xy(v,b,y){for(var B=y-1,j=v.length;++B<j;)if(v[B]===b)return B;return-1}function Ay(v,b,y){for(var B=y+1;B--;)if(v[B]===b)return B;return B}function En(v){return Cn(v)?Cy(v):ly(v)}function St(v){return Cn(v)?Ey(v):cy(v)}function Bl(v){for(var b=v.length;b--&&g1.test(v.charAt(b)););return b}var Ty=$s(ty);function Cy(v){for(var b=Os.lastIndex=0;Os.test(v);)++b;return b}function Ey(v){return v.match(Os)||[]}function Ly(v){return v.match(Z1)||[]}var Oy=function v(b){b=b==null?Fe:Ln.defaults(Fe.Object(),b,Ln.pick(Fe,j1));var y=b.Array,B=b.Date,j=b.Error,pe=b.Function,Ie=b.Math,me=b.Object,Us=b.RegExp,Ry=b.String,dt=b.TypeError,Br=y.prototype,My=pe.prototype,On=me.prototype,Wr=b["__core-js_shared__"],kr=My.toString,_e=On.hasOwnProperty,Dy=0,Wl=function(){var e=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ur=On.toString,Iy=kr.call(me),Py=Fe._,Ny=Us("^"+kr.call(_e).replace(xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hr=Sl?b.Buffer:r,jt=b.Symbol,zr=b.Uint8Array,kl=Hr?Hr.allocUnsafe:r,Gr=Fl(me.getPrototypeOf,me),Ul=me.create,Hl=On.propertyIsEnumerable,Kr=Br.splice,zl=jt?jt.isConcatSpreadable:r,qn=jt?jt.iterator:r,un=jt?jt.toStringTag:r,Yr=function(){try{var e=dn(me,"defineProperty");return e({},"",{}),e}catch{}}(),$y=b.clearTimeout!==Fe.clearTimeout&&b.clearTimeout,Fy=B&&B.now!==Fe.Date.now&&B.now,By=b.setTimeout!==Fe.setTimeout&&b.setTimeout,Xr=Ie.ceil,Zr=Ie.floor,Hs=me.getOwnPropertySymbols,Wy=Hr?Hr.isBuffer:r,Gl=b.isFinite,ky=Br.join,Uy=Fl(me.keys,me),Pe=Ie.max,Ue=Ie.min,Hy=B.now,zy=b.parseInt,Kl=Ie.random,Gy=Br.reverse,zs=dn(b,"DataView"),jn=dn(b,"Map"),Gs=dn(b,"Promise"),Rn=dn(b,"Set"),Vn=dn(b,"WeakMap"),Qn=dn(me,"create"),Jr=Vn&&new Vn,Mn={},Ky=pn(zs),Yy=pn(jn),Xy=pn(Gs),Zy=pn(Rn),Jy=pn(Vn),qr=jt?jt.prototype:r,er=qr?qr.valueOf:r,Yl=qr?qr.toString:r;function l(e){if(Le(e)&&!V(e)&&!(e instanceof le)){if(e instanceof pt)return e;if(_e.call(e,"__wrapped__"))return Xc(e)}return new pt(e)}var Dn=function(){function e(){}return function(t){if(!Ae(t))return{};if(Ul)return Ul(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function jr(){}function pt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:l1,evaluate:c1,interpolate:tl,variable:"",imports:{_:l}},l.prototype=jr.prototype,l.prototype.constructor=l,pt.prototype=Dn(jr.prototype),pt.prototype.constructor=pt;function le(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fe,this.__views__=[]}function qy(){var e=new le(this.__wrapped__);return e.__actions__=Je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Je(this.__views__),e}function jy(){if(this.__filtered__){var e=new le(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Vy(){var e=this.__wrapped__.value(),t=this.__dir__,n=V(e),a=t<0,o=n?e.length:0,c=cb(0,o,this.__views__),d=c.start,p=c.end,_=p-d,S=a?p:d-1,x=this.__iteratees__,T=x.length,N=0,k=Ue(_,this.__takeCount__);if(!n||!a&&o==_&&k==_)return vc(e,this.__actions__);var Y=[];e:for(;_--&&N<k;){S+=t;for(var te=-1,X=e[S];++te<T;){var ue=x[te],ce=ue.iteratee,ot=ue.type,Xe=ce(X);if(ot==I)X=Xe;else if(!Xe){if(ot==W)continue e;break e}}Y[N++]=X}return Y}le.prototype=Dn(jr.prototype),le.prototype.constructor=le;function ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Qy(){this.__data__=Qn?Qn(null):{},this.size=0}function ew(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function tw(e){var t=this.__data__;if(Qn){var n=t[e];return n===w?r:n}return _e.call(t,e)?t[e]:r}function nw(e){var t=this.__data__;return Qn?t[e]!==r:_e.call(t,e)}function rw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qn&&t===r?w:t,this}ln.prototype.clear=Qy,ln.prototype.delete=ew,ln.prototype.get=tw,ln.prototype.has=nw,ln.prototype.set=rw;function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function iw(){this.__data__=[],this.size=0}function sw(e){var t=this.__data__,n=Vr(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Kr.call(t,n,1),--this.size,!0}function aw(e){var t=this.__data__,n=Vr(t,e);return n<0?r:t[n][1]}function ow(e){return Vr(this.__data__,e)>-1}function uw(e,t){var n=this.__data__,a=Vr(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}$t.prototype.clear=iw,$t.prototype.delete=sw,$t.prototype.get=aw,$t.prototype.has=ow,$t.prototype.set=uw;function Ft(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function lw(){this.size=0,this.__data__={hash:new ln,map:new(jn||$t),string:new ln}}function cw(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t}function fw(e){return ci(this,e).get(e)}function hw(e){return ci(this,e).has(e)}function dw(e,t){var n=ci(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}Ft.prototype.clear=lw,Ft.prototype.delete=cw,Ft.prototype.get=fw,Ft.prototype.has=hw,Ft.prototype.set=dw;function cn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ft;++t<n;)this.add(e[t])}function pw(e){return this.__data__.set(e,w),this}function gw(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=pw,cn.prototype.has=gw;function xt(e){var t=this.__data__=new $t(e);this.size=t.size}function vw(){this.__data__=new $t,this.size=0}function _w(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mw(e){return this.__data__.get(e)}function yw(e){return this.__data__.has(e)}function ww(e,t){var n=this.__data__;if(n instanceof $t){var a=n.__data__;if(!jn||a.length<f-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ft(a)}return n.set(e,t),this.size=n.size,this}xt.prototype.clear=vw,xt.prototype.delete=_w,xt.prototype.get=mw,xt.prototype.has=yw,xt.prototype.set=ww;function Xl(e,t){var n=V(e),a=!n&&gn(e),o=!n&&!a&&nn(e),c=!n&&!a&&!o&&$n(e),d=n||a||o||c,p=d?Bs(e.length,Ry):[],_=p.length;for(var S in e)(t||_e.call(e,S))&&!(d&&(S=="length"||o&&(S=="offset"||S=="parent")||c&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Ut(S,_)))&&p.push(S);return p}function Zl(e){var t=e.length;return t?e[ta(0,t-1)]:r}function bw(e,t){return fi(Je(e),fn(t,0,e.length))}function Sw(e){return fi(Je(e))}function Ks(e,t,n){(n!==r&&!At(e[t],n)||n===r&&!(t in e))&&Bt(e,t,n)}function tr(e,t,n){var a=e[t];(!(_e.call(e,t)&&At(a,n))||n===r&&!(t in e))&&Bt(e,t,n)}function Vr(e,t){for(var n=e.length;n--;)if(At(e[n][0],t))return n;return-1}function xw(e,t,n,a){return Vt(e,function(o,c,d){t(a,o,n(o),d)}),a}function Jl(e,t){return e&&Mt(t,$e(t),e)}function Aw(e,t){return e&&Mt(t,je(t),e)}function Bt(e,t,n){t=="__proto__"&&Yr?Yr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ys(e,t){for(var n=-1,a=t.length,o=y(a),c=e==null;++n<a;)o[n]=c?r:Ca(e,t[n]);return o}function fn(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function gt(e,t,n,a,o,c){var d,p=t&L,_=t&O,S=t&E;if(n&&(d=o?n(e,a,o,c):n(e)),d!==r)return d;if(!Ae(e))return e;var x=V(e);if(x){if(d=hb(e),!p)return Je(e,d)}else{var T=He(e),N=T==wt||T==Or;if(nn(e))return yc(e,p);if(T==Ze||T==Ne||N&&!o){if(d=_||N?{}:Bc(e),!p)return _?tb(e,Aw(d,e)):eb(e,Jl(d,e))}else{if(!ye[T])return o?e:{};d=db(e,T,p)}}c||(c=new xt);var k=c.get(e);if(k)return k;c.set(e,d),pf(e)?e.forEach(function(X){d.add(gt(X,t,n,X,e,c))}):hf(e)&&e.forEach(function(X,ue){d.set(ue,gt(X,t,n,ue,e,c))});var Y=S?_?ha:fa:_?je:$e,te=x?r:Y(e);return ht(te||e,function(X,ue){te&&(ue=X,X=e[ue]),tr(d,ue,gt(X,t,n,ue,e,c))}),d}function Tw(e){var t=$e(e);return function(n){return ql(n,e,t)}}function ql(e,t,n){var a=n.length;if(e==null)return!a;for(e=me(e);a--;){var o=n[a],c=t[o],d=e[o];if(d===r&&!(o in e)||!c(d))return!1}return!0}function jl(e,t,n){if(typeof e!="function")throw new dt(g);return ur(function(){e.apply(r,n)},t)}function nr(e,t,n,a){var o=-1,c=Nr,d=!0,p=e.length,_=[],S=t.length;if(!p)return _;n&&(t=xe(t,it(n))),a?(c=Ds,d=!1):t.length>=f&&(c=Jn,d=!1,t=new cn(t));e:for(;++o<p;){var x=e[o],T=n==null?x:n(x);if(x=a||x!==0?x:0,d&&T===T){for(var N=S;N--;)if(t[N]===T)continue e;_.push(x)}else c(t,T,a)||_.push(x)}return _}var Vt=Ac(Rt),Vl=Ac(Zs,!0);function Cw(e,t){var n=!0;return Vt(e,function(a,o,c){return n=!!t(a,o,c),n}),n}function Qr(e,t,n){for(var a=-1,o=e.length;++a<o;){var c=e[a],d=t(c);if(d!=null&&(p===r?d===d&&!at(d):n(d,p)))var p=d,_=c}return _}function Ew(e,t,n,a){var o=e.length;for(n=ee(n),n<0&&(n=-n>o?0:o+n),a=a===r||a>o?o:ee(a),a<0&&(a+=o),a=n>a?0:vf(a);n<a;)e[n++]=t;return e}function Ql(e,t){var n=[];return Vt(e,function(a,o,c){t(a,o,c)&&n.push(a)}),n}function Be(e,t,n,a,o){var c=-1,d=e.length;for(n||(n=gb),o||(o=[]);++c<d;){var p=e[c];t>0&&n(p)?t>1?Be(p,t-1,n,a,o):Jt(o,p):a||(o[o.length]=p)}return o}var Xs=Tc(),ec=Tc(!0);function Rt(e,t){return e&&Xs(e,t,$e)}function Zs(e,t){return e&&ec(e,t,$e)}function ei(e,t){return Zt(t,function(n){return Ht(e[n])})}function hn(e,t){t=en(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Dt(t[n++])];return n&&n==a?e:r}function tc(e,t,n){var a=t(e);return V(e)?a:Jt(a,n(e))}function Ke(e){return e==null?e===r?n1:Xt:un&&un in me(e)?lb(e):Sb(e)}function Js(e,t){return e>t}function Lw(e,t){return e!=null&&_e.call(e,t)}function Ow(e,t){return e!=null&&t in me(e)}function Rw(e,t,n){return e>=Ue(t,n)&&e<Pe(t,n)}function qs(e,t,n){for(var a=n?Ds:Nr,o=e[0].length,c=e.length,d=c,p=y(c),_=1/0,S=[];d--;){var x=e[d];d&&t&&(x=xe(x,it(t))),_=Ue(x.length,_),p[d]=!n&&(t||o>=120&&x.length>=120)?new cn(d&&x):r}x=e[0];var T=-1,N=p[0];e:for(;++T<o&&S.length<_;){var k=x[T],Y=t?t(k):k;if(k=n||k!==0?k:0,!(N?Jn(N,Y):a(S,Y,n))){for(d=c;--d;){var te=p[d];if(!(te?Jn(te,Y):a(e[d],Y,n)))continue e}N&&N.push(Y),S.push(k)}}return S}function Mw(e,t,n,a){return Rt(e,function(o,c,d){t(a,n(o),c,d)}),a}function rr(e,t,n){t=en(t,e),e=Hc(e,t);var a=e==null?e:e[Dt(_t(t))];return a==null?r:rt(a,e,n)}function nc(e){return Le(e)&&Ke(e)==Ne}function Dw(e){return Le(e)&&Ke(e)==Zn}function Iw(e){return Le(e)&&Ke(e)==Ee}function ir(e,t,n,a,o){return e===t?!0:e==null||t==null||!Le(e)&&!Le(t)?e!==e&&t!==t:Pw(e,t,n,a,ir,o)}function Pw(e,t,n,a,o,c){var d=V(e),p=V(t),_=d?lt:He(e),S=p?lt:He(t);_=_==Ne?Ze:_,S=S==Ne?Ze:S;var x=_==Ze,T=S==Ze,N=_==S;if(N&&nn(e)){if(!nn(t))return!1;d=!0,x=!1}if(N&&!x)return c||(c=new xt),d||$n(e)?Nc(e,t,n,a,o,c):ob(e,t,_,n,a,o,c);if(!(n&M)){var k=x&&_e.call(e,"__wrapped__"),Y=T&&_e.call(t,"__wrapped__");if(k||Y){var te=k?e.value():e,X=Y?t.value():t;return c||(c=new xt),o(te,X,n,a,c)}}return N?(c||(c=new xt),ub(e,t,n,a,o,c)):!1}function Nw(e){return Le(e)&&He(e)==nt}function js(e,t,n,a){var o=n.length,c=o,d=!a;if(e==null)return!c;for(e=me(e);o--;){var p=n[o];if(d&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<c;){p=n[o];var _=p[0],S=e[_],x=p[1];if(d&&p[2]){if(S===r&&!(_ in e))return!1}else{var T=new xt;if(a)var N=a(S,x,_,e,t,T);if(!(N===r?ir(x,S,M|U,a,T):N))return!1}}return!0}function rc(e){if(!Ae(e)||_b(e))return!1;var t=Ht(e)?Ny:T1;return t.test(pn(e))}function $w(e){return Le(e)&&Ke(e)==Kn}function Fw(e){return Le(e)&&He(e)==bt}function Bw(e){return Le(e)&&_i(e.length)&&!!Se[Ke(e)]}function ic(e){return typeof e=="function"?e:e==null?Ve:typeof e=="object"?V(e)?oc(e[0],e[1]):ac(e):Ef(e)}function Vs(e){if(!or(e))return Uy(e);var t=[];for(var n in me(e))_e.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ww(e){if(!Ae(e))return bb(e);var t=or(e),n=[];for(var a in e)a=="constructor"&&(t||!_e.call(e,a))||n.push(a);return n}function Qs(e,t){return e<t}function sc(e,t){var n=-1,a=qe(e)?y(e.length):[];return Vt(e,function(o,c,d){a[++n]=t(o,c,d)}),a}function ac(e){var t=pa(e);return t.length==1&&t[0][2]?kc(t[0][0],t[0][1]):function(n){return n===e||js(n,e,t)}}function oc(e,t){return va(e)&&Wc(t)?kc(Dt(e),t):function(n){var a=Ca(n,e);return a===r&&a===t?Ea(n,e):ir(t,a,M|U)}}function ti(e,t,n,a,o){e!==t&&Xs(t,function(c,d){if(o||(o=new xt),Ae(c))kw(e,t,d,n,ti,a,o);else{var p=a?a(ma(e,d),c,d+"",e,t,o):r;p===r&&(p=c),Ks(e,d,p)}},je)}function kw(e,t,n,a,o,c,d){var p=ma(e,n),_=ma(t,n),S=d.get(_);if(S){Ks(e,n,S);return}var x=c?c(p,_,n+"",e,t,d):r,T=x===r;if(T){var N=V(_),k=!N&&nn(_),Y=!N&&!k&&$n(_);x=_,N||k||Y?V(p)?x=p:Me(p)?x=Je(p):k?(T=!1,x=yc(_,!0)):Y?(T=!1,x=wc(_,!0)):x=[]:lr(_)||gn(_)?(x=p,gn(p)?x=_f(p):(!Ae(p)||Ht(p))&&(x=Bc(_))):T=!1}T&&(d.set(_,x),o(x,_,a,c,d),d.delete(_)),Ks(e,n,x)}function uc(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Ut(t,n)?e[t]:r}function lc(e,t,n){t.length?t=xe(t,function(c){return V(c)?function(d){return hn(d,c.length===1?c[0]:c)}:c}):t=[Ve];var a=-1;t=xe(t,it(G()));var o=sc(e,function(c,d,p){var _=xe(t,function(S){return S(c)});return{criteria:_,index:++a,value:c}});return dy(o,function(c,d){return Qw(c,d,n)})}function Uw(e,t){return cc(e,t,function(n,a){return Ea(e,a)})}function cc(e,t,n){for(var a=-1,o=t.length,c={};++a<o;){var d=t[a],p=hn(e,d);n(p,d)&&sr(c,en(d,e),p)}return c}function Hw(e){return function(t){return hn(t,e)}}function ea(e,t,n,a){var o=a?hy:Tn,c=-1,d=t.length,p=e;for(e===t&&(t=Je(t)),n&&(p=xe(e,it(n)));++c<d;)for(var _=0,S=t[c],x=n?n(S):S;(_=o(p,x,_,a))>-1;)p!==e&&Kr.call(p,_,1),Kr.call(e,_,1);return e}function fc(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==c){var c=o;Ut(o)?Kr.call(e,o,1):ia(e,o)}}return e}function ta(e,t){return e+Zr(Kl()*(t-e+1))}function zw(e,t,n,a){for(var o=-1,c=Pe(Xr((t-e)/(n||1)),0),d=y(c);c--;)d[a?c:++o]=e,e+=n;return d}function na(e,t){var n="";if(!e||t<1||t>z)return n;do t%2&&(n+=e),t=Zr(t/2),t&&(e+=e);while(t);return n}function se(e,t){return ya(Uc(e,t,Ve),e+"")}function Gw(e){return Zl(Fn(e))}function Kw(e,t){var n=Fn(e);return fi(n,fn(t,0,n.length))}function sr(e,t,n,a){if(!Ae(e))return e;t=en(t,e);for(var o=-1,c=t.length,d=c-1,p=e;p!=null&&++o<c;){var _=Dt(t[o]),S=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(o!=d){var x=p[_];S=a?a(x,_,p):r,S===r&&(S=Ae(x)?x:Ut(t[o+1])?[]:{})}tr(p,_,S),p=p[_]}return e}var hc=Jr?function(e,t){return Jr.set(e,t),e}:Ve,Yw=Yr?function(e,t){return Yr(e,"toString",{configurable:!0,enumerable:!1,value:Oa(t),writable:!0})}:Ve;function Xw(e){return fi(Fn(e))}function vt(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var c=y(o);++a<o;)c[a]=e[a+t];return c}function Zw(e,t){var n;return Vt(e,function(a,o,c){return n=t(a,o,c),!n}),!!n}function ni(e,t,n){var a=0,o=e==null?a:e.length;if(typeof t=="number"&&t===t&&o<=Ce){for(;a<o;){var c=a+o>>>1,d=e[c];d!==null&&!at(d)&&(n?d<=t:d<t)?a=c+1:o=c}return o}return ra(e,t,Ve,n)}function ra(e,t,n,a){var o=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var d=t!==t,p=t===null,_=at(t),S=t===r;o<c;){var x=Zr((o+c)/2),T=n(e[x]),N=T!==r,k=T===null,Y=T===T,te=at(T);if(d)var X=a||Y;else S?X=Y&&(a||N):p?X=Y&&N&&(a||!k):_?X=Y&&N&&!k&&(a||!te):k||te?X=!1:X=a?T<=t:T<t;X?o=x+1:c=x}return Ue(c,he)}function dc(e,t){for(var n=-1,a=e.length,o=0,c=[];++n<a;){var d=e[n],p=t?t(d):d;if(!n||!At(p,_)){var _=p;c[o++]=d===0?0:d}}return c}function pc(e){return typeof e=="number"?e:at(e)?oe:+e}function st(e){if(typeof e=="string")return e;if(V(e))return xe(e,st)+"";if(at(e))return Yl?Yl.call(e):"";var t=e+"";return t=="0"&&1/e==-P?"-0":t}function Qt(e,t,n){var a=-1,o=Nr,c=e.length,d=!0,p=[],_=p;if(n)d=!1,o=Ds;else if(c>=f){var S=t?null:sb(e);if(S)return Fr(S);d=!1,o=Jn,_=new cn}else _=t?[]:p;e:for(;++a<c;){var x=e[a],T=t?t(x):x;if(x=n||x!==0?x:0,d&&T===T){for(var N=_.length;N--;)if(_[N]===T)continue e;t&&_.push(T),p.push(x)}else o(_,T,n)||(_!==p&&_.push(T),p.push(x))}return p}function ia(e,t){return t=en(t,e),e=Hc(e,t),e==null||delete e[Dt(_t(t))]}function gc(e,t,n,a){return sr(e,t,n(hn(e,t)),a)}function ri(e,t,n,a){for(var o=e.length,c=a?o:-1;(a?c--:++c<o)&&t(e[c],c,e););return n?vt(e,a?0:c,a?c+1:o):vt(e,a?c+1:0,a?o:c)}function vc(e,t){var n=e;return n instanceof le&&(n=n.value()),Is(t,function(a,o){return o.func.apply(o.thisArg,Jt([a],o.args))},n)}function sa(e,t,n){var a=e.length;if(a<2)return a?Qt(e[0]):[];for(var o=-1,c=y(a);++o<a;)for(var d=e[o],p=-1;++p<a;)p!=o&&(c[o]=nr(c[o]||d,e[p],t,n));return Qt(Be(c,1),t,n)}function _c(e,t,n){for(var a=-1,o=e.length,c=t.length,d={};++a<o;){var p=a<c?t[a]:r;n(d,e[a],p)}return d}function aa(e){return Me(e)?e:[]}function oa(e){return typeof e=="function"?e:Ve}function en(e,t){return V(e)?e:va(e,t)?[e]:Yc(ge(e))}var Jw=se;function tn(e,t,n){var a=e.length;return n=n===r?a:n,!t&&n>=a?e:vt(e,t,n)}var mc=$y||function(e){return Fe.clearTimeout(e)};function yc(e,t){if(t)return e.slice();var n=e.length,a=kl?kl(n):new e.constructor(n);return e.copy(a),a}function ua(e){var t=new e.constructor(e.byteLength);return new zr(t).set(new zr(e)),t}function qw(e,t){var n=t?ua(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function jw(e){var t=new e.constructor(e.source,nl.exec(e));return t.lastIndex=e.lastIndex,t}function Vw(e){return er?me(er.call(e)):{}}function wc(e,t){var n=t?ua(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function bc(e,t){if(e!==t){var n=e!==r,a=e===null,o=e===e,c=at(e),d=t!==r,p=t===null,_=t===t,S=at(t);if(!p&&!S&&!c&&e>t||c&&d&&_&&!p&&!S||a&&d&&_||!n&&_||!o)return 1;if(!a&&!c&&!S&&e<t||S&&n&&o&&!a&&!c||p&&n&&o||!d&&o||!_)return-1}return 0}function Qw(e,t,n){for(var a=-1,o=e.criteria,c=t.criteria,d=o.length,p=n.length;++a<d;){var _=bc(o[a],c[a]);if(_){if(a>=p)return _;var S=n[a];return _*(S=="desc"?-1:1)}}return e.index-t.index}function Sc(e,t,n,a){for(var o=-1,c=e.length,d=n.length,p=-1,_=t.length,S=Pe(c-d,0),x=y(_+S),T=!a;++p<_;)x[p]=t[p];for(;++o<d;)(T||o<c)&&(x[n[o]]=e[o]);for(;S--;)x[p++]=e[o++];return x}function xc(e,t,n,a){for(var o=-1,c=e.length,d=-1,p=n.length,_=-1,S=t.length,x=Pe(c-p,0),T=y(x+S),N=!a;++o<x;)T[o]=e[o];for(var k=o;++_<S;)T[k+_]=t[_];for(;++d<p;)(N||o<c)&&(T[k+n[d]]=e[o++]);return T}function Je(e,t){var n=-1,a=e.length;for(t||(t=y(a));++n<a;)t[n]=e[n];return t}function Mt(e,t,n,a){var o=!n;n||(n={});for(var c=-1,d=t.length;++c<d;){var p=t[c],_=a?a(n[p],e[p],p,n,e):r;_===r&&(_=e[p]),o?Bt(n,p,_):tr(n,p,_)}return n}function eb(e,t){return Mt(e,ga(e),t)}function tb(e,t){return Mt(e,$c(e),t)}function ii(e,t){return function(n,a){var o=V(n)?ay:xw,c=t?t():{};return o(n,e,G(a,2),c)}}function In(e){return se(function(t,n){var a=-1,o=n.length,c=o>1?n[o-1]:r,d=o>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(o--,c):r,d&&Ye(n[0],n[1],d)&&(c=o<3?r:c,o=1),t=me(t);++a<o;){var p=n[a];p&&e(t,p,a,c)}return t})}function Ac(e,t){return function(n,a){if(n==null)return n;if(!qe(n))return e(n,a);for(var o=n.length,c=t?o:-1,d=me(n);(t?c--:++c<o)&&a(d[c],c,d)!==!1;);return n}}function Tc(e){return function(t,n,a){for(var o=-1,c=me(t),d=a(t),p=d.length;p--;){var _=d[e?p:++o];if(n(c[_],_,c)===!1)break}return t}}function nb(e,t,n){var a=t&F,o=ar(e);function c(){var d=this&&this!==Fe&&this instanceof c?o:e;return d.apply(a?n:this,arguments)}return c}function Cc(e){return function(t){t=ge(t);var n=Cn(t)?St(t):r,a=n?n[0]:t.charAt(0),o=n?tn(n,1).join(""):t.slice(1);return a[e]()+o}}function Pn(e){return function(t){return Is(Tf(Af(t).replace(Y1,"")),e,"")}}function ar(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Dn(e.prototype),a=e.apply(n,t);return Ae(a)?a:n}}function rb(e,t,n){var a=ar(e);function o(){for(var c=arguments.length,d=y(c),p=c,_=Nn(o);p--;)d[p]=arguments[p];var S=c<3&&d[0]!==_&&d[c-1]!==_?[]:qt(d,_);if(c-=S.length,c<n)return Mc(e,t,si,o.placeholder,r,d,S,r,r,n-c);var x=this&&this!==Fe&&this instanceof o?a:e;return rt(x,this,d)}return o}function Ec(e){return function(t,n,a){var o=me(t);if(!qe(t)){var c=G(n,3);t=$e(t),n=function(p){return c(o[p],p,o)}}var d=e(t,n,a);return d>-1?o[c?t[d]:d]:r}}function Lc(e){return kt(function(t){var n=t.length,a=n,o=pt.prototype.thru;for(e&&t.reverse();a--;){var c=t[a];if(typeof c!="function")throw new dt(g);if(o&&!d&&li(c)=="wrapper")var d=new pt([],!0)}for(a=d?a:n;++a<n;){c=t[a];var p=li(c),_=p=="wrapper"?da(c):r;_&&_a(_[0])&&_[1]==(be|re|K|Re)&&!_[4].length&&_[9]==1?d=d[li(_[0])].apply(d,_[3]):d=c.length==1&&_a(c)?d[p]():d.thru(c)}return function(){var S=arguments,x=S[0];if(d&&S.length==1&&V(x))return d.plant(x).value();for(var T=0,N=n?t[T].apply(this,S):x;++T<n;)N=t[T].call(this,N);return N}})}function si(e,t,n,a,o,c,d,p,_,S){var x=t&be,T=t&F,N=t&H,k=t&(re|ie),Y=t&ve,te=N?r:ar(e);function X(){for(var ue=arguments.length,ce=y(ue),ot=ue;ot--;)ce[ot]=arguments[ot];if(k)var Xe=Nn(X),ut=gy(ce,Xe);if(a&&(ce=Sc(ce,a,o,k)),c&&(ce=xc(ce,c,d,k)),ue-=ut,k&&ue<S){var De=qt(ce,Xe);return Mc(e,t,si,X.placeholder,n,ce,De,p,_,S-ue)}var Tt=T?n:this,Gt=N?Tt[e]:e;return ue=ce.length,p?ce=xb(ce,p):Y&&ue>1&&ce.reverse(),x&&_<ue&&(ce.length=_),this&&this!==Fe&&this instanceof X&&(Gt=te||ar(Gt)),Gt.apply(Tt,ce)}return X}function Oc(e,t){return function(n,a){return Mw(n,e,t(a),{})}}function ai(e,t){return function(n,a){var o;if(n===r&&a===r)return t;if(n!==r&&(o=n),a!==r){if(o===r)return a;typeof n=="string"||typeof a=="string"?(n=st(n),a=st(a)):(n=pc(n),a=pc(a)),o=e(n,a)}return o}}function la(e){return kt(function(t){return t=xe(t,it(G())),se(function(n){var a=this;return e(t,function(o){return rt(o,a,n)})})})}function oi(e,t){t=t===r?" ":st(t);var n=t.length;if(n<2)return n?na(t,e):t;var a=na(t,Xr(e/En(t)));return Cn(t)?tn(St(a),0,e).join(""):a.slice(0,e)}function ib(e,t,n,a){var o=t&F,c=ar(e);function d(){for(var p=-1,_=arguments.length,S=-1,x=a.length,T=y(x+_),N=this&&this!==Fe&&this instanceof d?c:e;++S<x;)T[S]=a[S];for(;_--;)T[S++]=arguments[++p];return rt(N,o?n:this,T)}return d}function Rc(e){return function(t,n,a){return a&&typeof a!="number"&&Ye(t,n,a)&&(n=a=r),t=zt(t),n===r?(n=t,t=0):n=zt(n),a=a===r?t<n?1:-1:zt(a),zw(t,n,a,e)}}function ui(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=mt(t),n=mt(n)),e(t,n)}}function Mc(e,t,n,a,o,c,d,p,_,S){var x=t&re,T=x?d:r,N=x?r:d,k=x?c:r,Y=x?r:c;t|=x?K:Q,t&=~(x?Q:K),t&de||(t&=~(F|H));var te=[e,t,o,k,T,Y,N,p,_,S],X=n.apply(r,te);return _a(e)&&zc(X,te),X.placeholder=a,Gc(X,e,t)}function ca(e){var t=Ie[e];return function(n,a){if(n=mt(n),a=a==null?0:Ue(ee(a),292),a&&Gl(n)){var o=(ge(n)+"e").split("e"),c=t(o[0]+"e"+(+o[1]+a));return o=(ge(c)+"e").split("e"),+(o[0]+"e"+(+o[1]-a))}return t(n)}}var sb=Rn&&1/Fr(new Rn([,-0]))[1]==P?function(e){return new Rn(e)}:Da;function Dc(e){return function(t){var n=He(t);return n==nt?ks(t):n==bt?Sy(t):py(t,e(t))}}function Wt(e,t,n,a,o,c,d,p){var _=t&H;if(!_&&typeof e!="function")throw new dt(g);var S=a?a.length:0;if(S||(t&=~(K|Q),a=o=r),d=d===r?d:Pe(ee(d),0),p=p===r?p:ee(p),S-=o?o.length:0,t&Q){var x=a,T=o;a=o=r}var N=_?r:da(e),k=[e,t,n,a,o,x,T,c,d,p];if(N&&wb(k,N),e=k[0],t=k[1],n=k[2],a=k[3],o=k[4],p=k[9]=k[9]===r?_?0:e.length:Pe(k[9]-S,0),!p&&t&(re|ie)&&(t&=~(re|ie)),!t||t==F)var Y=nb(e,t,n);else t==re||t==ie?Y=rb(e,t,p):(t==K||t==(F|K))&&!o.length?Y=ib(e,t,n,a):Y=si.apply(r,k);var te=N?hc:zc;return Gc(te(Y,k),e,t)}function Ic(e,t,n,a){return e===r||At(e,On[n])&&!_e.call(a,n)?t:e}function Pc(e,t,n,a,o,c){return Ae(e)&&Ae(t)&&(c.set(t,e),ti(e,t,r,Pc,c),c.delete(t)),e}function ab(e){return lr(e)?r:e}function Nc(e,t,n,a,o,c){var d=n&M,p=e.length,_=t.length;if(p!=_&&!(d&&_>p))return!1;var S=c.get(e),x=c.get(t);if(S&&x)return S==t&&x==e;var T=-1,N=!0,k=n&U?new cn:r;for(c.set(e,t),c.set(t,e);++T<p;){var Y=e[T],te=t[T];if(a)var X=d?a(te,Y,T,t,e,c):a(Y,te,T,e,t,c);if(X!==r){if(X)continue;N=!1;break}if(k){if(!Ps(t,function(ue,ce){if(!Jn(k,ce)&&(Y===ue||o(Y,ue,n,a,c)))return k.push(ce)})){N=!1;break}}else if(!(Y===te||o(Y,te,n,a,c))){N=!1;break}}return c.delete(e),c.delete(t),N}function ob(e,t,n,a,o,c,d){switch(n){case xn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zn:return!(e.byteLength!=t.byteLength||!c(new zr(e),new zr(t)));case We:case Ee:case ke:return At(+e,+t);case Ot:return e.name==t.name&&e.message==t.message;case Kn:case Yn:return e==t+"";case nt:var p=ks;case bt:var _=a&M;if(p||(p=Fr),e.size!=t.size&&!_)return!1;var S=d.get(e);if(S)return S==t;a|=U,d.set(e,t);var x=Nc(p(e),p(t),a,o,c,d);return d.delete(e),x;case Mr:if(er)return er.call(e)==er.call(t)}return!1}function ub(e,t,n,a,o,c){var d=n&M,p=fa(e),_=p.length,S=fa(t),x=S.length;if(_!=x&&!d)return!1;for(var T=_;T--;){var N=p[T];if(!(d?N in t:_e.call(t,N)))return!1}var k=c.get(e),Y=c.get(t);if(k&&Y)return k==t&&Y==e;var te=!0;c.set(e,t),c.set(t,e);for(var X=d;++T<_;){N=p[T];var ue=e[N],ce=t[N];if(a)var ot=d?a(ce,ue,N,t,e,c):a(ue,ce,N,e,t,c);if(!(ot===r?ue===ce||o(ue,ce,n,a,c):ot)){te=!1;break}X||(X=N=="constructor")}if(te&&!X){var Xe=e.constructor,ut=t.constructor;Xe!=ut&&"constructor"in e&&"constructor"in t&&!(typeof Xe=="function"&&Xe instanceof Xe&&typeof ut=="function"&&ut instanceof ut)&&(te=!1)}return c.delete(e),c.delete(t),te}function kt(e){return ya(Uc(e,r,qc),e+"")}function fa(e){return tc(e,$e,ga)}function ha(e){return tc(e,je,$c)}var da=Jr?function(e){return Jr.get(e)}:Da;function li(e){for(var t=e.name+"",n=Mn[t],a=_e.call(Mn,t)?n.length:0;a--;){var o=n[a],c=o.func;if(c==null||c==e)return o.name}return t}function Nn(e){var t=_e.call(l,"placeholder")?l:e;return t.placeholder}function G(){var e=l.iteratee||Ra;return e=e===Ra?ic:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n=e.__data__;return vb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function pa(e){for(var t=$e(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,Wc(o)]}return t}function dn(e,t){var n=yy(e,t);return rc(n)?n:r}function lb(e){var t=_e.call(e,un),n=e[un];try{e[un]=r;var a=!0}catch{}var o=Ur.call(e);return a&&(t?e[un]=n:delete e[un]),o}var ga=Hs?function(e){return e==null?[]:(e=me(e),Zt(Hs(e),function(t){return Hl.call(e,t)}))}:Ia,$c=Hs?function(e){for(var t=[];e;)Jt(t,ga(e)),e=Gr(e);return t}:Ia,He=Ke;(zs&&He(new zs(new ArrayBuffer(1)))!=xn||jn&&He(new jn)!=nt||Gs&&He(Gs.resolve())!=Rr||Rn&&He(new Rn)!=bt||Vn&&He(new Vn)!=Xn)&&(He=function(e){var t=Ke(e),n=t==Ze?e.constructor:r,a=n?pn(n):"";if(a)switch(a){case Ky:return xn;case Yy:return nt;case Xy:return Rr;case Zy:return bt;case Jy:return Xn}return t});function cb(e,t,n){for(var a=-1,o=n.length;++a<o;){var c=n[a],d=c.size;switch(c.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=Ue(t,e+d);break;case"takeRight":e=Pe(e,t-d);break}}return{start:e,end:t}}function fb(e){var t=e.match(_1);return t?t[1].split(m1):[]}function Fc(e,t,n){t=en(t,e);for(var a=-1,o=t.length,c=!1;++a<o;){var d=Dt(t[a]);if(!(c=e!=null&&n(e,d)))break;e=e[d]}return c||++a!=o?c:(o=e==null?0:e.length,!!o&&_i(o)&&Ut(d,o)&&(V(e)||gn(e)))}function hb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Bc(e){return typeof e.constructor=="function"&&!or(e)?Dn(Gr(e)):{}}function db(e,t,n){var a=e.constructor;switch(t){case Zn:return ua(e);case We:case Ee:return new a(+e);case xn:return qw(e,n);case ps:case gs:case vs:case _s:case ms:case ys:case ws:case bs:case Ss:return wc(e,n);case nt:return new a;case ke:case Yn:return new a(e);case Kn:return jw(e);case bt:return new a;case Mr:return Vw(e)}}function pb(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(v1,`{
/* [wrapped with `+t+`] */
`)}function gb(e){return V(e)||gn(e)||!!(zl&&e&&e[zl])}function Ut(e,t){var n=typeof e;return t=t==null?z:t,!!t&&(n=="number"||n!="symbol"&&E1.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e,t,n){if(!Ae(n))return!1;var a=typeof t;return(a=="number"?qe(n)&&Ut(t,n.length):a=="string"&&t in n)?At(n[t],e):!1}function va(e,t){if(V(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||at(e)?!0:h1.test(e)||!f1.test(e)||t!=null&&e in me(t)}function vb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _a(e){var t=li(e),n=l[t];if(typeof n!="function"||!(t in le.prototype))return!1;if(e===n)return!0;var a=da(n);return!!a&&e===a[0]}function _b(e){return!!Wl&&Wl in e}var mb=Wr?Ht:Pa;function or(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||On;return e===n}function Wc(e){return e===e&&!Ae(e)}function kc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in me(n))}}function yb(e){var t=gi(e,function(a){return n.size===A&&n.clear(),a}),n=t.cache;return t}function wb(e,t){var n=e[1],a=t[1],o=n|a,c=o<(F|H|be),d=a==be&&n==re||a==be&&n==Re&&e[7].length<=t[8]||a==(be|Re)&&t[7].length<=t[8]&&n==re;if(!(c||d))return e;a&F&&(e[2]=t[2],o|=n&F?0:de);var p=t[3];if(p){var _=e[3];e[3]=_?Sc(_,p,t[4]):p,e[4]=_?qt(e[3],R):t[4]}return p=t[5],p&&(_=e[5],e[5]=_?xc(_,p,t[6]):p,e[6]=_?qt(e[5],R):t[6]),p=t[7],p&&(e[7]=p),a&be&&(e[8]=e[8]==null?t[8]:Ue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function bb(e){var t=[];if(e!=null)for(var n in me(e))t.push(n);return t}function Sb(e){return Ur.call(e)}function Uc(e,t,n){return t=Pe(t===r?e.length-1:t,0),function(){for(var a=arguments,o=-1,c=Pe(a.length-t,0),d=y(c);++o<c;)d[o]=a[t+o];o=-1;for(var p=y(t+1);++o<t;)p[o]=a[o];return p[t]=n(d),rt(e,this,p)}}function Hc(e,t){return t.length<2?e:hn(e,vt(t,0,-1))}function xb(e,t){for(var n=e.length,a=Ue(t.length,n),o=Je(e);a--;){var c=t[a];e[a]=Ut(c,n)?o[c]:r}return e}function ma(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var zc=Kc(hc),ur=By||function(e,t){return Fe.setTimeout(e,t)},ya=Kc(Yw);function Gc(e,t,n){var a=t+"";return ya(e,pb(a,Ab(fb(a),n)))}function Kc(e){var t=0,n=0;return function(){var a=Hy(),o=q-(a-n);if(n=a,o>0){if(++t>=Pt)return arguments[0]}else t=0;return e.apply(r,arguments)}}function fi(e,t){var n=-1,a=e.length,o=a-1;for(t=t===r?a:t;++n<t;){var c=ta(n,o),d=e[c];e[c]=e[n],e[n]=d}return e.length=t,e}var Yc=yb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(d1,function(n,a,o,c){t.push(o?c.replace(b1,"$1"):a||n)}),t});function Dt(e){if(typeof e=="string"||at(e))return e;var t=e+"";return t=="0"&&1/e==-P?"-0":t}function pn(e){if(e!=null){try{return kr.call(e)}catch{}try{return e+""}catch{}}return""}function Ab(e,t){return ht(tt,function(n){var a="_."+n[0];t&n[1]&&!Nr(e,a)&&e.push(a)}),e.sort()}function Xc(e){if(e instanceof le)return e.clone();var t=new pt(e.__wrapped__,e.__chain__);return t.__actions__=Je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Tb(e,t,n){(n?Ye(e,t,n):t===r)?t=1:t=Pe(ee(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var o=0,c=0,d=y(Xr(a/t));o<a;)d[c++]=vt(e,o,o+=t);return d}function Cb(e){for(var t=-1,n=e==null?0:e.length,a=0,o=[];++t<n;){var c=e[t];c&&(o[a++]=c)}return o}function Eb(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Jt(V(n)?Je(n):[n],Be(t,1))}var Lb=se(function(e,t){return Me(e)?nr(e,Be(t,1,Me,!0)):[]}),Ob=se(function(e,t){var n=_t(t);return Me(n)&&(n=r),Me(e)?nr(e,Be(t,1,Me,!0),G(n,2)):[]}),Rb=se(function(e,t){var n=_t(t);return Me(n)&&(n=r),Me(e)?nr(e,Be(t,1,Me,!0),r,n):[]});function Mb(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:ee(t),vt(e,t<0?0:t,a)):[]}function Db(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:ee(t),t=a-t,vt(e,0,t<0?0:t)):[]}function Ib(e,t){return e&&e.length?ri(e,G(t,3),!0,!0):[]}function Pb(e,t){return e&&e.length?ri(e,G(t,3),!0):[]}function Nb(e,t,n,a){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ye(e,t,n)&&(n=0,a=o),Ew(e,t,n,a)):[]}function Zc(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:ee(n);return o<0&&(o=Pe(a+o,0)),$r(e,G(t,3),o)}function Jc(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return n!==r&&(o=ee(n),o=n<0?Pe(a+o,0):Ue(o,a-1)),$r(e,G(t,3),o,!0)}function qc(e){var t=e==null?0:e.length;return t?Be(e,1):[]}function $b(e){var t=e==null?0:e.length;return t?Be(e,P):[]}function Fb(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:ee(t),Be(e,t)):[]}function Bb(e){for(var t=-1,n=e==null?0:e.length,a={};++t<n;){var o=e[t];a[o[0]]=o[1]}return a}function jc(e){return e&&e.length?e[0]:r}function Wb(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:ee(n);return o<0&&(o=Pe(a+o,0)),Tn(e,t,o)}function kb(e){var t=e==null?0:e.length;return t?vt(e,0,-1):[]}var Ub=se(function(e){var t=xe(e,aa);return t.length&&t[0]===e[0]?qs(t):[]}),Hb=se(function(e){var t=_t(e),n=xe(e,aa);return t===_t(n)?t=r:n.pop(),n.length&&n[0]===e[0]?qs(n,G(t,2)):[]}),zb=se(function(e){var t=_t(e),n=xe(e,aa);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?qs(n,r,t):[]});function Gb(e,t){return e==null?"":ky.call(e,t)}function _t(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Kb(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a;return n!==r&&(o=ee(n),o=o<0?Pe(a+o,0):Ue(o,a-1)),t===t?Ay(e,t,o):$r(e,Ml,o,!0)}function Yb(e,t){return e&&e.length?uc(e,ee(t)):r}var Xb=se(Vc);function Vc(e,t){return e&&e.length&&t&&t.length?ea(e,t):e}function Zb(e,t,n){return e&&e.length&&t&&t.length?ea(e,t,G(n,2)):e}function Jb(e,t,n){return e&&e.length&&t&&t.length?ea(e,t,r,n):e}var qb=kt(function(e,t){var n=e==null?0:e.length,a=Ys(e,t);return fc(e,xe(t,function(o){return Ut(o,n)?+o:o}).sort(bc)),a});function jb(e,t){var n=[];if(!(e&&e.length))return n;var a=-1,o=[],c=e.length;for(t=G(t,3);++a<c;){var d=e[a];t(d,a,e)&&(n.push(d),o.push(a))}return fc(e,o),n}function wa(e){return e==null?e:Gy.call(e)}function Vb(e,t,n){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&Ye(e,t,n)?(t=0,n=a):(t=t==null?0:ee(t),n=n===r?a:ee(n)),vt(e,t,n)):[]}function Qb(e,t){return ni(e,t)}function eS(e,t,n){return ra(e,t,G(n,2))}function tS(e,t){var n=e==null?0:e.length;if(n){var a=ni(e,t);if(a<n&&At(e[a],t))return a}return-1}function nS(e,t){return ni(e,t,!0)}function rS(e,t,n){return ra(e,t,G(n,2),!0)}function iS(e,t){var n=e==null?0:e.length;if(n){var a=ni(e,t,!0)-1;if(At(e[a],t))return a}return-1}function sS(e){return e&&e.length?dc(e):[]}function aS(e,t){return e&&e.length?dc(e,G(t,2)):[]}function oS(e){var t=e==null?0:e.length;return t?vt(e,1,t):[]}function uS(e,t,n){return e&&e.length?(t=n||t===r?1:ee(t),vt(e,0,t<0?0:t)):[]}function lS(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:ee(t),t=a-t,vt(e,t<0?0:t,a)):[]}function cS(e,t){return e&&e.length?ri(e,G(t,3),!1,!0):[]}function fS(e,t){return e&&e.length?ri(e,G(t,3)):[]}var hS=se(function(e){return Qt(Be(e,1,Me,!0))}),dS=se(function(e){var t=_t(e);return Me(t)&&(t=r),Qt(Be(e,1,Me,!0),G(t,2))}),pS=se(function(e){var t=_t(e);return t=typeof t=="function"?t:r,Qt(Be(e,1,Me,!0),r,t)});function gS(e){return e&&e.length?Qt(e):[]}function vS(e,t){return e&&e.length?Qt(e,G(t,2)):[]}function _S(e,t){return t=typeof t=="function"?t:r,e&&e.length?Qt(e,r,t):[]}function ba(e){if(!(e&&e.length))return[];var t=0;return e=Zt(e,function(n){if(Me(n))return t=Pe(n.length,t),!0}),Bs(t,function(n){return xe(e,Ns(n))})}function Qc(e,t){if(!(e&&e.length))return[];var n=ba(e);return t==null?n:xe(n,function(a){return rt(t,r,a)})}var mS=se(function(e,t){return Me(e)?nr(e,t):[]}),yS=se(function(e){return sa(Zt(e,Me))}),wS=se(function(e){var t=_t(e);return Me(t)&&(t=r),sa(Zt(e,Me),G(t,2))}),bS=se(function(e){var t=_t(e);return t=typeof t=="function"?t:r,sa(Zt(e,Me),r,t)}),SS=se(ba);function xS(e,t){return _c(e||[],t||[],tr)}function AS(e,t){return _c(e||[],t||[],sr)}var TS=se(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Qc(e,n)});function ef(e){var t=l(e);return t.__chain__=!0,t}function CS(e,t){return t(e),e}function hi(e,t){return t(e)}var ES=kt(function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,o=function(c){return Ys(c,e)};return t>1||this.__actions__.length||!(a instanceof le)||!Ut(n)?this.thru(o):(a=a.slice(n,+n+(t?1:0)),a.__actions__.push({func:hi,args:[o],thisArg:r}),new pt(a,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function LS(){return ef(this)}function OS(){return new pt(this.value(),this.__chain__)}function RS(){this.__values__===r&&(this.__values__=gf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function MS(){return this}function DS(e){for(var t,n=this;n instanceof jr;){var a=Xc(n);a.__index__=0,a.__values__=r,t?o.__wrapped__=a:t=a;var o=a;n=n.__wrapped__}return o.__wrapped__=e,t}function IS(){var e=this.__wrapped__;if(e instanceof le){var t=e;return this.__actions__.length&&(t=new le(this)),t=t.reverse(),t.__actions__.push({func:hi,args:[wa],thisArg:r}),new pt(t,this.__chain__)}return this.thru(wa)}function PS(){return vc(this.__wrapped__,this.__actions__)}var NS=ii(function(e,t,n){_e.call(e,n)?++e[n]:Bt(e,n,1)});function $S(e,t,n){var a=V(e)?Ol:Cw;return n&&Ye(e,t,n)&&(t=r),a(e,G(t,3))}function FS(e,t){var n=V(e)?Zt:Ql;return n(e,G(t,3))}var BS=Ec(Zc),WS=Ec(Jc);function kS(e,t){return Be(di(e,t),1)}function US(e,t){return Be(di(e,t),P)}function HS(e,t,n){return n=n===r?1:ee(n),Be(di(e,t),n)}function tf(e,t){var n=V(e)?ht:Vt;return n(e,G(t,3))}function nf(e,t){var n=V(e)?oy:Vl;return n(e,G(t,3))}var zS=ii(function(e,t,n){_e.call(e,n)?e[n].push(t):Bt(e,n,[t])});function GS(e,t,n,a){e=qe(e)?e:Fn(e),n=n&&!a?ee(n):0;var o=e.length;return n<0&&(n=Pe(o+n,0)),mi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Tn(e,t,n)>-1}var KS=se(function(e,t,n){var a=-1,o=typeof t=="function",c=qe(e)?y(e.length):[];return Vt(e,function(d){c[++a]=o?rt(t,d,n):rr(d,t,n)}),c}),YS=ii(function(e,t,n){Bt(e,n,t)});function di(e,t){var n=V(e)?xe:sc;return n(e,G(t,3))}function XS(e,t,n,a){return e==null?[]:(V(t)||(t=t==null?[]:[t]),n=a?r:n,V(n)||(n=n==null?[]:[n]),lc(e,t,n))}var ZS=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function JS(e,t,n){var a=V(e)?Is:Il,o=arguments.length<3;return a(e,G(t,4),n,o,Vt)}function qS(e,t,n){var a=V(e)?uy:Il,o=arguments.length<3;return a(e,G(t,4),n,o,Vl)}function jS(e,t){var n=V(e)?Zt:Ql;return n(e,vi(G(t,3)))}function VS(e){var t=V(e)?Zl:Gw;return t(e)}function QS(e,t,n){(n?Ye(e,t,n):t===r)?t=1:t=ee(t);var a=V(e)?bw:Kw;return a(e,t)}function ex(e){var t=V(e)?Sw:Xw;return t(e)}function tx(e){if(e==null)return 0;if(qe(e))return mi(e)?En(e):e.length;var t=He(e);return t==nt||t==bt?e.size:Vs(e).length}function nx(e,t,n){var a=V(e)?Ps:Zw;return n&&Ye(e,t,n)&&(t=r),a(e,G(t,3))}var rx=se(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ye(e,t[0],t[1])?t=[]:n>2&&Ye(t[0],t[1],t[2])&&(t=[t[0]]),lc(e,Be(t,1),[])}),pi=Fy||function(){return Fe.Date.now()};function ix(e,t){if(typeof t!="function")throw new dt(g);return e=ee(e),function(){if(--e<1)return t.apply(this,arguments)}}function rf(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Wt(e,be,r,r,r,r,t)}function sf(e,t){var n;if(typeof t!="function")throw new dt(g);return e=ee(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Sa=se(function(e,t,n){var a=F;if(n.length){var o=qt(n,Nn(Sa));a|=K}return Wt(e,a,t,n,o)}),af=se(function(e,t,n){var a=F|H;if(n.length){var o=qt(n,Nn(af));a|=K}return Wt(t,a,e,n,o)});function of(e,t,n){t=n?r:t;var a=Wt(e,re,r,r,r,r,r,t);return a.placeholder=of.placeholder,a}function uf(e,t,n){t=n?r:t;var a=Wt(e,ie,r,r,r,r,r,t);return a.placeholder=uf.placeholder,a}function lf(e,t,n){var a,o,c,d,p,_,S=0,x=!1,T=!1,N=!0;if(typeof e!="function")throw new dt(g);t=mt(t)||0,Ae(n)&&(x=!!n.leading,T="maxWait"in n,c=T?Pe(mt(n.maxWait)||0,t):c,N="trailing"in n?!!n.trailing:N);function k(De){var Tt=a,Gt=o;return a=o=r,S=De,d=e.apply(Gt,Tt),d}function Y(De){return S=De,p=ur(ue,t),x?k(De):d}function te(De){var Tt=De-_,Gt=De-S,Lf=t-Tt;return T?Ue(Lf,c-Gt):Lf}function X(De){var Tt=De-_,Gt=De-S;return _===r||Tt>=t||Tt<0||T&&Gt>=c}function ue(){var De=pi();if(X(De))return ce(De);p=ur(ue,te(De))}function ce(De){return p=r,N&&a?k(De):(a=o=r,d)}function ot(){p!==r&&mc(p),S=0,a=_=o=p=r}function Xe(){return p===r?d:ce(pi())}function ut(){var De=pi(),Tt=X(De);if(a=arguments,o=this,_=De,Tt){if(p===r)return Y(_);if(T)return mc(p),p=ur(ue,t),k(_)}return p===r&&(p=ur(ue,t)),d}return ut.cancel=ot,ut.flush=Xe,ut}var sx=se(function(e,t){return jl(e,1,t)}),ax=se(function(e,t,n){return jl(e,mt(t)||0,n)});function ox(e){return Wt(e,ve)}function gi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new dt(g);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],c=n.cache;if(c.has(o))return c.get(o);var d=e.apply(this,a);return n.cache=c.set(o,d)||c,d};return n.cache=new(gi.Cache||Ft),n}gi.Cache=Ft;function vi(e){if(typeof e!="function")throw new dt(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ux(e){return sf(2,e)}var lx=Jw(function(e,t){t=t.length==1&&V(t[0])?xe(t[0],it(G())):xe(Be(t,1),it(G()));var n=t.length;return se(function(a){for(var o=-1,c=Ue(a.length,n);++o<c;)a[o]=t[o].call(this,a[o]);return rt(e,this,a)})}),xa=se(function(e,t){var n=qt(t,Nn(xa));return Wt(e,K,r,t,n)}),cf=se(function(e,t){var n=qt(t,Nn(cf));return Wt(e,Q,r,t,n)}),cx=kt(function(e,t){return Wt(e,Re,r,r,r,t)});function fx(e,t){if(typeof e!="function")throw new dt(g);return t=t===r?t:ee(t),se(e,t)}function hx(e,t){if(typeof e!="function")throw new dt(g);return t=t==null?0:Pe(ee(t),0),se(function(n){var a=n[t],o=tn(n,0,t);return a&&Jt(o,a),rt(e,this,o)})}function dx(e,t,n){var a=!0,o=!0;if(typeof e!="function")throw new dt(g);return Ae(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),lf(e,t,{leading:a,maxWait:t,trailing:o})}function px(e){return rf(e,1)}function gx(e,t){return xa(oa(t),e)}function vx(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function _x(e){return gt(e,E)}function mx(e,t){return t=typeof t=="function"?t:r,gt(e,E,t)}function yx(e){return gt(e,L|E)}function wx(e,t){return t=typeof t=="function"?t:r,gt(e,L|E,t)}function bx(e,t){return t==null||ql(e,t,$e(t))}function At(e,t){return e===t||e!==e&&t!==t}var Sx=ui(Js),xx=ui(function(e,t){return e>=t}),gn=nc(function(){return arguments}())?nc:function(e){return Le(e)&&_e.call(e,"callee")&&!Hl.call(e,"callee")},V=y.isArray,Ax=xl?it(xl):Dw;function qe(e){return e!=null&&_i(e.length)&&!Ht(e)}function Me(e){return Le(e)&&qe(e)}function Tx(e){return e===!0||e===!1||Le(e)&&Ke(e)==We}var nn=Wy||Pa,Cx=Al?it(Al):Iw;function Ex(e){return Le(e)&&e.nodeType===1&&!lr(e)}function Lx(e){if(e==null)return!0;if(qe(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||$n(e)||gn(e)))return!e.length;var t=He(e);if(t==nt||t==bt)return!e.size;if(or(e))return!Vs(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0}function Ox(e,t){return ir(e,t)}function Rx(e,t,n){n=typeof n=="function"?n:r;var a=n?n(e,t):r;return a===r?ir(e,t,r,n):!!a}function Aa(e){if(!Le(e))return!1;var t=Ke(e);return t==Ot||t==ct||typeof e.message=="string"&&typeof e.name=="string"&&!lr(e)}function Mx(e){return typeof e=="number"&&Gl(e)}function Ht(e){if(!Ae(e))return!1;var t=Ke(e);return t==wt||t==Or||t==Nt||t==t1}function ff(e){return typeof e=="number"&&e==ee(e)}function _i(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z}function Ae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Le(e){return e!=null&&typeof e=="object"}var hf=Tl?it(Tl):Nw;function Dx(e,t){return e===t||js(e,t,pa(t))}function Ix(e,t,n){return n=typeof n=="function"?n:r,js(e,t,pa(t),n)}function Px(e){return df(e)&&e!=+e}function Nx(e){if(mb(e))throw new j(h);return rc(e)}function $x(e){return e===null}function Fx(e){return e==null}function df(e){return typeof e=="number"||Le(e)&&Ke(e)==ke}function lr(e){if(!Le(e)||Ke(e)!=Ze)return!1;var t=Gr(e);if(t===null)return!0;var n=_e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kr.call(n)==Iy}var Ta=Cl?it(Cl):$w;function Bx(e){return ff(e)&&e>=-z&&e<=z}var pf=El?it(El):Fw;function mi(e){return typeof e=="string"||!V(e)&&Le(e)&&Ke(e)==Yn}function at(e){return typeof e=="symbol"||Le(e)&&Ke(e)==Mr}var $n=Ll?it(Ll):Bw;function Wx(e){return e===r}function kx(e){return Le(e)&&He(e)==Xn}function Ux(e){return Le(e)&&Ke(e)==r1}var Hx=ui(Qs),zx=ui(function(e,t){return e<=t});function gf(e){if(!e)return[];if(qe(e))return mi(e)?St(e):Je(e);if(qn&&e[qn])return by(e[qn]());var t=He(e),n=t==nt?ks:t==bt?Fr:Fn;return n(e)}function zt(e){if(!e)return e===0?e:0;if(e=mt(e),e===P||e===-P){var t=e<0?-1:1;return t*J}return e===e?e:0}function ee(e){var t=zt(e),n=t%1;return t===t?n?t-n:t:0}function vf(e){return e?fn(ee(e),0,fe):0}function mt(e){if(typeof e=="number")return e;if(at(e))return oe;if(Ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Pl(e);var n=A1.test(e);return n||C1.test(e)?iy(e.slice(2),n?2:8):x1.test(e)?oe:+e}function _f(e){return Mt(e,je(e))}function Gx(e){return e?fn(ee(e),-z,z):e===0?e:0}function ge(e){return e==null?"":st(e)}var Kx=In(function(e,t){if(or(t)||qe(t)){Mt(t,$e(t),e);return}for(var n in t)_e.call(t,n)&&tr(e,n,t[n])}),mf=In(function(e,t){Mt(t,je(t),e)}),yi=In(function(e,t,n,a){Mt(t,je(t),e,a)}),Yx=In(function(e,t,n,a){Mt(t,$e(t),e,a)}),Xx=kt(Ys);function Zx(e,t){var n=Dn(e);return t==null?n:Jl(n,t)}var Jx=se(function(e,t){e=me(e);var n=-1,a=t.length,o=a>2?t[2]:r;for(o&&Ye(t[0],t[1],o)&&(a=1);++n<a;)for(var c=t[n],d=je(c),p=-1,_=d.length;++p<_;){var S=d[p],x=e[S];(x===r||At(x,On[S])&&!_e.call(e,S))&&(e[S]=c[S])}return e}),qx=se(function(e){return e.push(r,Pc),rt(yf,r,e)});function jx(e,t){return Rl(e,G(t,3),Rt)}function Vx(e,t){return Rl(e,G(t,3),Zs)}function Qx(e,t){return e==null?e:Xs(e,G(t,3),je)}function eA(e,t){return e==null?e:ec(e,G(t,3),je)}function tA(e,t){return e&&Rt(e,G(t,3))}function nA(e,t){return e&&Zs(e,G(t,3))}function rA(e){return e==null?[]:ei(e,$e(e))}function iA(e){return e==null?[]:ei(e,je(e))}function Ca(e,t,n){var a=e==null?r:hn(e,t);return a===r?n:a}function sA(e,t){return e!=null&&Fc(e,t,Lw)}function Ea(e,t){return e!=null&&Fc(e,t,Ow)}var aA=Oc(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ur.call(t)),e[t]=n},Oa(Ve)),oA=Oc(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ur.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]},G),uA=se(rr);function $e(e){return qe(e)?Xl(e):Vs(e)}function je(e){return qe(e)?Xl(e,!0):Ww(e)}function lA(e,t){var n={};return t=G(t,3),Rt(e,function(a,o,c){Bt(n,t(a,o,c),a)}),n}function cA(e,t){var n={};return t=G(t,3),Rt(e,function(a,o,c){Bt(n,o,t(a,o,c))}),n}var fA=In(function(e,t,n){ti(e,t,n)}),yf=In(function(e,t,n,a){ti(e,t,n,a)}),hA=kt(function(e,t){var n={};if(e==null)return n;var a=!1;t=xe(t,function(c){return c=en(c,e),a||(a=c.length>1),c}),Mt(e,ha(e),n),a&&(n=gt(n,L|O|E,ab));for(var o=t.length;o--;)ia(n,t[o]);return n});function dA(e,t){return wf(e,vi(G(t)))}var pA=kt(function(e,t){return e==null?{}:Uw(e,t)});function wf(e,t){if(e==null)return{};var n=xe(ha(e),function(a){return[a]});return t=G(t),cc(e,n,function(a,o){return t(a,o[0])})}function gA(e,t,n){t=en(t,e);var a=-1,o=t.length;for(o||(o=1,e=r);++a<o;){var c=e==null?r:e[Dt(t[a])];c===r&&(a=o,c=n),e=Ht(c)?c.call(e):c}return e}function vA(e,t,n){return e==null?e:sr(e,t,n)}function _A(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:sr(e,t,n,a)}var bf=Dc($e),Sf=Dc(je);function mA(e,t,n){var a=V(e),o=a||nn(e)||$n(e);if(t=G(t,4),n==null){var c=e&&e.constructor;o?n=a?new c:[]:Ae(e)?n=Ht(c)?Dn(Gr(e)):{}:n={}}return(o?ht:Rt)(e,function(d,p,_){return t(n,d,p,_)}),n}function yA(e,t){return e==null?!0:ia(e,t)}function wA(e,t,n){return e==null?e:gc(e,t,oa(n))}function bA(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:gc(e,t,oa(n),a)}function Fn(e){return e==null?[]:Ws(e,$e(e))}function SA(e){return e==null?[]:Ws(e,je(e))}function xA(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=mt(n),n=n===n?n:0),t!==r&&(t=mt(t),t=t===t?t:0),fn(mt(e),t,n)}function AA(e,t,n){return t=zt(t),n===r?(n=t,t=0):n=zt(n),e=mt(e),Rw(e,t,n)}function TA(e,t,n){if(n&&typeof n!="boolean"&&Ye(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=zt(e),t===r?(t=e,e=0):t=zt(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var o=Kl();return Ue(e+o*(t-e+ry("1e-"+((o+"").length-1))),t)}return ta(e,t)}var CA=Pn(function(e,t,n){return t=t.toLowerCase(),e+(n?xf(t):t)});function xf(e){return La(ge(e).toLowerCase())}function Af(e){return e=ge(e),e&&e.replace(L1,vy).replace(X1,"")}function EA(e,t,n){e=ge(e),t=st(t);var a=e.length;n=n===r?a:fn(ee(n),0,a);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function LA(e){return e=ge(e),e&&u1.test(e)?e.replace(el,_y):e}function OA(e){return e=ge(e),e&&p1.test(e)?e.replace(xs,"\\$&"):e}var RA=Pn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),MA=Pn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),DA=Cc("toLowerCase");function IA(e,t,n){e=ge(e),t=ee(t);var a=t?En(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return oi(Zr(o),n)+e+oi(Xr(o),n)}function PA(e,t,n){e=ge(e),t=ee(t);var a=t?En(e):0;return t&&a<t?e+oi(t-a,n):e}function NA(e,t,n){e=ge(e),t=ee(t);var a=t?En(e):0;return t&&a<t?oi(t-a,n)+e:e}function $A(e,t,n){return n||t==null?t=0:t&&(t=+t),zy(ge(e).replace(As,""),t||0)}function FA(e,t,n){return(n?Ye(e,t,n):t===r)?t=1:t=ee(t),na(ge(e),t)}function BA(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var WA=Pn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function kA(e,t,n){return n&&typeof n!="number"&&Ye(e,t,n)&&(t=n=r),n=n===r?fe:n>>>0,n?(e=ge(e),e&&(typeof t=="string"||t!=null&&!Ta(t))&&(t=st(t),!t&&Cn(e))?tn(St(e),0,n):e.split(t,n)):[]}var UA=Pn(function(e,t,n){return e+(n?" ":"")+La(t)});function HA(e,t,n){return e=ge(e),n=n==null?0:fn(ee(n),0,e.length),t=st(t),e.slice(n,n+t.length)==t}function zA(e,t,n){var a=l.templateSettings;n&&Ye(e,t,n)&&(t=r),e=ge(e),t=yi({},t,a,Ic);var o=yi({},t.imports,a.imports,Ic),c=$e(o),d=Ws(o,c),p,_,S=0,x=t.interpolate||Dr,T="__p += '",N=Us((t.escape||Dr).source+"|"+x.source+"|"+(x===tl?S1:Dr).source+"|"+(t.evaluate||Dr).source+"|$","g"),k="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++V1+"]")+`
`;e.replace(N,function(X,ue,ce,ot,Xe,ut){return ce||(ce=ot),T+=e.slice(S,ut).replace(O1,my),ue&&(p=!0,T+=`' +
__e(`+ue+`) +
'`),Xe&&(_=!0,T+=`';
`+Xe+`;
__p += '`),ce&&(T+=`' +
((__t = (`+ce+`)) == null ? '' : __t) +
'`),S=ut+X.length,X}),T+=`';
`;var Y=_e.call(t,"variable")&&t.variable;if(!Y)T=`with (obj) {
`+T+`
}
`;else if(w1.test(Y))throw new j(m);T=(_?T.replace(i1,""):T).replace(s1,"$1").replace(a1,"$1;"),T="function("+(Y||"obj")+`) {
`+(Y?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+T+`return __p
}`;var te=Cf(function(){return pe(c,k+"return "+T).apply(r,d)});if(te.source=T,Aa(te))throw te;return te}function GA(e){return ge(e).toLowerCase()}function KA(e){return ge(e).toUpperCase()}function YA(e,t,n){if(e=ge(e),e&&(n||t===r))return Pl(e);if(!e||!(t=st(t)))return e;var a=St(e),o=St(t),c=Nl(a,o),d=$l(a,o)+1;return tn(a,c,d).join("")}function XA(e,t,n){if(e=ge(e),e&&(n||t===r))return e.slice(0,Bl(e)+1);if(!e||!(t=st(t)))return e;var a=St(e),o=$l(a,St(t))+1;return tn(a,0,o).join("")}function ZA(e,t,n){if(e=ge(e),e&&(n||t===r))return e.replace(As,"");if(!e||!(t=st(t)))return e;var a=St(e),o=Nl(a,St(t));return tn(a,o).join("")}function JA(e,t){var n=ae,a=Ge;if(Ae(t)){var o="separator"in t?t.separator:o;n="length"in t?ee(t.length):n,a="omission"in t?st(t.omission):a}e=ge(e);var c=e.length;if(Cn(e)){var d=St(e);c=d.length}if(n>=c)return e;var p=n-En(a);if(p<1)return a;var _=d?tn(d,0,p).join(""):e.slice(0,p);if(o===r)return _+a;if(d&&(p+=_.length-p),Ta(o)){if(e.slice(p).search(o)){var S,x=_;for(o.global||(o=Us(o.source,ge(nl.exec(o))+"g")),o.lastIndex=0;S=o.exec(x);)var T=S.index;_=_.slice(0,T===r?p:T)}}else if(e.indexOf(st(o),p)!=p){var N=_.lastIndexOf(o);N>-1&&(_=_.slice(0,N))}return _+a}function qA(e){return e=ge(e),e&&o1.test(e)?e.replace(Qu,Ty):e}var jA=Pn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),La=Cc("toUpperCase");function Tf(e,t,n){return e=ge(e),t=n?r:t,t===r?wy(e)?Ly(e):fy(e):e.match(t)||[]}var Cf=se(function(e,t){try{return rt(e,r,t)}catch(n){return Aa(n)?n:new j(n)}}),VA=kt(function(e,t){return ht(t,function(n){n=Dt(n),Bt(e,n,Sa(e[n],e))}),e});function QA(e){var t=e==null?0:e.length,n=G();return e=t?xe(e,function(a){if(typeof a[1]!="function")throw new dt(g);return[n(a[0]),a[1]]}):[],se(function(a){for(var o=-1;++o<t;){var c=e[o];if(rt(c[0],this,a))return rt(c[1],this,a)}})}function eT(e){return Tw(gt(e,L))}function Oa(e){return function(){return e}}function tT(e,t){return e==null||e!==e?t:e}var nT=Lc(),rT=Lc(!0);function Ve(e){return e}function Ra(e){return ic(typeof e=="function"?e:gt(e,L))}function iT(e){return ac(gt(e,L))}function sT(e,t){return oc(e,gt(t,L))}var aT=se(function(e,t){return function(n){return rr(n,e,t)}}),oT=se(function(e,t){return function(n){return rr(e,n,t)}});function Ma(e,t,n){var a=$e(t),o=ei(t,a);n==null&&!(Ae(t)&&(o.length||!a.length))&&(n=t,t=e,e=this,o=ei(t,$e(t)));var c=!(Ae(n)&&"chain"in n)||!!n.chain,d=Ht(e);return ht(o,function(p){var _=t[p];e[p]=_,d&&(e.prototype[p]=function(){var S=this.__chain__;if(c||S){var x=e(this.__wrapped__),T=x.__actions__=Je(this.__actions__);return T.push({func:_,args:arguments,thisArg:e}),x.__chain__=S,x}return _.apply(e,Jt([this.value()],arguments))})}),e}function uT(){return Fe._===this&&(Fe._=Py),this}function Da(){}function lT(e){return e=ee(e),se(function(t){return uc(t,e)})}var cT=la(xe),fT=la(Ol),hT=la(Ps);function Ef(e){return va(e)?Ns(Dt(e)):Hw(e)}function dT(e){return function(t){return e==null?r:hn(e,t)}}var pT=Rc(),gT=Rc(!0);function Ia(){return[]}function Pa(){return!1}function vT(){return{}}function _T(){return""}function mT(){return!0}function yT(e,t){if(e=ee(e),e<1||e>z)return[];var n=fe,a=Ue(e,fe);t=G(t),e-=fe;for(var o=Bs(a,t);++n<e;)t(n);return o}function wT(e){return V(e)?xe(e,Dt):at(e)?[e]:Je(Yc(ge(e)))}function bT(e){var t=++Dy;return ge(e)+t}var ST=ai(function(e,t){return e+t},0),xT=ca("ceil"),AT=ai(function(e,t){return e/t},1),TT=ca("floor");function CT(e){return e&&e.length?Qr(e,Ve,Js):r}function ET(e,t){return e&&e.length?Qr(e,G(t,2),Js):r}function LT(e){return Dl(e,Ve)}function OT(e,t){return Dl(e,G(t,2))}function RT(e){return e&&e.length?Qr(e,Ve,Qs):r}function MT(e,t){return e&&e.length?Qr(e,G(t,2),Qs):r}var DT=ai(function(e,t){return e*t},1),IT=ca("round"),PT=ai(function(e,t){return e-t},0);function NT(e){return e&&e.length?Fs(e,Ve):0}function $T(e,t){return e&&e.length?Fs(e,G(t,2)):0}return l.after=ix,l.ary=rf,l.assign=Kx,l.assignIn=mf,l.assignInWith=yi,l.assignWith=Yx,l.at=Xx,l.before=sf,l.bind=Sa,l.bindAll=VA,l.bindKey=af,l.castArray=vx,l.chain=ef,l.chunk=Tb,l.compact=Cb,l.concat=Eb,l.cond=QA,l.conforms=eT,l.constant=Oa,l.countBy=NS,l.create=Zx,l.curry=of,l.curryRight=uf,l.debounce=lf,l.defaults=Jx,l.defaultsDeep=qx,l.defer=sx,l.delay=ax,l.difference=Lb,l.differenceBy=Ob,l.differenceWith=Rb,l.drop=Mb,l.dropRight=Db,l.dropRightWhile=Ib,l.dropWhile=Pb,l.fill=Nb,l.filter=FS,l.flatMap=kS,l.flatMapDeep=US,l.flatMapDepth=HS,l.flatten=qc,l.flattenDeep=$b,l.flattenDepth=Fb,l.flip=ox,l.flow=nT,l.flowRight=rT,l.fromPairs=Bb,l.functions=rA,l.functionsIn=iA,l.groupBy=zS,l.initial=kb,l.intersection=Ub,l.intersectionBy=Hb,l.intersectionWith=zb,l.invert=aA,l.invertBy=oA,l.invokeMap=KS,l.iteratee=Ra,l.keyBy=YS,l.keys=$e,l.keysIn=je,l.map=di,l.mapKeys=lA,l.mapValues=cA,l.matches=iT,l.matchesProperty=sT,l.memoize=gi,l.merge=fA,l.mergeWith=yf,l.method=aT,l.methodOf=oT,l.mixin=Ma,l.negate=vi,l.nthArg=lT,l.omit=hA,l.omitBy=dA,l.once=ux,l.orderBy=XS,l.over=cT,l.overArgs=lx,l.overEvery=fT,l.overSome=hT,l.partial=xa,l.partialRight=cf,l.partition=ZS,l.pick=pA,l.pickBy=wf,l.property=Ef,l.propertyOf=dT,l.pull=Xb,l.pullAll=Vc,l.pullAllBy=Zb,l.pullAllWith=Jb,l.pullAt=qb,l.range=pT,l.rangeRight=gT,l.rearg=cx,l.reject=jS,l.remove=jb,l.rest=fx,l.reverse=wa,l.sampleSize=QS,l.set=vA,l.setWith=_A,l.shuffle=ex,l.slice=Vb,l.sortBy=rx,l.sortedUniq=sS,l.sortedUniqBy=aS,l.split=kA,l.spread=hx,l.tail=oS,l.take=uS,l.takeRight=lS,l.takeRightWhile=cS,l.takeWhile=fS,l.tap=CS,l.throttle=dx,l.thru=hi,l.toArray=gf,l.toPairs=bf,l.toPairsIn=Sf,l.toPath=wT,l.toPlainObject=_f,l.transform=mA,l.unary=px,l.union=hS,l.unionBy=dS,l.unionWith=pS,l.uniq=gS,l.uniqBy=vS,l.uniqWith=_S,l.unset=yA,l.unzip=ba,l.unzipWith=Qc,l.update=wA,l.updateWith=bA,l.values=Fn,l.valuesIn=SA,l.without=mS,l.words=Tf,l.wrap=gx,l.xor=yS,l.xorBy=wS,l.xorWith=bS,l.zip=SS,l.zipObject=xS,l.zipObjectDeep=AS,l.zipWith=TS,l.entries=bf,l.entriesIn=Sf,l.extend=mf,l.extendWith=yi,Ma(l,l),l.add=ST,l.attempt=Cf,l.camelCase=CA,l.capitalize=xf,l.ceil=xT,l.clamp=xA,l.clone=_x,l.cloneDeep=yx,l.cloneDeepWith=wx,l.cloneWith=mx,l.conformsTo=bx,l.deburr=Af,l.defaultTo=tT,l.divide=AT,l.endsWith=EA,l.eq=At,l.escape=LA,l.escapeRegExp=OA,l.every=$S,l.find=BS,l.findIndex=Zc,l.findKey=jx,l.findLast=WS,l.findLastIndex=Jc,l.findLastKey=Vx,l.floor=TT,l.forEach=tf,l.forEachRight=nf,l.forIn=Qx,l.forInRight=eA,l.forOwn=tA,l.forOwnRight=nA,l.get=Ca,l.gt=Sx,l.gte=xx,l.has=sA,l.hasIn=Ea,l.head=jc,l.identity=Ve,l.includes=GS,l.indexOf=Wb,l.inRange=AA,l.invoke=uA,l.isArguments=gn,l.isArray=V,l.isArrayBuffer=Ax,l.isArrayLike=qe,l.isArrayLikeObject=Me,l.isBoolean=Tx,l.isBuffer=nn,l.isDate=Cx,l.isElement=Ex,l.isEmpty=Lx,l.isEqual=Ox,l.isEqualWith=Rx,l.isError=Aa,l.isFinite=Mx,l.isFunction=Ht,l.isInteger=ff,l.isLength=_i,l.isMap=hf,l.isMatch=Dx,l.isMatchWith=Ix,l.isNaN=Px,l.isNative=Nx,l.isNil=Fx,l.isNull=$x,l.isNumber=df,l.isObject=Ae,l.isObjectLike=Le,l.isPlainObject=lr,l.isRegExp=Ta,l.isSafeInteger=Bx,l.isSet=pf,l.isString=mi,l.isSymbol=at,l.isTypedArray=$n,l.isUndefined=Wx,l.isWeakMap=kx,l.isWeakSet=Ux,l.join=Gb,l.kebabCase=RA,l.last=_t,l.lastIndexOf=Kb,l.lowerCase=MA,l.lowerFirst=DA,l.lt=Hx,l.lte=zx,l.max=CT,l.maxBy=ET,l.mean=LT,l.meanBy=OT,l.min=RT,l.minBy=MT,l.stubArray=Ia,l.stubFalse=Pa,l.stubObject=vT,l.stubString=_T,l.stubTrue=mT,l.multiply=DT,l.nth=Yb,l.noConflict=uT,l.noop=Da,l.now=pi,l.pad=IA,l.padEnd=PA,l.padStart=NA,l.parseInt=$A,l.random=TA,l.reduce=JS,l.reduceRight=qS,l.repeat=FA,l.replace=BA,l.result=gA,l.round=IT,l.runInContext=v,l.sample=VS,l.size=tx,l.snakeCase=WA,l.some=nx,l.sortedIndex=Qb,l.sortedIndexBy=eS,l.sortedIndexOf=tS,l.sortedLastIndex=nS,l.sortedLastIndexBy=rS,l.sortedLastIndexOf=iS,l.startCase=UA,l.startsWith=HA,l.subtract=PT,l.sum=NT,l.sumBy=$T,l.template=zA,l.times=yT,l.toFinite=zt,l.toInteger=ee,l.toLength=vf,l.toLower=GA,l.toNumber=mt,l.toSafeInteger=Gx,l.toString=ge,l.toUpper=KA,l.trim=YA,l.trimEnd=XA,l.trimStart=ZA,l.truncate=JA,l.unescape=qA,l.uniqueId=bT,l.upperCase=jA,l.upperFirst=La,l.each=tf,l.eachRight=nf,l.first=jc,Ma(l,function(){var e={};return Rt(l,function(t,n){_e.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=u,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),ht(["drop","take"],function(e,t){le.prototype[e]=function(n){n=n===r?1:Pe(ee(n),0);var a=this.__filtered__&&!t?new le(this):this.clone();return a.__filtered__?a.__takeCount__=Ue(n,a.__takeCount__):a.__views__.push({size:Ue(n,fe),type:e+(a.__dir__<0?"Right":"")}),a},le.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==W||n==Z;le.prototype[e]=function(o){var c=this.clone();return c.__iteratees__.push({iteratee:G(o,3),type:n}),c.__filtered__=c.__filtered__||a,c}}),ht(["head","last"],function(e,t){var n="take"+(t?"Right":"");le.prototype[e]=function(){return this[n](1).value()[0]}}),ht(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[n](1)}}),le.prototype.compact=function(){return this.filter(Ve)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new le(this):this.map(function(n){return rr(n,e,t)})}),le.prototype.reject=function(e){return this.filter(vi(G(e)))},le.prototype.slice=function(e,t){e=ee(e);var n=this;return n.__filtered__&&(e>0||t<0)?new le(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=ee(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(fe)},Rt(le.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),o=l[a?"take"+(t=="last"?"Right":""):t],c=a||/^find/.test(t);!o||(l.prototype[t]=function(){var d=this.__wrapped__,p=a?[1]:arguments,_=d instanceof le,S=p[0],x=_||V(d),T=function(ue){var ce=o.apply(l,Jt([ue],p));return a&&N?ce[0]:ce};x&&n&&typeof S=="function"&&S.length!=1&&(_=x=!1);var N=this.__chain__,k=!!this.__actions__.length,Y=c&&!N,te=_&&!k;if(!c&&x){d=te?d:new le(this);var X=e.apply(d,p);return X.__actions__.push({func:hi,args:[T],thisArg:r}),new pt(X,N)}return Y&&te?e.apply(this,p):(X=this.thru(T),Y?a?X.value()[0]:X.value():X)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=Br[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var o=arguments;if(a&&!this.__chain__){var c=this.value();return t.apply(V(c)?c:[],o)}return this[n](function(d){return t.apply(V(d)?d:[],o)})}}),Rt(le.prototype,function(e,t){var n=l[t];if(n){var a=n.name+"";_e.call(Mn,a)||(Mn[a]=[]),Mn[a].push({name:t,func:n})}}),Mn[si(r,H).name]=[{name:"wrapper",func:r}],le.prototype.clone=qy,le.prototype.reverse=jy,le.prototype.value=Vy,l.prototype.at=ES,l.prototype.chain=LS,l.prototype.commit=OS,l.prototype.next=RS,l.prototype.plant=DS,l.prototype.reverse=IS,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=PS,l.prototype.first=l.prototype.head,qn&&(l.prototype[qn]=MS),l},Ln=Oy();on?((on.exports=Ln)._=Ln,Rs._=Ln):Fe._=Ln}).call(Ct)})(ns,ns.exports);function x0(i){if(!i)return"00:00";const s=Math.trunc(i/3600);i-=s*3600;const r=Math.trunc(i/60);i-=r*60;const f=[s,r,i];return f[0]===0&&f.shift(),f.map(g=>ns.exports.padStart(g.toString(),2,"0")).join(":")}function rs(i){if(!i)return"";if(i<=9999)return i.toString();let s=(i/1e4).toFixed(1);return s=s.replace(/\.0$/,""),`${s}\u4E07`}function A0({className:i,item:s,pvideo:r}){var ve;const u=D.useRef(null),f=Dm(u.current),{elementW:h,elementH:g,elementX:m}=f;let w=0,A=0;h&&m&&!isNaN(m)&&!isNaN(h)&&(w=m/h,w<0&&(w=0),w>1&&(w=1),A=Math.floor((s.duration||0)*w));let R=D.useMemo(()=>{const ae=(r==null?void 0:r.index)||[];let Ge=C0(ae,A);return Ge!==-1?Ge:A>ae[ae.length-1]?(Ge=Math.floor(ae.length*w)-1,Ge<0&&(Ge=0),Ge):0},[r,A]);const{img_x_len:L,img_y_len:O,img_x_size:E,img_y_size:M}=r,U=O*L;R=R+1;const F=Math.floor(R/U),H=R-F*U,de=((ve=r.image)==null?void 0:ve[F])||"",re=Math.floor(H/L)+1,ie=H-(re-1)*L,K=h*L,Q=g*O;let be=(re-1)*g,Re=(ie-1)*h;return C("div",{ref:u,className:i,style:{backgroundColor:"black",backgroundImage:`url(${de})`,backgroundPosition:`-${Re}px -${be}px`,backgroundSize:`${K}px ${Q}px`},children:C(T0,{progress:w})})}function T0({progress:i}){return C("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:C("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${i*100}%`}})})}function C0(i,s){var m;let r=0,u=i.length-1,f=-1;for(;r<=u;){const w=Math.floor((r+u)/2),A=i[w];if(s===A)return w;A<s?(r=w+1,f=w):u=w-1}if(f===-1)return-1;const h=i[f],g=(m=i[f+1])!=null?m:0;return h<s&&s<g?f:-1}function E0(){var s;const i=(s=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:s[1];if(!i)throw Kt("\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 i}const is=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,su=typeof AbortController!="undefined"?AbortController:Object.assign(class{constructor(){this.signal=new su.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),ss=new Set,as=(i,s)=>{const r=`LRU_CACHE_OPTION_${i}`;Cr(r)&&us(r,`${i} option`,`options.${s}`,Yt)},os=(i,s)=>{const r=`LRU_CACHE_METHOD_${i}`;if(Cr(r)){const{prototype:u}=Yt,{get:f}=Object.getOwnPropertyDescriptor(u,i);us(r,`${i} method`,`cache.${s}()`,f)}},L0=(i,s)=>{const r=`LRU_CACHE_PROPERTY_${i}`;if(Cr(r)){const{prototype:u}=Yt,{get:f}=Object.getOwnPropertyDescriptor(u,i);us(r,`${i} property`,`cache.${s}`,f)}},au=(...i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...i):console.error(...i)},Cr=i=>!ss.has(i),us=(i,s,r,u)=>{ss.add(i);const f=`The ${s} is deprecated. Please use ${r} instead.`;au(f,"DeprecationWarning",i,u)},an=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),ou=i=>an(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Er:null:null;class Er extends Array{constructor(s){super(s),this.fill(0)}}class O0{constructor(s){if(s===0)return[];const r=ou(s);this.heap=new r(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}}class Yt{constructor(s={}){const{max:r=0,ttl:u,ttlResolution:f=1,ttlAutopurge:h,updateAgeOnGet:g,updateAgeOnHas:m,allowStale:w,dispose:A,disposeAfter:R,noDisposeOnSet:L,noUpdateTTL:O,maxSize:E=0,sizeCalculation:M,fetchMethod:U}=s,{length:F,maxAge:H,stale:de}=s instanceof Yt?{}:s;if(r!==0&&!an(r))throw new TypeError("max option must be a nonnegative integer");const re=r?ou(r):Array;if(!re)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=E,this.sizeCalculation=M||F,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=U||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new re(r),this.prev=new re(r),this.head=0,this.tail=0,this.free=new O0(r),this.initialFill=1,this.size=0,typeof A=="function"&&(this.dispose=A),typeof R=="function"?(this.disposeAfter=R,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!L,this.noUpdateTTL=!!O,this.maxSize!==0){if(!an(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!w||!!de,this.updateAgeOnGet=!!g,this.updateAgeOnHas=!!m,this.ttlResolution=an(f)||f===0?f:1,this.ttlAutopurge=!!h,this.ttl=u||H||0,this.ttl){if(!an(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 ie="LRU_CACHE_UNBOUNDED";Cr(ie)&&(ss.add(ie),au("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ie,Yt))}de&&as("stale","allowStale"),H&&as("maxAge","ttl"),F&&as("length","sizeCalculation")}getRemainingTTL(s){return this.has(s,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Er(this.max),this.starts=new Er(this.max),this.setItemTTL=(u,f)=>{if(this.starts[u]=f!==0?is.now():0,this.ttls[u]=f,f!==0&&this.ttlAutopurge){const h=setTimeout(()=>{this.isStale(u)&&this.delete(this.keyList[u])},f+1);h.unref&&h.unref()}},this.updateItemAge=u=>{this.starts[u]=this.ttls[u]!==0?is.now():0};let s=0;const r=()=>{const u=is.now();if(this.ttlResolution>0){s=u;const f=setTimeout(()=>s=0,this.ttlResolution);f.unref&&f.unref()}return u};this.getRemainingTTL=u=>{const f=this.keyMap.get(u);return f===void 0?0:this.ttls[f]===0||this.starts[f]===0?1/0:this.starts[f]+this.ttls[f]-(s||r())},this.isStale=u=>this.ttls[u]!==0&&this.starts[u]!==0&&(s||r())-this.starts[u]>this.ttls[u]}updateItemAge(s){}setItemTTL(s,r){}isStale(s){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Er(this.max),this.removeItemSize=s=>this.calculatedSize-=this.sizes[s],this.requireSize=(s,r,u,f)=>{if(!an(u))if(f){if(typeof f!="function")throw new TypeError("sizeCalculation must be a function");if(u=f(r,s),!an(u))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return u},this.addItemSize=(s,r,u,f)=>{this.sizes[s]=f;const h=this.maxSize-this.sizes[s];for(;this.calculatedSize>h;)this.evict(!0);this.calculatedSize+=this.sizes[s]},this.delete=s=>{if(this.size!==0){const r=this.keyMap.get(s);r!==void 0&&(this.calculatedSize-=this.sizes[r])}return Yt.prototype.delete.call(this,s)}}removeItemSize(s){}addItemSize(s,r,u,f){}requireSize(s,r,u,f){if(u||f)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(s){return this.keyMap.get(this.keyList[s])===s}*entries(){for(const s of this.indexes())yield[this.keyList[s],this.valList[s]]}*rentries(){for(const s of this.rindexes())yield[this.keyList[s],this.valList[s]]}*keys(){for(const s of this.indexes())yield this.keyList[s]}*rkeys(){for(const s of this.rindexes())yield this.keyList[s]}*values(){for(const s of this.indexes())yield this.valList[s]}*rvalues(){for(const s of this.rindexes())yield this.valList[s]}[Symbol.iterator](){return this.entries()}find(s,r={}){for(const u of this.indexes())if(s(this.valList[u],this.keyList[u],this))return this.get(this.keyList[u],r)}forEach(s,r=this){for(const u of this.indexes())s.call(r,this.valList[u],this.keyList[u],this)}rforEach(s,r=this){for(const u of this.rindexes())s.call(r,this.valList[u],this.keyList[u],this)}get prune(){return os("prune","purgeStale"),this.purgeStale}purgeStale(){let s=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),s=!0);return s}dump(){const s=[];for(const r of this.indexes()){const u=this.keyList[r],h={value:this.valList[r]};this.ttls&&(h.ttl=this.ttls[r]),this.sizes&&(h.size=this.sizes[r]),s.unshift([u,h])}return s}load(s){this.clear();for(const[r,u]of s)this.set(r,u.value,u)}dispose(s,r,u){}set(s,r,{ttl:u=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:h=0,sizeCalculation:g=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL}={}){h=this.requireSize(s,r,h,g);let w=this.size===0?void 0:this.keyMap.get(s);if(w===void 0)w=this.newIndex(),this.keyList[w]=s,this.valList[w]=r,this.keyMap.set(s,w),this.next[this.tail]=w,this.prev[w]=this.tail,this.tail=w,this.size++,this.addItemSize(w,r,s,h),m=!1;else{const A=this.valList[w];r!==A&&(this.isBackgroundFetch(A)?A.__abortController.abort():f||(this.dispose(A,s,"set"),this.disposeAfter&&this.disposed.push([A,s,"set"])),this.removeItemSize(w),this.valList[w]=r,this.addItemSize(w,r,s,h)),this.moveToTail(w)}if(u!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(w,u),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 s=this.valList[this.head];return this.evict(!0),s}}evict(s){const r=this.head,u=this.keyList[r],f=this.valList[r];return this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,u,"evict"),this.disposeAfter&&this.disposed.push([f,u,"evict"])),this.removeItemSize(r),s&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(u),this.size--,r}has(s,{updateAgeOnHas:r=this.updateAgeOnHas}={}){const u=this.keyMap.get(s);return u!==void 0&&!this.isStale(u)?(r&&this.updateItemAge(u),!0):!1}peek(s,{allowStale:r=this.allowStale}={}){const u=this.keyMap.get(s);if(u!==void 0&&(r||!this.isStale(u)))return this.valList[u]}backgroundFetch(s,r,u){const f=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(f))return f;const h=new su,g={signal:h.signal,options:u},m=Promise.resolve(this.fetchMethod(s,f,g)).then(w=>(h.signal.aborted||this.set(s,w,g.options),w));return m.__abortController=h,m.__staleWhileFetching=f,r===void 0?(this.set(s,m,g.options),r=this.keyMap.get(s)):this.valList[r]=m,m}isBackgroundFetch(s){return s&&typeof s=="object"&&typeof s.then=="function"&&Object.prototype.hasOwnProperty.call(s,"__staleWhileFetching")}async fetch(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,ttl:f=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:g=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(s,{allowStale:r,updateAgeOnGet:u});const A={allowStale:r,updateAgeOnGet:u,ttl:f,noDisposeOnSet:h,size:g,sizeCalculation:m,noUpdateTTL:w};let R=this.keyMap.get(s);if(R===void 0)return this.backgroundFetch(s,R,A);{const L=this.valList[R];if(this.isBackgroundFetch(L))return r&&L.__staleWhileFetching!==void 0?L.__staleWhileFetching:L;if(!this.isStale(R))return this.moveToTail(R),u&&this.updateItemAge(R),L;const O=this.backgroundFetch(s,R,A);return r&&O.__staleWhileFetching!==void 0?O.__staleWhileFetching:O}}get(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet}={}){const f=this.keyMap.get(s);if(f!==void 0){const h=this.valList[f],g=this.isBackgroundFetch(h);return this.isStale(f)?g?r?h.__staleWhileFetching:void 0:(this.delete(s),r?h:void 0):g?void 0:(this.moveToTail(f),u&&this.updateItemAge(f),h)}}connect(s,r){this.prev[r]=s,this.next[s]=r}moveToTail(s){s!==this.tail&&(s===this.head?this.head=this.next[s]:this.connect(this.prev[s],this.next[s]),this.connect(this.tail,s),this.tail=s)}get del(){return os("del","delete"),this.delete}delete(s){let r=!1;if(this.size!==0){const u=this.keyMap.get(s);if(u!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(u);const f=this.valList[u];this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,s,"delete"),this.disposeAfter&&this.disposed.push([f,s,"delete"])),this.keyMap.delete(s),this.keyList[u]=null,this.valList[u]=null,u===this.tail?this.tail=this.prev[u]:u===this.head?this.head=this.next[u]:(this.next[this.prev[u]]=this.next[u],this.prev[this.next[u]]=this.prev[u]),this.size--,this.free.push(u)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const s of this.rindexes({allowStale:!0})){const r=this.valList[s];if(this.isBackgroundFetch(r))r.__abortController.abort();else{const u=this.keyList[s];this.dispose(r,u,"delete"),this.disposeAfter&&this.disposed.push([r,u,"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 os("reset","clear"),this.clear}get length(){return L0("length","size"),this.size}}var R0=Yt;async function M0(i){return(await Vi.get("/pvideo",{params:{aid:i}})).data.data}async function D0(i){return[]}const ls=new R0({max:200});async function I0(i){if(ls.has(i))return ls.get(i);const[s,r]=await Promise.all([M0(i),D0()]);return ls.set(i,{pvideoData:s,dmData:r}),{pvideoData:s,dmData:r}}function uu(i){return async function(r){const u=new FormData;u.append("aid",r),u.append("csrf",E0());const h=(await Vi.post("/x/v2/history/toview/"+i,u,{withCredentials:!0})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}}const P0=uu("add"),N0=uu("del"),lu=i=>{const s={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[i];return async function(r,u){var m;const h=(await Qi.get(qo+s,{params:{goto:r.goto,id:r.param,mid:r.mid,rid:r.tid,tag_id:(m=r.tag)==null?void 0:m.tag_id,reason_id:u,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}},$0=lu("dislike"),F0=lu("cancel"),cu="_bili-video-card_3h2r6_1",fu="_image-wrapper_3h2r6_4",hu="_preview-card-wrapper_3h2r6_8",du="_watch-later_3h2r6_21",pu="_badge_3h2r6_24",gu="_recommend-reason_3h2r6_32",vu="_bangumi-desc_3h2r6_47",_u="_btn-dislike_3h2r6_50",mu="_btn-dislike-icon_3h2r6_65",yu="_btn-dislike-tip_3h2r6_72",wu="_disliked-wrapper_3h2r6_87",bu="_dislike-content-cover_3h2r6_101",Su="_dislike-content-cover-inner_3h2r6_107",B0="_dislike-icon_3h2r6_118",xu="_dislike-reason_3h2r6_121",Au="_dislike-desc_3h2r6_125",Tu="_dislike-content-action_3h2r6_129";var GT={biliVideoCard:cu,imageWrapper:fu,previewCardWrapper:hu,watchLater:du,badge:pu,recommendReason:gu,bangumiDesc:vu,btnDislike:_u,btnDislikeIcon:mu,btnDislikeTip:yu,dislikedWrapper:wu,dislikeContentCover:bu,dislikeContentCoverInner:Su,dislikeIcon:B0,dislikeReason:xu,dislikeDesc:Au,dislikeContentAction:Tu};function W0(i){const s=Ji({data:Array.from(i||[]),has(r){return this.data.some(u=>u[0]===r)},set(r,u){const f=this.data.find(h=>h[0]===r);return f?f[1]=u:this.data.push([r,u]),this},get(r){var u;return(u=this.data.find(f=>f[0]===r))==null?void 0:u[1]},delete(r){const u=this.data.findIndex(f=>f[0]===r);return u===-1?!1:(this.data.splice(u,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(r){this.data.forEach(u=>{r(u[1],u[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(s,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(s),s}const Cu="_modal-mask_vh629_1",Eu="_modal_vh629_1",Lu="_modal-header_vh629_23",Ou="_modal-title_vh629_30",Ru="_title-desc_vh629_35",Mu="_btn-close_vh629_39",Du="_modal-body_vh629_57",Iu="_reason-list_vh629_62",Pu="_reason_vh629_62";var KT={modalMask:Cu,modal:Eu,modalHeader:Lu,modalTitle:Ou,titleDesc:Ru,btnClose:Mu,modalBody:Du,reasonList:Iu,reason:Pu};const cs=W0();function k0(){return Xo(cs)}function U0(i){return k0().get(i)}function H0({show:i,onHide:s,item:r}){const[u,f]=Et(!1),h=ze(async(m,w)=>{if(!r)return;let A=!1,R=null;try{f(!0),A=await $0(r,m)}catch(L){R=L}finally{f(!1)}if(R){Kt("\u6807\u8BB0\u4E0D\u559C\u6B22: \u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5!"),console.error(R.stack||R);return}Kt("\u6807\u8BB0\u4E0D\u559C\u6B22: "+(A?"\u6210\u529F":"\u5931\u8D25")),A&&(cs.set(r.param,{id:m,name:w}),s())}),g=D.useMemo(()=>{var m;return[...(m=r==null?void 0:r.dislike_reasons)!=null?m:[],{reason_id:12,reason_name:"\u6B64\u7C7B\u5185\u5BB9\u8FC7\u591A"},{reason_id:13,reason_name:"\u63A8\u8350\u8FC7"}]},[r]);return ne(iu,{show:i,onHide:s,clsModalMask:Cu,clsModal:Eu,hideWhenMaskOnClick:!0,children:[ne("div",{className:Lu,children:[ne("div",{className:Ou,children:["\u6211\u4E0D\u60F3\u770B",C("span",{className:Ru,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),C("div",{className:"space",style:{flex:1}}),ne("button",{className:`primary-btn roll-btn ${Mu}`,onClick:s,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:Du,children:C("div",{className:Iu,children:g.map(m=>C("button",{className:Pu,"data-id":m.reason_id,onClick:()=>h(m.reason_id,m.reason_name),disabled:u,children:m.reason_name},m.reason_id))})})]})}let Nu={show:!1,onHide:$u,item:null};function $u(){Fu({show:!1,item:null})}function Fu(i){Object.assign(Nu,i),z0().render(C(H0,cr(Bn({},Nu),{onHide:$u})))}let fs;function z0(){if(!fs){const i=document.createElement("div");i.classList.add("show-dislike-container"),document.body.appendChild(i),fs=Ti(i)}return fs}function G0(i){Fu({show:!0,item:i})}const K0=Qa().format("YYYY"),Y0=i=>{if(!i)return"";const s=Qa.unix(i);return s.format("YYYY")===K0?s.format("M-D"):s.format("YY-M-D")},X0=i=>i.replace(/^http:\/\//,"https://");function Bu({style:i,className:s,item:r,loading:u}){const f=D.useRef(null),h=Wi(f),g=D.useRef(null),m=Wi(g),[w,A]=Et(!1),{accessKey:R}=qi(),L=Boolean(R),{param:O,title:E,cover:M,goto:U,play:F,like:H,coin:de,desc:re,danmaku:ie,ctime:K,duration:Q,name:be,face:Re,mid:ve,favorite:ae,badge:Ge,rcmd_reason:Pt}=r,q=D.useMemo(()=>Y0(K),[K]),W=D.useMemo(()=>X0(M),[M]),[I,Z]=Et(null),[P,z]=Et(!1),J=ze(async()=>{if(!I&&!P)try{z(!0);const ke=await I0(O);Z(ke)}finally{z(!1)}});D.useEffect(()=>{h&&J()},[h]);let oe=!1;const fe=ze(async ke=>{if(ke.preventDefault(),oe)return;oe=!0;const Xt=w?N0:P0;let Ze=!1;try{Ze=await Xt(O)}finally{oe=!1}Ze&&A(Rr=>!Rr)}),he=U0(O),Ce=Boolean(he),tt=D.useRef(null),Ne=Wi(tt),lt=ze(ke=>{ke.stopPropagation(),ke.preventDefault(),G0(r)}),Nt=ze(async()=>{if(!(he!=null&&he.id))return;let ke=!1,Xt=null;try{ke=await F0(r,he.id)}catch(Ze){Xt=Ze}if(Xt)return console.error(Xt.stack||Xt),Kt("\u8BF7\u6C42\u5931\u8D25!");Kt(`\u64A4\u9500\u4E0D\u559C\u6B22: \u64CD\u4F5C${ke?"\u6210\u529F":"\u5931\u8D25"}!`),ke&&cs.delete(O)}),We=r.goto==="av"?`/video/av${O}`:r.uri,Ee=D.useMemo(()=>x0(Q),[Q]),ct=D.useMemo(()=>rs(F),[F]),Ot=D.useMemo(()=>rs(H),[H]),wt=D.useMemo(()=>rs(ae),[ae]),Or=ne("div",{className:Qe("bili-video-card__skeleton",{hide:!u}),children:[C("div",{className:"bili-video-card__skeleton--cover"}),C("div",{className:"bili-video-card__skeleton--info",children:ne("div",{className:"bili-video-card__skeleton--right",children:[C("p",{className:"bili-video-card__skeleton--text"}),C("p",{className:"bili-video-card__skeleton--text short"}),C("p",{className:"bili-video-card__skeleton--light"})]})})]}),nt=ne("div",{className:Qe(wu),children:[C("div",{className:bu,children:ne("div",{className:Su,children:[C("div",{className:"icon"}),C("div",{className:xu,children:he==null?void 0:he.name}),C("div",{className:Au,children:"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),C("div",{className:Tu,children:C("button",{onClick:Nt,children:"\u64A4\u9500"})})]});return ne("div",{style:i,className:Qe("bili-video-card",cu,s),"data-report":"partition_recommend.content",children:[Or,!u&&Ce&&nt,!u&&!Ce&&ne("div",{className:"bili-video-card__wrap __scale-wrap",style:{backgroundColor:Ce?"red":"unset"},children:[C("a",{href:We,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:ne("div",{className:"bili-video-card__image __scale-player-wrap",ref:f,children:[ne("div",{className:Qe("bili-video-card__image--wrap",fu),children:[ne("picture",{className:"v-img bili-video-card__cover",children:[C("source",{srcSet:`${W}@672w_378h_1c.webp`,type:"image/webp"}),C("img",{src:`${W}@672w_378h_1c.webp`,alt:E,loading:"lazy"})]}),h&&(I==null?void 0:I.pvideoData)?C(A0,{className:hu,item:r,pvideo:I==null?void 0:I.pvideoData}):null,ne("div",{className:`bili-watch-later ${du}`,style:{display:h?"flex":"none"},ref:g,onClick:fe,children:[C("svg",{className:"bili-watch-later__icon",children:C("use",{xlinkHref:w?"#widget-watch-save":"#widget-watch-later"})}),C("span",{className:"bili-watch-later__tip",style:{display:m?"block":"none"},children:w?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),L&&ne("div",{ref:tt,className:_u,onClick:lt,style:{display:h?"flex":"none"},children:[C("svg",{className:mu,children:C("use",{xlinkHref:"#widget-close"})}),C("span",{className:yu,style:{display:Ne?"block":"none"},children:"\u4E0D\u559C\u6B22"})]})]}),C("div",{className:"bili-video-card__mask",children:ne("div",{className:"bili-video-card__stats",children:[ne("div",{className:"bili-video-card__stats--left",children:[ne("span",{className:"bili-video-card__stats--item",children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-play-count"})}),C("span",{className:"bili-video-card__stats--text",children:ct})]}),C("span",{className:"bili-video-card__stats--item",children:U==="av"?ne(Tr,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:Ot})]}):ne(Tr,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:wt})]})})]}),C("span",{className:"bili-video-card__stats__duration",children:Ee})]})})]})}),C("div",{className:"bili-video-card__info __scale-disable",children:ne("div",{className:"bili-video-card__info--right",children:[C("a",{href:We,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:C("h3",{className:"bili-video-card__info--tit",title:E,children:E})}),ne("p",{className:"bili-video-card__info--bottom",children:[U==="av"?ne("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${ve}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[Pt!=null&&Pt.content?C("span",{className:gu,children:Pt.content}):C("svg",{className:"bili-video-card__info--owner__up",children:C("use",{xlinkHref:"#widget-up"})}),C("span",{className:"bili-video-card__info--author",children:be}),q?ne("span",{className:"bili-video-card__info--date",children:["\xB7 ",q]}):null]}):null,U==="bangumi"?ne("a",{className:"bili-video-card__info--owner",href:We,target:"_blank",children:[C("span",{className:pu,children:Ge}),C("span",{className:vu,children:re})]}):null]})]})})]})]})}const Wu="_modal-mask_1mlbh_1",ku="_narrow-mode_1mlbh_13",Uu="_modal_1mlbh_1",Hu="_modal-header_1mlbh_32",zu="_modal-title_1mlbh_40",Gu="_btn-refresh_1mlbh_45",Ku="_btn-close_1mlbh_46",hs="_modal-body_1mlbh_62",Z0="_list_1mlbh_68",Lr="_card_1mlbh_71",Yu="_active_1mlbh_74",Xu="_video-card-list_1mlbh_78",Zu="_video-card-body_1mlbh_1",Ju="_loader_1mlbh_87",ds="_use-narrow-mode_1mlbh_1";var YT={modalMask:Wu,narrowMode:ku,modal:Uu,modalHeader:Hu,modalTitle:zu,btnRefresh:Gu,btnClose:Ku,modalBody:hs,list:Z0,card:Lr,active:Yu,videoCardList:Xu,videoCardBody:Zu,loader:Ju,useNarrowMode:ds};const J0=D.memo(function({show:s,onHide:r}){const[u,f]=Et([]),[h,g]=Et(!1),m=D.useRef(null),w=ze(async()=>{m.current&&(m.current.scrollTop=0),await ka(50);try{g(!0),f(await es(2)),re()}finally{g(!1)}}),A=ze(async K=>{let Q=await es(2);const be=new Set(u.map(Re=>Re.param));Q=Q.filter(Re=>!be.has(Re.param)),f(Re=>[...Re,...Q])}),{useNarrowMode:R}=qi(),L=D.useCallback(K=>{const Q=K.target.checked;ji({useNarrowMode:Q})},[]),O=D.useMemo(()=>({[ku]:R}),[R]),[E,M]=Et(null),U=ze(K=>{if(!s)return;let Q=E===null?q0():E+K;Q<0&&(Q=0),Q>u.length-1&&(Q=u.length-1),M(Q),j0(Q)}),F=D.useCallback(()=>{U(-1)},[]),H=D.useCallback(()=>{U(1)},[]),de=ze(()=>{!E||!s||V0(E)}),re=ze(()=>{!s||M(null)});sn("leftarrow",F),sn("rightarrow",H),sn("uparrow",F),sn("downarrow",H),sn("enter",de),sn("esc",re);const ie=ze(()=>{!s||w()});return sn("r",ie,{exactMatch:!0}),ne(iu,{show:s,onHide:r,clsModalMask:Qe(Wu,O),clsModal:Qe(Uu,O),children:[ne("div",{className:Hu,children:[C("div",{className:zu,children:"\u63A8\u8350"}),C("div",{className:"space",style:{flex:1}}),ne(eu,{children:[C("input",{type:"checkbox",id:ds,checked:R,onChange:L}),C("label",{htmlFor:ds,children:"\u542F\u7528\u7A84\u5C4F\u6A21\u5F0F"})]}),ne("button",{className:`primary-btn roll-btn ${Gu}`,onClick:w,children:[C("svg",{children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),ne("button",{className:`primary-btn roll-btn ${Ku}`,onClick:r,children:[C("svg",{children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:hs,ref:m,children:C(ts,{pageStart:0,loadMore:A,hasMore:!0,useWindow:!1,threshold:320,style:{minHeight:"100%"},loader:C("div",{className:Ju,children:"\u52A0\u8F7D\u4E2D..."},0),children:C("div",{className:`video-card-list is-full ${Xu}`,children:C("div",{id:Zu,className:Qe("video-card-body",O),children:u.map((K,Q)=>C(Bu,{item:K,loading:h,className:Qe(Lr,{[Yu]:Q===E})},K.param))})})})})]})});function q0(){const i=document.querySelector(`.${hs}`);if(!i)return 0;const s=i.getBoundingClientRect(),r=[...document.querySelectorAll(`.${Lr}`)];for(let u=0;u<r.length;u++)if(r[u].getBoundingClientRect().top>=s.top)return u;return 0}function qu(i){return[...document.querySelectorAll(`.${Lr}`)][i]}function j0(i){var r;const s=qu(i);(r=s==null?void 0:s.scrollIntoViewIfNeeded)==null||r.call(s,!1)}function V0(i){const s=qu(i);if(!s)return;const r=s.querySelector(".bili-video-card__wrap > a");r==null||r.click()}const ju="_grid_p5dvw_1",Vu="_video-card-list_p5dvw_5";var JT={grid:ju,videoCardList:Vu,expandBtn:"_expand-btn_p5dvw_19",expanded:"_expanded_p5dvw_30"};function Q0(){const i=D.useRef(null),{accessKey:s}=qi(),r=ze(async(M=!1)=>{var F;await a0()&&((F=i.current)==null||F.set(!1))}),u=o0,f=ze(()=>{const M="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(M,"_blank")}),[h,g]=Et([]),[m,w]=Et(!1),A=ze(async()=>{w(!0);try{const M=await c0();g(M)}finally{w(!1)}});ah(async()=>{A()});const[R,L]=Et(!1),O=D.useCallback(()=>{L(!0)},[]),E=D.useCallback(()=>{L(!1)},[]);return C("section",{className:Qe("bili-grid no-margin",ju),"data-area":"\u63A8\u8350",children:ne("div",{className:`video-card-list is-full ${Vu}`,children:[ne("div",{className:"area-header",children:[ne("div",{className:"left",children:[C("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),C("svg",{className:"icon",children:C("use",{xlinkHref:"#channel-cinephile"})}),C("a",{className:"title",href:"#",children:C("span",{children:"\u63A8\u8350"})})]}),ne("div",{className:"right",children:[s?ne(eu,{ref:i,children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:()=>r(!0),children:C("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),C("button",{className:"primary-btn roll-btn",onClick:u,children:C("span",{children:"\u5220\u9664 access_key"})})]}):ne(Tr,{children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:r,children:C("span",{children:"\u83B7\u53D6 access_key"})})]}),ne("button",{className:"primary-btn roll-btn",onClick:A,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),ne("button",{className:"primary-btn see-more",onClick:O,children:[C("span",{children:"\u67E5\u770B\u66F4\u591A"}),C("svg",{children:C("use",{xlinkHref:"#widget-arrow"})})]})]})]}),C(J0,{show:R,onHide:E}),C("div",{className:"video-card-body more-class1 more-class2",children:h.map(M=>C(Bu,{item:M,loading:m},M.param))})]})})}(function(){var s;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(s=window.top)==null?void 0:s.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return e1()})();async function e1(){const i=Date.now(),s=10*1e3,r=()=>kn.default(".bili-layout > section.bili-grid").length>0;for(;!r()&&Date.now()-i<s;)await ka(100);if(!r()){console.error("[bilibili-app-recommend]: init fail");return}const u=kn.default(".bili-layout > section.bili-grid").eq(0),f=kn.default("<section></section>");f.insertAfter(u);const h=f[0];Ti(h).render(C(Q0,{}))}})($,ReactDOM,React,axios,axiosGmxhrAdapter);