diff --git a/dist/bilibili-evolved.preview.user.js b/dist/bilibili-evolved.preview.user.js index 44533a0b6..d1b6c5c6d 100644 --- a/dist/bilibili-evolved.preview.user.js +++ b/dist/bilibili-evolved.preview.user.js @@ -64,13 +64,13 @@ const r=()=>{(0,o.contentLoaded)((async()=>{document.body.classList.add("round-c /* eslint-disable no-bitwise */ function*(e,t){let n,o=t?.low??0,i=t?.high??e.length;for(;o+1>>1;(yield{low:o,high:i,mid:n,slice:e.slice(o,n),rouge:Math.trunc(Math.log2(i-o))})?i=n:o=n}return{low:o,high:i,mid:n,slice:e.slice(o,n),rouge:Math.trunc(Math.log2(i-o)),target:e[o]}};var c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",[e._v("可能出问题的组件是:"+e._s(e.displayName)+"("+e._s(e.name)+")")]),e._v(" "),t("div",[t("span",{staticClass:"link",on:{click:e.restore}},[e._v("恢复原状("+e._s(e.countdown)+" 秒)")])])])};c._withStripped=!0;var s=n(5026);const l=n.n(s)().extend({data:()=>({countdown:30,userComponent:void 0}),computed:{displayName(){return this.userComponent?.metadata?.displayName},name(){return this.userComponent?.metadata?.name}},watch:{countdown(e){0===e&&this.restore()}},created(){this.interval=setInterval((()=>{this.countdown>0?this.countdown--:clearInterval(this.interval)}),1e3)},destroyed(){clearInterval(this.interval)},methods:{restore(){clearInterval(this.interval),this.$emit("restore")}}});const d=(0,n(6499).Z)(l,c,[],!1,null,null,null).exports;let m,f,u,p,b;const h=e=>{m?Object.assign(m,e):m=e},g=e=>{f=e},F=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,4638)),{userComponents:t}=e,o=lodash.pickBy(t,(e=>e.metadata.configurable||!0)),{targetComponents:i,keepDisabledComponents:r,keepEnabledComponents:a}=lodash.transform(o,((e,t,n)=>{m.keepEnabledComponents?.includes(n)?e.keepEnabledComponents.push(t):m.keepDisabledComponents?.includes(n)?e.keepDisabledComponents.push(t):e.targetComponents.push(t)}),{targetComponents:[],keepDisabledComponents:[],keepEnabledComponents:[]});return{userComponents:t,configurableUserComponents:o,targetComponents:i,keepDisabledComponents:r,keepEnabledComponents:a}},v=(e,t)=>e.forEach((e=>e.settings.enabled=t)),w=e=>e.map((e=>`${e.metadata.displayName}(${e.metadata.name})`)).join(", ")||"无",y=()=>!lodash.isEmpty(m.bisectInitialState),x=async()=>{f?.log("stop - 准备停止组件二等分"),b?.close();const{configurableUserComponents:e}=await F(),t=[];for(const[n,o]of Object.entries(e)){const e=m.originalComponentEnableState?.[n];null!=e?o.settings.enabled=e:t.push(o)}if(t.length){const e=`部分组件未能还原状态:${w(t)}`;f?.warn(`stop - ${e}`),i.Toast.error(e,"组件二等分"),await(0,r.delay)(3e3)}f?.log("stop - 清理状态"),u=null,m.bisectInitialState={},m.originalComponentEnableState={},f?.log("stop - 重载页面"),location.reload()},k=async(e,t)=>{b?.close(),f?.log("next - 当前工作状态:"+( // eslint-disable-next-line no-nested-ternary -null==e?"未知":e?"异常":"正常"));const{done:n,value:o}=u.next(e);if(n){const{low:e,high:t}=o;m.bisectInitialState={low:e,high:t};const n=`bisector-result-toast-content-${(0,r.getRandomId)()}`;i.Toast.info(`
`,"组件二等分结果"),await(0,r.delay)();const a=(0,r.mountVueComponent)(d,`#${n}`);a.userComponent=o.target,a.$on("restore",(()=>{x()}))}else{const{slice:e,low:n,high:i}=o,r=e,a=lodash.difference(p.targetComponents,e);m.bisectInitialState={low:n,high:i},f?.log(`next - 关闭组件:${w(a)}`),f?.log(`next - 开启组件:${w(r)}`),v(a,!1),v(r,!0),t&&(f?.log("next - 重载页面"),location.reload())}return{done:n,value:o}},C=async()=>{f?.log("recover - 准备恢复组件二等分"),p=await F();const{targetComponents:e,keepDisabledComponents:t,keepEnabledComponents:i}=p;v(i,!0),v(t,!1),f?.log(`recover - 保持关闭组件:${w(t)}`),f?.log(`recover - 保持开启组件:${w(i)}`),f?.log(`recover - 全部目标组件:${w(e)}`),u=a(e,m.bisectInitialState);const{done:r,value:c}=await k();if(!r){const{rouge:e}=c;b=(0,o.showDialog)({title:()=>Promise.resolve().then(n.bind(n,4799)),content:()=>Promise.resolve().then(n.bind(n,3570)),contentProps:{rouge:e,onGood:()=>k(!1,!0),onBad:()=>k(!0,!0),onAbort:()=>x()}})}},A=async()=>{if(y())return void await C();f?.log("start - 准备开始组件二等分"),p=await F();const{configurableUserComponents:e,targetComponents:t,keepDisabledComponents:n,keepEnabledComponents:o}=p;f?.log("start - 保存组件初始启用状态"),m.originalComponentEnableState=lodash.mapValues(e,(e=>e.settings.enabled)),v(t,!0),v(o,!0),v(n,!1),f?.log(`start - 保持关闭组件:${w(n)}`),f?.log(`start - 保持开启组件:${w(o)}`),f?.log(`start - 启用全部目标组件:${w(t)}`),u=a(t,m.bisectInitialState),await k(void 0,!0)}},6609:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBuiltInComponents:()=>O,isBuiltInComponent:()=>V});var o=n(3030),i=n(1379),r=n(5571),a=n(3062);const c={name:"launchBar.plugin",displayName:"搜索栏 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.showLaunchBar={displayName:"显示搜索栏",run:async()=>{const{toggleLaunchBar:e}=await Promise.resolve().then(n.bind(n,1365));return e(),!0}}})),t("keymap.presets",(e=>{e.showLaunchBar="/"}))}},s=(0,r.defineComponentMetadata)({name:"launchBar",displayName:"搜索栏",configurable:!1,entry:i.none,plugin:c,hidden:!0,tags:[a.t.general,a.t.utils],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});var l=n(1231),d=n(1434),m=n(8643);function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(){f(this,"accepts",(e=>e.nodeType===Node.ELEMENT_NODE)),f(this,"getValue",(e=>e.nodeValue)),f(this,"setValue",((e,t)=>{e.nodeValue=t})),f(this,"getElement",(e=>e))}// eslint-disable-next-line class-methods-use-this +null==e?"未知":e?"异常":"正常"));const{done:n,value:o}=u.next(e);if(n){const{low:e,high:t}=o;m.bisectInitialState={low:e,high:t};const n=`bisector-result-toast-content-${(0,r.getRandomId)()}`;i.Toast.info(`
`,"组件二等分结果"),await(0,r.delay)();const a=(0,r.mountVueComponent)(d,`#${n}`);a.userComponent=o.target,a.$on("restore",(()=>{x()}))}else{const{slice:e,low:n,high:i}=o,r=e,a=lodash.difference(p.targetComponents,e);m.bisectInitialState={low:n,high:i},f?.log(`next - 关闭组件:${w(a)}`),f?.log(`next - 开启组件:${w(r)}`),v(a,!1),v(r,!0),t&&(f?.log("next - 重载页面"),location.reload())}return{done:n,value:o}},C=async()=>{f?.log("recover - 准备恢复组件二等分"),p=await F();const{targetComponents:e,keepDisabledComponents:t,keepEnabledComponents:i}=p;v(i,!0),v(t,!1),f?.log(`recover - 保持关闭组件:${w(t)}`),f?.log(`recover - 保持开启组件:${w(i)}`),f?.log(`recover - 全部目标组件:${w(e)}`),u=a(e,m.bisectInitialState);const{done:r,value:c}=await k();if(!r){const{rouge:e}=c;b=(0,o.showDialog)({title:()=>Promise.resolve().then(n.bind(n,4799)),content:()=>Promise.resolve().then(n.bind(n,3570)),contentProps:{rouge:e,onGood:()=>k(!1,!0),onBad:()=>k(!0,!0),onAbort:()=>x()}})}},A=async()=>{if(y())return void await C();f?.log("start - 准备开始组件二等分"),p=await F();const{configurableUserComponents:e,targetComponents:t,keepDisabledComponents:n,keepEnabledComponents:o}=p;f?.log("start - 保存组件初始启用状态"),m.originalComponentEnableState=lodash.mapValues(e,(e=>e.settings.enabled)),v(t,!0),v(o,!0),v(n,!1),f?.log(`start - 保持关闭组件:${w(n)}`),f?.log(`start - 保持开启组件:${w(o)}`),f?.log(`start - 启用全部目标组件:${w(t)}`),u=a(t,m.bisectInitialState),await k(void 0,!0)}},6609:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBuiltInComponents:()=>O,isBuiltInComponent:()=>V});var o=n(3030),i=n(1379),r=n(5571),a=n(3062);const c={name:"launchBar.plugin",displayName:"搜索栏 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.showLaunchBar={displayName:"显示搜索栏",run:async()=>{const{toggleLaunchBar:e}=await Promise.resolve().then(n.bind(n,1365));return e(),!0}}})),t("keymap.presets",(e=>{e.showLaunchBar="/"}))}},s=(0,r.defineComponentMetadata)({name:"launchBar",displayName:"搜索栏",configurable:!1,entry:i.none,plugin:c,hidden:!0,tags:[a.t.general,a.t.utils],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});var l=n(1231),d=n(1434),m=n(8643);function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(){f(this,"accepts",(e=>e.nodeType===Node.ELEMENT_NODE)),f(this,"getValue",(e=>e.nodeValue)),f(this,"setValue",((e,t)=>{e.nodeValue=t})),f(this,"getElement",(e=>e))}// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this translate(e){let t=this.getValue(e);if(!t||"string"!=typeof t||"*"===t)return;t=t.trim();const n=u.map.get(t);if(void 0===n){const n=u.regex.find((e=>{let[n]=e;return n.test(t)}));if(n){const[o,i]=n;this.setValue(e,t.replace(o,i))}}else if("string"==typeof n)this.setValue(e,n);else if(Array.isArray(n)){let t=null;for(const o of n)if("string"==typeof o)t=o;else{const{text:n,selector:i,not:r}=o;this.getElement(e)?.matches(i)!==Boolean(r)&&(t=n)}null!==t&&this.setValue(e,t)}else{const{text:t,selector:o,not:i}=n;this.getElement(e)?.matches(o)!==Boolean(i)&&this.setValue(e,t)}}static walk(e,t){const n=document.createNodeIterator(e, // eslint-disable-next-line no-bitwise -NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)t(o),o=n.nextNode()}static translate(e){if(e.nodeType===Node.TEXT_NODE)return void u.textNode.translate(e);const t=e=>{for(const t of u.sensitiveTranslators)t.accepts(e)&&t.translate(e)};t(e),u.walk(e,t)}static translateCssMatches(){const e=u.map.get("*");if(e)for(const{selector:t,text:n}of e){const e=document.querySelector(t);e&&[...e.childNodes].filter((e=>e.nodeType===Node.TEXT_NODE)).forEach((e=>e.nodeValue=n))}}}f(u,"textNode",void 0),f(u,"title",void 0),f(u,"placeholder",void 0),f(u,"sensitiveTranslators",void 0),f(u,"map",void 0),f(u,"regex",void 0);u.textNode=new class extends u{constructor(){super(...arguments),f(this,"accepts",(e=>e.nodeType===Node.TEXT_NODE)),f(this,"getElement",(e=>e.parentElement))}},u.title=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("title"))),f(this,"setValue",((e,t)=>{e.setAttribute("title",t)}))}},u.placeholder=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("placeholder"))),f(this,"setValue",((e,t)=>{e.setAttribute("placeholder",t)}))}},u.sensitiveTranslators=[u.textNode,u.title,u.placeholder];const p=(0,r.defineComponentMetadata)({name:"i18n",displayName:"多语言",configurable:!1,entry:async()=>{const{getSelectedLanguage:e}=await Promise.resolve().then(n.bind(n,5282)),t=e();if(t===l.defaultLanguageCode)return;const{registerAndGetData:o}=await Promise.resolve().then(n.bind(n,3378)),[i,r]=o(`i18n.${t}`,new Map,[]);console.log(t,i.size,r.length),0===i.size&&0===r.length||(document.documentElement.setAttribute("lang",t),u.map=i,u.regex=r,u.translate(document.body),u.translateCssMatches(),(0,m.allMutations)((e=>{e.forEach((e=>{"childList"===e.type?(e.addedNodes.length>0&&u.translateCssMatches(),e.addedNodes.forEach((e=>{u.translate(e)}))):"characterData"===e.type?u.textNode.translate(e.target):"attributes"===e.type&&("title"===e.attributeName?u.title.translate(e.target):"placeholder"===e.attributeName&&u.placeholder.translate(e.target))}))})))},tags:[a.t.utils,a.t.experimental,a.t.general],description:{"zh-CN":"安装其他语言包可以更换界面语言, 机器翻译选择可以设定其他一些功能如`动态翻译`, `评论翻译`使用的翻译器. 机器翻译的选择不影响界面语言."},options:{language:{defaultValue:l.languageCodeToName[l.defaultLanguageCode],displayName:"界面语言选择",dropdownEnum:l.languageCodeToName},translator:{defaultValue:Object.keys(d.WK)[0],displayName:"机器翻译选择",dropdownEnum:d.U6}},hidden:!0,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});var b=n(5721),h=n(4638),g=n(637),F=n(7219),v=n(6290);const{checkComponentsUpdate:w,checkLastFeature:y,forceCheckUpdate:x,forceCheckUpdateAndReload:k,silentCheckUpdate:C}=v,A=(0,r.defineOptionsMetadata)({lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},lastInstalledVersion:{displayName:"最后安装版本",defaultValue:"2.0.0",hidden:!0},localPortOverride:{displayName:"本地组件链接端口",defaultValue:"",hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5},urls:{displayName:"更新链接",defaultValue:{components:{},plugins:{},styles:{}},hidden:!0},maxUpdateCount:{displayName:"单次最大更新量 (个)",defaultValue:4}}),E=(0,r.defineComponentMetadata)({name:F.u2,displayName:"自动更新器",description:{"zh-CN":"自动检查组件, 插件和样式的更新. (仅限从设置面板中安装的)"},tags:[a.t.utils],options:A,extraOptions:()=>Promise.resolve().then(n.bind(n,5865)).then((e=>e.default)),entry:async e=>{let{settings:{options:t}}=e;if((0,i.isIframe)())return v;const n=Number(new Date)-t.lastUpdateCheck>=t.minimumDuration,o=new g.Version(b.meta.version).greaterThan(new g.Version(t.lastInstalledVersion));return n?coreApis.lifeCycle.fullyLoaded((()=>C())):o&&coreApis.lifeCycle.fullyLoaded((()=>x())),v},plugin:{displayName:"自动更新器 - 功能扩展",description:{"zh-CN":"记录在设置面板中的功能安装/卸载数据供自动更新使用; 并在组件详情中支持手动检查该组件的更新."},setup:e=>{let{addData:t,addHook:o}=e;["components","plugins","styles"].forEach((e=>{o(`user${lodash.startCase(e)}.add`,{after:(t,n,o)=>{const{options:i}=(0,h.getComponentSettings)("autoUpdate"),r=i.urls[e][o.name];r?(r.url=n,r.lastUpdateCheck=Number(new Date),r.alwaysUpdate=(0,F.jN)(n)):i.urls[e][o.name]={url:n,lastUpdateCheck:Number(new Date),installTime:Number(new Date),alwaysUpdate:(0,F.jN)(n)}}}),o(`user${lodash.startCase(e)}.remove`,{after:t=>{const{options:n}=(0,h.getComponentSettings)("autoUpdate");n.urls[e][t.name]&&delete n.urls[e][t.name]}})})),t("settingsPanel.componentActions",(e=>{const{options:t}=(0,h.getComponentSettings)("autoUpdate");e.push((e=>{const o=t.urls.components[e.name];if(o)return{name:"checkUpdate",displayName:"检查更新",icon:(0,F.jN)(o.url)?"mdi-file-download-outline":"mdi-cloud-download-outline",visible:(0,h.isUserComponent)(e),title:o.url,action:async()=>{const{Toast:t}=await Promise.resolve().then(n.bind(n,7102)),o=t.info("检查更新中...","检查更新");o.message=await w({filterNames:[e.name],force:!0}),o.duration=3e3}}}))}));const i="mdi-cloud-sync-outline";t("launchBar.actions",(e=>{e.push({name:"updateAllFeaturesActions",getActions:async()=>[{name:"检查所有更新",description:"Check Updates",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,7102)),t=e.info("正在检查更新...","检查所有更新");await k(),t.close()},icon:i}]})})),t("settingsPanel.searchBarActions",(e=>{e.unshift({key:"updateFeatures",title:e=>{let{selectedComponents:t}=e;return t.length>0?"更新所选组件":"检查所有更新"},icon:"mdi-cloud-download-outline",run:async e=>{const t=e.selectedComponents.length>0?`确定要更新所选的 ${e.selectedComponents.length} 个组件吗?`:"确定要检查所有更新吗?";if(!window.confirm(t))return;const{Toast:o}=await Promise.resolve().then(n.bind(n,7102)),{isBuiltInComponent:i}=await Promise.resolve().then(n.bind(n,6609));if(0===e.selectedComponents.length){const e=o.info("正在检查更新...","检查所有更新");k(),await k(),e.close()}else e.selectedComponents.forEach((async e=>{let{name:t}=e;if(i(t))o.info("内置组件不能更新","检查更新",3e3);else{const e=o.info("检查更新中...","检查更新"),n=await w({filterNames:[t],force:!0});e.message=n,e.duration=3e3}}))}})})),(0,h.getGeneralSettings)().devMode&&t("launchBar.actions",(e=>{e.push({name:"updateLastFeatureActions",getActions:async()=>[{name:"检查最近更新的功能",description:"Check Last Update",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,7102)),t=e.info("正在检查更新...","检查最近更新的功能");await y(),t.close()},icon:i}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),B=async()=>{const{cdnRoots:e}=await Promise.resolve().then(n.bind(n,8703)),{meta:t}=await Promise.resolve().then(n.bind(n,5721)),{getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,4638));return`${e[o().cdnRoot](t.compilationInfo.branch)}dist/${t.originalFilename}`},D=(0,r.defineComponentMetadata)({name:"notifyNewVersion",displayName:"新版本提示",description:"定期检查脚本本体的更新, 并弹出提示.",tags:[a.t.utils],options:{lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5}},entry:async e=>{let{settings:{options:t}}=e;try{const{Version:e}=await Promise.resolve().then(n.bind(n,637)),{monkey:o}=await Promise.resolve().then(n.bind(n,2072)),{meta:i}=await Promise.resolve().then(n.bind(n,5721)),{Toast:r}=await Promise.resolve().then(n.bind(n,7102)),{isDataSaveMode:a}=await Promise.resolve().then(n.bind(n,1379));if(a())return;const c=Number(new Date);if(c-t.lastUpdateCheck${m.versionString} 已发布. 查看详情`,"检查更新");(await p.element).querySelector(".view-details").addEventListener("click",(()=>{(async e=>{const{showDialog:t}=await Promise.resolve().then(n.bind(n,8422));t({title:"更新说明",content:()=>Promise.resolve().then(n.bind(n,2829)),contentProps:{content:e,updateUrl:await B()}})})(u)}))}catch(e){console.warn("[新版本提示] 检查更新时发生错误: ",e)}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),z=(0,r.defineOptionsMetadata)({originalComponentEnableState:{defaultValue:{},hidden:!0},keepDisabledComponents:{defaultValue:[],hidden:!0},keepEnabledComponents:{defaultValue:[],hidden:!0},bisectInitialState:{defaultValue:{},hidden:!0}});var I=n(1834),S=n(6215);const M=(0,r.defineComponentMetadata)({name:"bisector",displayName:"组件二等分",tags:[a.t.general,a.t.utils],hidden:!0,configurable:!1,entry:async e=>{let{settings:{options:t}}=e;const o=await Promise.resolve().then(n.bind(n,453));o.setOptions(t),o.setConsole((0,S.useScopedConsole)("组件二等分")),unsafeWindow.addEventListener(I.LifeCycleEventTypes.ComponentsLoaded,(()=>{o.isRecover()&&o.recover()}))},options:z,plugin:{displayName:"组件二等分 - 功能扩展",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"bisector-start",getActions:async()=>[{name:"开始 / 继续组件二等分",description:"Start/Continue component bisection",icon:"mdi-view-split-horizontal",action:async()=>{const e=await Promise.resolve().then(n.bind(n,453));await e.start()}}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),P=(0,r.defineComponentMetadata)({name:"compatibilities",displayName:"兼容性选项",configurable:!1,tags:[a.t.general],options:{disableOnBalh:{defaultValue:!1,displayName:'与 "解除 B 站区域限制" 互斥'}},entry:i.none,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(7761);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,8232,17)).then((e=>e.default))}})()}),O=()=>[o.component,s,p,E,D,M,P],V=e=>O().some((t=>t.name===e))},5900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{components:()=>d,componentsMap:()=>l,componentsTags:()=>c.t,defineComponentMetadata:()=>s.defineComponentMetadata,defineOptionMetadata:()=>s.defineOptionMetadata,defineOptionsMetadata:()=>s.defineOptionsMetadata,importComponent:()=>b,loadAllComponents:()=>F,loadAllUserComponents:()=>g,loadComponent:()=>h});var o=n(4638),i=n(1834),r=n(2299),a=n(6609),c=n(3062),s=n(5571);const l={},d=lodash.once((()=>{const e=(0,a.getBuiltInComponents)();return e.forEach((e=>l[e.name]=e)),e}))(),m=async e=>{if(!e.i18n)return;const{addI18nData:t}=await Promise.resolve().then(n.bind(n,5282));for(const[n,o]of Object.entries(e.i18n)){const{map:e=[],regex:i=[]}="function"==typeof o?await o():o;t(n,e,i)}},f=e=>`${e.name}.widget`,u=async e=>{if(e.widget){const t={...e.widget,name:f(e)},{addData:o}=await Promise.resolve().then(n.bind(n,3378)),{WidgetsPlugin:i}=await Promise.resolve().then(n.bind(n,3030));o(i,(n=>{if(n.find((e=>e.name===t.name)))return;const{urlInclude:o,urlExclude:i}=t;e.urlInclude&&(o?o.push(...e.urlInclude):t.urlInclude=[...e.urlInclude]),e.urlExclude&&(i?i.push(...e.urlExclude):t.urlExclude=[...e.urlExclude]),n.push(t)}))}},p={},b=e=>{if(!(e in p))throw new Error(`组件'${e}'未加载, 请确认拼写无误且组件已开启.`);return p[e]},h=async e=>{const{componentLoadTrace:t}=await Promise.resolve().then(n.bind(n,6854)),{matchUrlPattern:i}=await Promise.resolve().then(n.bind(n,1379)),{coreApis:r}=await Promise.resolve().then(n.bind(n,980));await t(e);const a=async()=>{u(e);const t=await e.entry({settings:(0,o.getComponentSettings)(e),metadata:e,coreApis:r});p[e.name]=t||{}};e.reload&&e.unload&&(0,o.addComponentListener)(e.name,(async t=>{if(!1!==e.configurable&&!(e.urlExclude&&e.urlExclude.some(i)||e.urlInclude&&e.urlInclude.every(lodash.negate(i))))if(e.name in p){if(t&&e.reload&&(e.reload(),e.widget&&u(e)),!t&&e.unload&&(e.unload(),e.widget)){const{getData:t}=await Promise.resolve().then(n.bind(n,3378)),{WidgetsPlugin:o}=await Promise.resolve().then(n.bind(n,3030)),[i]=t(o);if(i){const t=f(e),n=i.findIndex((e=>e.name===t));-1!==n&&i.splice(n,1)}}}else t&&await a()})),(0,o.isComponentEnabled)(e)&&await a()},g=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,4638)),{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,6517));for(const[n,i]of Object.entries(e.userComponents)){const{code:e}=i;let r;try{r=t(e)}catch(e){console.error("从代码加载用户组件失败。代码可能有语法错误或代码执行时有抛出值。",{componentName:n,error:e});continue}o=r,d.push(o),l[o.name]=o}var o},F=async()=>{const e=(0,o.getGeneralSettings)(),{loadAllPlugins:t}=await Promise.resolve().then(n.bind(n,6598)),a=()=>t(d).then((()=>Promise.all(d.map(m)))).then((()=>Promise.all(d.map(h)))).then((async()=>{if(e.devMode){const{componentLoadTime:e,componentResolveTime:t}=await Promise.resolve().then(n.bind(n,6854)),{logStats:o}=await Promise.resolve().then(n.bind(n,4007));o("components block",e),o("components resolve",t)}}));return new Promise(((t,n)=>{e.scriptLoadingMode===r.LoadingMode.Delay?(0,i.fullyLoaded)((()=>a().then(t).catch(n))):e.scriptLoadingMode===r.LoadingMode.Race&&(0,i.contentLoaded)((()=>a().then(t).catch(n)))}))}},5571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defineComponentMetadata:()=>r,defineOptionMetadata:()=>o,defineOptionsMetadata:()=>i});const o=e=>e,i=e=>e,r=e=>e},9081:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDescriptionHTML:()=>c,getDescriptionMarkdown:()=>a,getDescriptionText:()=>s});var o=n(9896),i=n.n(o),r=n(5282);const a=async e=>{const{description:t,author:n}=e;return(n?Array.isArray(n)?`by ${n.map((e=>`[@${e.name}](${e.link})`)).join(",")}\n\n`:`by [@${n.name}](${n.link})\n\n`:"")+await(async()=>{if(!t)return"暂无描述.";const e=async e=>"string"==typeof e?e:e();if("object"==typeof t){const n=(0,r.getSelectedLanguage)();return e(t[n]??t["zh-CN"])}return e(t)})()},c=async e=>i()(await a(e)),s=async e=>{const t=await c(e),n=document.createElement("div");return n.innerHTML=t,n.innerText}},5282:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addI18nData:()=>a,getSelectedLanguage:()=>c});var o=n(3378),i=n(4638),r=n(1231);const a=(e,t,n)=>{(0,o.addData)(`i18n.${e}`,((e,o)=>{t?.forEach((t=>{let[n,o]=t;return e.set(n,o)})),n&&o.push(...n)}))},c=()=>{const e=(0,i.getComponentSettings)("i18n");return(0,r.languageNameToCode)(e.options.language)}},1434:(e,t,n)=>{"use strict";n.d(t,{Ty:()=>p,U6:()=>u,WK:()=>f});var o=n(2072),i=n(6826),r=n(4638),a=n(1231),c=n(3378),s=n(1379);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(){l(this,"name",void 0),l(this,"link",void 0),l(this,"defaultLanguage",void 0)}getTargetLanguage(){const e=(0,r.getComponentSettings)("i18n");return e.enabled?(0,a.languageNameToCode)(e.options.language):this.defaultLanguage}toString(){return this.name}}class m extends d{constructor(){super(...arguments),l(this,"name","Google"),l(this,"link","https://translate.google.com/"),l(this,"defaultLanguage","zh"),l(this,"apiUrl","https://translate.google.com/translate_a/single")}async translate(e){let t=this.getTargetLanguage();t.includes("-")&&t!==this.defaultLanguage&&(t=t.substring(0,t.indexOf("-")));try{const n=await(0,o.monkey)({url:`${this.apiUrl}?${(0,s.formData)({client:"gtx",sl:"auto",tl:t,dt:"t",q:encodeURIComponent(e)})}`,method:"GET",headers:{"User-Agent":i.UserAgent},responseType:"json"});return n[0].map((e=>e[0])).join("")}catch(e){throw console.error("Translator: Google",e),new Error("调用Google翻译失败.")}}}const[f]=(0,c.registerAndGetData)("i18n.machineTranslators",{GoogleCN:new class extends m{constructor(){super(...arguments),l(this,"name","GoogleCN"),l(this,"link","https://translate.google.cn/"),l(this,"apiUrl","https://translate.google.cn/translate_a/single")}},Google:new m}),u=Object.keys(f),p=()=>{const{options:{translator:e}}=(0,r.getComponentSettings)("i18n");return f[e]||f.GoogleCN}},6893:(e,t,n)=>{"use strict";n.d(t,{WY:()=>a,dr:()=>c});var o=n(5382);const i="search_history:search_history",r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=await o.crossOriginLocalStorage.getItem(e),n=t?JSON.parse(t):[];return n},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;console.log("add",e),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(lodash.sortBy(lodash.uniqBy([{value:e,timestamp:Number(new Date)},...await r()],(e=>e.value)),(e=>e.timestamp)).reverse().slice(0,20)))},c={name:"history",getActions:async()=>{const{search:e}=await Promise.resolve().then(n.bind(n,7498)),t={name:"清除搜索历史",icon:"mdi-trash-can-outline",description:"Clear History",explicitSelect:!0,action:async()=>{await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return o.crossOriginLocalStorage.setItem(e,"[]")}()}},a=(await r()).map((t=>({name:t.value,icon:"mdi-history",explicitSelect:!0,action:()=>{e(t.value)},deleteAction:async()=>{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n=await r(),a=n.findIndex((t=>t.value===e));console.log("delete",e,a),-1!==a&&(n.splice(a,1),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(n)))}(t.value)}})));return a.length>0&&a.push(t),a}}},9373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LaunchBarActionProviders:()=>o});const o="launchBar.actions"},7498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{search:()=>a,searchProvider:()=>c});var o=n(1379),i=n(2072),r=n(6893);const a=e=>{if(!e)return;(0,r.WY)(e);const t={keyword:e,from_source:"nav_suggest_new"};window.open(`https://search.bilibili.com/all?${(0,o.formData)(t)}`,"_blank")},c={name:"search",getActions:async e=>{const t=`https://s.search.bilibili.com/main/suggest?func=suggest&suggest_type=accurate&sub_type=tag&main_ver=v1&highlight=&userid=${(0,o.getUID)()}&bangumi_acc_num=1&special_acc_num=1&topic_acc_num=1&upuser_acc_num=3&tag_num=10&special_num=10&bangumi_num=10&upuser_num=3&term=${e}`,n=await(0,i.getJson)(t),r=[{name:e,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:`${e}`}})}),action:()=>a(e)}];if(0!==n.code)return r;const c=lodash.get(n,"result.tag");return c?(r.push(...c.map((e=>({name:e.value,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:e.name.replace(/suggest_high_light/g,"suggest-highlight")}})}),action:()=>a(e.value)})))),lodash.uniqBy(r,(e=>e.name))):r}}},1365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toggleLaunchBar:()=>b});var o=n(1379),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"global-launch-bar-container",attrs:{lazy:!1,fixed:""},on:{"!keydown":function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("LaunchBar",{ref:"launchBar",on:{close:function(t){return e.close()}}})],1)};i._withStripped=!0;var r=n(985),a=n(1788);const c=Vue.extend({components:{LaunchBar:a.Z,VPopup:r.default},data:()=>({show:!0}),watch:{show(e){e&&this.focus()}},async mounted(){await this.$nextTick(),this.focus()},methods:{focus(){const e=this.$refs.launchBar?.$refs.input;e?.focus(),e?.select()},close(){this.show=!1;const e=this.$refs.launchBar?.$refs.input;e?.blur()}}});var s=n(8332),l=n.n(s),d=n(7480),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,i,[],!1,null,null,null).exports;let p;const b=()=>{if(!p)return p=(0,o.mountVueComponent)(u),void document.body.append(p.$el);p.show=!p.show}},7499:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});let o=function(e){return e.Left="左侧",e.Right="右侧",e}({})},5564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{map:()=>o});const o=new Map([["通用设置","General"],["实验性","Experimental"],["通用","General"],["开发者模式","Dev mode"],["辅助颜色","Accent color"],["功能加载模式","Script loading mode"],["样式加载模式","Style loading mode"]])},3030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetsPlugin:()=>b,component:()=>g});var o=n(1379),i=n(2299),r=n(3793),a=n(8703),c=n(4638),s=n(1779),l=n(3062),d=n(5571),m=n(3378),f=n(9373),u=n(6897);var p=n(7499);const b="widgets",h=(0,d.defineOptionsMetadata)({themeColor:{defaultValue:"#00A0D8",displayName:"主题颜色",color:!0},scriptLoadingMode:{defaultValue:i.LoadingMode.Delay,displayName:"功能加载模式",dropdownEnum:i.LoadingMode},styleLoadingMode:{defaultValue:i.LoadingMode.Race,displayName:"样式加载模式",dropdownEnum:i.LoadingMode},textColor:{defaultValue:r.TextColor.Auto,displayName:"文本颜色",dropdownEnum:r.TextColor},cdnRoot:{defaultValue:a.CdnTypes.AltCdn,displayName:"更新源",dropdownEnum:a.CdnTypes},dockSide:{defaultValue:p.l.Left,displayName:"设置面板停靠",dropdownEnum:p.l},filenameFormat:{defaultValue:"[title][ - ep]",displayName:"文件命名格式"},batchFilenameFormat:{defaultValue:"[n - ][ep]",displayName:"批量命名格式"},downloadPackageEmitMode:{defaultValue:s.h.Packed,displayName:"文件下载模式",dropdownEnum:s.h},devMode:{defaultValue:!1,displayName:"开发者模式"}}),g=(0,d.defineComponentMetadata)({name:"settingsPanel",displayName:"通用设置",configurable:!1,entry:async e=>{let{metadata:t}=e;const{isIframe:i}=await Promise.resolve().then(n.bind(n,1379));i()||((0,c.addComponentListener)(`${t.name}.dockSide`,(e=>{document.body.classList.toggle("settings-panel-dock-right",e===p.l.Right)}),!0),requestIdleCallback((async()=>{const e=await Promise.resolve().then(n.bind(n,3448)),t=(0,o.mountVueComponent)(e);document.body.insertAdjacentElement("beforeend",t.$el)})))},options:h,tags:[l.t.general],plugin:{displayName:"设置面板 - 功能扩展",setup:()=>{(0,m.addData)(f.LaunchBarActionProviders,(e=>{e.push({name:"onlineRegistry",getActions:async()=>[{name:"切换在线仓库",description:"Toggle Online Registry",icon:"mdi-web",action:async()=>{const{togglePopup:e}=await Promise.resolve().then(n.bind(n,3895));e()}}]},{name:"aboutPageActionsProvider",getActions:async()=>u.a.map((e=>e.actionName?{name:e.name,displayName:e.displayName,icon:e.icon,description:e.actionName,action:()=>e.run()}:null)).filter((e=>null!==e))})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(4311);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,6284,17)).then((e=>e.default))}})(),i18n:(()=>{const e=n(3552);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.ts$/)[1],e(t)])))}})()})},4242:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,U:()=>i});var o=n(4638);const i=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,o.getComponentSettings)(this.componentData)}}}),r=e=>Vue.extend({data:()=>({virtual:!1}),async mounted(){const{dq:t}=await Promise.resolve().then(n.bind(n,1379)),{visibleInside:o}=await Promise.resolve().then(n.bind(n,8643)),i=this.$el,r=t(e);r?o(i,r,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.warn("virtual container not found, virtual scroll will be disabled!")}})},6897:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(3378);const i=[{icon:"mdi-inbox-arrow-up-outline",name:"exportSettings",displayName:"导出设置",actionName:"Export Settings",run:async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,4638)),{DownloadPackage:t}=await Promise.resolve().then(n.bind(n,3434));t.single("settings.json",JSON.stringify(e,void 0,2))}},{icon:"mdi-inbox-arrow-down-outline",name:"importSettings",displayName:"导入设置",actionName:"Import Settings",run:async()=>{const{logError:e}=await Promise.resolve().then(n.bind(n,6215)),{pickFile:t}=await Promise.resolve().then(n.bind(n,3074)),{Toast:o}=await Promise.resolve().then(n.bind(n,7102)),i=await t({accept:"*.json"});if(0===i.length)return;const[r]=i;try{const e=JSON.parse(await r.text());Object.entries(e).forEach((e=>{let[t,n]=e;GM_setValue(t,n)})),o.success("导入成功, 正在刷新页面...","导入设置"),window.location.reload()}catch(t){e(t)}}}],[r]=(0,o.registerAndGetData)("settingsPanel.about.actions",i)},3895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initPopup:()=>N,togglePopup:()=>q});var o=n(1379),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"online-registry be-settings-extra-options",attrs:{fixed:"","auto-close":!1},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"online-registry-header"},[t("VIcon",{staticClass:"online-registry-header-title-icon",attrs:{icon:"mdi-web"}}),e._v(" "),t("div",{staticClass:"online-registry-header-title"},[e._v("在线仓库")]),e._v(" "),t("VIcon",{staticClass:"online-registry-header-refresh-icon",attrs:{icon:"mdi-refresh",size:22,title:"刷新"},on:{click:function(t){return e.fetchFeatures()}}}),e._v(" "),t("VIcon",{staticClass:"online-registry-header-close-icon",attrs:{icon:"mdi-close",size:24,title:"关闭"},on:{click:function(t){e.popupOpen=!1}}})],1),e._v(" "),t("div",{staticClass:"online-registry-header"},[t("div",{staticClass:"online-registry-header-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{disabled:e.loading,placeholder:"搜索功能"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-branch"},[e._v("\n 分支:\n "),t("VDropdown",{attrs:{disabled:e.loading,items:e.registryBranches},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedBranch,callback:function(t){e.selectedBranch=t},expression:"selectedBranch"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-filter"},[e._v("\n 查看:\n "),e._l(e.itemFilterOptions,(function(n){return t("RadioButton",{key:n.value,attrs:{group:"itemFilter",checked:e.itemFilter===n.value},on:{change:function(t){t&&(e.itemFilter=n.value)}}},[e._v("\n "+e._s(n.label)+"\n ")])}))],2)]),e._v(" "),t("div",{staticClass:"online-registry-separator"}),e._v(" "),t("div",{ref:"content",staticClass:"online-registry-content"},[e.loading?t("VLoading"):e._e(),e._v(" "),e.loading||e.list.length?e._e():t("VEmpty"),e._v(" "),e._l(e.filteredList,(function(n){return t("RegistryItem",{key:n.name,ref:"items",refInFor:!0,attrs:{item:n,branch:e.selectedBranch,"item-filter":e.itemFilter},on:{refresh:e.checkInstalled}})}))],2)])};i._withStripped=!0;var r=n(7942),a=n(2072),c=n(8703),s=n(5721),l=n(4638),d=n(6215),m=n(9859),f=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MiniToast",{staticClass:"online-registry-item-wrapper",class:{virtual:e.virtual,hidden:e.hidden},attrs:{placement:e.placement,container:"body",delay:[200,0],offset:[0,12]},scopedSlots:e._u([{key:"toast",fn:function(){return[e.item.description?t("ComponentDescription",{attrs:{"component-data":e.item}}):e._e()]},proxy:!0}])},[e.virtual?e._e():t("div",{staticClass:"online-registry-item"},[t("VIcon",{staticClass:"item-icon",attrs:{size:18,icon:e.icon}}),e._v(" "),t("div",{staticClass:"item-badge"},[e._v("\n "+e._s(e.badge)+"\n ")]),e._v(" "),t("div",{staticClass:"item-display-name"},[e._v("\n "+e._s(e.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"item-action"},[e.installed?t("VButton",{staticClass:"reinstall-button",attrs:{title:"重新安装",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[e._v("\n "+e._s(e.installing?"正在安装":"已安装")+"\n ")]):t("VButton",{staticClass:"install-button",attrs:{title:"安装",type:"primary",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:15}}),e._v("\n "+e._s(e.installing?"正在安装":"安装")+"\n ")],1)],1)],1)])};f._withStripped=!0;var u=n(7194),p=n(8643),b=n(7195),h=n(7499);let g=function(e){return e.All="all",e.Installed="installed",e.NotInstalled="notInstalled",e}({});const F=(e,t)=>`${(0,c.cdnRoots[(0,l.getGeneralSettings)().cdnRoot])(t,e.owner)}${e.fullAbsolutePath}`,v=e=>{const t=`user${lodash.startCase(e.type)}s`;return e.name in l.settings[t]},w={component:{icon:"mdi-cube-scan",badge:"组件",getUrl:F,isInstalled:v},plugin:{icon:"mdi-puzzle-outline",badge:"插件",getUrl:F,isInstalled:v},style:{icon:"mdi-tune",badge:"样式",getUrl:F,isInstalled:v},pack:{icon:"mdi-package-variant-closed",badge:"合集包",getUrl:(e,t)=>e.items.map((e=>F(e,t))).join("\n"),isInstalled:e=>e.items.every(v)}},y=Vue.extend({components:{VIcon:m.VIcon,VButton:m.VButton,MiniToast:m.MiniToast,ComponentDescription:b.Z},props:{item:{type:Object,required:!0},branch:{type:String,required:!0},itemFilter:{type:String,default:g.All}},data(){const{icon:e,badge:t,getUrl:n,isInstalled:o}=w[this.item.type];return{icon:e,badge:t,getUrl:e=>n(e,this.branch),isInstalled:o,installing:!1,installed:!1,virtual:!1,placement:"right"}},computed:{hidden(){switch(this.itemFilter){case g.All:default:return!1;case g.Installed:return!this.installed;case g.NotInstalled:return this.installed}}},created(){this.checkInstalled(),(0,l.addComponentListener)("settingsPanel.dockSide",(e=>{this.placement=e===h.l.Left?"right":"left"}),!0)},mounted(){const e=this.$el;(0,p.visibleInside)(e,e.parentElement,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))}))},methods:{checkInstalled(){this.installed=this.isInstalled(this.item)},async install(e){const t=e.split("\n").map((e=>e.trim())).filter((e=>""!==e));try{this.installing=!0,await Promise.all(t.map((async e=>(0,u.installFeature)(e)))),this.checkInstalled(),"pack"===this.item.type&&this.$emit("refresh")}catch(e){(0,d.logError)(e)}finally{this.installing=!1}}}});var x=n(8332),k=n.n(x),C=n(1901),A=n.n(C),E={insert:"head",singleton:!1};k()(A(),E);A().locals;var B=n(6499);const D=(0,B.Z)(y,f,[],!1,null,null,null).exports;var z=n(3378);const[I]=(0,z.registerAndGetData)("settingsPanel.registryBranches",["master","preview"]),S=(0,l.getGeneralSettings)();function M(e){if(!e)return void(this.filteredList=this.list);const t=this.fuse.search(e);this.filteredList=t.map((e=>e.item)),this.$nextTick().then((()=>this.$refs.content.scrollTo(0,0)))}const P=[{label:"全部",value:g.All},{label:"已安装",value:g.Installed},{label:"未安装",value:g.NotInstalled}],O=Vue.extend({components:{VIcon:m.VIcon,VDropdown:m.VDropdown,TextBox:m.TextBox,VPopup:m.VPopup,RegistryItem:D,VLoading:m.VLoading,VEmpty:m.VEmpty,RadioButton:m.RadioButton},props:{open:{default:!1,type:Boolean}},data(){const e=[S.registryBranch,s.meta.compilationInfo.branch,I[0]].filter((e=>I.includes(e)&&Boolean(e)));return{searchKeyword:"",popupOpen:!1,loading:!1,list:[],itemFilter:g.All,itemFilterOptions:P,filteredList:[],fuse:null,registryBranches:I,selectedBranch:e[0]}},watch:{searchKeyword:lodash.debounce(M,200),selectedBranch(e){S.registryBranch=e,this.fetchFeatures()}},mounted(){this.fetchFeatures()},methods:{async fetchFeatures(){if(this.loading)return;const e=c.cdnRoots[S.cdnRoot](this.selectedBranch);try{this.loading=!0,this.list=[],this.filteredList=[];const t=`${e}doc/features/features.json`,n=`${e}doc/features/pack/pack.json`,o=await(0,a.monkey)({url:t,responseType:"json"}),i=await(0,a.monkey)({url:n,responseType:"json"});if(!Array.isArray(o)||!Array.isArray(i))throw console.error("Fetch failed:",o,i,t,n),new Error("获取在线仓库数据失败, 请尝试在通用设置中设置其他更新源, 然后再试一次.");this.list=[...i,...o],this.fuse=new r.Z(this.list,{keys:["displayName","name","description"]}),M.call(this,this.searchKeyword)}catch(e){(0,d.logError)(e)}finally{this.loading=!1}},checkInstalled(){this.$refs.items?.forEach((e=>e.checkInstalled()))}}});var V=n(4641),T=n.n(V),L={insert:"head",singleton:!1};k()(T(),L);T().locals;const j=(0,B.Z)(O,i,[],!1,null,null,null).exports;let R;const N=()=>{R||(R=(0,o.mountVueComponent)(j),document.body.append(R.$el))},q=()=>{R||N(),R.popupOpen=!R.popupOpen}},3062:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o={video:{name:"video",displayName:"视频",color:"#2196F3",icon:"mdi-play-circle-outline",order:1},style:{name:"style",displayName:"样式",color:"#8BC34A",icon:"mdi-palette-outline",order:2},feeds:{name:"feeds",displayName:"动态",color:"#00ACC1",icon:"mdi-pinwheel-outline",order:3},live:{name:"live",displayName:"直播",color:"#26A69A",icon:"mdi-video-wireless-outline",order:4},utils:{name:"utils",displayName:"工具",color:"#A36FFD",icon:"mdi-rocket-launch-outline",order:5},touch:{name:"touch",displayName:"触摸",color:"#78909C",icon:"mdi-gesture-tap-button",order:6},experimental:{name:"experimental",displayName:"实验",color:"#FF5722",icon:"mdi-flask-outline",order:7},general:{name:"general",displayName:"通用",color:"#888",icon:"mdi-progress-wrench",order:8}}},106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bisectComponent:()=>d,installComponent:()=>c,toggleComponent:()=>l,uninstallComponent:()=>s});var o=n(4638),i=n(6609),r=n(5900),a=n(453);const c=async e=>{const{components:t}=await Promise.resolve().then(n.bind(n,5900)),{loadFeatureCode:a}=await Promise.resolve().then(n.bind(n,7722));let c;try{c=a(e)}catch(e){throw new Error("无效的组件代码",{cause:e})}const{settings:s}=await Promise.resolve().then(n.bind(n,4638));if((0,i.isBuiltInComponent)(c.name))throw new Error(`不能覆盖内置组件'${c.name}', 请更换名称`);const l={...lodash.omit(c,"entry","widget","instantStyles","reload","unload","plugin","urlInclude","urlExclude")},d=s.userComponents[c.name];if(d){d.code=e,d.metadata=l;const t=(0,o.componentToSettings)(c);return lodash.defaultsDeep(d.settings.options,lodash.pickBy(t.options,(e=>!Array.isArray(e)))),{metadata:c,message:`已更新组件'${c.displayName}', 刷新后生效`}}return s.userComponents[c.name]={code:e,metadata:l,settings:(0,o.componentToSettings)(c)},t.push(c),r.componentsMap[c.name]=c,{metadata:c,message:`已安装组件'${c.displayName}', 刷新后生效`}},s=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),{components:o}=await Promise.resolve().then(n.bind(n,5900)),i=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[a,{metadata:c,settings:s}]=i,l=o.findIndex((e=>e.name===a));if(-1!==l){const{instantStyles:e}=o[l];if(e){const{removeStyle:t}=await Promise.resolve().then(n.bind(n,4738));e.forEach((e=>t(e.name)))}s.enabled=!1,o.splice(l,1),delete r.componentsMap[a]}return delete t.userComponents[a],{metadata:c,message:`已卸载组件'${c.displayName}, 刷新后生效'`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),o=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!o)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[,i]=o;i.settings.enabled=!i.settings.enabled;const{enabled:r}=i.settings,{displayName:a}=i.metadata;return`已${r?"开启":"关闭"}组件'${a}', 可能需要刷新后才能生效`},d=async e=>(e&&a.setOptions(e),a)},8129:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{updateCategories:()=>updateCategories,updateIcons:()=>updateIcons});var _core_ajax__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2072),_core_download__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3434);const updateCategories=async()=>{const[script]=dqa("script").filter((e=>e.src.includes("stardust-video")));if(!script)throw new Error("no script found");const scriptText=await(0,_core_ajax__WEBPACK_IMPORTED_MODULE_0__.getText)(script.src),match=scriptText.match(/([\w]+?=\[\{name:"首页".+?\}.+?\]),[\w]+?=\[\{name:"首頁"/);if(!match)throw new Error("no match in script");const variables=match[1].match(/(\w+?)(?==\[)/g),data=eval(`var ${match[1]}; [${variables.join(",")}]`);_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("raw.json",data)},updateIcons=()=>{const e=dqa(".bili-header-channel-panel svg");if(0===e.length)throw new Error("svg icons not found");const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("style","position: absolute; width: 0px; height: 0px; overflow: hidden;"),t.id="be-category-icons",e.forEach((e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","symbol");n.innerHTML=e.innerHTML,n.id=e.id.replace(/^channel-icon-/,"header-icon-")||`header-icon-${e.parentElement?.href.match(/\/v\/(.+)$/)?.[1]}`,"header-icon-teleplay"===n.id&&(n.id="header-icon-tv"),n.id||console.warn("cannot find id for",e),n.setAttribute("viewBox",e.getAttribute("viewBox")),t.appendChild(n)})),_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("icons.svg",t.outerHTML)}},4912:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PlayerMode:()=>a,createPlayerModeChangeEvent:()=>c,playerPolyfill:()=>p});var o=n(8643),i=n(7913),r=n(1379);let a=function(e){return e.Normal="normal",e.WideScreen="wide",e.WebFullscreen="web",e.Fullscreen="full",e}({});const c=e=>new CustomEvent("playerModeChange",{detail:{mode:e,bubbles:!0,cancelable:!0}}),s=lodash.once((async()=>{(async()=>{await(0,r.playerReady)();const e=await(0,i.select)(".bpx-player-container");if(!e)return void console.warn("[bpx player polyfill] bpxContainer not found");let t=a.Normal;(0,o.attributes)(e,(()=>{const n=e.getAttribute("data-screen"),o="player-mode-",i=[a.Normal,a.WideScreen,a.WebFullscreen,a.Fullscreen].map((e=>`${o}${e}`));document.body.classList.remove(...i),n!==a.Normal&&document.body.classList.add(`${o}${n}`),n!==t&&(window.dispatchEvent(c(n)),t=n)}))})(),(async()=>{const e=await(0,i.select)(".bpx-player-video-perch");e&&(0,r.preventEvent)(e,"dblclick")})()}));var l=n(2513);const d=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getVideoMessage)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),r=t("v2 player polyfill");(0,o.allMutations)((()=>{const t=e.getVideoMessage();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),m=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getUserParams)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),r=t("v3 player polyfill");(0,o.allMutations)((()=>{const{input:t}=e.getUserParams();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),f=e=>{if(""===e)return!1;const t=parseInt(e);return!!Number.isNaN(t)||t>0},u=lodash.once((()=>{unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getManifest)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),a=t("v4 player polyfill");(0,o.allMutations)((()=>{const t=e.getManifest();if(!t)return void a.warn("invalid getManifest data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid??""};(l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))?f(n.aid)&&f(n.cid):Object.values(n).every((e=>f(e))))||a.warn("invalid manifest data",n),Object.assign(unsafeWindow,n)}))})()})),p=lodash.once((()=>Promise.allSettled([s(),d(),m(),u()])))},6460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{playerAgent:()=>h});var o=n(2513),i=n(7913),r=n(1379);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)} +NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)t(o),o=n.nextNode()}static translate(e){if(e.nodeType===Node.TEXT_NODE)return void u.textNode.translate(e);const t=e=>{for(const t of u.sensitiveTranslators)t.accepts(e)&&t.translate(e)};t(e),u.walk(e,t)}static translateCssMatches(){const e=u.map.get("*");if(e)for(const{selector:t,text:n}of e){const e=document.querySelector(t);e&&[...e.childNodes].filter((e=>e.nodeType===Node.TEXT_NODE)).forEach((e=>e.nodeValue=n))}}}f(u,"textNode",void 0),f(u,"title",void 0),f(u,"placeholder",void 0),f(u,"sensitiveTranslators",void 0),f(u,"map",void 0),f(u,"regex",void 0);u.textNode=new class extends u{constructor(){super(...arguments),f(this,"accepts",(e=>e.nodeType===Node.TEXT_NODE)),f(this,"getElement",(e=>e.parentElement))}},u.title=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("title"))),f(this,"setValue",((e,t)=>{e.setAttribute("title",t)}))}},u.placeholder=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("placeholder"))),f(this,"setValue",((e,t)=>{e.setAttribute("placeholder",t)}))}},u.sensitiveTranslators=[u.textNode,u.title,u.placeholder];const p=(0,r.defineComponentMetadata)({name:"i18n",displayName:"多语言",configurable:!1,entry:async()=>{const{getSelectedLanguage:e}=await Promise.resolve().then(n.bind(n,5282)),t=e();if(t===l.defaultLanguageCode)return;const{registerAndGetData:o}=await Promise.resolve().then(n.bind(n,3378)),[i,r]=o(`i18n.${t}`,new Map,[]);console.log(t,i.size,r.length),0===i.size&&0===r.length||(document.documentElement.setAttribute("lang",t),u.map=i,u.regex=r,u.translate(document.body),u.translateCssMatches(),(0,m.allMutations)((e=>{e.forEach((e=>{"childList"===e.type?(e.addedNodes.length>0&&u.translateCssMatches(),e.addedNodes.forEach((e=>{u.translate(e)}))):"characterData"===e.type?u.textNode.translate(e.target):"attributes"===e.type&&("title"===e.attributeName?u.title.translate(e.target):"placeholder"===e.attributeName&&u.placeholder.translate(e.target))}))})))},tags:[a.t.utils,a.t.experimental,a.t.general],description:{"zh-CN":"安装其他语言包可以更换界面语言, 机器翻译选择可以设定其他一些功能如`动态翻译`, `评论翻译`使用的翻译器. 机器翻译的选择不影响界面语言."},options:{language:{defaultValue:l.languageCodeToName[l.defaultLanguageCode],displayName:"界面语言选择",dropdownEnum:l.languageCodeToName},translator:{defaultValue:Object.keys(d.WK)[0],displayName:"机器翻译选择",dropdownEnum:d.U6}},hidden:!0,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});var b=n(5721),h=n(4638),g=n(637),F=n(7219),v=n(6290);const{checkComponentsUpdate:w,checkLastFeature:y,forceCheckUpdate:x,forceCheckUpdateAndReload:k,silentCheckUpdate:C}=v,A=(0,r.defineOptionsMetadata)({lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},lastInstalledVersion:{displayName:"最后安装版本",defaultValue:"2.0.0",hidden:!0},localPortOverride:{displayName:"本地组件链接端口",defaultValue:"",hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5},urls:{displayName:"更新链接",defaultValue:{components:{},plugins:{},styles:{}},hidden:!0},maxUpdateCount:{displayName:"单次最大更新量 (个)",defaultValue:4}}),E=(0,r.defineComponentMetadata)({name:F.u2,displayName:"自动更新器",description:{"zh-CN":"自动检查组件, 插件和样式的更新. (仅限从设置面板中安装的)"},tags:[a.t.utils],options:A,extraOptions:()=>Promise.resolve().then(n.bind(n,5865)).then((e=>e.default)),entry:async e=>{let{settings:{options:t}}=e;if((0,i.isIframe)())return v;const n=Number(new Date)-t.lastUpdateCheck>=t.minimumDuration,o=new g.Version(b.meta.version).greaterThan(new g.Version(t.lastInstalledVersion));return n?coreApis.lifeCycle.fullyLoaded((()=>C())):o&&coreApis.lifeCycle.fullyLoaded((()=>x())),v},plugin:{displayName:"自动更新器 - 功能扩展",description:{"zh-CN":"记录在设置面板中的功能安装/卸载数据供自动更新使用; 并在组件详情中支持手动检查该组件的更新."},setup:e=>{let{addData:t,addHook:o}=e;["components","plugins","styles"].forEach((e=>{o(`user${lodash.startCase(e)}.add`,{after:(t,n,o)=>{const{options:i}=(0,h.getComponentSettings)("autoUpdate"),r=i.urls[e][o.name];r?(r.url=n,r.lastUpdateCheck=Number(new Date),r.alwaysUpdate=(0,F.jN)(n)):i.urls[e][o.name]={url:n,lastUpdateCheck:Number(new Date),installTime:Number(new Date),alwaysUpdate:(0,F.jN)(n)}}}),o(`user${lodash.startCase(e)}.remove`,{after:t=>{const{options:n}=(0,h.getComponentSettings)("autoUpdate");n.urls[e][t.name]&&delete n.urls[e][t.name]}})})),t("settingsPanel.componentActions",(e=>{const{options:t}=(0,h.getComponentSettings)("autoUpdate");e.push((e=>{const o=t.urls.components[e.name];if(o)return{name:"checkUpdate",displayName:"检查更新",icon:(0,F.jN)(o.url)?"mdi-file-download-outline":"mdi-cloud-download-outline",visible:(0,h.isUserComponent)(e),title:o.url,action:async()=>{const{Toast:t}=await Promise.resolve().then(n.bind(n,7102)),o=t.info("检查更新中...","检查更新");o.message=await w({filterNames:[e.name],force:!0}),o.duration=3e3}}}))}));const i="mdi-cloud-sync-outline";t("launchBar.actions",(e=>{e.push({name:"updateAllFeaturesActions",getActions:async()=>[{name:"检查所有更新",description:"Check Updates",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,7102)),t=e.info("正在检查更新...","检查所有更新");await k(),t.close()},icon:i}]})})),t("settingsPanel.searchBarActions",(e=>{e.unshift({key:"updateFeatures",title:e=>{let{selectedComponents:t}=e;return t.length>0?"更新所选组件":"检查所有更新"},icon:"mdi-cloud-download-outline",run:async e=>{const t=e.selectedComponents.length>0?`确定要更新所选的 ${e.selectedComponents.length} 个组件吗?`:"确定要检查所有更新吗?";if(!window.confirm(t))return;const{Toast:o}=await Promise.resolve().then(n.bind(n,7102)),{isBuiltInComponent:i}=await Promise.resolve().then(n.bind(n,6609));if(0===e.selectedComponents.length){const e=o.info("正在检查更新...","检查所有更新");k(),await k(),e.close()}else e.selectedComponents.forEach((async e=>{let{name:t}=e;if(i(t))o.info("内置组件不能更新","检查更新",3e3);else{const e=o.info("检查更新中...","检查更新"),n=await w({filterNames:[t],force:!0});e.message=n,e.duration=3e3}}))}})})),(0,h.getGeneralSettings)().devMode&&t("launchBar.actions",(e=>{e.push({name:"updateLastFeatureActions",getActions:async()=>[{name:"检查最近更新的功能",description:"Check Last Update",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,7102)),t=e.info("正在检查更新...","检查最近更新的功能");await y(),t.close()},icon:i}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),B=async()=>{const{cdnRoots:e}=await Promise.resolve().then(n.bind(n,8703)),{meta:t}=await Promise.resolve().then(n.bind(n,5721)),{getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,4638));return`${e[o().cdnRoot](t.compilationInfo.branch)}dist/${t.originalFilename}`},D=(0,r.defineComponentMetadata)({name:"notifyNewVersion",displayName:"新版本提示",description:"定期检查脚本本体的更新, 并弹出提示.",tags:[a.t.utils],options:{lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5}},entry:async e=>{let{settings:{options:t}}=e;try{const{Version:e}=await Promise.resolve().then(n.bind(n,637)),{monkey:o}=await Promise.resolve().then(n.bind(n,2072)),{meta:i}=await Promise.resolve().then(n.bind(n,5721)),{Toast:r}=await Promise.resolve().then(n.bind(n,7102)),{isDataSaveMode:a}=await Promise.resolve().then(n.bind(n,1379));if(a())return;const c=Number(new Date);if(c-t.lastUpdateCheck${m.versionString} 已发布. 查看详情`,"检查更新");(await p.element).querySelector(".view-details").addEventListener("click",(()=>{(async e=>{const{showDialog:t}=await Promise.resolve().then(n.bind(n,8422));t({title:"更新说明",content:()=>Promise.resolve().then(n.bind(n,2829)),contentProps:{content:e,updateUrl:await B()}})})(u)}))}catch(e){console.warn("[新版本提示] 检查更新时发生错误: ",e)}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),z=(0,r.defineOptionsMetadata)({originalComponentEnableState:{defaultValue:{},hidden:!0},keepDisabledComponents:{defaultValue:[],hidden:!0},keepEnabledComponents:{defaultValue:[],hidden:!0},bisectInitialState:{defaultValue:{},hidden:!0}});var I=n(1834),S=n(6215);const M=(0,r.defineComponentMetadata)({name:"bisector",displayName:"组件二等分",tags:[a.t.general,a.t.utils],hidden:!0,configurable:!1,entry:async e=>{let{settings:{options:t}}=e;const o=await Promise.resolve().then(n.bind(n,453));o.setOptions(t),o.setConsole((0,S.useScopedConsole)("组件二等分")),unsafeWindow.addEventListener(I.LifeCycleEventTypes.ComponentsLoaded,(()=>{o.isRecover()&&o.recover()}))},options:z,plugin:{displayName:"组件二等分 - 功能扩展",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"bisector-start",getActions:async()=>[{name:"开始 / 继续组件二等分",description:"Start/Continue component bisection",icon:"mdi-view-split-horizontal",action:async()=>{const e=await Promise.resolve().then(n.bind(n,453));await e.start()}}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),P=(0,r.defineComponentMetadata)({name:"compatibilities",displayName:"兼容性选项",configurable:!1,tags:[a.t.general],options:{disableOnBalh:{defaultValue:!1,displayName:'与 "解除 B 站区域限制" 互斥'}},entry:i.none,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(7761);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,8232,17)).then((e=>e.default))}})()}),O=()=>[o.component,s,p,E,D,M,P],V=e=>O().some((t=>t.name===e))},5900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{components:()=>d,componentsMap:()=>l,componentsTags:()=>c.t,defineComponentMetadata:()=>s.defineComponentMetadata,defineOptionMetadata:()=>s.defineOptionMetadata,defineOptionsMetadata:()=>s.defineOptionsMetadata,importComponent:()=>b,loadAllComponents:()=>F,loadAllUserComponents:()=>g,loadComponent:()=>h});var o=n(4638),i=n(1834),r=n(2299),a=n(6609),c=n(3062),s=n(5571);const l={},d=lodash.once((()=>{const e=(0,a.getBuiltInComponents)();return e.forEach((e=>l[e.name]=e)),e}))(),m=async e=>{if(!e.i18n)return;const{addI18nData:t}=await Promise.resolve().then(n.bind(n,5282));for(const[n,o]of Object.entries(e.i18n)){const{map:e=[],regex:i=[]}="function"==typeof o?await o():o;t(n,e,i)}},f=e=>`${e.name}.widget`,u=async e=>{if(e.widget){const t={...e.widget,name:f(e)},{addData:o}=await Promise.resolve().then(n.bind(n,3378)),{WidgetsPlugin:i}=await Promise.resolve().then(n.bind(n,3030));o(i,(n=>{if(n.find((e=>e.name===t.name)))return;const{urlInclude:o,urlExclude:i}=t;e.urlInclude&&(o?o.push(...e.urlInclude):t.urlInclude=[...e.urlInclude]),e.urlExclude&&(i?i.push(...e.urlExclude):t.urlExclude=[...e.urlExclude]),n.push(t)}))}},p={},b=e=>{if(!(e in p))throw new Error(`组件'${e}'未加载, 请确认拼写无误且组件已开启.`);return p[e]},h=async e=>{const{componentLoadTrace:t}=await Promise.resolve().then(n.bind(n,6854)),{matchUrlPattern:i}=await Promise.resolve().then(n.bind(n,1379)),{coreApis:r}=await Promise.resolve().then(n.bind(n,980));await t(e);const a=async()=>{u(e);const t=await e.entry({settings:(0,o.getComponentSettings)(e),metadata:e,coreApis:r});p[e.name]=t||{}};e.reload&&e.unload&&(0,o.addComponentListener)(e.name,(async t=>{if(!1!==e.configurable&&!(e.urlExclude&&e.urlExclude.some(i)||e.urlInclude&&e.urlInclude.every(lodash.negate(i))))if(e.name in p){if(t&&e.reload&&(e.reload(),e.widget&&u(e)),!t&&e.unload&&(e.unload(),e.widget)){const{getData:t}=await Promise.resolve().then(n.bind(n,3378)),{WidgetsPlugin:o}=await Promise.resolve().then(n.bind(n,3030)),[i]=t(o);if(i){const t=f(e),n=i.findIndex((e=>e.name===t));-1!==n&&i.splice(n,1)}}}else t&&await a()})),(0,o.isComponentEnabled)(e)&&await a()},g=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,4638)),{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,6517));for(const[n,i]of Object.entries(e.userComponents)){const{code:e}=i;let r;try{r=t(e)}catch(e){console.error("从代码加载用户组件失败。代码可能有语法错误或代码执行时有抛出值。",{componentName:n,error:e});continue}o=r,d.push(o),l[o.name]=o}var o},F=async()=>{const e=(0,o.getGeneralSettings)(),{loadAllPlugins:t}=await Promise.resolve().then(n.bind(n,6598)),a=()=>t(d).then((()=>Promise.all(d.map(m)))).then((()=>Promise.all(d.map(h)))).then((async()=>{if(e.devMode){const{componentLoadTime:e,componentResolveTime:t}=await Promise.resolve().then(n.bind(n,6854)),{logStats:o}=await Promise.resolve().then(n.bind(n,4007));o("components block",e),o("components resolve",t)}}));return new Promise(((t,n)=>{e.scriptLoadingMode===r.LoadingMode.Delay?(0,i.fullyLoaded)((()=>a().then(t).catch(n))):e.scriptLoadingMode===r.LoadingMode.Race&&(0,i.contentLoaded)((()=>a().then(t).catch(n)))}))}},5571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defineComponentMetadata:()=>r,defineOptionMetadata:()=>o,defineOptionsMetadata:()=>i});const o=e=>e,i=e=>e,r=e=>e},9081:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDescriptionHTML:()=>c,getDescriptionMarkdown:()=>a,getDescriptionText:()=>s});var o=n(9896),i=n.n(o),r=n(5282);const a=async e=>{const{description:t,author:n}=e;return(n?Array.isArray(n)?`by ${n.map((e=>`[@${e.name}](${e.link})`)).join(",")}\n\n`:`by [@${n.name}](${n.link})\n\n`:"")+await(async()=>{if(!t)return"暂无描述.";const e=async e=>"string"==typeof e?e:e();if("object"==typeof t){const n=(0,r.getSelectedLanguage)();return e(t[n]??t["zh-CN"])}return e(t)})()},c=async e=>i()(await a(e)),s=async e=>{const t=await c(e),n=document.createElement("div");return n.innerHTML=t,n.innerText}},5282:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addI18nData:()=>a,getSelectedLanguage:()=>c});var o=n(3378),i=n(4638),r=n(1231);const a=(e,t,n)=>{(0,o.addData)(`i18n.${e}`,((e,o)=>{t?.forEach((t=>{let[n,o]=t;return e.set(n,o)})),n&&o.push(...n)}))},c=()=>{const e=(0,i.getComponentSettings)("i18n");return(0,r.languageNameToCode)(e.options.language)}},1434:(e,t,n)=>{"use strict";n.d(t,{Ty:()=>p,U6:()=>u,WK:()=>f});var o=n(2072),i=n(6826),r=n(4638),a=n(1231),c=n(3378),s=n(1379);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(){l(this,"name",void 0),l(this,"link",void 0),l(this,"defaultLanguage",void 0)}getTargetLanguage(){const e=(0,r.getComponentSettings)("i18n");return e.enabled?(0,a.languageNameToCode)(e.options.language):this.defaultLanguage}toString(){return this.name}}class m extends d{constructor(){super(...arguments),l(this,"name","Google"),l(this,"link","https://translate.google.com/"),l(this,"defaultLanguage","zh"),l(this,"apiUrl","https://translate.google.com/translate_a/single")}async translate(e){let t=this.getTargetLanguage();t.includes("-")&&t!==this.defaultLanguage&&(t=t.substring(0,t.indexOf("-")));try{const n=await(0,o.monkey)({url:`${this.apiUrl}?${(0,s.formData)({client:"gtx",sl:"auto",tl:t,dt:"t",q:encodeURIComponent(e)})}`,method:"GET",headers:{"User-Agent":i.UserAgent},responseType:"json"});return n[0].map((e=>e[0])).join("")}catch(e){throw console.error("Translator: Google",e),new Error("调用Google翻译失败.")}}}const[f]=(0,c.registerAndGetData)("i18n.machineTranslators",{GoogleCN:new class extends m{constructor(){super(...arguments),l(this,"name","GoogleCN"),l(this,"link","https://translate.google.cn/"),l(this,"apiUrl","https://translate.google.cn/translate_a/single")}},Google:new m}),u=Object.keys(f),p=()=>{const{options:{translator:e}}=(0,r.getComponentSettings)("i18n");return f[e]||f.GoogleCN}},6893:(e,t,n)=>{"use strict";n.d(t,{WY:()=>a,dr:()=>c});var o=n(5382);const i="search_history:search_history",r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=await o.crossOriginLocalStorage.getItem(e),n=t?JSON.parse(t):[];return n},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;console.log("add",e),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(lodash.sortBy(lodash.uniqBy([{value:e,timestamp:Number(new Date)},...await r()],(e=>e.value)),(e=>e.timestamp)).reverse().slice(0,20)))},c={name:"history",getActions:async()=>{const{search:e}=await Promise.resolve().then(n.bind(n,7498)),t={name:"清除搜索历史",icon:"mdi-trash-can-outline",description:"Clear History",explicitSelect:!0,action:async()=>{await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return o.crossOriginLocalStorage.setItem(e,"[]")}()}},a=(await r()).map((t=>({name:t.value,icon:"mdi-history",explicitSelect:!0,action:()=>{e(t.value)},deleteAction:async()=>{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n=await r(),a=n.findIndex((t=>t.value===e));console.log("delete",e,a),-1!==a&&(n.splice(a,1),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(n)))}(t.value)}})));return a.length>0&&a.push(t),a}}},9373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LaunchBarActionProviders:()=>o});const o="launchBar.actions"},7498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{search:()=>a,searchProvider:()=>c});var o=n(1379),i=n(2072),r=n(6893);const a=e=>{if(!e)return;(0,r.WY)(e);const t={keyword:e,from_source:"nav_suggest_new"};window.open(`https://search.bilibili.com/all?${(0,o.formData)(t)}`,"_blank")},c={name:"search",getActions:async e=>{const t=`https://s.search.bilibili.com/main/suggest?func=suggest&suggest_type=accurate&sub_type=tag&main_ver=v1&highlight=&userid=${(0,o.getUID)()}&bangumi_acc_num=1&special_acc_num=1&topic_acc_num=1&upuser_acc_num=3&tag_num=10&special_num=10&bangumi_num=10&upuser_num=3&term=${e}`,n=await(0,i.getJson)(t),r=[{name:e,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:`${e}`}})}),action:()=>a(e)}];if(0!==n.code)return r;const c=lodash.get(n,"result.tag");return c?(r.push(...c.map((e=>({name:e.value,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:e.name.replace(/suggest_high_light/g,"suggest-highlight")}})}),action:()=>a(e.value)})))),lodash.uniqBy(r,(e=>e.name))):r}}},1365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toggleLaunchBar:()=>b});var o=n(1379),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"global-launch-bar-container",attrs:{lazy:!1,fixed:""},on:{"!keydown":function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("LaunchBar",{ref:"launchBar",on:{close:function(t){return e.close()}}})],1)};i._withStripped=!0;var r=n(985),a=n(1788);const c=Vue.extend({components:{LaunchBar:a.Z,VPopup:r.default},data:()=>({show:!0}),watch:{show(e){e&&this.focus()}},async mounted(){await this.$nextTick(),this.focus()},methods:{focus(){const e=this.$refs.launchBar?.$refs.input;e?.focus(),e?.select()},close(){this.show=!1;const e=this.$refs.launchBar?.$refs.input;e?.blur()}}});var s=n(8332),l=n.n(s),d=n(7480),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,i,[],!1,null,null,null).exports;let p;const b=()=>{if(!p)return p=(0,o.mountVueComponent)(u),void document.body.append(p.$el);p.show=!p.show}},7499:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});let o=function(e){return e.Left="左侧",e.Right="右侧",e}({})},5564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{map:()=>o});const o=new Map([["通用设置","General"],["实验性","Experimental"],["通用","General"],["开发者模式","Dev mode"],["辅助颜色","Accent color"],["功能加载模式","Script loading mode"],["样式加载模式","Style loading mode"]])},3030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetsPlugin:()=>b,component:()=>g});var o=n(1379),i=n(2299),r=n(3793),a=n(8703),c=n(4638),s=n(1779),l=n(3062),d=n(5571),m=n(3378),f=n(9373),u=n(6897);var p=n(7499);const b="widgets",h=(0,d.defineOptionsMetadata)({themeColor:{defaultValue:"#00A0D8",displayName:"主题颜色",color:!0},scriptLoadingMode:{defaultValue:i.LoadingMode.Delay,displayName:"功能加载模式",dropdownEnum:i.LoadingMode},styleLoadingMode:{defaultValue:i.LoadingMode.Race,displayName:"样式加载模式",dropdownEnum:i.LoadingMode},textColor:{defaultValue:r.TextColor.Auto,displayName:"文本颜色",dropdownEnum:r.TextColor},cdnRoot:{defaultValue:a.CdnTypes.AltCdn,displayName:"更新源",dropdownEnum:a.CdnTypes},dockSide:{defaultValue:p.l.Left,displayName:"设置面板停靠",dropdownEnum:p.l},filenameFormat:{defaultValue:"[title][ - ep]",displayName:"文件命名格式"},batchFilenameFormat:{defaultValue:"[n - ][ep]",displayName:"批量命名格式"},downloadPackageEmitMode:{defaultValue:s.h.Packed,displayName:"文件下载模式",dropdownEnum:s.h},devMode:{defaultValue:!1,displayName:"开发者模式"}}),g=(0,d.defineComponentMetadata)({name:"settingsPanel",displayName:"通用设置",configurable:!1,entry:async e=>{let{metadata:t}=e;const{isIframe:i}=await Promise.resolve().then(n.bind(n,1379));i()||((0,c.addComponentListener)(`${t.name}.dockSide`,(e=>{document.body.classList.toggle("settings-panel-dock-right",e===p.l.Right)}),!0),requestIdleCallback((async()=>{const e=await Promise.resolve().then(n.bind(n,3448)),t=(0,o.mountVueComponent)(e);document.body.insertAdjacentElement("beforeend",t.$el)})))},options:h,tags:[l.t.general],plugin:{displayName:"设置面板 - 功能扩展",setup:()=>{(0,m.addData)(f.LaunchBarActionProviders,(e=>{e.push({name:"onlineRegistry",getActions:async()=>[{name:"切换在线仓库",description:"Toggle Online Registry",icon:"mdi-web",action:async()=>{const{togglePopup:e}=await Promise.resolve().then(n.bind(n,3895));e()}}]},{name:"aboutPageActionsProvider",getActions:async()=>u.a.map((e=>e.actionName?{name:e.name,displayName:e.displayName,icon:e.icon,description:e.actionName,action:()=>e.run()}:null)).filter((e=>null!==e))})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(4311);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,6284,17)).then((e=>e.default))}})(),i18n:(()=>{const e=n(3552);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.ts$/)[1],e(t)])))}})()})},4242:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,U:()=>i});var o=n(4638);const i=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,o.getComponentSettings)(this.componentData)}}}),r=e=>Vue.extend({data:()=>({virtual:!1}),async mounted(){const{dq:t}=await Promise.resolve().then(n.bind(n,1379)),{visibleInside:o}=await Promise.resolve().then(n.bind(n,8643)),i=this.$el,r=t(e);r?o(i,r,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.warn("virtual container not found, virtual scroll will be disabled!")}})},6897:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(3378);const i=[{icon:"mdi-inbox-arrow-up-outline",name:"exportSettings",displayName:"导出设置",actionName:"Export Settings",run:async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,4638)),{DownloadPackage:t}=await Promise.resolve().then(n.bind(n,3434));t.single("settings.json",JSON.stringify(e,void 0,2))}},{icon:"mdi-inbox-arrow-down-outline",name:"importSettings",displayName:"导入设置",actionName:"Import Settings",run:async()=>{const{logError:e}=await Promise.resolve().then(n.bind(n,6215)),{pickFile:t}=await Promise.resolve().then(n.bind(n,3074)),{Toast:o}=await Promise.resolve().then(n.bind(n,7102)),i=await t({accept:"*.json"});if(0===i.length)return;const[r]=i;try{const e=JSON.parse(await r.text());Object.entries(e).forEach((e=>{let[t,n]=e;GM_setValue(t,n)})),o.success("导入成功, 正在刷新页面...","导入设置"),window.location.reload()}catch(t){e(t)}}}],[r]=(0,o.registerAndGetData)("settingsPanel.about.actions",i)},3895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initPopup:()=>N,togglePopup:()=>q});var o=n(1379),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"online-registry be-settings-extra-options",attrs:{fixed:"","auto-close":!1},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"online-registry-header"},[t("VIcon",{staticClass:"online-registry-header-title-icon",attrs:{icon:"mdi-web"}}),e._v(" "),t("div",{staticClass:"online-registry-header-title"},[e._v("在线仓库")]),e._v(" "),t("VIcon",{staticClass:"online-registry-header-refresh-icon",attrs:{icon:"mdi-refresh",size:22,title:"刷新"},on:{click:function(t){return e.fetchFeatures()}}}),e._v(" "),t("VIcon",{staticClass:"online-registry-header-close-icon",attrs:{icon:"mdi-close",size:24,title:"关闭"},on:{click:function(t){e.popupOpen=!1}}})],1),e._v(" "),t("div",{staticClass:"online-registry-header"},[t("div",{staticClass:"online-registry-header-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{disabled:e.loading,placeholder:"搜索功能"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-branch"},[e._v("\n 分支:\n "),t("VDropdown",{attrs:{disabled:e.loading,items:e.registryBranches},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedBranch,callback:function(t){e.selectedBranch=t},expression:"selectedBranch"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-filter"},[e._v("\n 查看:\n "),e._l(e.itemFilterOptions,(function(n){return t("RadioButton",{key:n.value,attrs:{group:"itemFilter",checked:e.itemFilter===n.value},on:{change:function(t){t&&(e.itemFilter=n.value)}}},[e._v("\n "+e._s(n.label)+"\n ")])}))],2)]),e._v(" "),t("div",{staticClass:"online-registry-separator"}),e._v(" "),t("div",{ref:"content",staticClass:"online-registry-content"},[e.loading?t("VLoading"):e._e(),e._v(" "),e.loading||e.list.length?e._e():t("VEmpty"),e._v(" "),e._l(e.filteredList,(function(n){return t("RegistryItem",{key:n.name,ref:"items",refInFor:!0,attrs:{item:n,branch:e.selectedBranch,"item-filter":e.itemFilter},on:{refresh:e.checkInstalled}})}))],2)])};i._withStripped=!0;var r=n(7942),a=n(2072),c=n(8703),s=n(5721),l=n(4638),d=n(6215),m=n(9859),f=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MiniToast",{staticClass:"online-registry-item-wrapper",class:{virtual:e.virtual,hidden:e.hidden},attrs:{placement:e.placement,container:"body",delay:[200,0],offset:[0,12]},scopedSlots:e._u([{key:"toast",fn:function(){return[e.item.description?t("ComponentDescription",{attrs:{"component-data":e.item}}):e._e()]},proxy:!0}])},[e.virtual?e._e():t("div",{staticClass:"online-registry-item"},[t("VIcon",{staticClass:"item-icon",attrs:{size:18,icon:e.icon}}),e._v(" "),t("div",{staticClass:"item-badge"},[e._v("\n "+e._s(e.badge)+"\n ")]),e._v(" "),t("div",{staticClass:"item-display-name"},[e._v("\n "+e._s(e.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"item-action"},[e.installed?t("VButton",{staticClass:"reinstall-button",attrs:{title:"重新安装",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[e._v("\n "+e._s(e.installing?"正在安装":"已安装")+"\n ")]):t("VButton",{staticClass:"install-button",attrs:{title:"安装",type:"primary",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:15}}),e._v("\n "+e._s(e.installing?"正在安装":"安装")+"\n ")],1)],1)],1)])};f._withStripped=!0;var u=n(7194),p=n(8643),b=n(7195),h=n(7499);let g=function(e){return e.All="all",e.Installed="installed",e.NotInstalled="notInstalled",e}({});const F=(e,t)=>`${(0,c.cdnRoots[(0,l.getGeneralSettings)().cdnRoot])(t,e.owner)}${e.fullAbsolutePath}`,v=e=>{const t=`user${lodash.startCase(e.type)}s`;return e.name in l.settings[t]},w={component:{icon:"mdi-cube-scan",badge:"组件",getUrl:F,isInstalled:v},plugin:{icon:"mdi-puzzle-outline",badge:"插件",getUrl:F,isInstalled:v},style:{icon:"mdi-tune",badge:"样式",getUrl:F,isInstalled:v},pack:{icon:"mdi-package-variant-closed",badge:"合集包",getUrl:(e,t)=>e.items.map((e=>F(e,t))).join("\n"),isInstalled:e=>e.items.every(v)}},y=Vue.extend({components:{VIcon:m.VIcon,VButton:m.VButton,MiniToast:m.MiniToast,ComponentDescription:b.Z},props:{item:{type:Object,required:!0},branch:{type:String,required:!0},itemFilter:{type:String,default:g.All}},data(){const{icon:e,badge:t,getUrl:n,isInstalled:o}=w[this.item.type];return{icon:e,badge:t,getUrl:e=>n(e,this.branch),isInstalled:o,installing:!1,installed:!1,virtual:!1,placement:"right"}},computed:{hidden(){switch(this.itemFilter){case g.All:default:return!1;case g.Installed:return!this.installed;case g.NotInstalled:return this.installed}}},created(){this.checkInstalled(),(0,l.addComponentListener)("settingsPanel.dockSide",(e=>{this.placement=e===h.l.Left?"right":"left"}),!0)},mounted(){const e=this.$el;(0,p.visibleInside)(e,e.parentElement,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))}))},methods:{checkInstalled(){this.installed=this.isInstalled(this.item)},async install(e){const t=e.split("\n").map((e=>e.trim())).filter((e=>""!==e));try{this.installing=!0,await Promise.all(t.map((async e=>(0,u.installFeature)(e)))),this.checkInstalled(),"pack"===this.item.type&&this.$emit("refresh")}catch(e){(0,d.logError)(e)}finally{this.installing=!1}}}});var x=n(8332),k=n.n(x),C=n(1901),A=n.n(C),E={insert:"head",singleton:!1};k()(A(),E);A().locals;var B=n(6499);const D=(0,B.Z)(y,f,[],!1,null,null,null).exports;var z=n(3378);const[I]=(0,z.registerAndGetData)("settingsPanel.registryBranches",["master","preview"]),S=(0,l.getGeneralSettings)();function M(e){if(!e)return void(this.filteredList=this.list);const t=this.fuse.search(e);this.filteredList=t.map((e=>e.item)),this.$nextTick().then((()=>this.$refs.content.scrollTo(0,0)))}const P=[{label:"全部",value:g.All},{label:"已安装",value:g.Installed},{label:"未安装",value:g.NotInstalled}],O=Vue.extend({components:{VIcon:m.VIcon,VDropdown:m.VDropdown,TextBox:m.TextBox,VPopup:m.VPopup,RegistryItem:D,VLoading:m.VLoading,VEmpty:m.VEmpty,RadioButton:m.RadioButton},props:{open:{default:!1,type:Boolean}},data(){const e=[S.registryBranch,s.meta.compilationInfo.branch,I[0]].filter((e=>I.includes(e)&&Boolean(e)));return{searchKeyword:"",popupOpen:!1,loading:!1,list:[],itemFilter:g.All,itemFilterOptions:P,filteredList:[],fuse:null,registryBranches:I,selectedBranch:e[0]}},watch:{searchKeyword:lodash.debounce(M,200),selectedBranch(e){S.registryBranch=e,this.fetchFeatures()}},mounted(){this.fetchFeatures()},methods:{async fetchFeatures(){if(this.loading)return;const e=c.cdnRoots[S.cdnRoot](this.selectedBranch);try{this.loading=!0,this.list=[],this.filteredList=[];const t=`${e}doc/features/features.json`,n=`${e}doc/features/pack/pack.json`,o=await(0,a.monkey)({url:t,responseType:"json"}),i=await(0,a.monkey)({url:n,responseType:"json"});if(!Array.isArray(o)||!Array.isArray(i))throw console.error("Fetch failed:",o,i,t,n),new Error("获取在线仓库数据失败, 请尝试在通用设置中设置其他更新源, 然后再试一次.");this.list=[...i,...o],this.fuse=new r.Z(this.list,{keys:["displayName","name","description"]}),M.call(this,this.searchKeyword)}catch(e){(0,d.logError)(e)}finally{this.loading=!1}},checkInstalled(){this.$refs.items?.forEach((e=>e.checkInstalled()))}}});var V=n(4641),T=n.n(V),L={insert:"head",singleton:!1};k()(T(),L);T().locals;const j=(0,B.Z)(O,i,[],!1,null,null,null).exports;let R;const N=()=>{R||(R=(0,o.mountVueComponent)(j),document.body.append(R.$el))},q=()=>{R||N(),R.popupOpen=!R.popupOpen}},3062:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o={video:{name:"video",displayName:"视频",color:"#2196F3",icon:"mdi-play-circle-outline",order:1},style:{name:"style",displayName:"样式",color:"#8BC34A",icon:"mdi-palette-outline",order:2},feeds:{name:"feeds",displayName:"动态",color:"#00ACC1",icon:"mdi-pinwheel-outline",order:3},live:{name:"live",displayName:"直播",color:"#26A69A",icon:"mdi-video-wireless-outline",order:4},utils:{name:"utils",displayName:"工具",color:"#A36FFD",icon:"mdi-rocket-launch-outline",order:5},touch:{name:"touch",displayName:"触摸",color:"#78909C",icon:"mdi-gesture-tap-button",order:6},experimental:{name:"experimental",displayName:"实验",color:"#FF5722",icon:"mdi-flask-outline",order:7},general:{name:"general",displayName:"通用",color:"#888",icon:"mdi-progress-wrench",order:8}}},106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bisectComponent:()=>d,installComponent:()=>c,toggleComponent:()=>l,uninstallComponent:()=>s});var o=n(4638),i=n(6609),r=n(5900),a=n(453);const c=async e=>{const{components:t}=await Promise.resolve().then(n.bind(n,5900)),{loadFeatureCode:a}=await Promise.resolve().then(n.bind(n,7722));let c;try{c=a(e)}catch(e){throw new Error("无效的组件代码",{cause:e})}const{settings:s}=await Promise.resolve().then(n.bind(n,4638));if((0,i.isBuiltInComponent)(c.name))throw new Error(`不能覆盖内置组件'${c.name}', 请更换名称`);const l={...lodash.omit(c,"entry","widget","instantStyles","reload","unload","plugin","urlInclude","urlExclude")},d=s.userComponents[c.name];if(d){d.code=e,d.metadata=l;const t=(0,o.componentToSettings)(c);return lodash.defaultsDeep(d.settings.options,lodash.pickBy(t.options,(e=>!Array.isArray(e)))),{metadata:c,message:`已更新组件'${c.displayName}', 刷新后生效`}}return s.userComponents[c.name]={code:e,metadata:l,settings:(0,o.componentToSettings)(c)},t.push(c),r.componentsMap[c.name]=c,{metadata:c,message:`已安装组件'${c.displayName}', 刷新后生效`}},s=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),{components:o}=await Promise.resolve().then(n.bind(n,5900)),i=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[a,{metadata:c,settings:s}]=i,l=o.findIndex((e=>e.name===a));if(-1!==l){const{instantStyles:e}=o[l];if(e){const{removeStyle:t}=await Promise.resolve().then(n.bind(n,4738));e.forEach((e=>t(e.name)))}s.enabled=!1,o.splice(l,1),delete r.componentsMap[a]}return delete t.userComponents[a],{metadata:c,message:`已卸载组件'${c.displayName}, 刷新后生效'`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),o=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!o)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[,i]=o;i.settings.enabled=!i.settings.enabled;const{enabled:r}=i.settings,{displayName:a}=i.metadata;return`已${r?"开启":"关闭"}组件'${a}', 可能需要刷新后才能生效`},d=async e=>(e&&a.setOptions(e),a)},8129:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{updateCategories:()=>updateCategories,updateIcons:()=>updateIcons});var _core_ajax__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2072),_core_download__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3434);const updateCategories=async()=>{const[script]=dqa("script").filter((e=>e.src.includes("stardust-video")));if(!script)throw new Error("no script found");const scriptText=await(0,_core_ajax__WEBPACK_IMPORTED_MODULE_0__.getText)(script.src),match=scriptText.match(/([\w]+?=\[\{name:"首页".+?\}.+?\]),[\w]+?=\[\{name:"首頁"/);if(!match)throw new Error("no match in script");const variables=match[1].match(/(\w+?)(?==\[)/g),data=eval(`var ${match[1]}; [${variables.join(",")}]`);_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("raw.json",data)},updateIcons=()=>{const e=dqa(".bili-header-channel-panel svg");if(0===e.length)throw new Error("svg icons not found");const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("style","position: absolute; width: 0px; height: 0px; overflow: hidden;"),t.id="be-category-icons",e.forEach((e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","symbol");n.innerHTML=e.innerHTML,n.id=e.id.replace(/^channel-icon-/,"header-icon-")||`header-icon-${e.parentElement?.href.match(/\/v\/(.+)$/)?.[1]}`,"header-icon-teleplay"===n.id&&(n.id="header-icon-tv"),n.id||console.warn("cannot find id for",e),n.setAttribute("viewBox",e.getAttribute("viewBox")),t.appendChild(n)})),_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("icons.svg",t.outerHTML)}},4912:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PlayerMode:()=>a,createPlayerModeChangeEvent:()=>c,playerPolyfill:()=>p});var o=n(8643),i=n(7913),r=n(1379);let a=function(e){return e.Normal="normal",e.WideScreen="wide",e.WebFullscreen="web",e.Fullscreen="full",e}({});const c=e=>new CustomEvent("playerModeChange",{detail:{mode:e,bubbles:!0,cancelable:!0}}),s=lodash.once((async()=>{(async()=>{await(0,r.playerReady)();const e=await(0,i.select)(".bpx-player-container");if(!e)return void console.warn("[bpx player polyfill] bpxContainer not found");let t=a.Normal;(0,o.attributes)(e,(()=>{const n=e.getAttribute("data-screen"),o="player-mode-",i=[a.Normal,a.WideScreen,a.WebFullscreen,a.Fullscreen].map((e=>`${o}${e}`));document.body.classList.remove(...i),n!==a.Normal&&document.body.classList.add(`${o}${n}`),n!==t&&(window.dispatchEvent(c(n)),t=n)}))})(),(async()=>{const e=await(0,i.select)(".bpx-player-video-perch");e&&(0,r.preventEvent)(e,"dblclick")})()}));var l=n(2513);const d=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getVideoMessage)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),r=t("v2 player polyfill");(0,o.allMutations)((()=>{const t=e.getVideoMessage();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),m=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getUserParams)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),r=t("v3 player polyfill");(0,o.allMutations)((()=>{const{input:t}=e.getUserParams();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),f=e=>{if(""===e)return!1;const t=parseInt(e);return!!Number.isNaN(t)||t>0},u=lodash.once((()=>{unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getManifest)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,6215)),a=t("v4 player polyfill");(0,o.allMutations)((()=>{const t=e.getManifest();if(!t)return void a.warn("invalid getManifest data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid??""};(l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))?f(n.aid)&&f(n.cid):Object.values(n).every((e=>f(e))))||a.warn("invalid manifest data",n),Object.assign(unsafeWindow,n)}))})()})),p=lodash.once((()=>Promise.allSettled([s(),d(),m(),u()])))},6460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{playerAgent:()=>h});var o=n(2513),i=n(7913),r=n(1379);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)} /* eslint-disable class-methods-use-this */(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=e=>{const t=e=>"string"!=typeof e?lodash.mapValues(e,t):(e=>{const t=()=>(0,i.select)(e);return t.selector=e,t.sync=()=>dq(e),t})(e);return lodash.mapValues(e,t)},s=e=>{const t=e.sync();return t?.click(),t};let l=function(e){return e.Play="play",e}({});class d extends EventTarget{constructor(){super(),a(this,"isBpxPlayer",!0),a(this,"type",void 0),a(this,"query",void 0),a(this,"eventHandlerMap",new Map)}provideCustomQuery(e){const t=c(e[this.type]??e.video);return{...this,custom:t}}widescreen(){return s(this.query.control.buttons.widescreen)}webFullscreen(){return s(this.query.control.buttons.webFullscreen)}fullscreen(){return s(this.query.control.buttons.fullscreen)}togglePlay(){return s(this.query.control.buttons.start)}togglePip(){return s(this.query.control.buttons.pip)}toggleMute(){return s(this.query.control.buttons.volume)}toggleDanmaku(){const e=this.query.danmakuSwitch.sync();return e?(e.checked=!e.checked,(0,r.raiseEvent)(e,"change"),e.checked):null}async toggleLight(e){if(!this.nativeApi)return null;const t=this.nativeApi.getLightOff();return void 0===e?(this.nativeApi.setLightOff(!t),!t):e&&t?(this.nativeApi.setLightOff(!0),!0):e||t?null:(this.nativeApi.setLightOff(!1),!1)}getPlayerConfig(e,t){const n=this.isBpxPlayer?"bpx_player_profile":"bilibili_player_settings";return lodash.get(JSON.parse(localStorage.getItem(n)),e,t)}isAutoPlay(){return this.getPlayerConfig("video_status.autoplay")}get nativeApi(){return unsafeWindow.player||unsafeWindow.playerRaw}get nanoApi(){return unsafeWindow.nano}addEventListener(e,t,n){if(super.addEventListener(e,t,n),e===l.Play){const e=()=>{this.dispatchEvent(new Event(l.Play))};"object"==typeof n&&n.once?this.nativeApi.once(this.nanoApi.EventType.Player_Initialized,e):this.nativeApi.on(this.nanoApi.EventType.Player_Initialized,e),this.eventHandlerMap.set(t,{handler:e,options:n})}}removeEventListener(e,t,n){switch(super.removeEventListener(e,t,n),e){default:break;case l.Play:{const e=this.eventHandlerMap.get(t);if(!e||lodash.isEqual(n,e.options))break;this.nativeApi.off(this.nanoApi.EventType.Player_Initialized,e.handler)}}}isMute(){return this.nativeApi?this.nativeApi.isMuted?this.nativeApi.isMuted():this.nativeApi.isMute():null}changeVolume(e){if(!this.nativeApi)return null;if(this.nativeApi.getVolume){const t=this.nativeApi.getVolume();return this.nativeApi.setVolume(t+e/100),Math.round(100*this.nativeApi.getVolume())}const t=this.nativeApi.volume();return this.nativeApi.volume(t+e/100),Math.round(100*this.nativeApi.volume())}seek(e){return this.nativeApi?(this.nativeApi.seek(e),this.nativeApi.getCurrentTime()):null}changeTime(e){if(!this.nativeApi)return null;const t=this.query.video.element.sync();return t?(this.nativeApi.seek(t.currentTime+e,t.paused),this.nativeApi.getCurrentTime()):null}} // spell-checker: disable const m={playerArea:".bpx-player-primary-area",video:{element:".bpx-player-video-wrap video",wrap:".bpx-player-video-area",top:".bpx-player-top-wrap",state:".bpx-player-state-wrap",panel:".bpx-player-ending-panel",popup:".bpx-player-dialog-wrap",subtitle:".bpx-player-subtitle-wrap",basDanmaku:".bpx-player-bas-dm-wrap",advDanmaku:".bpx-player-adv-dm-wrap",danmaku:".bpx-player-row-dm-wrap",container:".bpx-player-video-perch"},control:{element:".bpx-player-control-entity",wrap:".bpx-player-control-wrap",mask:".bpx-player-control-mask",top:".bpx-player-control-top",progress:".bpx-player-progress",bottom:".bpx-player-control-bottom",bottomLeft:".bpx-player-control-bottom-left",bottomCenter:".bpx-player-control-bottom-center",bottomRight:".bpx-player-control-bottom-right",buttons:{start:".bpx-player-ctrl-play",next:".bpx-player-ctrl-btn-next",time:".bpx-player-ctrl-time",quality:".bpx-player-ctrl-quality",pageList:".bpx-player-ctrl-eplist",speed:".bpx-player-ctrl-playbackrate",subtitle:".bpx-player-ctrl-subtitle > div > span",volume:".bpx-player-ctrl-volume-icon",settings:".bpx-player-ctrl-setting",pip:".bpx-player-ctrl-pip",widescreen:".bpx-player-ctrl-wide",webFullscreen:".bpx-player-ctrl-web",fullscreen:".bpx-player-ctrl-full"},settings:{wrap:".bpx-player-ctrl-setting-box",lightOff:".bpx-player-ctrl-setting-lightoff .bui-checkbox-input"}},toastWrap:".bpx-player-dialog-wrap",danmakuTipLayer:".bpx-player-dm-tip",danmakuSwitch:".bpx-player-dm-switch input"}; @@ -110,7 +110,7 @@ unsafeWindow.__ENABLE_WASM_PLAYER__||Boolean(r("#bilibili-player bwp-video")))}, // eslint-disable-next-line class-methods-use-this constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler=e,this.preventSingle=t,o(this,"elements",[]),o(this,"singleClickHandler",m),o(this,"clickedOnce",!1),o(this,"stopPropagationHandler",(e=>{e.stopImmediatePropagation()})),o(this,"doubleClickHandler",(e=>{this.clickedOnce?(this.clickedOnce=!1,Promise.resolve().then((()=>{this.handler?.(e)}))):(this.clickedOnce=!0,setTimeout((()=>{this.clickedOnce&&(this.clickedOnce=!1,this.preventSingle&&this.singleClickHandler?.(e))}),200)),this.preventSingle&&e.stopImmediatePropagation()}))}bind(e){-1===this.elements.indexOf(e)&&(this.elements.push(e),e.addEventListener("click",this.doubleClickHandler,{capture:!0}),e.addEventListener("dblclick",this.stopPropagationHandler,{capture:!0}))}unbind(e){const t=this.elements.indexOf(e);-1!==t&&(this.elements.splice(t,1),e.removeEventListener("click",this.doubleClickHandler,{capture:!0}),e.removeEventListener("dblclick",this.stopPropagationHandler,{capture:!0}))}}const P=async()=>{const{sq:e}=await Promise.resolve().then(n.bind(n,7913)),{logError:t}=await Promise.resolve().then(n.bind(n,6215));return await e((()=>unsafeWindow),(()=>void 0!==unsafeWindow.UserStatus)),new Promise(((e,n)=>{"https://www.bilibili.com/blackboard/newplayer.html"===document.URL.replace(window.location.search,"")&&document.URL.includes("fjw=true")||g()||(unsafeWindow.onLoginInfoLoaded?unsafeWindow.onLoginInfoLoaded(e):(t(new Error("utils.playerReady 失败")),console.error("typeof onLoginInfoLoaded === "+typeof unsafeWindow.onLoginInfoLoaded),n()))}))},O=()=>{const{activeElement:e}=document;return!!e&&(!!e.hasAttribute("contenteditable")||["input","textarea"].includes(e.nodeName.toLowerCase()))},V=e=>{if(!(e instanceof HTMLElement))return null;const t=(()=>{if(e.hasAttribute("data-src"))return e.getAttribute("data-src");if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLPictureElement&&r(e,"img")){return r(e,"img").src}if(r(e,"picture img")){return r(e,"picture img").src}const{backgroundImage:t}=e.style;if(!t)return null;const n=t.match(/url\("(.+)"\)/);return n?n[1]:null})(),n=t.match(/^(.+)(\..+?)(@.+)$/);if(n)return{url:n[1]+n[2],extension:n[2]};const o=t.match(/^(.+)(\..+?)$/);return o?{url:o[1]+o[2],extension:o[2]}:null},T=e=>{const t=()=>"visible"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",t),!0);t()||document.addEventListener("visibilitychange",t)},L=async e=>{ // eslint-disable-next-line prefer-arrow-callback -const t=E(unsafeWindow,"scrollTo",(function(){return!1}));return e?(await e(),t(),m):t},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return(n,o)=>lodash.isNumber(Number(n))?lodash.clamp(n,e,t):o},R=e=>lodash.upperFirst(lodash.camelCase(e)),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;const t=new Uint8Array(Math.ceil(e/2));return crypto.getRandomValues(t),[...t].map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,e)},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n{throw new Error("unreachable")},U=()=>navigator.connection?.saveData??!1,H=(e,t)=>{const n=new MouseEvent("mousedown",t),o=new MouseEvent("mouseup",t),i=new PointerEvent("pointerdown",t),r=new PointerEvent("pointerup",t),a=new MouseEvent("click",t);e.dispatchEvent(i),e.dispatchEvent(n),e.dispatchEvent(r),e.dispatchEvent(o),e.dispatchEvent(a)}},6215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScopedConsoleCallHook:()=>m,ScopedConsoleCreateHook:()=>d,logError:()=>a,randomScopedConsole:()=>u,useScopedConsole:()=>f});var o=n(8047),i=n(1379),r=n(4638);const a=async(e,t)=>{let o;"string"==typeof e?(o=e,console.error(o)):(o=(0,r.getGeneralSettings)().devMode?e.stack:e.message,console.error(e));const{Toast:i}=await Promise.resolve().then(n.bind(n,7102));i.error(o,"错误",t)},c=Symbol("ScopedConsole"),s=Symbol("NamePatch"),l={default:"#78909C",warn:"#CC7A00",error:"#BF6060",group:"#9575CD"},d="scopedConsole.create",m="scopedConsole.call",f=e=>{const{before:t,after:n}=(0,o.getHook)(d),{name:i,color:a=l.default,console:f=window.console}="string"==typeof e?{name:e}:e,u={name:i,color:a,console:f};t(e,f);let p=0;const b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.color;const i=e[c],r=(i?t.color:n)??l.default,a="#fff",d=i?["%c "]:["%c"],f={badgeNames:[...i?.badgeNames??[],...d,`%c${t.name}`],badgeValues:[...i?.badgeValues??[],"",`background-color: ${r}; color: ${a}; padding: 2px 4px; border-radius: 4px;`],original:i?.original??e},u=f.original,b=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:t.color,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;const i=b(e,t,n),r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{g[e][s]||(g[e][s]=e)}));const F={...unsafeWindow.console,...f};return F.log=b(f.log,u),F.info=b(f.info,u),F.warn=b(f.warn,u,l.warn),F.error=b(f.error,u,l.error),F.group=h(f.group,u,l.group,(e=>e+1)),F.groupCollapsed=h(f.groupCollapsed,u,l.group,(e=>e+1)),F.groupEnd=h(f.groupEnd,u,l.group,(e=>e-1)),F.debug=(()=>{const e=b(f.debug,u);return function(){if((0,r.getGeneralSettings)().devMode){for(var t=arguments.length,n=new Array(t),o=0;of({...e,name:(0,i.getRandomId)()})},6376:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ascendingBigIntSort:()=>a,ascendingSort:()=>i,ascendingStringSort:()=>r,descendingBigIntSort:()=>l,descendingSort:()=>c,descendingStringSort:()=>s});const o=e=>e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t)-e(n)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t).localeCompare(e(n))},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>{const o=BigInt(e(t)),i=BigInt(e(n));return o===i?0:o>i?1:-1}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n)-e(t)},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n).localeCompare(e(t))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>-a(e)(t,n)}},2197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formatTitle:()=>s,getFriendlyTitle:()=>l});var o=n(1379),i=n(4638),r=n(3540),a=n(6376);const c=e=>{let t=0,n=0;const o=[];return e.split("").forEach(((i,r)=>{"["===i&&(0===n?(o.push(e.substring(t,r)),t=r):n++),"]"===i&&(0===n?(o.push(e.substring(t,r+1)),t=r+1):n--)})),t""!==e))},s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new Date,s=()=>document.title.replace(/第[0-9]*[零一二三四五六七八九十百千]*[集话]-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/:([^:]+?)_.+?_bilibili_哔哩哔哩$/,"").replace(/_哔哩哔哩_bilibili$/,"").replace(/ - 哔哩哔哩$/,"").replace(/_哔哩哔哩 \(゜-゜\)つロ 干杯~-bilibili$/,"").replace(/(.*?) - (.*?) - 哔哩哔哩直播,二次元弹幕直播平台$/,"$1").trim(),l={title:(()=>{const e=(0,o.dq)(".video-info-container .video-title");if(null!==e)return e.getAttribute("title");const t=(0,o.dq)('[class*="mediainfo_mediaTitle"]');if(null!==t)return t.getAttribute("title");const n=(0,o.dq)(".header-info-ctnr .live-title .text");return null!==n?n.getAttribute("title"):s()})(),ep:(()=>{if(!t)return;const e=(0,o.dq)("#eplist_module li.cursor .ep-title");if(null!==e)return e.innerText;const n=(0,o.dq)("#multi_page .cur-list>ul li.on a, .video-episode-card__info-playing .video-episode-card__info-title");if(null!==n)return n.getAttribute("title");const i=(0,o.dq)(".multip-list-item.multip-list-item-active");return null!==i?i.getAttribute("title"):void 0})(),aid:unsafeWindow.aid,bvid:unsafeWindow.bvid,cid:unsafeWindow.cid,lid:document.URL.replace(/https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/,"$2"),y:i.getFullYear().toString(),M:(i.getMonth()+1).toString().padStart(2,"0"),d:i.getDate().toString().padStart(2,"0"),h:i.getHours().toString().padStart(2,"0"),m:i.getMinutes().toString().padStart(2,"0"),s:i.getSeconds().toString().padStart(2,"0"),ms:i.getMilliseconds().toString().substring(0,3)},d={...l,...n},m=c(e),f=Object.entries(d).sort((0,a.descendingSort)((e=>{let[t]=e;return t.length}))),u=m.map((e=>{if(!e.startsWith("[")||!e.endsWith("]"))return e;for(const[t,n]of f){const o=new RegExp(`^\\[([^\\[\\]]*?)${t}([^\\[\\]]*?)\\]$`),i=e.match(o);if(i&&Boolean(n))return`${i[1]??""}${n}${i[2]??""}`}return""})),p=u.join("");return(0,r.formatFilename)(p," ")},l=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s((0,i.getGeneralSettings)().filenameFormat,e,t)}},2513:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allVideoUrls:()=>u,bangumiUrls:()=>d,cheeseUrls:()=>m,columnUrls:()=>F,favoriteListUrls:()=>r,feedsUrls:()=>g,feedsUrlsWithoutDetail:()=>h,festivalUrls:()=>s,liveUrls:()=>b,mainSiteUrls:()=>p,matchCurrentPage:()=>w,mediaListUrls:()=>c,playerUrls:()=>v,upListUrls:()=>a,videoAndBangumiUrls:()=>f,videoUrls:()=>l,watchlaterUrls:()=>i});var o=n(1379);const i=["//www.bilibili.com/medialist/play/watchlater","//www.bilibili.com/list/watchlater"],r=["//www.bilibili.com/medialist/play/ml","//www.bilibili.com/list/ml"],a=[/\/\/www\.bilibili\.com\/medialist\/play\/\d+/,/\/\/www\.bilibili\.com\/list\/\d+/],c=[...i,...r,...a,/\/\/www\.bilibili\.com\/list\//],s=[/\/\/www\.bilibili\.com\/festival\//],l=["//www.bilibili.com/video/",...s,...c],d=["//www.bilibili.com/bangumi/play/"],m=["//www.bilibili.com/cheese/"],f=[...l,...d],u=[...f,...m],p=["https://www.bilibili.com/v/",/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/([^\/]+)\.html$/,/^https:\/\/www\.bilibili\.com\/watchlater\/#\/list$/,"https://www.bilibili.com/account/"],b=[/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],h=[/^https:\/\/t\.bilibili\.com\/$/,/^https:\/\/space\.bilibili\.com\//,/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],g=[...h,/^https:\/\/t\.bilibili\.com\//,/^https:\/\/www\.bilibili\.com\/opus\/[\d]+$/],F=[/^https:\/\/www\.bilibili\.com\/read\/cv/],v=["//player.bilibili.com","//www.bilibili.com/html/player.html",...l,...d,...m],w=function(){for(var e=arguments.length,t=new Array(e),n=0;nArray.isArray(e)?e.some((e=>(0,o.matchUrlPattern)(e))):(0,o.matchUrlPattern)(e)))}},637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CompareResult:()=>a,Version:()=>c,isFeatureAcceptable:()=>s});var o=n(7722),i=n(5721);function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a=function(e){return e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e[e.Incomparable=NaN]="Incomparable",e}({});class c{constructor(e){if(this.versionString=e,r(this,"parts",void 0),!/^[\d\.]+$/.test(e))throw new Error("Invalid version string");this.parts=e.split(".").map((e=>parseInt(e)))}compareTo(e){for(let t=0;te.parts[t]?a.Greater:a.Less}return this.parts.length!==e.parts.length?a.Less:a.Equal}greaterThan(e){return this.compareTo(e)===a.Greater}lessThan(e){return this.compareTo(e)===a.Less}equals(e){return this.compareTo(e)===a.Equal}}const s=async e=>{try{if("string"==typeof e&&(e=(0,o.loadFeatureCode)(e)),null==e)return!1;const{version:t}=i.meta.compilationInfo,{coreVersion:n}=e;if(!n||!t)return!0;const r=new c(t),a=new c(n);return r.equals(a)||r.greaterThan(a)}catch(t){return console.warn("[isFeatureAcceptable] check failed, feature =",e),!0}}},3378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addData:()=>r,getData:()=>a,registerAndGetData:()=>c,registerData:()=>i});const o=new Map,i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{if(o.has(e)){const{providers:n,loaded:i,data:r}=o.get(e);i?t(...r):n.push(t)}else o.set(e,{registered:!1,data:[],loaded:!1,providers:[t]})},a=e=>{if(o.has(e)){const t=o.get(e),{data:n,registered:i,loaded:r,providers:a}=t;if(i)return r||(a.forEach((e=>e(...n))),t.providers=[],t.loaded=!0),n}return[]},c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{"use strict";n.r(t),n.d(t,{addHook:()=>i,getHook:()=>r});const o=new Map,i=(e,t)=>{if(o.has(e)){const{providers:n}=o.get(e);n.push(t)}else o.set(e,{providers:[t]})},r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie.before?.(...n.concat(t)))))},after:async function(){for(var e=arguments.length,t=new Array(e),o=0;oe.after?.(...n.concat(t)))))}}}return{before:async()=>Promise.all([]),after:async()=>Promise.all([])}}},1403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{plugin:()=>r});const o=async(e,t,o)=>{const i={name:t,icon:"mdi-content-copy",description:`复制${e}`,indexer:o,action:async()=>{if(i.name===t){await navigator.clipboard.writeText(t);const{Toast:o}=await Promise.resolve().then(n.bind(n,7102));o.success("复制成功",`复制${e}`,1500)}}};return[i]},i=[{pattern:/^av([\d]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,2072)),i=await t(`https://api.bilibili.com/x/web-interface/view?aid=${e[1]}`),r=lodash.get(i,"data",{}),{bvid:a,title:c}=r,s=`av${e[1]}`;return{name:c||s,description:"av号跳转",indexer:s,link:`https://www.bilibili.com/av${e[1]}`,extraActions:a?await o("BV号",a,s):[]}}},{pattern:/^bv([\da-zA-Z]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,2072)),i=await t(`https://api.bilibili.com/x/web-interface/view?bvid=${e[1]}`),r=lodash.get(i,"data",{}),{aid:a,title:c}=r,s=`BV${e[1]}`;return{name:c||s,description:"BV号跳转",indexer:s,link:`https://www.bilibili.com/BV${e[1]}`,extraActions:a?await o("av号",`av${a}`,s):[]}}}],r={name:"launchBar.actions.IDSearch",displayName:"搜索栏 - 视频跳转",async setup(){const{addData:e}=await Promise.resolve().then(n.bind(n,3378)),{LaunchBarActionProviders:t}=await Promise.resolve().then(n.bind(n,9373));e(t,(e=>{e.push({name:"IDSearchProvider",getActions:async e=>{const t=[];for(const n of i){const o=e.match(n.pattern);if(o){const{name:e,description:i="",indexer:r,link:a,extraActions:c=[]}=await n.getActions(o);t.push({name:e,icon:"mdi-open-in-new",indexer:r,description:i,action:()=>{window.open(a,"_blank")},order:0},...c)}}return t}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}},6598:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractPluginFromComponent:()=>d,installPlugin:()=>s,loadAllPlugins:()=>f,loadPlugin:()=>m,plugins:()=>c,pluginsMap:()=>a,uninstallPlugin:()=>l});var o=n(1379),i=n(3378),r=n(8047);const a={},c=lodash.once((()=>{const e=n(4353);return e.keys().map((t=>{const n=e(t);if("plugin"in n){const e=n.plugin;return a[e.name]=e,e}})).filter((e=>void 0!==e))}))(),s=async e=>{const{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,7722));let o;try{o=t(e)}catch(e){throw new Error("无效的插件代码",e)}const{settings:i}=await Promise.resolve().then(n.bind(n,4638)),r=i.userPlugins[o.name];if(r)return r.code=e,r.name=o.name,r.displayName=o.displayName||o.name,{metadata:o,message:`已更新插件'${o.displayName}', 刷新后生效`};const a={code:e,displayName:o.name,...o};return i.userPlugins[o.name]=a,c.push(a),{metadata:o,message:`已安装插件'${o.displayName||o.name}', 刷新后生效`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),i=Object.entries(t.userPlugins).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的插件`);const[r,a]=i;return delete t.userPlugins[r],(0,o.deleteValue)(c,(e=>e.name===r)),{metadata:a,message:`已卸载插件'${a.displayName}', 刷新后生效`}},d=e=>e.plugin?{name:`${e.name}.plugin`,displayName:`${e.displayName} - 附带插件`,...e.plugin}:null,m=async e=>{if(e.setup){const{pluginLoadTrace:t}=await Promise.resolve().then(n.bind(n,2399));await t(e);const{coreApis:o}=await Promise.resolve().then(n.bind(n,980));return e.setup({coreApis:o,addData:i.addData,addHook:r.addHook,registerData:i.registerData,registerAndGetData:i.registerAndGetData,getHook:r.getHook})}return null},f=async e=>{const{settings:t,getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,4638)),{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,6517));for(const t of e){const e=d(t);e&&c.push(e)}for(const[e,n]of Object.entries(t.userPlugins)){const{code:t}=n;let o;try{o=i(t)}catch(t){console.error("从代码加载用户插件失败。代码可能包含语法错误或执行时产生了异常",{pluginName:e,error:t});continue}c.push(o)}return Promise.allSettled(c.map(m)).then((async()=>{if(o().devMode){const{pluginLoadTime:e,pluginResolveTime:t}=await Promise.resolve().then(n.bind(n,2399)),{logStats:o}=await Promise.resolve().then(n.bind(n,4007));o("plugins block",e),o("plugins resolve",t)}}))}},2043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserStyleMode:()=>r,installStyle:()=>c,styles:()=>a,uninstallStyle:()=>s});var o=n(4638),i=n(1379);let r=function(e){return e.Default="default",e.Instant="instant",e.Important="important",e}({});const a=Object.values(o.settings.userStyles),c=async e=>{try{let t;const{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,7722));t="string"==typeof e?i(e):e;const{name:c,style:s,displayName:l,mode:d}=t,{removeStyle:m,addImportantStyle:f,addStyle:u}=await Promise.resolve().then(n.bind(n,4738)),p=o.settings.userStyles[c];if(p)Object.assign(p,t),m(c);else{const e={displayName:c,mode:r.Default,...t};o.settings.userStyles[c]=e,a.push(e)}return d===r.Important?f(s,c):u(s,c),{metadata:t,message:`已安装样式'${l||c}'`}}catch(e){throw new Error("无效的样式代码",{cause:e})}},s=async e=>{const t=Object.entries(o.settings.userStyles).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!t)throw new Error(`没有找到与名称'${e}'相关联的样式`);const{removeStyle:r}=await Promise.resolve().then(n.bind(n,4738)),[c,{displayName:s}]=t;return r(c),delete o.settings.userStyles[c],(0,i.deleteValue)(a,(e=>e.name===c)),{metadata:t,message:`已卸载样式'${s}'`}}},9859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncButton:()=>s,CheckBox:()=>h,ColorPicker:()=>E,DefaultWidget:()=>mt,DpiImage:()=>M,ImagePicker:()=>R,ImageViewer:()=>Y,MiniToast:()=>ft.Z,ProgressBar:()=>ne,ProgressRing:()=>se,RadioButton:()=>ue,RangeInput:()=>we,ScrollTrigger:()=>Be,SwitchBox:()=>De.Z,TabControl:()=>Oe,TextArea:()=>qe,TextBox:()=>Ze.default,VButton:()=>r.default,VDropdown:()=>Xe,VEmpty:()=>ot,VIcon:()=>o.default,VLoading:()=>it.default,VPopup:()=>He.default,VSlider:()=>rt.default,showImage:()=>K});var o=n(4749),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({attrs:{disabled:e.disabled||e.internalDisabled},on:{click:e.onClick}},"VButton",e.$attrs,!1),e.listeners),[e._t("default",(function(){return[e._v("Button")]}))],2)};i._withStripped=!0;var r=n(9464);const a=Vue.extend({components:{VButton:r.default},props:{disabled:{type:Boolean,default:!1}},data:()=>({internalDisabled:!1}),computed:{listeners(){return lodash.omit(this.$listeners,"click")},onClick(){var e=this;return async function(){try{e.internalDisabled=!0;for(var t=arguments.length,n=new Array(t),o=0;oPromise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,4749)).then((e=>e.default))},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},iconPosition:{type:String,default:"left"},checkedIcon:{type:String,default:"mdi-checkbox-marked-circle"},notCheckedIcon:{type:String,default:"mdi-checkbox-blank-circle-outline"}}});var m=n(8332),f=n.n(m),u=n(2450),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,c.Z)(d,l,[],!1,null,"07bbf374",null).exports;var g=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-color-picker"},[t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.popupOpened=!e.popupOpened,expression:"() => (popupOpened = !popupOpened)"}],ref:"button",staticClass:"selected-color",style:{backgroundColor:e.color,width:e.size+"px",height:e.size+"px"},attrs:{role:"button",tabindex:"0"}}),e._v(" "),t("VPopup",{staticClass:"picker",class:{compact:e.compact},style:{"--offset":e.popupOffset+"px"},attrs:{"esc-close":"","auto-close":!1,"trigger-element":e.$refs.button},model:{value:e.popupOpened,callback:function(t){e.popupOpened=t},expression:"popupOpened"}},[t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("预设颜色")]),e._v(" "),t("div",{staticClass:"colors"},e._l(e.colors,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectHexColor(n),expression:"() => selectHexColor(c)"}],key:n,staticClass:"color",style:{backgroundColor:n},attrs:{role:"radio",tabindex:e.popupOpened?0:-1}})})),0)]),e._v(" "),t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("调色")]),e._v(" "),t("div",{staticClass:"bars"},[e.isRGB?[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("R")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.red},on:{change:function(t){return e.wrapper.change("red",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.redGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2466330035)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.red)},on:{change:function(t){return e.wrapper.change("red",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("G")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.green},on:{change:function(t){return e.wrapper.change("green",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.greenGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2962781435)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.green)},on:{change:function(t){return e.wrapper.change("green",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.blue},on:{change:function(t){return e.wrapper.change("blue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.blueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,660815582)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.blue)},on:{change:function(t){return e.wrapper.change("blue",t)}}})],1)]:[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("H")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:359.9,value:e.wrapper.hue},on:{change:function(t){return e.wrapper.change("hue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.hueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"4","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.hue)},on:{change:function(t){return e.wrapper.change("hue",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("S")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.saturation},on:{change:function(t){return e.wrapper.change("saturationv",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.saturationGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.saturation)},on:{change:function(t){return e.wrapper.change("saturationv",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.brightness},on:{change:function(t){return e.wrapper.change("value",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.brightnessGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.brightness)},on:{change:function(t){return e.wrapper.change("value",t)}}})],1)]],2)]),e._v(" "),t("div",{staticClass:"info item-group"},[t("VButton",{staticClass:"toggle-mode",attrs:{disabled:!e.popupOpened,type:"transparent",title:e.isRGB?"切换至HSB":"切换至RGB"},on:{click:function(t){e.isRGB=!e.isRGB}}},[e._v("\n "+e._s(e.isRGB?"切换至HSB":"切换至RGB")+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"color-preview",style:{backgroundColor:e.wrapper.hex}}),e._v(" "),t("TextBox",{staticClass:"hex",attrs:{disabled:!e.popupOpened,text:e.wrapper.hex,"change-on-blur":""},on:{change:function(t){return e.selectHexColor(t)}}})],1),e._v(" "),t("div",{staticClass:"operations item-group",on:{click:function(t){e.popupOpened=!e.popupOpened}}},[t("VButton",{staticClass:"cancel",attrs:{disabled:!e.popupOpened},on:{click:function(t){return e.reset()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{staticClass:"ok",attrs:{disabled:!e.popupOpened,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1)])],1)};g._withStripped=!0;var F=n(4654),v=n.n(F);const w=JSON.parse('["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#2196F3","#00A0D8","#00ACC1","#26A69A","#81C784","#9CCC65","#FF9800","#FF7043","#A1887F","#757575","#78909C"]'),y=e=>{let t=new(v())(e);const n={get color(){return t},set color(e){t=e,this.updateProps()},change(e,n){"string"==typeof n&&(n=parseFloat(n),Number.isNaN(n))||(this.color=t[e](n))},updateProps(){this.red=t.red(),this.green=t.green(),this.blue=t.blue(),this.hue=t.hue(),this.saturation=t.saturationv(),this.brightness=t.value(),this.hex=t.hex(),this.hueGradient=`linear-gradient(to right, ${t.hue(0).hex()}, ${t.hue(60).hex()}, ${t.hue(120).hex()}, ${t.hue(180).hex()}, ${t.hue(240).hex()}, ${t.hue(300).hex()}, ${t.hue(0).hex()})`,this.saturationGradient=`linear-gradient(to right, ${t.saturationv(0).hex()}, ${t.saturationv(100).hex()})`,this.brightnessGradient=`linear-gradient(to right, ${t.value(0).hex()}, ${t.value(100).hex()})`,this.redGradient=`linear-gradient(to right, ${t.red(0).hex()}, ${t.red(255).hex()})`,this.greenGradient=`linear-gradient(to right, ${t.green(0).hex()}, ${t.green(255).hex()})`,this.blueGradient=`linear-gradient(to right, ${t.blue(0).hex()}, ${t.blue(255).hex()})`}};return n.updateProps(),n},x=Vue.extend({name:"ColorPicker",components:{TextBox:()=>Promise.resolve().then(n.bind(n,3765)).then((e=>e.default)),VSlider:()=>Promise.resolve().then(n.bind(n,1366)).then((e=>e.default)),VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,985)).then((e=>e.default))},model:{prop:"color",event:"change"},props:{color:{type:String,default:"#000000",required:!0},size:{type:Number,default:24,required:!1},compact:{type:Boolean,default:!1},popupOffset:{type:Number,default:0}},data(){return{popupOpened:!1,wrapper:y(this.color),colors:w,isRGB:!1}},watch:{popupOpened(e){e&&(document.body.addEventListener("mousedown",(e=>{this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("mouseup",(()=>{this.popupOpened=!1}),{once:!0})})),document.body.addEventListener("touchstart",(e=>{1!==e.touches.length||this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("touchend",(()=>{this.popupOpened=!1}),{once:!0})})))}},methods:{ok(){this.$emit("change",this.wrapper.hex)},reset(){this.wrapper.color=new(v())(this.color)},selectHexColor(e){try{const t=new(v())(e,"hex");this.wrapper.color=t}catch(e){}},fixed:e=>(Math.round(10*e)/10).toString(),int:e=>Math.round(e).toString()}});var k=n(5395),C=n.n(k),A={insert:"head",singleton:!1};f()(C(),A);C().locals;const E=(0,c.Z)(x,g,[],!1,null,"5b939efc",null).exports;var B=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("img",e._b({class:{placeholder:e.isPlaceholderActive},attrs:{width:e.width,height:e.height,srcset:e.srcset,src:e.actualSrc}},"img",e.$attrs,!1))};B._withStripped=!0;var D=n(1379),z=n(6826);const I=Vue.extend({name:"DpiImage",props:{size:{type:[Object,Number],required:!0},src:{type:String,required:!0},intersection:{type:Object,default:()=>({})},placeholderImage:{type:Boolean,default:!1}},data:()=>({srcset:null,actualSrc:z.EmptyImageUrl,isPlaceholderActive:!1}),computed:{width(){return"object"==typeof this.size&&"width"in this.size?this.size.width:"number"==typeof this.size?this.size:null},height(){return"object"==typeof this.size&&"height"in this.size?this.size.height:"number"==typeof this.size?this.size:null}},watch:{size(){this.sourceChange()},src(){this.sourceChange()}},mounted(){const e={rootMargin:"200px",...this.intersection},t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.calcSrc(),t.disconnect())}))}),e);t.observe(this.$el)},methods:{sourceChange(){this.actualSrc!==z.EmptyImageUrl&&null!==this.srcset&&this.calcSrc()},calcSrc(){const e=!this.src||!this.size;if(this.isPlaceholderActive=e&&this.placeholderImage,e)return this.srcset=null,void(this.placeholderImage?this.actualSrc="https://s1.hdslb.com/bfs/static/blive/live-web-center/static/img/no-cover.1ebe4d5.jpg":this.actualSrc=z.EmptyImageUrl);let{src:t}=this;if(t.startsWith("http:")&&(t=t.replace("http:","https:")),t.includes("//static.hdslb.com/images/member/noface.gif"))return this.srcset=t,void(this.actualSrc=t);this.srcset=(0,D.getDpiSourceSet)(t,this.size),this.actualSrc=t}}}),S=I;const M=(0,c.Z)(S,B,[],!1,null,null,null).exports;var P=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-image-picker"},[t("VButton",{ref:"pickButton",staticClass:"pick-button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[e._t("text",(function(){return[e._v(" 选择图片 ")]}))],2),e._v(" "),t("VPopup",{staticClass:"popup",attrs:{"trigger-element":e.$refs.pickButton},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel()}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("transition-group",{staticClass:"images",attrs:{name:"image-list",tag:"div",tabindex:"-1"}},e._l(e.images,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectImage(n),expression:"() => selectImage(i)"}],key:n.name,staticClass:"image",class:{selected:n.name===e.selectedImage.name},attrs:{title:n.name,tabindex:e.popupOpen?0:-1}},[t("img",{attrs:{width:"64",height:"64",src:n.url}})])})),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:0===e.images.length,expression:"images.length === 0"}],staticClass:"empty-tip"},[e._v("空空如也哦 = ̄ω ̄=")]),e._v(" "),t("div",{staticClass:"operations"},[t("VPopup",{staticClass:"add-image-popup",attrs:{tabindex:"-1",lazy:!1,"trigger-element":e.$refs.addButton},model:{value:e.addImagePopupOpen,callback:function(t){e.addImagePopupOpen=t},expression:"addImagePopupOpen"}},[t("div",{staticClass:"add-image-row"},[e._v("\n 名称:\n "),t("TextBox",{ref:"addImageInput",attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.name,callback:function(t){e.$set(e.newImage,"name",t)},expression:"newImage.name"}})],1),e._v(" "),t("div",{staticClass:"add-image-row"},[e._v("\n 链接:\n "),t("TextBox",{attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.url,callback:function(t){e.$set(e.newImage,"url",t)},expression:"newImage.url"}})],1),e._v(" "),t("div",{staticClass:"add-image-row buttons"},[t("VButton",{attrs:{disabled:!e.addImagePopupOpen},on:{click:function(t){e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 取消\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.newImage.url||!e.newImage.name,type:"primary"},on:{click:function(t){e.addImage(e.newImage),e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 确定\n ")])],1)]),e._v(" "),t("VButton",{staticClass:"clear-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.clearImage()}}},[e._v("\n 清除选择\n ")]),e._v(" "),t("VButton",{ref:"addButton",staticClass:"add-image",attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.openAddImagePopup()}}},[e._v("\n 添加\n ")]),e._v(" "),t("VButton",{staticClass:"edit-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.editImage()}}},[e._v("\n 编辑\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.selectedImage.name},on:{click:function(t){e.removeImage(e.selectedImage),e.clearImage()}}},[e._v("\n 删除\n ")])],1),e._v(" "),t("div",{staticClass:"operations"},[t("VButton",{attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.cancel()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.popupOpen,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1),e._v(" "),e.addImagePopupOpen?t("div",{staticClass:"mask"}):e._e()],1)],1)};P._withStripped=!0;const O=[],V=Vue.extend({name:"ImagePicker",components:{VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,985)).then((e=>e.default)),TextBox:()=>Promise.resolve().then(n.bind(n,3765)).then((e=>e.default))},model:{prop:"image",event:"change"},props:{image:{type:Object,required:!0}},data:()=>({images:O,popupOpen:!1,addImagePopupOpen:!1,selectedImage:{name:"",url:""},newImage:{name:"",url:""}}),methods:{addImage:e=>{if(!e.name||!e.url)return;const t=O.find((t=>t.name===e.name));t?t.url=e.url:O.unshift(e)},removeImage:e=>{const t="string"==typeof e?e:e.name,n=O.findIndex((e=>e.name===t));-1!==n&&O.splice(n,1)},ok(){this.$emit("change",this.selectedImage),this.popupOpen=!1},cancel(){this.selectedImage=this.image,this.popupOpen=!1},selectImage(e){this.selectedImage.name===e.name?this.selectedImage={name:"",url:""}:this.selectedImage=e},clearImage(){this.selectedImage={name:"",url:""}},clearNewImage(){this.newImage={name:"",url:""}},editImage(){this.newImage=this.selectedImage,this.openAddImagePopup()},async openAddImagePopup(){this.addImagePopupOpen=!this.addImagePopupOpen,await this.$nextTick(),this.$refs.addImageInput.$refs.input.focus()}}});var T=n(9497),L=n.n(T),j={insert:"head",singleton:!1};f()(L(),j);L().locals;const R=(0,c.Z)(V,P,[],!1,null,"7b32c90b",null).exports;var N=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"image-viewer-container",class:{open:e.open},on:{click:e.detectOutside}},[t("div",{ref:"viewer",staticClass:"image-viewer"},[t("div",{staticClass:"image-container"},[e.image?t("img",{staticClass:"image",attrs:{src:e.image}}):e._e()]),e._v(" "),t("div",{staticClass:"close image-viewer-icon",attrs:{title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{size:48,icon:"mdi-close"}})],1),e._v(" "),t("a",{staticClass:"copy-link image-viewer-icon",attrs:{target:"_blank",title:"复制原链接"},on:{click:function(t){return e.copyLink()}}},[e.copiedTimer?t("VIcon",{attrs:{size:48,icon:"mdi-check"}}):t("VIcon",{attrs:{size:48,icon:"mdi-link"}})],1),e._v(" "),t("a",{staticClass:"new-tab image-viewer-icon",attrs:{target:"_blank",title:"在新标签页打开"},on:{click:function(t){return e.newTab()}}},[t("VIcon",{attrs:{size:48,icon:"mdi-open-in-new"}})],1),e._v(" "),e.blobUrl?t("a",{staticClass:"download image-viewer-icon",attrs:{target:"_blank",title:"下载",href:e.blobUrl,download:e.filename}},[t("VIcon",{attrs:{size:48,icon:"mdi-download"}})],1):e._e()])])};N._withStripped=!0;var q=n(4638),Z=n(2197),U=n(2072);const H=Vue.extend({components:{VIcon:o.default},props:{image:{type:String,required:!0}},data:()=>({filename:"",open:!1,blobUrl:"",keyHandler:null,copiedTimer:0}),watch:{async image(e){this.blobUrl&&URL.revokeObjectURL(this.blobUrl),e||(this.blobUrl="");const t=await(0,U.getBlob)(e);this.blobUrl=URL.createObjectURL(t),this.updateFilename()}},mounted(){this.keyHandler=e=>{"Escape"===e.key&&(this.open=!1)},document.addEventListener("keydown",this.keyHandler),(0,q.addComponentListener)("settingsPanel.filenameFormat",(()=>{this.updateFilename()}),!0)},beforeDestroy(){document.removeEventListener("keydown",this.keyHandler)},methods:{async copyLink(){await navigator.clipboard.writeText(this.image),this.copiedTimer&&window.clearTimeout(this.copiedTimer),this.copiedTimer=window.setTimeout((()=>{this.copiedTimer=0}),2e3)},newTab(){window.open(this.image,"_blank")},detectOutside(e){const t=this.$el,{viewer:n}=this.$refs;e.target!==t&&e.target!==n||(this.open=!1)},updateFilename(){const e=this.image;this.filename=e?(0,Z.getFriendlyTitle)(document.URL.includes("/www.bilibili.com/bangumi/"))+e.substring(e.lastIndexOf(".")):""}}});var W=n(9605),G=n.n(W),Q={insert:"head",singleton:!1};f()(G(),Q);G().locals;const Y=(0,c.Z)(H,N,[],!1,null,"8829ba14",null).exports;let X;const K=async e=>(X||await(async()=>(X=new Y({propsData:{image:"",open:!1}}).$mount(),document.body.insertAdjacentElement("beforeend",X.$el),X))(),setTimeout((()=>{X.image=e,X.open=!0})),X);var J=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-progress-bar"},[t("div",{staticClass:"progress",class:{transition:e.transition},style:{width:e.width}})])};J._withStripped=!0;const _=Vue.extend({name:"ProgressBar",props:{progress:{type:Number,default:50},min:{type:Number,default:0},max:{type:Number,default:100},transition:{type:Boolean,default:!1}},computed:{width(){let e=this.progress;e>this.max?e=this.max:ethis.max?e=this.max:e{de.has(e)?de.get(e).push({instance:t,uncheck:n}):de.set(e,[{instance:t,uncheck:n}])})),fe=Vue.extend({name:"RadioButton",components:{CheckBox:h},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},allowUncheck:{type:Boolean,default:!1},group:{type:String,default:""},checkedIcon:{type:String,default:"mdi-radiobox-marked"},notCheckedIcon:{type:String,default:"mdi-radiobox-blank"}},watch:{checked(e){if(e){const e=this.group,t=this.$el;let n;n=""===e?t.parentElement:e,de.get(n).forEach((e=>{let{instance:t,uncheck:n}=e;t!==this&&n()}))}}},mounted(){const e=this.group,t=this.$el;let n;n=me(""===e?t.parentElement:e),n(this,(()=>this.$emit("change",!1)))},methods:{emitChange(e){(this.checked&&this.allowUncheck||!this.checked)&&this.$emit("change",e)}}});const ue=(0,c.Z)(fe,le,[],!1,null,null,null).exports;var pe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-range-input"},[t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.start.toString()},on:{change:function(t){e.wrapper.start=t}}}),e._v(" "),e._t("separator",(function(){return[t("div",{staticClass:"default-separator"},[e._v("~")])]})),e._v(" "),t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.end.toString()},on:{change:function(t){e.wrapper.end=t}}})],2)};pe._withStripped=!0;const be=e=>({range:e.range,get start(){return this.range.start.toString()},set start(e){this.createNewRange(e,this.end)},get end(){return this.range.end.toString()},set end(e){this.createNewRange(this.start,e)},createNewRange(t,n){let o={start:t,end:n};e.validator&&(o=e.validator(o)),null!=o?(this.range=o,e.$emit("change",o)):this.range={start:this.range.start,end:this.range.end}}}),he=Vue.extend({name:"RangeInput",components:{TextBox:()=>Promise.resolve().then(n.bind(n,3765))},model:{prop:"range",event:"change"},props:{range:{type:Object,required:!0},validator:{type:Function,default:void 0}},data(){return{wrapper:be(this)}}});var ge=n(5620),Fe=n.n(ge),ve={insert:"head",singleton:!1};f()(Fe(),ve);Fe().locals;const we=(0,c.Z)(he,pe,[],!1,null,"b459c060",null).exports;var ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-scroll-trigger",on:{click:function(t){return e.trigger()}}},[e._t("default",(function(){return[t("VLoading")]}))],2)};ye._withStripped=!0;var xe=n(6215);const ke=Vue.extend({components:{VLoading:()=>Promise.resolve().then(n.bind(n,9032)).then((e=>e.default))},props:{detectViewport:{type:Boolean,required:!1,default:!1}},data:()=>({isFirstLoad:!0,isViewportTriggerRunning:!1,parentLoadState:"none"}),async mounted(){const e=(0,xe.useScopedConsole)("ScrollTrigger"),t=this.$el,{visible:o}=await Promise.resolve().then(n.bind(n,8643));o(t,(async n=>{if(n.some((e=>e.intersectionRatio>0))){if(e.log("Intersection Observer trigger"),this.trigger(),!this.detectViewport&&!this.isFirstLoad&&this.isViewportTriggerRunning)return;for(this.isViewportTriggerRunning=!0;this.getVisibleStateByViewport(t);)if(await(0,D.delay)(500),"loaded"===this.parentLoadState){if(!this.getVisibleStateByViewport(t))break;e.log("is first load & viewport trigger"),this.trigger()}this.isFirstLoad=!1}}))},methods:{getElementToViewportBottomDistance:e=>document.documentElement.clientHeight-e.getBoundingClientRect().top,getVisibleStateByViewport(e){return Boolean(this.getElementToViewportBottomDistance(e)>-20)},setLoadState(e){this.parentLoadState=e},resetIsFirstLoad(){this.isFirstLoad=!0},trigger(){this.$emit("trigger")}}});var Ce=n(4534),Ae=n.n(Ce),Ee={insert:"head",singleton:!1};f()(Ae(),Ee);Ae().locals;const Be=(0,c.Z)(ke,ye,[],!1,null,null,null).exports;var De=n(4085),ze=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-tab-control"},[t("div",{staticClass:"default-header"},[e._t("tabs",(function(){return[t("div",{staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},attrs:{"data-count":n.count>0?n.count:null},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)]})),e._v(" "),t("div",{staticClass:"header-item"},[e._t("header-item")],2),e._v(" "),null!==e.moreLink&&void 0!==e.moreLink?t("a",{staticClass:"be-more-link",attrs:{href:"function"==typeof e.moreLink?e.moreLink(e.selectedTab):e.moreLink,target:"_blank"}},[t("VButton",{attrs:{disabled:!e.moreLink,round:""}},[e._t("more-link",(function(){return[e._v("\n 查看更多\n "),t("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})]}))],2)],1):e._e()],2),e._v(" "),e._t("content",(function(){return[t("div",{staticClass:"default-content"},[t("transition",{attrs:{name:"content-transition"}},[t(e.selectedTab.component,e._b({tag:"component"},"component",e.selectedTab.propsData,!1))],1)],1)]}))],2)};ze._withStripped=!0;const Ie=Vue.extend({name:"TabControl",components:{VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,4749)).then((e=>e.default))},model:{prop:"link",event:"change"},props:{tabs:{type:Array,required:!0,validator:e=>0!==e.length},defaultTab:{type:String,required:!1,default:""},link:{type:String,required:!1,default:null},moreLink:{type:[String,Function],default:null}},data(){const e=this.tabs;return{selectedTabName:e.find((e=>e.name===this.defaultTab))?.name??e[0].name}},computed:{selectedTab(){return this.tabs.find((e=>e.name===this.selectedTabName))}},mounted(){this.$emit("change",this.selectedTab.activeLink)},methods:{selectTab(e){this.selectedTabName!==e.name?(this.selectedTabName=e.name,e.count=0,this.$emit("change",this.selectedTab.activeLink)):e.activeLink&&window.open(e.activeLink,"_blank")}}});var Se=n(271),Me=n.n(Se),Pe={insert:"head",singleton:!1};f()(Me(),Pe);Me().locals;const Oe=(0,c.Z)(Ie,ze,[],!1,null,null,null).exports;var Ve=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-text-area",attrs:{role:"text"}},[t("textarea",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"textarea",e.$attrs,!1),e.restListeners))])};Ve._withStripped=!0;var Te=n(1150);const Le=Vue.extend({name:"TextArea",mixins:[Te.t]});var je=n(9839),Re=n.n(je),Ne={insert:"head",singleton:!1};f()(Re(),Ne);Re().locals;const qe=(0,c.Z)(Le,Ve,[],!1,null,null,null).exports;var Ze=n(3765),Ue=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"hit",rawName:"v-hit",value:e.hit,expression:"hit"}],staticClass:"be-dropdown",class:{disabled:e.disabled,round:e.round},attrs:{role:"combobox",tabindex:e.disabled?-1:0,"aria-disabled":e.disabled}},[t("div",{ref:"selected",staticClass:"selected"},[t("div",{staticClass:"selected-item"},[null!==e.value&&void 0!==e.value?e._t("item",(function(){return[e._v("\n "+e._s(e.value.displayName)+"\n ")]}),{item:e.value}):e._e()],2),e._v(" "),t("div",{staticClass:"arrow",class:{open:e.popupOpen}},[e._t("arrow",(function(){return[t("div",{staticClass:"default-arrow"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"}},[t("defs",[t("clipPath",{attrs:{id:"clip-arrow-down"}},[t("rect",{attrs:{width:"24",height:"24"}})])]),e._v(" "),t("g",{attrs:{id:"arrow-down","clip-path":"url(#clip-arrow-down)"}},[t("path",{attrs:{id:"Path_1","data-name":"Path 1",d:"M2,17,12,7,22,17",transform:"translate(24 25) rotate(180)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}})])])])]}))],2)]),e._v(" "),t("VPopup",{ref:"popup",staticClass:"dropdown-popup",attrs:{lazy:!1,"trigger-element":e.$refs.selected},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.selectItem(e.value)}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(e.items,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectItem(n),expression:"() => selectItem(item)"}],key:e.keyMapper(n),staticClass:"bex-dropdown-item",attrs:{tabindex:e.popupOpen?0:-1}},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)})),0)],1)};Ue._withStripped=!0;var He=n(985);const We=Vue.extend({name:"VDropdown",components:{VPopup:He.default},model:{prop:"value",event:"change"},props:{value:{required:!0},items:{type:Array,required:!0},keyMapper:{type:Function,default:e=>e.name},round:{type:Boolean,default:!1}},data:()=>({popupOpen:!1}),computed:{disabled(){return Boolean(this.$attrs.disabled)}},watch:{disabled(e){e&&(this.popupOpen=!1)}},created(){null!==this.value&&void 0!==this.value||this.$emit("change",this.items[0]||"")},methods:{selectItem(e){e!==this.value&&this.$emit("change",e),this.popupOpen=!1,this.$el.focus()},hit(e){if(this.disabled)return;const t=this.$refs.popup.$el,n=e.target;t===n||t.contains(n)||(this.popupOpen=!this.popupOpen)}}});var Ge=n(6757),Qe=n.n(Ge),Ye={insert:"head",singleton:!1};f()(Qe(),Ye);Qe().locals;const Xe=(0,c.Z)(We,Ue,[],!1,null,"6b51ccd4",null).exports;var Ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-empty"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};Ke._withStripped=!0;var Je=n(3378);const[_e]=(0,Je.registerAndGetData)("vEmpty",{content:"空空如也哦 = ̄ω ̄="}),$e=Vue.extend({name:"VEmpty",data:()=>({config:_e})});var et=n(6473),tt=n.n(et),nt={insert:"head",singleton:!1};f()(tt(),nt);tt().locals;const ot=(0,c.Z)($e,Ke,[],!1,null,null,null).exports;var it=n(9032),rt=n(1366),at=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({staticClass:"default-widget"},"VButton",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"widget-icon"},[e._t("icon",(function(){return[t("VIcon",{attrs:{type:e.iconType,icon:e.icon}})]}))],2),e._v(" "),t("div",{staticClass:"widget-name"},[e._t("default",(function(){return[e._v(e._s(e.name))]}))],2)])};at._withStripped=!0;const ct=Vue.extend({components:{VIcon:o.default,VButton:r.default},props:{name:{type:String,default:""},icon:{type:String,default:""},iconType:{type:String,default:""}}});var st=n(6293),lt=n.n(st),dt={insert:"head",singleton:!1};f()(lt(),dt);lt().locals;const mt=(0,c.Z)(ct,at,[],!1,null,"20e1bedd",null).exports;var ft=n(5433)},2465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initMdiStyle:()=>r});var o=n(8964),i=n.n(o);const r=()=>{const e=document.createElement("style");return e.id="be-mdi",e.innerHTML=i(),e}},1150:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o=Vue.extend({model:{prop:"text",event:"change"},props:{text:{type:String,required:!1,default:""},changeOnBlur:{type:Boolean,required:!1,default:!1},validator:{type:Function,default:void 0}},data(){return{composing:!1,restListeners:lodash.omit(this.$listeners,"change","input","compositionstart","compositionend")}},methods:{emitChange(){let{value:e}=this.$refs.input;this.validator&&(e=this.validator(e,this.text),this.changeOnBlur&&(this.$refs.input.value=e)),e!==this.text&&this.$emit("change",e)},input(){this.changeOnBlur||this.composing||this.emitChange()},change(){this.changeOnBlur&&!this.composing&&this.emitChange()},compositionStart(){this.composing=!0},compositionEnd(){this.composing=!1,this.input()},focus(){this.$refs.input.focus()}}})},6866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compilationInfo:()=>m});var o=n(113);const i="the1812",r="cdn.jsdelivr.net",a={name:"jsDelivr",owner:i,host:r,stableClient:`https://${r}/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js`,previewClient:`https://${r}/gh/the1812/Bilibili-Evolved@preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${r}/npm/lodash@4.17.21/lodash.min.js`,protobuf:`https://${r}/npm/protobufjs@6.10.1/dist/light/protobuf.min.js`,jszip:`https://${r}/npm/jszip@3.7.1/dist/jszip.min.js`,sortable:`https://${r}/npm/sortablejs@1.14.0/Sortable.min.js`,mdi:`https://${r}/gh/the1812/Bilibili-Evolved@master/docs/static/mdi/mdi.css`,streamsaver:`https://${r}/npm/streamsaver@2.0.6/StreamSaver.min.js`,ffmpeg:{worker:`https://${r}/npm/@ffmpeg/ffmpeg@0.12.4/dist/umd/814.ffmpeg.js`,core:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.js`,wasm:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.wasm`}},smallLogo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo-small.png`,logo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo.png`,root:(e,t)=>`https://${r}/gh/${t||i}/Bilibili-Evolved@${e}/`},c="the1812",s="raw.githubusercontent.com",l=a,d={github:{name:"GitHub",owner:c,host:s,stableClient:`https://${s}/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js`,previewClient:`https://${s}/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${s}/lodash/lodash/4.17.21/dist/lodash.min.js`,protobuf:`https://${s}/protobufjs/protobuf.js/v6.10.1/dist/light/protobuf.min.js`,jszip:`https://${s}/Stuk/jszip/v3.7.1/dist/jszip.min.js`,sortable:`https://${s}/SortableJS/Sortable/1.14.0/Sortable.min.js`,mdi:"https://the1812.github.io/Bilibili-Evolved/static/mdi/mdi.css",streamsaver:`https://${s}/jimmywarting/StreamSaver.js/2.0.6/StreamSaver.js`,ffmpeg:a.library.ffmpeg},smallLogo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo-small.png`,logo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo.png`,root:(e,t)=>`https://${s}/${t||c}/Bilibili-Evolved/${e}/`},jsDelivr:a},m={...{year:(new Date).getFullYear(),version:o.version,altCdn:l,allCdns:d},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",branch:"master-cdn",nearestTag:"v2.8.8",versionWithTag:"v2.8.8-71-g3fed018af"}},9676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"switch-options",class:{"small-size":e.smallSize,grid:!e.popupMode}},[e.popupMode?[t("VButton",{ref:"button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[t("VIcon",{staticClass:"switch-icon",attrs:{icon:"mdi-checkbox-marked-circle-outline",size:e.smallSize?16:22}}),e._v("\n "+e._s(e.options.optionDisplayName)+"\n ")],1),e._v(" "),t("VPopup",{staticClass:"switch-options-popup widgets-popup",attrs:{"trigger-element":e.$refs.button,"esc-close":"","auto-destroy":""},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]:[t("div",{staticClass:"switch-options-grid"},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]],2)};o._withStripped=!0;var i=n(9859),r=n(4638);const a=Vue.extend({name:"SwitchOptions",components:{VPopup:i.VPopup,VButton:i.VButton,VIcon:i.VIcon,CheckBox:i.CheckBox,RadioButton:i.RadioButton},props:{options:{type:Object,required:!0},smallSize:{type:Boolean,default:!1},popupMode:{type:Boolean,default:!0}},data(){const{componentName:e}=this.options;return{popupOpen:!1,componentOptions:(0,r.getComponentSettings)(e).options}},computed:{mergedSwitchProps(){return{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline",...this.options.switchProps}}},watch:{options(){this.updateColumnsCount()}},mounted(){this.updateColumnsCount()},methods:{updateColumnsCount(){const e=this.$el,t=Math.ceil(Object.keys(this.options.switches).length/12);e.style.setProperty("--columns",t.toString())},isDim(e){return"checked"===this.options.dimAt||void 0===this.options.dimAt?this.componentOptions[`switch-${e}`]:"notChecked"===this.options.dimAt&&!this.componentOptions[`switch-${e}`]}}});var c=n(8332),s=n.n(c),l=n(3129),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},5865:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{staticClass:"check-all-updates",attrs:{disabled:e.disabled},on:{click:function(t){return e.checkUpdates()}}},[t("VIcon",{attrs:{size:16,icon:"mdi-cloud-sync-outline"}}),e._v("\n 立即检查所有更新\n")],1)};o._withStripped=!0;var i=n(7102),r=n(9859),a=n(6290);const c=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon},data:()=>({disabled:!1}),methods:{async checkUpdates(){try{this.disabled=!0;const e=i.Toast.info("正在检查更新...","检查所有更新");await(0,a.forceCheckUpdateAndReload)(),e.close()}finally{this.disabled=!1}}}});var s=n(8332),l=n.n(s),d=n(3216),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"76652ef2",null).exports},3570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bisector-dialog-content-container"},[t("div",{staticClass:"bisector-dialog-content-text"},[e._v("\n 组件二等分进行中,预计剩余\n "),t("b",{staticStyle:{color:"var(--theme-color)"}},[e._v(e._s(e.rouge)+" ")]),e._v("轮次,请确认当前情况:\n ")]),e._v(" "),t("div",{staticClass:"bisector-dialog-button-group"},[t("VButton",{on:{click:e.onGood}},[e._v("正常")]),e._v(" "),t("VButton",{on:{click:e.onBad}},[e._v("不正常")]),e._v(" "),t("VButton",{attrs:{type:"primary"},on:{click:e.onAbort}},[e._v("终止")])],1),e._v(" "),t("div",{staticClass:"bisector-dialog-content-text weak"},[e._v("\n *可以点击×号关闭对话框,刷新页面后,会再次询问\n ")])])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9859);const c=r().extend({components:{VButton:a.VButton},props:{rouge:{type:Number,required:!0},onAbort:{type:Function,default:none},onGood:{type:Function,default:none},onBad:{type:Function,default:none}}});var s=n(8332),l=n.n(s),d=n(5901),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"31cf1990",null).exports},4799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v("\n 组件二等分\n "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1)])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9859);const c=r().extend({components:{VIcon:a.VIcon},data:()=>({peek:!1}),watch:{peek(e){this.$el.closest(".be-dialog").style.opacity=e?"0.1":"1"}}});var s=n(8332),l=n.n(s),d=n(6481),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"386ddf8e",null).exports},1788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"launch-bar"},[t("div",{staticClass:"input-area"},[t("div",{staticClass:"launch-bar-form"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"input",staticClass:"input",attrs:{type:"text",autocomplete:"off",placeholder:e.recommended.word},domProps:{value:e.keyword},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnter.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),e.handleUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),e.handleDown.apply(null,arguments))}],input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),t("button",{staticClass:"submit",attrs:{title:"执行",tabindex:"-1"},on:{click:e.handleEnter}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)])]),e._v(" "),t("div",{ref:"list",staticClass:"launch-bar-suggest-list"},[e.isHistory?t("div",{staticClass:"launch-bar-history-list"},[0===e.actions.length?t("div",{staticClass:"history-empty suggest-item disabled",attrs:{tabindex:"0"}},[e._v("\n 暂无搜索历史\n ")]):e._e(),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){o===e.actions.length-1&&e.onClearHistory(),e.onAction(n)}}})}))],2):e._e(),e._v(" "),e.isHistory?e._e():t("div",{staticClass:"launch-bar-action-list"},[0===e.actions.length&&e.noActions?t("VEmpty",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}):e._e(),e._v(" "),0!==e.actions.length||e.noActions?e._e():t("VLoading",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){return e.onAction(n)}}})}))],2)])])};o._withStripped=!0;var i=n(7942),r=n(9859),a=n(3378),c=n(7913),s=n(1379),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-launch-bar-action-item suggest-item",attrs:{tabindex:"0",title:e.action.displayName||e.action.name,"data-indexer":e.action.indexer},on:{click:function(t){return t.target!==t.currentTarget?null:e.performAction(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.performAction(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:t.shiftKey?(t.preventDefault(),t.stopPropagation(),e.performDelete(t)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("previous-item",t.currentTarget))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("next-item",t.currentTarget))}]}},[t("div",{staticClass:"suggest-item-content"},[e.action.icon?t("div",{staticClass:"suggest-item-icon",on:{click:function(t){return e.performAction(t)}}},[t("VIcon",{attrs:{icon:e.action.icon,size:18}})],1):e._e(),e._v(" "),t("div",{staticClass:"suggest-item-title",on:{click:function(t){return e.performAction(t)}}},[e.action.content?t(e.action.content,{tag:"component",staticClass:"suggest-item-name",attrs:{name:e.action.name}}):t("div",{staticClass:"suggest-item-name"},[e._v("\n "+e._s(e.action.displayName||e.action.name)+"\n ")]),e._v(" "),e.action.description?t("div",{staticClass:"suggest-item-description"},[e._v("\n "+e._s(e.action.description)+"\n ")]):e._e()],1),e._v(" "),e.action.deleteAction?t("div",{staticClass:"suggest-item-delete",attrs:{title:"删除此项"},on:{click:function(t){return e.performDelete(t)}}},[t("VIcon",{attrs:{icon:"cancel",size:18}})],1):e._e()])])};l._withStripped=!0;const d=Vue.extend({components:{VIcon:r.VIcon},props:{action:{type:Object,required:!0}},methods:{async performAction(e){const{currentTarget:t}=e;await this.action.action(),this.$emit("action",t)},async performDelete(e){const{currentTarget:t}=e;this.action.deleteAction&&(await this.action.deleteAction(),this.$emit("delete-item",t))}}});var m=n(8332),f=n.n(m),u=n(116),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;var h=n(6499);const g=(0,h.Z)(d,l,[],!1,null,null,null).exports;var F=n(9373),v=n(7498),w=n(6893),y=n(6376);const[x]=(0,a.registerAndGetData)(F.LaunchBarActionProviders,[v.searchProvider,w.dr]),k=e=>[...e].sort((0,y.ascendingSort)((e=>e.order??1/0))),C=(e,t)=>t.map((t=>{const n=`${e.name}.${t.name}`;return{...t,key:n,provider:e}}));const[A]=(0,a.registerAndGetData)("launchBar.recommended",{word:"搜索",href:"https://search.bilibili.com/"}),E=Vue.extend({components:{VIcon:r.VIcon,VLoading:r.VLoading,VEmpty:r.VEmpty,ActionItem:g},data:()=>({recommended:A,actions:[],keyword:"",noActions:!1}),computed:{isHistory(){return 0===this.keyword.length}},watch:{keyword(){this.getActions()}},async mounted(){this.getActions(),(0,s.matchUrlPattern)(/^https?:\/\/search\.bilibili\.com/)&&(0,c.select)("#search-keyword, .search-input-el").then((e=>{e&&(this.keyword=e.value,document.addEventListener("change",(e=>{e.target instanceof HTMLInputElement&&"search-keyword"===e.target.id&&(this.keyword=e.target.value)})))}))},methods:{getOnlineActions:lodash.debounce((async function(){const e=(await Promise.all(x.map((async e=>C(e,await e.getActions(this.keyword)))))).flat();if(this.isHistory)return;const t=new i.Z(e,{keys:["indexer","displayName","name","description","key"]}).search(this.keyword);console.log(t),this.actions=k(t.map((e=>e.item)).slice(0,12)),this.noActions=0===this.actions.length}),200),getActions:async function(){if(this.noActions=!1,this.isHistory)return void(this.actions=k(C(w.dr,await w.dr.getActions(this.keyword))));this.actions=[],this.getOnlineActions()},handleSelect(){this.$emit("close"),this.getActions()},async handleEnter(e){if(!e.isComposing){if(this.actions.length>0&&!this.isHistory){const[e]=this.actions;if(!0!==e.explicitSelect)return void e.action()}if(this.keyword)return(0,v.search)(this.keyword),void this.handleSelect();window.open(this.recommended.href,"_blank"),this.handleSelect()}},handleUp(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item:last-child").focus(),e.preventDefault())},handleDown(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item").focus(),e.preventDefault())},previousItem(e,t){0===t?this.focus():e.previousElementSibling.focus()},nextItem(e,t){t!==this.actions.length-1?e.nextElementSibling.focus():this.focus()},search:v.search,onDeleteItem(e,t){this.previousItem(e,t),this.getActions()},onClearHistory(){this.focus(),this.getActions()},onAction(){this.handleSelect()},focus(){this.$refs.input.focus()}}});var B=n(3176),D=n.n(B),z={insert:"head",singleton:!1};f()(D(),z);D().locals;const I=(0,h.Z)(E,o,[],!1,null,null,null).exports},2829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"release-content"},[t("div",{staticClass:"release-content-markdown",domProps:{innerHTML:e._s(e.content)}}),e._v(" "),t("div",{staticClass:"release-content-actions"},[t("VButton",{on:{click:function(t){return e.$emit("dialog-close")}}},[e._v(" 取消 ")]),e._v(" "),e.detailsLink?t("a",{attrs:{href:e.detailsLink,target:"_blank"}},[t("VButton",[e._v(" 查看详情 ")])],1):e._e(),e._v(" "),e.updateUrl?t("a",{attrs:{href:e.updateUrl,target:"_blank"}},[t("VButton",{attrs:{type:"primary"}},[e._v(" 安装 ")])],1):e._e()],1)])};o._withStripped=!0;var i=n(8703),r=n(9859);const a=`https://github.com/${i.defaultOwner}/Bilibili-Evolved/releases`,c=Vue.extend({components:{VButton:r.VButton},props:{content:{type:String,default:""},updateUrl:{type:String,default:""}},data:()=>({detailsLink:a})});var s=n(8332),l=n.n(s),d=n(4954),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},7195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-description",domProps:{innerHTML:e._s(e.html)}})};o._withStripped=!0;var i=n(4638),r=n(9081);const a=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,i.getComponentSettings)(this.componentData),html:""}},async created(){this.html=await(0,r.getDescriptionHTML)(this.componentData)}});var c=n(8332),s=n.n(c),l=n(2846),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},3448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"be-settings"},[t("div",{staticClass:"sidebar"},[t("div",{ref:"widgetsIcon",class:{open:e.widgetsOpened},attrs:{title:"功能"},on:{click:[function(t){return t.shiftKey?e.theWorld.apply(null,arguments):null},function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return null;e.widgetsOpened=!e.widgetsOpened}],mouseover:function(t){return e.loadPanel("widgetsPanelPopup")}}},[t("VIcon",{attrs:{icon:"widgets",size:26}})],1),e._v(" "),t("div",{ref:"settingsIcon",class:{open:e.settingsOpened},attrs:{title:"设置"},on:{click:function(t){e.settingsOpened=!e.settingsOpened},mouseover:function(t){return e.loadPanel("settingsPanelPopup")}}},[t("VIcon",{attrs:{icon:"settings-outline",size:26}})],1)]),e._v(" "),t("VPopup",{ref:"widgetsPanelPopup",staticClass:"widgets-panel-popup",attrs:{"trigger-element":e.$refs.widgetsIcon,fixed:!0},model:{value:e.widgetsOpened,callback:function(t){e.widgetsOpened=t},expression:"widgetsOpened"}},[t("WidgetsPanel")],1),e._v(" "),t("VPopup",{ref:"settingsPanelPopup",staticClass:"settings-panel-popup",attrs:{"trigger-element":e.$refs.settingsIcon,"auto-close-predicate":e.settingsPanelClosePredicate,fixed:!0},model:{value:e.settingsOpened,callback:function(t){e.settingsOpened=t},expression:"settingsOpened"}},[t("SettingsPanel",{on:{close:function(t){e.settingsOpened=!1}}})],1)],1)};o._withStripped=!0;var i=n(9859),r=n(980);const a={name:"SettingsContainer",components:{VPopup:i.VPopup,VIcon:i.VIcon,SettingsPanel:()=>Promise.resolve().then(n.bind(n,710)).then((e=>e.default)),WidgetsPanel:()=>Promise.resolve().then(n.bind(n,8889)).then((e=>e.default))},data:()=>({settingsOpened:!1,widgetsOpened:!1}),mounted(){GM_registerMenuCommand("功能",(()=>{this.loadPanel("widgetsPanelPopup"),this.widgetsOpened=!0,this.settingsOpened=!1})),GM_registerMenuCommand("设置",(()=>{this.loadPanel("settingsPanelPopup"),this.widgetsOpened=!1,this.settingsOpened=!0}))},methods:{theWorld(){r.externalApis.theWorld(0)},settingsPanelClosePredicate:e=>!dqa(".be-settings-extra-options").some((t=>t===e.target||t.contains(e.target))),loadPanel(e){const t=this.$refs[e];t&&((t?.loaded??1)||(t.loaded=!0))}}};var c=n(8332),s=n.n(c),l=n(848),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ae});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-panel",class:{collapsed:e.collapsed,peek:e.peek}},[t("div",{staticClass:"settings-panel-header"},[t("VIcon",{attrs:{icon:"settings-outline"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("设置")]),e._v(" "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1),e._v(" "),t("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[t("VIcon",{attrs:{icon:"close",size:18}})],1)],1),e._v(" "),t("div",{staticClass:"settings-panel-content"},[t("div",{ref:"sidebarContainer",staticClass:"sidebar"},[t("ComponentTags",{ref:"componentTags",on:{change:function(t){e.searchFilter=t}}})],1),e._v(" "),t("div",{ref:"mainContainer",staticClass:"main"},[t("div",{ref:"componentList",staticClass:"component-list"},[t("div",{staticClass:"settings-panel-search-bar"},[t("TextBox",{staticClass:"settings-panel-search",attrs:{placeholder:"搜索"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}}),e._v(" "),e._l(e.searchBarActions,(function(n){return t("VButton",{key:n.key,attrs:{type:"transparent",icon:"",title:"function"==typeof n.title?n.title(e.searchBarContext):n.title,disabled:!!n.disabled&&n.disabled(e.searchBarContext)}},[t("VIcon",{attrs:{icon:n.icon,size:18},on:{click:function(t){return n.run(e.searchBarContext)}}})],1)}))],2),e._v(" "),e._l(e.renderedComponents,(function(n){return t("div",{key:n.name,on:{"!click":[function(t){return t.ctrlKey?(t.stopPropagation(),e.selectMultipleComponent(n)):null},function(t){return t.shiftKey?(t.stopPropagation(),e.selectMultipleComponent(n,!0)):null}]}},[t("ComponentSettings",{class:{selected:e.isComponentSelected(n.name)},attrs:{"component-data":n,"data-name":n.name},nativeOn:{click:function(t){return e.selectComponent(n)}}})],1)})),e._v(" "),0===e.renderedComponents.length?t("VEmpty"):e._e()],2)]),e._v(" "),t("VPopup",{ref:"detailsPopup",staticClass:"component-detail-panel",attrs:{"trigger-element":e.$refs.componentList,open:e.componentDetailOpen},on:{"popup-change":function(t){!t&&e.closePopper()}}},[e.selectedComponent?t("ComponentDetail",{key:e.selectedComponent.name,attrs:{"component-data":e.selectedComponent},on:{close:function(t){return e.closePopper()}}}):e._e()],1)],1)])};o._withStripped=!0;var i=n(9859),r=n(8047),a=n(1379),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-settings",class:{virtual:e.virtual}},[e.virtual?e._e():[t("div",{staticClass:"component-settings-row"},[t("TagRing",{attrs:{tags:e.componentData.tags}}),e._v(" "),t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),!1!==e.componentData.configurable?t("SwitchBox",{model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}}):t("VIcon",{staticClass:"details-arrow",attrs:{icon:"right-arrow",size:18}})],1)]],2)};c._withStripped=!0;var s=n(9896),l=n.n(s),d=n(4638),m=n(4085),f=n(4749),u=n(8643),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tag-ring"},[t("svg",{attrs:{height:e.size,width:e.size}},e._l(e.tags,(function(n,o){return t("circle",{key:n.name,staticClass:"tag-stroke",style:e.getStyle(n,o),attrs:{fill:"transparent","stroke-dasharray":e.circumference+" "+e.circumference,"stroke-width":e.stroke,r:e.radius,cx:e.size/2,cy:e.size/2}})})),0)])};p._withStripped=!0;const b=Vue.extend({props:{tags:{type:Array,required:!0},size:{type:Number,default:18},stroke:{type:Number,default:3}},data(){const e=this.size/2-this.stroke;return{radius:e,circumference:2*e*Math.PI}},methods:{getStyle(e,t){return{strokeDashoffset:t/this.tags.length*this.circumference,stroke:e.color}}}});var h=n(8332),g=n.n(h),F=n(2467),v=n.n(F),w={insert:"head",singleton:!1};g()(v(),w);v().locals;var y=n(6499);const x=(0,y.Z)(b,p,[],!1,null,null,null).exports;var k=n(5282);const C=Vue.extend({components:{SwitchBox:m.Z,TagRing:x,VIcon:f.default},props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,d.getComponentSettings)(this.componentData),virtual:!1}},async mounted(){const e=this.$el,t=(0,a.dq)(".settings-panel-content .main");t?(0,u.visibleInside)(e,t,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.log("settings container not found, virtual scroll will be disabled!")},methods:{markdown:e=>l()(e),descriptionI18n(e){const{description:t,options:n}=e;if(!t){if(n&&Object.keys(n).length>0){return`${Object.keys(n).length}个选项`}return"暂无说明"}return"string"==typeof t?t:t[(0,k.getSelectedLanguage)()]||t["zh-CN"]}}}),A=C;var E=n(2098),B=n.n(E),D={insert:"head",singleton:!1};g()(B(),D);B().locals;const z=(0,y.Z)(A,c,[],!1,null,null,null).exports;var I=n(5900),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-detail"},[e.settings?e._e():t("div",{staticClass:"component-not-found"},[e._v("\n 未找到组件'"+e._s(e.componentData.displayName)+"' ("+e._s(e.componentData.name)+"), 可能已被卸载.\n ")]),e._v(" "),e.settings?[t("div",{staticClass:"component-detail-header"},[t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),t("VIcon",{staticClass:"close",attrs:{icon:"close",size:18},on:{click:function(t){return e.$emit("close")}}})],1),e._v(" "),t("div",{staticClass:"component-detail-tags"},e._l(e.componentData.tags,(function(n){return t("div",{key:n.name,staticClass:"tag"},[t("div",{staticClass:"tag-color",style:{backgroundColor:n.color}}),e._v("\n "+e._s(n.displayName)+"\n ")])})),0),e._v(" "),e.componentData.options&&e.generatedOptions.length>0||e.componentData.extraOptions?[t("div",{staticClass:"component-detail-options"},[t("div",{staticClass:"component-detail-options-title"},[e._v("选项")]),e._v(" "),e._l(e.generatedOptions,(function([n,o]){return t("div",{key:n,staticClass:"generated-option"},[t("ComponentOption",{attrs:{name:n,"display-name":o.displayName,option:o,component:e.componentData}})],1)})),e._v(" "),e.componentData.extraOptions?t("div",{staticClass:"extra-option"},[t(e.componentData.extraOptions,{tag:"component",attrs:{"component-data":e.componentData}})],1):e._e(),e._v(" "),e._t("default")],2)]:e._e(),e._v(" "),!e.componentData.options||e.componentData.description?[t("ComponentDescription",{staticClass:"component-detail-description",attrs:{"component-data":e.componentData}})]:e._e(),e._v(" "),t("div",{staticClass:"component-detail-grow"}),e._v(" "),t("div",{staticClass:"component-detail-internal-data"},[e.componentData.commitHash?t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("Commit: "+e._s(e.componentData.commitHash.substring(0,9)))])]):e._e(),e._v(" "),t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("内部名称: "+e._s(e.componentData.name))]),e._v(" "),!1!==e.componentData.configurable&&e.componentActions.length>0?t("MiniToast",{staticClass:"extra-actions-wrapper",attrs:{placement:"bottom",trigger:"click"},scopedSlots:e._u([{key:"toast",fn:function(){return[t("div",{staticClass:"extra-actions-list"},e._l(e.componentActions,(function(n){return t("div",{key:n.name},[n.component?t(n.component,{tag:"component",attrs:{item:n,component:e.componentData}}):t("ComponentAction",{directives:[{name:"show",rawName:"v-show",value:!1!==n.visible,expression:"a.visible !== false"}],staticClass:"extra-action-item",attrs:{item:n,component:e.componentData}})],1)})),0)]},proxy:!0}],null,!1,2977217718)},[t("div",{staticClass:"extra-actions"},[t("VIcon",{attrs:{icon:"mdi-dots-vertical",size:16}})],1)]):e._e()],1)])]:e._e()],2)};S._withStripped=!0;var M=n(7195),P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"component-option",attrs:{"data-type":e.type}},[t("div",{staticClass:"option-name"},[e._v("\n "+e._s(e.displayName)+"\n ")]),e._v(" "),"text"===e.type||"number"===e.type?t("TextBox",{attrs:{"change-on-blur":"",validator:e.option.validator,text:e.value.toString(),placeholder:e.value.toString()},on:{change:function(t){"text"===e.type?e.valueChange(t):e.numberChange(t)}}}):e._e(),e._v(" "),"boolean"===e.type?t("SwitchBox",{attrs:{checked:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"color"===e.type?t("ColorPicker",{attrs:{compact:!0,"popup-offset":-95,color:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"range"===e.type?t("RangeInput",{attrs:{validator:e.option.validator,range:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"image"===e.type?t("ImagePicker",{attrs:{image:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"dropdown"===e.type?t("VDropdown",{attrs:{value:e.value,items:e.getDropdownItems(e.option.dropdownEnum),"key-mapper":e=>e},on:{change:function(t){return e.valueChange(t)}},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}],null,!1,3506243887)}):e._e(),e._v(" "),"switch"===e.type?t("SwitchOptions",{attrs:{"small-size":"","popup-mode":!1,options:e.option.defaultValue}}):e._e(),e._v(" "),"slider"===e.type?t("VSlider",e._b({attrs:{value:e.value},on:{change:function(t){return e.debounceValueChange(t)}}},"VSlider",e.option.slider,!1)):e._e(),e._v(" "),"unknown"===e.type?t("div",{staticClass:"unknown-option-type"},[e._v("未知的选项类型")]):e._e()],1)};P._withStripped=!0;function O(e){this.settings.options[this.name]=e,this.value=e}const V={name:"ComponentOption",components:{SwitchOptions:n(9676).default,TextBox:i.TextBox,SwitchBox:i.SwitchBox,ColorPicker:i.ColorPicker,RangeInput:i.RangeInput,VDropdown:i.VDropdown,ImagePicker:i.ImagePicker,VSlider:i.VSlider},props:{name:{type:String,required:!0},displayName:{type:String,default:""},option:{type:Object,required:!0},component:{type:Object,required:!0}},data(){const e=(0,d.getComponentSettings)(this.component);return{settings:e,value:e.options[this.name]}},computed:{type(){const e=this.option,{defaultValue:t}=e;switch(typeof t){case"boolean":return"boolean";case"number":return e.slider?"slider":"number";case"string":return e.color?"color":e.dropdownEnum?"dropdown":"text";case"object":return"start"in t&&"end"in t?"range":"name"in t&&"url"in t?"image":"name"in t&&"switches"in t?"switch":"unknown";default:return"unknown"}}},methods:{getDropdownItems:e=>{if(Array.isArray(e))return e;return Object.entries(e).filter((e=>{let[t]=e;const n=t.charCodeAt(0);return!(n>=48&&n<=57)})).map((e=>{let[,t]=e;return t}))},numberChange(e){const t=this.settings,n=parseFloat(e);Number.isNaN(n)||(t.options[this.name]=n,this.value=n)},debounceValueChange:lodash.debounce(O,200),valueChange:O}};var T=n(6206),L=n.n(T),j={insert:"head",singleton:!1};g()(L(),j);L().locals;const R=(0,y.Z)(V,P,[],!1,null,"730efac0",null).exports;var N=n(4242),q=n(3378),Z=n(106);const U=[e=>({name:"uninstall",displayName:"卸载",icon:"mdi-trash-can-outline",visible:(0,d.isUserComponent)(e),action:async()=>{const{before:t,after:n}=(0,r.getHook)("userComponents.remove",e);await t(),await(0,Z.uninstallComponent)(e.name),await n()}})],[H]=(0,q.registerAndGetData)("settingsPanel.componentActions",U);var W=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-action",class:{disabled:e.disabled},attrs:{"aria-disabled":e.disabled,title:e.item.title},on:{click:e.handleClick}},[t("VIcon",{attrs:{icon:e.item.icon,size:16}}),e._v("\n "+e._s(e.item.displayName)+"\n")],1)};W._withStripped=!0;const G=Vue.extend({components:{VIcon:i.VIcon},props:{item:{type:Object,required:!0},component:{type:Object,required:!0}},data:()=>({disabled:!1}),methods:{async handleClick(){if(!this.disabled)try{this.disabled=!0,await this.item.action(this.component)}finally{this.disabled=!1}}}});var Q=n(9745),Y=n.n(Q),X={insert:"head",singleton:!1};g()(Y(),X);Y().locals;const K=(0,y.Z)(G,W,[],!1,null,null,null).exports,J=Vue.extend({components:{ComponentDescription:M.Z,ComponentOption:R,ComponentAction:K,VButton:i.VButton,VIcon:i.VIcon,SwitchBox:i.SwitchBox,MiniToast:i.MiniToast},mixins:[N.U],data(){return{virtual:!1,componentActions:H.map((e=>e(this.componentData))).filter((e=>void 0!==e&&!1!==e.visible))}},computed:{generatedOptions(){return Object.entries(this.componentData.options??{}).filter((e=>{let[,t]=e;return!t.hidden}))}},async mounted(){const e=this.$el;(0,u.visible)(e,(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})),await this.$nextTick(),this.$emit("mounted"),console.log(this.componentActions)}});var _=n(9734),$=n.n(_),ee={insert:"head",singleton:!1};g()($(),ee);$().locals;const te=(0,y.Z)(J,S,[],!1,null,null,null).exports;var ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-tags-preview"},[t("VPopup",{staticClass:"settings-panel-sub-page",attrs:{lazy:!1,"trigger-element":e.selectedSubPageTrigger},model:{value:e.selectedSubPageOpen,callback:function(t){e.selectedSubPageOpen=t},expression:"selectedSubPageOpen"}},[t("keep-alive",[e.selectedSubPage?t(e.selectedSubPage,{tag:"component"}):e._e()],1)],1),e._v(" "),t("div",{staticClass:"icon-list"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}})],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(e){return t("div",{key:e.name,staticClass:"component-tags-item"},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:e.icon}})],1)}))],2),e._v(" "),t("div",{staticClass:"component-tags"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"tag-count"},[e._v("("+e._s(n.count)+")")])],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",on:{click:function(t){return e.openSubPage(t,n.component)}}},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])],1)}))],2)],1)};ne._withStripped=!0;var oe=n(6376),ie=n(985);const re=[{name:"userComponentsManage",displayName:"组件",component:()=>Promise.resolve().then(n.bind(n,4642)).then((e=>e.default)),icon:"mdi-cube-scan"},{name:"userPluginsManage",displayName:"插件",component:()=>Promise.resolve().then(n.bind(n,3462)).then((e=>e.default)),icon:"mdi-puzzle-outline"},{name:"customStylesManage",displayName:"样式",component:()=>Promise.resolve().then(n.bind(n,9952)).then((e=>e.default)),icon:"mdi-tune"},{name:"about",displayName:"关于",component:()=>Promise.resolve().then(n.bind(n,3663)).then((e=>e.default)),icon:"mdi-information-outline"}],ae=[e=>{let{renderedComponents:t}=e;return{name:"all",displayName:"全部",color:"inherit",icon:"mdi-shape-outline",order:0,count:t.length,filter:e=>e}},e=>{let{renderedComponents:t}=e;const n=[];t.forEach((e=>e.tags.forEach((e=>{n.push({count:0,...e,filter:t=>t.filter((t=>"all"===e.name||t.tags.some((t=>t.name===e.name))))})}))));const o=lodash.countBy(n,(e=>e.name));return lodash.uniqBy(n,(e=>e.name)).map((e=>({...e,count:o[e.name]})))}],[ce]=(0,q.registerAndGetData)("settingsPanel.tagFilters",ae),se=Vue.extend({components:{VIcon:f.default,VPopup:ie.default},data:()=>({tags:[],selectedTagName:"",subPages:re,selectedSubPage:null,selectedSubPageOpen:!1,selectedSubPageTrigger:null}),created(){this.refreshTags(),this.reset()},mounted(){this.selectTag(this.tags[0])},methods:{refreshTags(){const e=I.components.filter((e=>!e.hidden)),t=ce.flatMap((t=>"function"==typeof t?t({components:I.components,renderedComponents:e}):t));this.tags=t.sort((0,oe.ascendingSort)((e=>e.order)))},reset(){this.selectedTagName=this.tags[0].name},selectTag(e){this.selectedTagName=e.name;const{filter:t}=this.tags.find((t=>t.name===e.name));this.$emit("change",t)},async openSubPage(e,t){this.selectedSubPage!==t?(this.selectedSubPage=t,this.selectedSubPageTrigger=e.currentTarget,await this.$nextTick(),this.selectedSubPageOpen=!0):this.selectedSubPageOpen=!this.selectedSubPageOpen}}}),le=se;var de=n(2709),me=n.n(de),fe={insert:"head",singleton:!1};g()(me(),fe);me().locals;const ue=(0,y.Z)(le,ne,[],!1,null,null,null).exports;var pe=n(9081),be=n(7102),he=n(6609);const ge=[{key:"uninstallSelectedComponent",title:"卸载所选组件",icon:"mdi-trash-can-outline",disabled:e=>{let{selectedComponents:t}=e;return 0===t.length},run:e=>{window.confirm(`确定要卸载所选的 ${e.selectedComponents.length} 个组件吗?`)&&(e.selectedComponents.forEach((e=>{let{name:t}=e;(0,he.isBuiltInComponent)(t)?be.Toast.info("内置组件不能卸载","检查更新",3e3):(0,Z.uninstallComponent)(t)})),e.selectedComponents=[])}}],[Fe]=(0,q.registerAndGetData)("settingsPanel.searchBarActions",[...ge]),ve=e=>e,we={name:"SettingsPanel",components:{VIcon:i.VIcon,TextBox:i.TextBox,VPopup:i.VPopup,VButton:i.VButton,VEmpty:i.VEmpty,ComponentSettings:z,ComponentDetail:te,ComponentTags:ue},data:()=>({components:I.components,renderedComponents:I.components.filter((e=>!e.hidden)),selectedComponent:null,selectedComponents:[],componentDetailOpen:!1,collapsed:!1,peek:!1,searchKeyword:"",searchFilter:ve,searchBarActions:Fe}),computed:{isComponentSelected(){return e=>this.selectedComponents.some((t=>t.name===e))},tags(){const e=this.renderedComponents;let t=[];e.forEach((e=>e.tags.forEach((e=>{t.push({count:0,...e})}))));const n=lodash.countBy(t,(e=>e.name));return t=lodash.uniqBy(t,(e=>e.name)),t.forEach((e=>e.count=n[e.name])),t},searchBarContext(){return lodash.pick(this,"components","selectedComponent","selectedComponents","searchKeyword","searchFilter")}},watch:{searchKeyword:lodash.debounce((function(){this.updateRenderedComponents()}),200),searchFilter(){this.searchKeyword="",this.selectedComponents=[],this.updateRenderedComponents()},components(){this.updateRenderedComponents(),this.$refs.componentTags.refreshTags(),this.components.some((e=>e.name===this.selectedComponent?.name))||(this.selectedComponent=null)}},methods:{closePopper(){this.selectedComponent=null,this.selectedComponents=[],this.componentDetailOpen=!1},selectMultipleComponent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.selectedComponent&&t){const{name:t}=e,{name:n}=this.selectedComponent,o=this.renderedComponents;let i=o.findIndex((e=>e.name===n)),r=o.findIndex((e=>e.name===t));return i>r&&([i,r]=[r,i]),void(this.selectedComponents=o.slice(i,r+1))}const n=this.selectedComponents,o=n.find((t=>t.name===e.name));o?(0,a.deleteValue)(n,(e=>e.name===o.name)):n.push(e)},selectComponent(e){this.selectedComponents=[];const t=(0,r.getHook)("settingsPanel.componentDetail.close"),n=(0,r.getHook)("settingsPanel.componentDetail.open"),o=this.selectedComponent?.name,i=this.componentDetailOpen&&o===e.name;t.before(o),this.closePopper(),t.after(o),i||(n.before(e.name),this.selectedComponents.push(e),this.selectedComponent=e,this.componentDetailOpen=!0,n.after(e.name))},async updateRenderedComponents(){const e=await(async()=>this.searchKeyword?Object.fromEntries(await Promise.all(I.components.map((async e=>[e.name,[e.name,e.displayName,e.tags.map((e=>`${e.name}\n${e.displayName}`)).join("\n"),await(0,pe.getDescriptionText)(e)].join("\n").toLowerCase()])))):{})(),t=I.components.filter((t=>{if(t.hidden)return!1;if(this.searchKeyword){const n=e[t.name];return!!n&&n.includes(this.searchKeyword.toLowerCase())}return!0}));this.renderedComponents=this.searchFilter(t)}}},ye=we;var xe=n(2198),ke=n.n(xe),Ce={insert:"head",singleton:!1};g()(ke(),Ce);ke().locals;const Ae=(0,y.Z)(ye,o,[],!1,null,null,null).exports},8889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"widgets-panel"},[t("div",{staticClass:"widgets-panel-header"},[t("VIcon",{attrs:{icon:"widgets"}}),e._v("功能")],1),e._v(" "),e.loading||0!==e.widgets.length?e._e():t("VEmpty",{staticClass:"widgets-empty"},[t("div",{staticClass:"widgets-empty-content"},[e._v("\n 空空如也哦 = ̄ω ̄="),t("br"),e._v("\n 可点此参考\n "),t("a",{attrs:{href:"https://bilibili-evolved-doc.vercel.app/docs/user/settings",target:"_blank"}},[e._v("\n 用户手册\n ")]),e._v("\n 以安装所需功能\n ")])]),e._v(" "),t("div",{staticClass:"widget-items"},e._l(e.widgets,(function(e){return t(e.component,{key:e.name,tag:"component",staticClass:"widget-item",attrs:{options:e.options}})})),1)],1)};o._withStripped=!0;var i=n(1379),r=n(9859),a=n(3378),c=n(3030);const s=[],l=Vue.extend({components:{VIcon:r.VIcon,VEmpty:r.VEmpty},data:()=>(unsafeWindow.allWidgets=s,{allWidgets:s,widgets:[],loading:!0}),watch:{allWidgets(){this.allWidgets.forEach((async e=>{const t=await(async e=>{if(e.urlExclude&&e.urlExclude.some(i.matchUrlPattern))return!1;if(e.urlInclude&&e.urlInclude.every(lodash.negate(i.matchUrlPattern)))return!1;if(e.condition){const t=e.condition();return!0===t||t instanceof Promise&&!0===await t}return!0})(e);t?this.widgets.push(e):(0,i.deleteValue)(this.widgets,(t=>t.name===e.name))})),console.log("updated widgets",this.widgets)}},created(){(0,a.registerAndGetData)(c.WidgetsPlugin,s),this.$nextTick().then((()=>this.loading=!1))}});var d=n(8332),m=n.n(d),f=n(1075),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},3663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-about-page"},[t("div",{staticClass:"be-about-page-header"},[t("VIcon",{attrs:{icon:"mdi-information-outline"}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("关于")])],1),e._v(" "),t("div",{staticClass:"be-about-page-content"},[t("div",{staticClass:"script-meta-info"},[t("div",{staticClass:"meta-info-name"},[e._v("\n "+e._s(e.meta.name)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-version"},[e._v("\n "+e._s(e.meta.compilationInfo.versionWithTag)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-description"},[e._v("\n "+e._s(e.meta.description)+"\n ")])]),e._v(" "),e.feedbackSupported?t("div",{staticClass:"script-links"},[t("a",{staticClass:"homepage script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-home-outline",size:20}}),e._v("\n 主页\n ")],1)],1),e._v(" "),t("a",{staticClass:"feedback script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/issues"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-message-text-outline",size:18}}),e._v("\n 反馈\n ")],1)],1),e._v(" "),t("a",{staticClass:"releases script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/releases"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-update",size:20}}),e._v("\n 更新日志\n ")],1)],1),e._v(" "),t("a",{staticClass:"donate script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/donate.md"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-heart-outline",size:18}}),e._v("\n 捐赠\n ")],1)],1)]):e._e(),e._v(" "),t("div",{staticClass:"about-page-actions"},e._l(e.aboutPageActions,(function(n){return t("VButton",{key:n.name,staticClass:"about-page-action",attrs:{disabled:n.disabled},on:{click:function(t){return e.runAction(n,t)}}},[t("VIcon",{attrs:{icon:n.icon,size:n.iconSize||20}}),e._v("\n "+e._s(n.displayName)+"\n ")],1)})),1)])])};o._withStripped=!0;var i=n(5721),r=n(3540),a=n(9859),c=n(6897);const s=(()=>{const e=GM_info.scriptMetaStr.match(/@namespace\s*(.+)/);return!e||!e[1]||!e[1].includes("greasyfork")})(),l=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon},data:()=>({meta:i.meta,aboutPageActions:c.a,feedbackSupported:s}),methods:{formatDateTime:r.formatDateTime,async runAction(e,t){e.disabled=!0;try{await e.run(t)}finally{e.disabled=!1}}}});var d=n(8332),m=n.n(d),f=n(9611),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},4642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-components-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(5900),r=n(106),a=n(4638),c=n(8047),s=n(2983),l=n(5576);const d={key:"userComponents",icon:"mdi-cube-scan",title:"组件",description:"可以在此处添加或删除组件, 要查看组件详情, 请回到设置面板查看.",list:i.components,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,a.isUserComponent)(e)),async onItemAdd(e,t){const{before:n,after:o}=(0,c.getHook)("userComponents.add",e,t);await n();const{metadata:i,message:a}=await(0,r.installComponent)(e);return await o(i),a}},m=Vue.extend({components:{ManagePanel:s.Z,UserItem:l.Z},data:()=>({config:d}),methods:{getItemConfig:e=>({key:"userComponents",item:e,isUserItem:(0,a.isUserComponent)(e),getSettings:e=>(0,a.getComponentSettings)(e),onItemRemove:async e=>{const{before:t,after:n}=(0,c.getHook)("userComponents.remove",e);await t(),(0,r.uninstallComponent)(e.name),await n()}})}});const f=(0,n(6499).Z)(m,o,[],!1,null,null,null).exports},3462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-plugins-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(4638),r=n(8047),a=n(6598),c=n(2983),s=n(5576);const l={key:"userPlugins",icon:"mdi-puzzle-outline",title:"插件",description:"可以在此处管理插件, 插件能够增强现有组件的功能. 内置插件包括脚本本体包含的插件和组件自带的插件, 组件自带的插件会自动随组件卸载而卸载.",list:a.plugins,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,i.isUserPlugin)(e.name)),async onItemAdd(e,t){const{before:n,after:o}=(0,r.getHook)("userPlugins.add",e,t);await n();const{message:i,metadata:c}=await(0,a.installPlugin)(e);return await o(c),i}},d=Vue.extend({components:{ManagePanel:c.Z,UserItem:s.Z},data:()=>({config:l}),methods:{getItemConfig:e=>({key:"userPlugins",item:e,isUserItem:(0,i.isUserPlugin)(e.name),onItemRemove:async e=>{const{before:t,after:n}=(0,r.getHook)("userPlugins.remove",e);await t(),(0,a.uninstallPlugin)(e.name),await n()}})}});const m=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},9952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-styles-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8047),r=n(2043),a=n(2983),c=n(5576);const s={key:"userStyles",icon:"mdi-tune",title:"样式",description:"可以在此处管理自定义样式, 自定义样式能简单修改界面元素以满足您的需求, 对于更复杂的样式, 推荐使用 Stylus 浏览器插件来管理.",list:r.styles,listFilter:(e,t)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase())),async onItemAdd(e,t){const{before:n,after:o}=(0,i.getHook)("userStyles.add",e,t);await n();const{message:a,metadata:c}=await(0,r.installStyle)(e);return await o(c),a}},l=Vue.extend({components:{ManagePanel:a.Z,UserItem:c.Z},data:()=>({config:s}),methods:{getItemConfig:e=>({key:"userStyles",item:e,isUserItem:!0,onItemRemove:async e=>{const{before:t,after:n}=(0,i.getHook)("userStyles.remove",e);await t(),(0,r.uninstallStyle)(e.name),await n()}})}});const d=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},2983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-panel"},[t("div",{staticClass:"manage-panel-title sub-page-row"},[t("VIcon",{attrs:{icon:e.config.icon}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("\n "+e._s(e.config.title)+"\n ")])],1),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"description-text"},[e._v("\n "+e._s(e.config.description)+"\n ")])]):e._e(),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row separator"}):e._e(),e._v(" "),t("div",{staticClass:"sub-page-row add-item-row"},[t("div",{staticClass:"title-text"},[e._v("添加"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"item-actions"},[t("VButton",{ref:"batchAddButton",on:{click:function(t){return e.showBatchAddPopup()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-download-multiple"}}),e._v("\n 批量\n ")],1),e._v(" "),t("VButton",{on:{click:function(t){return e.browse()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-folder-open-outline"}}),e._v("\n 浏览\n ")],1),e._v(" "),t("OnlineRegistryButton",[t("VIcon",{attrs:{size:18,icon:"mdi-web"}}),e._v("\n 在线\n ")],1)],1),e._v(" "),t("VPopup",{staticClass:"batch-add-popup",attrs:{"trigger-element":e.$refs.batchAddButton},model:{value:e.batchAddShow,callback:function(t){e.batchAddShow=t},expression:"batchAddShow"}},[t("TextArea",{ref:"batchAddTextArea",staticClass:"batch-add-textarea",attrs:{placeholder:"批量粘贴功能链接, 可以混合其他类型的功能 (如合集包)"},model:{value:e.batchUrl,callback:function(t){e.batchUrl=t},expression:"batchUrl"}}),e._v(" "),t("div",{staticClass:"batch-add-actions"},[t("VButton",{on:{click:function(t){e.batchAddShow=!1}}},[t("VIcon",{attrs:{size:12,icon:"close"}}),e._v("\n 取消\n ")],1),e._v(" "),t("VButton",{attrs:{type:"primary",disabled:!e.batchUrl},on:{click:function(t){return e.batchAddItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("TextBox",{staticClass:"item-url",attrs:{placeholder:"粘贴"+e.config.title+"链接"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addItem()}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),e._v(" "),t("VButton",{attrs:{disabled:!e.url},on:{click:function(t){return e.addItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row separator"}),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"title-text"},[e._v("已安装的"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"exclude-built-in"},[e._v("\n 隐藏内置"+e._s(e.config.title)+"\n "),t("SwitchBox",{model:{value:e.excludeBuiltIn,callback:function(t){e.excludeBuiltIn=t},expression:"excludeBuiltIn"}})],1)]),e._v(" "),t("div",{staticClass:"sub-page-row search-item-row"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{staticClass:"list-search",attrs:{placeholder:`在 ${e.filteredList.length} 个${e.config.title}中搜索`},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.loaded?e._e():t("div",{staticClass:"sub-page-row"},[t("VLoading",{key:"loading"})],1),e._v(" "),e.loaded?t("div",{staticClass:"manage-item-list"},[0===e.debouncedList.length?t("VEmpty",{key:"empty"}):e._e(),e._v(" "),e._l(e.debouncedList,(function(n){return t("ManageItem",{key:n.name},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)}))],2):e._e()])};o._withStripped=!0;var i=n(7194),r=n(3074),a=n(7102),c=n(6215),s=n(6106),l=n(9859),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-item",class:{virtual:e.virtual}},[e.virtual?e._e():e._t("default")],2)};d._withStripped=!0;var m=n(4242);const f=Vue.extend({mixins:[(0,m.B)(".manage-panel .manage-item-list")]});var u=n(8332),p=n.n(u),b=n(5436),h=n.n(b),g={insert:"head",singleton:!1};p()(h(),g);h().locals;var F=n(6499);const v=(0,F.Z)(f,d,[],!1,null,null,null).exports;var w=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{on:{mouseover:function(t){return e.initPopup()},click:function(t){return e.togglePopup()}}},[e._t("default")],2)};w._withStripped=!0;var y=n(3895);const x=Vue.extend({components:{VButton:l.VButton},methods:{initPopup:y.initPopup,togglePopup:y.togglePopup}});const k=(0,F.Z)(x,w,[],!1,null,null,null).exports,C=Vue.extend({components:{VIcon:l.VIcon,VButton:l.VButton,TextBox:l.TextBox,VEmpty:l.VEmpty,VLoading:l.VLoading,VPopup:l.VPopup,TextArea:l.TextArea,SwitchBox:l.SwitchBox,ManageItem:v,OnlineRegistryButton:k},props:{config:{type:Object,required:!0}},data:()=>({search:"",url:"",loaded:!1,batchAddShow:!1,batchUrl:"",excludeBuiltIn:!0,debouncedList:[]}),computed:{filteredList(){return this.config.list.filter((e=>this.config.listFilter(e,this.search,this.excludeBuiltIn)))}},watch:{filteredList(){this.loaded=!1,window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}),200)}},mounted(){window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}))},methods:{async browse(){const e=await(0,r.pickFile)({accept:"*.js;*.zip"});if(0===e.length)return;const[t]=e;let n;if(t.name.endsWith(".zip")){const e=await s.JSZipLibrary,o=await e.loadAsync(t),i=Object.values(o.files);if(0===i.length)return void a.Toast.info("不能打开空文件",`添加${this.config.title}`);n=await i[0].async("text")}else n=await t.text();try{a.Toast.info(await(this.config.onItemAdd?.(n,"")),`添加${this.config.title}`)}catch(e){(0,c.logError)(e)}},async showBatchAddPopup(){this.batchAddShow=!this.batchAddShow,this.batchAddShow&&(await this.$nextTick(),this.$refs.batchAddTextArea?.focus())},async addItem(){if(!this.url)return;const e=a.Toast.info("获取中...",`添加${this.config.title}`);try{const t=await(0,i.tryParseZip)(this.url);e.message=await(this.config.onItemAdd?.(t,this.url)),this.url=""}catch(t){console.error(t),e.type=a.ToastType.Error,e.message=t}},async batchAddItem(){if(!this.batchUrl)return;const e=this.batchUrl.split("\n").map((e=>e.trim())).filter((e=>""!==e)),t=a.Toast.info(`获取中... (0/${e.length})`,"批量添加");let n=0;const o=await Promise.allSettled(e.map((async o=>{const{message:r}=await(0,i.installFeature)(o);return n++,t.message=`获取中... (${n}/${e.length})`,r}))),r=o.filter((e=>"fulfilled"===e.status)).length,c=o.filter((e=>"rejected"===e.status)).length;t.message=`安装完成, 成功 ${r} 个, 失败 ${c} 个.`;const s=o.map(((t,n)=>{const o=e[n];return"fulfilled"===t.status?`${t.value} ${o}`:`${t.reason} ${o}`})).join("\n");console.log(s),this.batchUrl=""}}});var A=n(9454),E=n.n(A),B={insert:"head",singleton:!1};p()(E(),B);E().locals;const D=(0,F.Z)(C,o,[],!1,null,null,null).exports},5576:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-item"},[t("div",{staticClass:"user-item-display-name"},[e._v("\n "+e._s(e.config.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"user-item-name"},[e._v("\n "+e._s(e.config.item.name)+"\n ")]),e._v(" "),e.config.isUserItem?t("div",{staticClass:"user-item-line"}):e._e(),e._v(" "),e.config.isUserItem?t("div",{ref:"removeIcon",staticClass:"user-item-remove",on:{dblclick:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:18}}),e._v(" "),t("div",{ref:"removeConfirmTemplate",staticClass:"user-item-remove-confirm"},[e._v("\n 确定要卸载 "+e._s(e.config.item.displayName)+" 吗?\n "),t("VButton",{attrs:{type:"primary"},on:{click:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}}),e._v("\n 确定\n ")],1)],1)],1):e._e()])};o._withStripped=!0;var i=n(7102),r=n(9859),a=n(9464);const c=Vue.extend({components:{VIcon:r.VIcon,VButton:a.default},props:{config:{type:Object,required:!0}},data:()=>({removeConfirm:!1,settings:{}}),mounted(){this.config.getSettings&&(this.settings=this.config.getSettings(this.config.item)),this.config.isUserItem&&i.Toast.mini(this.$refs.removeConfirmTemplate,this.$refs.removeIcon,{trigger:"click",hideOnClick:!0})},methods:{async removeItem(){await this.config.onItemRemove(this.config.item),this.removeConfirm=!1}}});var s=n(8332),l=n.n(s),d=n(8635),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},1654:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-video-control-bar-extend squirtle-block-wrap"},e._l(e.items,(function(n){return t("div",{key:n.name,staticClass:"be-video-control-bar-extend-item bilibili-player-video-btn squirtle-block-wrap bpx-player-ctrl-btn",style:{order:n.order.toString()},attrs:{"data-name":n.name},on:{click:function(e){return n.action(e)}}},[t("button",[t("span",{staticClass:"bp-svgicon"},[t("VIcon",{attrs:{icon:n.icon}})],1)]),e._v(" "),t("div",{staticClass:"be-video-control-tooltip"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)};o._withStripped=!0;var i=n(9859);const r=Vue.extend({components:{VIcon:i.VIcon},props:{items:{type:Array,required:!0}}});var a=n(8332),c=n.n(a),s=n(3329),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},5433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-mini-toast-wrapper"},[t("div",{ref:"content",staticClass:"be-mini-toast-content"},[e._t("default")],2),e._v(" "),t("div",{ref:"toast",staticClass:"be-mini-toast"},[e._t("toast")],2)])};o._withStripped=!0;var i=n(948);const r={body:()=>document.body,local:void 0},a=Vue.extend({model:{prop:"show",event:"change"},props:{show:{type:Boolean,default:!1},container:{type:String,default:"local"},placement:{type:String,default:void 0}},data:()=>({toast:null}),watch:{placement(e){e&&this.toast&&(this.toast.placement=e)}},async mounted(){await this.$nextTick();const e=r[this.container];this.toast=(0,i.$)(this.$refs.toast,this.$refs.content,{placement:this.placement,showOnCreate:this.show,trigger:"mouseenter focusin",onHide:()=>{this.$emit("change",!1)},onShow:()=>{this.$emit("change",!0)},appendTo:"function"==typeof e?e():e,...this.$attrs})}});const c=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},7292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toast-card visible",class:"toast-"+e.card.type,on:{mouseover:e.stopTimer,mouseout:e.startTimer}},[t("div",{staticClass:"toast-card-border"}),e._v(" "),t("div",{staticClass:"toast-card-header"},[t("h1",{staticClass:"toast-card-title"},[e._v("\n "+e._s(e.card.title)+"\n ")]),e._v(" "),t("div",{staticClass:"toast-card-close",class:{"show-progress":Boolean(e.remainingTime)},attrs:{title:"关闭"},on:{click:function(t){return e.card.close()}}},[t("ProgressRing",{attrs:{size:28,stroke:2,progress:e.progressMax-e.remainingTime,max:e.progressMax}}),e._v(" "),t("VIcon",{attrs:{icon:"close",size:14}})],1)]),e._v(" "),t("div",{staticClass:"toast-card-message",domProps:{innerHTML:e._s(e.card.message)}})])};o._withStripped=!0;var i=n(9859);const r=Vue.extend({components:{VIcon:i.VIcon,ProgressRing:i.ProgressRing},props:{card:{type:Object,required:!0}},data:()=>({progressMax:0,remainingTime:0}),created(){this.readDuration()},methods:{durationTick(){const{closeTime:e}=this.card;e&&(this.remainingTime=e-Number(new Date),this.remainingTime>0&&requestAnimationFrame((()=>this.durationTick())))},readDuration(){const{duration:e,closeTime:t}=this.card;e&&(this.progressMax=t-Number(new Date),this.remainingTime=this.progressMax,requestAnimationFrame((()=>this.durationTick())))},stopTimer(){this.card.clearDuration(),this.progressMax=0,this.remainingTime=0},startTimer(){this.card.setDuration(),this.readDuration()}}});var a=n(8332),c=n.n(a),s=n(936),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},4085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-switch-box",class:{checked:e.checked,disabled:e.disabled},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.disabled,tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggle())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggle())}]}},[t("label",[t("input",{ref:"input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.checked},on:{change:function(t){return t.stopPropagation(),e.$emit("change",t.target.checked)}}}),e._v(" "),e._m(0)])])};o._withStripped=!0;const i=Vue.extend({name:"SwitchBox",model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{toggle(){this.disabled||(this.$refs.input.checked=!this.$refs.input.checked,this.$emit("change",this.$refs.input.checked))}}});var r=n(8332),a=n.n(r),c=n(4377),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[function(){var e=this._self._c;this._self._setupProxy;return e("div",{staticClass:"bar"},[e("div",{staticClass:"thumb"})])}],!1,null,null,null).exports},3765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-textbox",class:{linear:e.linear},attrs:{role:"textbox"}},[t("input",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"input",e.$attrs,!1),e.restListeners)),e._v(" "),e.linear?t("div",{staticClass:"linear-bar"}):e._e()])};o._withStripped=!0;var i=n(1150);const r=Vue.extend({name:"TextBox",mixins:[i.t],props:{linear:{type:Boolean,default:!1}}});var a=n(8332),c=n.n(a),s=n(8787),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"d1f779a8",null).exports},9464:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-button",class:{[e.type]:!0,disabled:e.disabled,round:e.round,icon:e.icon},attrs:{role:"button","aria-disabled":e.disabled,tabindex:e.disabled?-1:0},on:{keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)}]}},e.disabled?null:e.$listeners),[t("div",{staticClass:"content-container"},[e._t("default",(function(){return[e._v("Button")]}))],2)])};o._withStripped=!0;const i=Vue.extend({name:"VButton",props:{type:{type:String,default:"light"},round:{type:Boolean,default:!1},icon:{type:Boolean,default:!1}},computed:{disabled(){return Boolean(this.$attrs.disabled)}}});var r=n(8332),a=n.n(r),c=n(2566),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,"18aa9448",null).exports},9032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-loading"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};o._withStripped=!0;var i=n(3378);const[r]=(0,i.registerAndGetData)("vLoading",{content:"加载中..."}),a=Vue.extend({name:"VLoading",data:()=>({config:r})});var c=n(8332),s=n.n(c),l=n(2001),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},985:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-popup",class:{open:e.open,fixed:e.fixed,close:!e.open,"closed-style":e.closedStyle}},e.$listeners),[e.loaded?e._t("default"):e._e()],2)};o._withStripped=!0;const i=Vue.extend({name:"VPopup",model:{prop:"open",event:"popup-change"},props:{open:{type:Boolean,required:!1,default:!1},closedStyle:{type:Boolean,required:!1,default:!0},fixed:{type:Boolean,required:!1,default:!1},triggerElement:{required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0},autoDestroy:{type:Boolean,required:!1,default:!1},escClose:{type:Boolean,required:!1,default:!1},autoClosePredicate:{type:Function,required:!1,default:null}},data(){return{loaded:!this.lazy}},computed:{trigger(){return null===this.triggerElement?null:"$el"in this.triggerElement?this.triggerElement.$el:this.triggerElement}},watch:{open(){this.lazy&&!this.loaded&&(this.loaded=!0),this.setAutoClose()}},mounted(){const e=this.$el;this.open&&this.setAutoClose(),this.escClose&&e.addEventListener("keydown",(e=>{"Escape"===e.key&&this.$emit("popup-change",!1)})),this.autoDestroy&&e.addEventListener("transitionend",(()=>{this.open||(this.loaded=!1)}))},methods:{openHandler(e){const t=e.target,n=document.querySelector(".toast-card-container");let o=t!==this.trigger&&!this.trigger?.contains(t)&&t!==this.$el&&!this.$el.contains(t)&&!n?.contains(t);this.autoClosePredicate&&(o=o&&this.autoClosePredicate({target:t,element:this.$el,trigger:this.trigger})),o&&this.$emit("popup-change",!1)},setAutoClose(){if(this.autoClose){["mousedown","touchstart"].forEach((e=>{this.open?document.documentElement.addEventListener(e,(e=>this.openHandler(e))):document.documentElement.removeEventListener(e,(e=>this.openHandler(e)))}))}},toggle(){this.$emit("popup-change",!this.open)}}});var r=n(8332),a=n.n(r),c=n(8581),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,null,null).exports},1366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"slider",staticClass:"be-slider",attrs:{role:"slider",tabindex:e.focusable?0:-1},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(-1))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(1))}]}},[t("div",{ref:"barContainer",staticClass:"bar-container",on:{click:function(t){return e.setByCoord(t.offsetX)}}},[e._t("bar",(function(){return[t("div",{staticClass:"default-bar"})]}))],2),e._v(" "),t("MiniToast",{ref:"thumbContainer",staticClass:"thumb-container",style:{left:e.thumbLeft},attrs:{placement:"top",arrow:!1},scopedSlots:e._u([{key:"toast",fn:function(){return[e._v("\n "+e._s(e.displayFun(e.realValue))+"\n ")]},proxy:!0}])},[e._t("thumb",(function(){return[t("div",{staticClass:"default-thumb"})]}))],2)],1)};o._withStripped=!0;var i=n(5433);const r=Vue.extend({name:"VSlider",components:{MiniToast:i.Z},model:{prop:"value",event:"change"},props:{focusable:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},value:{type:Number,default:0},center:{type:Number,default:0},step:{type:Number,default:1},displayFun:{type:Function,default:e=>String(e)}},data:()=>({realValue:0}),computed:{realMax(){return this.valueToRounded(this.max,Math.floor)},realMin(){return this.valueToRounded(this.min,Math.ceil)},valueLength(){const e=this.realMax-this.realMin;return e<0?(console.error("[VSlider] No desirable value between min and max"),0):e},thumbLeft(){if(0===this.valueLength)return 0;return`${(this.realValue-this.realMin)/this.valueLength*100}%`},centerCoord(){return this.valueToLength(this.center-this.realMin)}},watch:{value(e){e!==this.realValue&&this.setByValue(e)},center(){this.setByValue(this.realValue)},min(){this.setByRounded(this.realValue)},max(){this.setByRounded(this.realValue)}},created(){this.setByValue(this.value)},mounted(){this.setupDrag()},methods:{valueToStep(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round)(e/this.step)},valueToStepped(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.valueToStep(e,t)*this.step},lengthToValue(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return this.valueLength*(e/t)},lengthToStep(e){return this.valueToStep(this.lengthToValue(e))},lengthToStepped(e){return this.lengthToStep(e)*this.step},valueToLength(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return 0===this.valueLength?0:t*(e/this.valueLength)},valueToRounded(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.center+this.valueToStepped(e-this.center,t)},limitValue(e){return 0===this.valueLength?this.realMin:(ethis.realMax&&(e=this.realMax),e)},offsetByStep(e){this.setByRounded(this.realValue+e*this.step)},setByLimited(e){e!==this.realValue&&(this.realValue=e,this.$emit("change",this.realValue))},setByRounded(e){this.setByLimited(this.limitValue(e))},setByValue(e){this.setByRounded(this.valueToRounded(e))},setByCoord(e){this.setByRounded(this.center+this.lengthToStepped(e-this.centerCoord))},setupDrag(){function e(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e=>{e.preventDefault(),e instanceof MouseEvent||e instanceof unsafeWindow.MouseEvent?n(e.pageX):1===e.touches.length&&n(e.touches[0].pageX)};return e.addEventListener(t,i,{once:o,passive:!1}),()=>e.removeEventListener(t,i)}const t=this.$refs.thumbContainer.$el,n=[{start:"mousedown",move:"mousemove",end:"mouseup"},{start:"touchstart",move:"touchmove",end:"touchend"}];for(const o of n){let n=0,i=0;e(t,o.start,(t=>{this.$emit("start",this.realValue),this.$refs.slider.focus(),n=t,i=this.realValue;const r=e(window,o.move,(e=>{this.setByValue(i+this.lengthToValue(e-n))}));e(window,o.end,(()=>{this.$emit("end",this.realValue),r()}),!0)}))}}}});var a=n(8332),c=n.n(a),s=n(7964),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"94f62aa6",null).exports},4749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("i",e._g(e._b({staticClass:"be-icon",class:e.classes,style:{"--size":e.size+"px"}},"i",e.$attrs,!1),e.$listeners),[e._t("default"),e._v(" "),e.icon in e.$options.static.customIcons?t("div",{staticClass:"custom-icon",domProps:{innerHTML:e._s(e.$options.static.customIcons[e.icon])}}):e._e()],2)};o._withStripped=!0;var i=n(3378);const r=n(5454),a=lodash.fromPairs(r.keys().map((e=>[e.replace(/.*\/([^/]+?)\.svg$/,"$1"),r(e)]))),[c]=(0,i.registerAndGetData)("ui.icons",a),s={customIcons:a},l=Vue.extend({name:"VIcon",props:{icon:{type:String,default:""},size:{type:Number,default:24},colored:{type:Boolean,default:!1}},computed:{classes(){const e=this.$options.static.customIcons,t=this.icon,n=[];return this.colored&&n.push("colored"),""===t||t in e?n:t.startsWith("mdi-")?[...n,"mdi",t]:[...n,`be-iconfont-${t}`]}},beforeCreate(){this.$options.static=s}}),d=l;var m=n(8332),f=n.n(m),u=n(8847),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6499:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var d=l.render;l.render=function(e,t){return s.call(t),d(e,t)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,s):[s]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},7933:(e,t,n)=>{"use strict";var o=n(8254),i=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8332),i=n.n(o),r=n(2080),a=n.n(r),c={insert:"head",singleton:!1};i()(a(),c);const s=a().locals||{}},8332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( +const t=E(unsafeWindow,"scrollTo",(function(){return!1}));return e?(await e(),t(),m):t},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return(n,o)=>lodash.isNumber(Number(n))?lodash.clamp(n,e,t):o},R=e=>lodash.upperFirst(lodash.camelCase(e)),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;const t=new Uint8Array(Math.ceil(e/2));return crypto.getRandomValues(t),[...t].map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,e)},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n{throw new Error("unreachable")},U=()=>navigator.connection?.saveData??!1,H=(e,t)=>{const n=new MouseEvent("mousedown",t),o=new MouseEvent("mouseup",t),i=new PointerEvent("pointerdown",t),r=new PointerEvent("pointerup",t),a=new MouseEvent("click",t);e.dispatchEvent(i),e.dispatchEvent(n),e.dispatchEvent(r),e.dispatchEvent(o),e.dispatchEvent(a)}},6215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScopedConsoleCallHook:()=>m,ScopedConsoleCreateHook:()=>d,logError:()=>a,randomScopedConsole:()=>u,useScopedConsole:()=>f});var o=n(8047),i=n(1379),r=n(4638);const a=async(e,t)=>{let o;"string"==typeof e?(o=e,console.error(o)):(o=(0,r.getGeneralSettings)().devMode?e.stack:e.message,console.error(e));const{Toast:i}=await Promise.resolve().then(n.bind(n,7102));i.error(o,"错误",t)},c=Symbol("ScopedConsole"),s=Symbol("NamePatch"),l={default:"#78909C",warn:"#CC7A00",error:"#BF6060",group:"#9575CD"},d="scopedConsole.create",m="scopedConsole.call",f=e=>{const{before:t,after:n}=(0,o.getHook)(d),{name:i,color:a=l.default,console:f=window.console}="string"==typeof e?{name:e}:e,u={name:i,color:a,console:f};t(e,f);let p=0;const b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.color;const i=e[c],r=(i?t.color:n)??l.default,a="#fff",d=i?["%c "]:["%c"],f={badgeNames:[...i?.badgeNames??[],...d,`%c${t.name}`],badgeValues:[...i?.badgeValues??[],"",`background-color: ${r}; color: ${a}; padding: 2px 4px; border-radius: 4px;`],original:i?.original??e},u=f.original,b=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:t.color,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;const i=b(e,t,n),r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{g[e][s]||(g[e][s]=e)}));const F={...unsafeWindow.console,...f};return F.log=b(f.log,u),F.info=b(f.info,u),F.warn=b(f.warn,u,l.warn),F.error=b(f.error,u,l.error),F.group=h(f.group,u,l.group,(e=>e+1)),F.groupCollapsed=h(f.groupCollapsed,u,l.group,(e=>e+1)),F.groupEnd=h(f.groupEnd,u,l.group,(e=>e-1)),F.debug=(()=>{const e=b(f.debug,u);return function(){if((0,r.getGeneralSettings)().devMode){for(var t=arguments.length,n=new Array(t),o=0;of({...e,name:(0,i.getRandomId)()})},6376:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ascendingBigIntSort:()=>a,ascendingSort:()=>i,ascendingStringSort:()=>r,descendingBigIntSort:()=>l,descendingSort:()=>c,descendingStringSort:()=>s});const o=e=>e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t)-e(n)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t).localeCompare(e(n))},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>{const o=BigInt(e(t)),i=BigInt(e(n));return o===i?0:o>i?1:-1}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n)-e(t)},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n).localeCompare(e(t))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>-a(e)(t,n)}},2197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formatTitle:()=>s,getFriendlyTitle:()=>l});var o=n(1379),i=n(4638),r=n(3540),a=n(6376);const c=e=>{let t=0,n=0;const o=[];return e.split("").forEach(((i,r)=>{"["===i&&(0===n?(o.push(e.substring(t,r)),t=r):n++),"]"===i&&(0===n?(o.push(e.substring(t,r+1)),t=r+1):n--)})),t""!==e))},s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new Date,s=()=>document.title.replace(/第[0-9]*[零一二三四五六七八九十百千]*[集话]-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/:([^:]+?)_.+?_bilibili_哔哩哔哩$/,"").replace(/_哔哩哔哩_bilibili$/,"").replace(/ - 哔哩哔哩$/,"").replace(/_哔哩哔哩 \(゜-゜\)つロ 干杯~-bilibili$/,"").replace(/(.*?) - (.*?) - 哔哩哔哩直播,二次元弹幕直播平台$/,"$1").trim(),l={title:(()=>{const e=(0,o.dq)(".video-info-container .video-title");if(null!==e)return e.getAttribute("title");const t=(0,o.dq)('[class*="mediainfo_mediaTitle"]');if(null!==t)return t.getAttribute("title");const n=(0,o.dq)(".header-info-ctnr .live-title .text");return null!==n?n.getAttribute("title"):s()})(),ep:(()=>{if(!t)return;const e=(0,o.dq)("#eplist_module li.cursor .ep-title");if(null!==e)return e.innerText;const n=(0,o.dq)("#multi_page .cur-list>ul li.on a, .video-episode-card__info-playing .video-episode-card__info-title");if(null!==n)return n.getAttribute("title");const i=(0,o.dq)(".multip-list-item.multip-list-item-active");return null!==i?i.getAttribute("title"):void 0})(),aid:unsafeWindow.aid,bvid:unsafeWindow.bvid,cid:unsafeWindow.cid,lid:document.URL.replace(/https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/,"$2"),y:i.getFullYear().toString(),M:(i.getMonth()+1).toString().padStart(2,"0"),d:i.getDate().toString().padStart(2,"0"),h:i.getHours().toString().padStart(2,"0"),m:i.getMinutes().toString().padStart(2,"0"),s:i.getSeconds().toString().padStart(2,"0"),ms:i.getMilliseconds().toString().substring(0,3)},d={...l,...n},m=c(e),f=Object.entries(d).sort((0,a.descendingSort)((e=>{let[t]=e;return t.length}))),u=m.map((e=>{if(!e.startsWith("[")||!e.endsWith("]"))return e;for(const[t,n]of f){const o=new RegExp(`^\\[([^\\[\\]]*?)${t}([^\\[\\]]*?)\\]$`),i=e.match(o);if(i&&Boolean(n))return`${i[1]??""}${n}${i[2]??""}`}return""})),p=u.join("");return(0,r.formatFilename)(p," ")},l=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s((0,i.getGeneralSettings)().filenameFormat,e,t)}},2513:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allVideoUrls:()=>u,bangumiUrls:()=>d,cheeseUrls:()=>m,columnUrls:()=>F,favoriteListUrls:()=>r,feedsUrls:()=>g,feedsUrlsWithoutDetail:()=>h,festivalUrls:()=>s,liveUrls:()=>b,mainSiteUrls:()=>p,matchCurrentPage:()=>w,mediaListUrls:()=>c,playerUrls:()=>v,upListUrls:()=>a,videoAndBangumiUrls:()=>f,videoUrls:()=>l,watchlaterUrls:()=>i});var o=n(1379);const i=["//www.bilibili.com/medialist/play/watchlater","//www.bilibili.com/list/watchlater"],r=["//www.bilibili.com/medialist/play/ml","//www.bilibili.com/list/ml"],a=[/\/\/www\.bilibili\.com\/medialist\/play\/\d+/,/\/\/www\.bilibili\.com\/list\/\d+/],c=[...i,...r,...a,/\/\/www\.bilibili\.com\/list\//],s=[/\/\/www\.bilibili\.com\/festival\//],l=["//www.bilibili.com/video/",...s,...c],d=["//www.bilibili.com/bangumi/play/"],m=["//www.bilibili.com/cheese/"],f=[...l,...d],u=[...f,...m],p=["https://www.bilibili.com/v/",/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/([^\/]+)\.html$/,/^https:\/\/www\.bilibili\.com\/watchlater\/#\/list$/,"https://www.bilibili.com/account/"],b=[/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],h=[/^https:\/\/t\.bilibili\.com\/$/,/^https:\/\/space\.bilibili\.com\//,/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],g=[...h,/^https:\/\/t\.bilibili\.com\//,/^https:\/\/www\.bilibili\.com\/opus\/[\d]+$/],F=[/^https:\/\/www\.bilibili\.com\/read\/cv/],v=["//player.bilibili.com","//www.bilibili.com/html/player.html",...l,...d,...m],w=function(){for(var e=arguments.length,t=new Array(e),n=0;nArray.isArray(e)?e.some((e=>(0,o.matchUrlPattern)(e))):(0,o.matchUrlPattern)(e)))}},637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CompareResult:()=>a,Version:()=>c,isFeatureAcceptable:()=>s});var o=n(7722),i=n(5721);function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a=function(e){return e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e[e.Incomparable=NaN]="Incomparable",e}({});class c{constructor(e){if(this.versionString=e,r(this,"parts",void 0),!/^[\d\.]+$/.test(e))throw new Error("Invalid version string");this.parts=e.split(".").map((e=>parseInt(e)))}compareTo(e){for(let t=0;te.parts[t]?a.Greater:a.Less}return this.parts.length!==e.parts.length?a.Less:a.Equal}greaterThan(e){return this.compareTo(e)===a.Greater}lessThan(e){return this.compareTo(e)===a.Less}equals(e){return this.compareTo(e)===a.Equal}}const s=async e=>{try{if("string"==typeof e&&(e=(0,o.loadFeatureCode)(e)),null==e)return!1;const{version:t}=i.meta.compilationInfo,{coreVersion:n}=e;if(!n||!t)return!0;const r=new c(t),a=new c(n);return r.equals(a)||r.greaterThan(a)}catch(t){return console.warn("[isFeatureAcceptable] check failed, feature =",e),!0}}},3378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addData:()=>r,getData:()=>a,registerAndGetData:()=>c,registerData:()=>i});const o=new Map,i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{if(o.has(e)){const{providers:n,loaded:i,data:r}=o.get(e);i?t(...r):n.push(t)}else o.set(e,{registered:!1,data:[],loaded:!1,providers:[t]})},a=e=>{if(o.has(e)){const t=o.get(e),{data:n,registered:i,loaded:r,providers:a}=t;if(i)return r||(a.forEach((e=>e(...n))),t.providers=[],t.loaded=!0),n}return[]},c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{"use strict";n.r(t),n.d(t,{addHook:()=>i,getHook:()=>r});const o=new Map,i=(e,t)=>{if(o.has(e)){const{providers:n}=o.get(e);n.push(t)}else o.set(e,{providers:[t]})},r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie.before?.(...n.concat(t)))))},after:async function(){for(var e=arguments.length,t=new Array(e),o=0;oe.after?.(...n.concat(t)))))}}}return{before:async()=>Promise.all([]),after:async()=>Promise.all([])}}},1403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{plugin:()=>r});const o=async(e,t,o)=>{const i={name:t,icon:"mdi-content-copy",description:`复制${e}`,indexer:o,action:async()=>{if(i.name===t){await navigator.clipboard.writeText(t);const{Toast:o}=await Promise.resolve().then(n.bind(n,7102));o.success("复制成功",`复制${e}`,1500)}}};return[i]},i=[{pattern:/^av([\d]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,2072)),i=await t(`https://api.bilibili.com/x/web-interface/view?aid=${e[1]}`),r=lodash.get(i,"data",{}),{bvid:a,title:c}=r,s=`av${e[1]}`;return{name:c||s,description:"av号跳转",indexer:s,link:`https://www.bilibili.com/av${e[1]}`,extraActions:a?await o("BV号",a,s):[]}}},{pattern:/^bv([\da-zA-Z]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,2072)),i=await t(`https://api.bilibili.com/x/web-interface/view?bvid=${e[1]}`),r=lodash.get(i,"data",{}),{aid:a,title:c}=r,s=`BV${e[1]}`;return{name:c||s,description:"BV号跳转",indexer:s,link:`https://www.bilibili.com/BV${e[1]}`,extraActions:a?await o("av号",`av${a}`,s):[]}}}],r={name:"launchBar.actions.IDSearch",displayName:"搜索栏 - 视频跳转",async setup(){const{addData:e}=await Promise.resolve().then(n.bind(n,3378)),{LaunchBarActionProviders:t}=await Promise.resolve().then(n.bind(n,9373));e(t,(e=>{e.push({name:"IDSearchProvider",getActions:async e=>{const t=[];for(const n of i){const o=e.match(n.pattern);if(o){const{name:e,description:i="",indexer:r,link:a,extraActions:c=[]}=await n.getActions(o);t.push({name:e,icon:"mdi-open-in-new",indexer:r,description:i,action:()=>{window.open(a,"_blank")},order:0},...c)}}return t}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}},6598:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractPluginFromComponent:()=>d,installPlugin:()=>s,loadAllPlugins:()=>f,loadPlugin:()=>m,plugins:()=>c,pluginsMap:()=>a,uninstallPlugin:()=>l});var o=n(1379),i=n(3378),r=n(8047);const a={},c=lodash.once((()=>{const e=n(4353);return e.keys().map((t=>{const n=e(t);if("plugin"in n){const e=n.plugin;return a[e.name]=e,e}})).filter((e=>void 0!==e))}))(),s=async e=>{const{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,7722));let o;try{o=t(e)}catch(e){throw new Error("无效的插件代码",e)}const{settings:i}=await Promise.resolve().then(n.bind(n,4638)),r=i.userPlugins[o.name];if(r)return r.code=e,r.name=o.name,r.displayName=o.displayName||o.name,{metadata:o,message:`已更新插件'${o.displayName}', 刷新后生效`};const a={code:e,displayName:o.name,...o};return i.userPlugins[o.name]=a,c.push(a),{metadata:o,message:`已安装插件'${o.displayName||o.name}', 刷新后生效`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,4638)),i=Object.entries(t.userPlugins).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的插件`);const[r,a]=i;return delete t.userPlugins[r],(0,o.deleteValue)(c,(e=>e.name===r)),{metadata:a,message:`已卸载插件'${a.displayName}', 刷新后生效`}},d=e=>e.plugin?{name:`${e.name}.plugin`,displayName:`${e.displayName} - 附带插件`,...e.plugin}:null,m=async e=>{if(e.setup){const{pluginLoadTrace:t}=await Promise.resolve().then(n.bind(n,2399));await t(e);const{coreApis:o}=await Promise.resolve().then(n.bind(n,980));return e.setup({coreApis:o,addData:i.addData,addHook:r.addHook,registerData:i.registerData,registerAndGetData:i.registerAndGetData,getHook:r.getHook})}return null},f=async e=>{const{settings:t,getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,4638)),{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,6517));for(const t of e){const e=d(t);e&&c.push(e)}for(const[e,n]of Object.entries(t.userPlugins)){const{code:t}=n;let o;try{o=i(t)}catch(t){console.error("从代码加载用户插件失败。代码可能包含语法错误或执行时产生了异常",{pluginName:e,error:t});continue}c.push(o)}return Promise.allSettled(c.map(m)).then((async()=>{if(o().devMode){const{pluginLoadTime:e,pluginResolveTime:t}=await Promise.resolve().then(n.bind(n,2399)),{logStats:o}=await Promise.resolve().then(n.bind(n,4007));o("plugins block",e),o("plugins resolve",t)}}))}},2043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserStyleMode:()=>r,installStyle:()=>c,styles:()=>a,uninstallStyle:()=>s});var o=n(4638),i=n(1379);let r=function(e){return e.Default="default",e.Instant="instant",e.Important="important",e}({});const a=Object.values(o.settings.userStyles),c=async e=>{try{let t;const{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,7722));t="string"==typeof e?i(e):e;const{name:c,style:s,displayName:l,mode:d}=t,{removeStyle:m,addImportantStyle:f,addStyle:u}=await Promise.resolve().then(n.bind(n,4738)),p=o.settings.userStyles[c];if(p)Object.assign(p,t),m(c);else{const e={displayName:c,mode:r.Default,...t};o.settings.userStyles[c]=e,a.push(e)}return d===r.Important?f(s,c):u(s,c),{metadata:t,message:`已安装样式'${l||c}'`}}catch(e){throw new Error("无效的样式代码",{cause:e})}},s=async e=>{const t=Object.entries(o.settings.userStyles).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!t)throw new Error(`没有找到与名称'${e}'相关联的样式`);const{removeStyle:r}=await Promise.resolve().then(n.bind(n,4738)),[c,{displayName:s}]=t;return r(c),delete o.settings.userStyles[c],(0,i.deleteValue)(a,(e=>e.name===c)),{metadata:t,message:`已卸载样式'${s}'`}}},9859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncButton:()=>s,CheckBox:()=>h,ColorPicker:()=>E,DefaultWidget:()=>mt,DpiImage:()=>M,ImagePicker:()=>R,ImageViewer:()=>Y,MiniToast:()=>ft.Z,ProgressBar:()=>ne,ProgressRing:()=>se,RadioButton:()=>ue,RangeInput:()=>we,ScrollTrigger:()=>Be,SwitchBox:()=>De.Z,TabControl:()=>Oe,TextArea:()=>qe,TextBox:()=>Ze.default,VButton:()=>r.default,VDropdown:()=>Xe,VEmpty:()=>ot,VIcon:()=>o.default,VLoading:()=>it.default,VPopup:()=>He.default,VSlider:()=>rt.default,showImage:()=>K});var o=n(4749),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({attrs:{disabled:e.disabled||e.internalDisabled},on:{click:e.onClick}},"VButton",e.$attrs,!1),e.listeners),[e._t("default",(function(){return[e._v("Button")]}))],2)};i._withStripped=!0;var r=n(9464);const a=Vue.extend({components:{VButton:r.default},props:{disabled:{type:Boolean,default:!1}},data:()=>({internalDisabled:!1}),computed:{listeners(){return lodash.omit(this.$listeners,"click")},onClick(){var e=this;return async function(){try{e.internalDisabled=!0;for(var t=arguments.length,n=new Array(t),o=0;oPromise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,4749)).then((e=>e.default))},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},iconPosition:{type:String,default:"left"},checkedIcon:{type:String,default:"mdi-checkbox-marked-circle"},notCheckedIcon:{type:String,default:"mdi-checkbox-blank-circle-outline"}}});var m=n(8332),f=n.n(m),u=n(2450),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,c.Z)(d,l,[],!1,null,"07bbf374",null).exports;var g=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-color-picker"},[t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.popupOpened=!e.popupOpened,expression:"() => (popupOpened = !popupOpened)"}],ref:"button",staticClass:"selected-color",style:{backgroundColor:e.color,width:e.size+"px",height:e.size+"px"},attrs:{role:"button",tabindex:"0"}}),e._v(" "),t("VPopup",{staticClass:"picker",class:{compact:e.compact},style:{"--offset":e.popupOffset+"px"},attrs:{"esc-close":"","auto-close":!1,"trigger-element":e.$refs.button},model:{value:e.popupOpened,callback:function(t){e.popupOpened=t},expression:"popupOpened"}},[t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("预设颜色")]),e._v(" "),t("div",{staticClass:"colors"},e._l(e.colors,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectHexColor(n),expression:"() => selectHexColor(c)"}],key:n,staticClass:"color",style:{backgroundColor:n},attrs:{role:"radio",tabindex:e.popupOpened?0:-1}})})),0)]),e._v(" "),t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("调色")]),e._v(" "),t("div",{staticClass:"bars"},[e.isRGB?[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("R")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.red},on:{change:function(t){return e.wrapper.change("red",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.redGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2466330035)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.red)},on:{change:function(t){return e.wrapper.change("red",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("G")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.green},on:{change:function(t){return e.wrapper.change("green",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.greenGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2962781435)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.green)},on:{change:function(t){return e.wrapper.change("green",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.blue},on:{change:function(t){return e.wrapper.change("blue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.blueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,660815582)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.blue)},on:{change:function(t){return e.wrapper.change("blue",t)}}})],1)]:[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("H")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:359.9,value:e.wrapper.hue},on:{change:function(t){return e.wrapper.change("hue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.hueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"4","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.hue)},on:{change:function(t){return e.wrapper.change("hue",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("S")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.saturation},on:{change:function(t){return e.wrapper.change("saturationv",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.saturationGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.saturation)},on:{change:function(t){return e.wrapper.change("saturationv",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.brightness},on:{change:function(t){return e.wrapper.change("value",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.brightnessGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.brightness)},on:{change:function(t){return e.wrapper.change("value",t)}}})],1)]],2)]),e._v(" "),t("div",{staticClass:"info item-group"},[t("VButton",{staticClass:"toggle-mode",attrs:{disabled:!e.popupOpened,type:"transparent",title:e.isRGB?"切换至HSB":"切换至RGB"},on:{click:function(t){e.isRGB=!e.isRGB}}},[e._v("\n "+e._s(e.isRGB?"切换至HSB":"切换至RGB")+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"color-preview",style:{backgroundColor:e.wrapper.hex}}),e._v(" "),t("TextBox",{staticClass:"hex",attrs:{disabled:!e.popupOpened,text:e.wrapper.hex,"change-on-blur":""},on:{change:function(t){return e.selectHexColor(t)}}})],1),e._v(" "),t("div",{staticClass:"operations item-group",on:{click:function(t){e.popupOpened=!e.popupOpened}}},[t("VButton",{staticClass:"cancel",attrs:{disabled:!e.popupOpened},on:{click:function(t){return e.reset()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{staticClass:"ok",attrs:{disabled:!e.popupOpened,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1)])],1)};g._withStripped=!0;var F=n(4654),v=n.n(F);const w=JSON.parse('["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#2196F3","#00A0D8","#00ACC1","#26A69A","#81C784","#9CCC65","#FF9800","#FF7043","#A1887F","#757575","#78909C"]'),y=e=>{let t=new(v())(e);const n={get color(){return t},set color(e){t=e,this.updateProps()},change(e,n){"string"==typeof n&&(n=parseFloat(n),Number.isNaN(n))||(this.color=t[e](n))},updateProps(){this.red=t.red(),this.green=t.green(),this.blue=t.blue(),this.hue=t.hue(),this.saturation=t.saturationv(),this.brightness=t.value(),this.hex=t.hex(),this.hueGradient=`linear-gradient(to right, ${t.hue(0).hex()}, ${t.hue(60).hex()}, ${t.hue(120).hex()}, ${t.hue(180).hex()}, ${t.hue(240).hex()}, ${t.hue(300).hex()}, ${t.hue(0).hex()})`,this.saturationGradient=`linear-gradient(to right, ${t.saturationv(0).hex()}, ${t.saturationv(100).hex()})`,this.brightnessGradient=`linear-gradient(to right, ${t.value(0).hex()}, ${t.value(100).hex()})`,this.redGradient=`linear-gradient(to right, ${t.red(0).hex()}, ${t.red(255).hex()})`,this.greenGradient=`linear-gradient(to right, ${t.green(0).hex()}, ${t.green(255).hex()})`,this.blueGradient=`linear-gradient(to right, ${t.blue(0).hex()}, ${t.blue(255).hex()})`}};return n.updateProps(),n},x=Vue.extend({name:"ColorPicker",components:{TextBox:()=>Promise.resolve().then(n.bind(n,3765)).then((e=>e.default)),VSlider:()=>Promise.resolve().then(n.bind(n,1366)).then((e=>e.default)),VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,985)).then((e=>e.default))},model:{prop:"color",event:"change"},props:{color:{type:String,default:"#000000",required:!0},size:{type:Number,default:24,required:!1},compact:{type:Boolean,default:!1},popupOffset:{type:Number,default:0}},data(){return{popupOpened:!1,wrapper:y(this.color),colors:w,isRGB:!1}},watch:{popupOpened(e){e&&(document.body.addEventListener("mousedown",(e=>{this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("mouseup",(()=>{this.popupOpened=!1}),{once:!0})})),document.body.addEventListener("touchstart",(e=>{1!==e.touches.length||this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("touchend",(()=>{this.popupOpened=!1}),{once:!0})})))}},methods:{ok(){this.$emit("change",this.wrapper.hex)},reset(){this.wrapper.color=new(v())(this.color)},selectHexColor(e){try{const t=new(v())(e,"hex");this.wrapper.color=t}catch(e){}},fixed:e=>(Math.round(10*e)/10).toString(),int:e=>Math.round(e).toString()}});var k=n(5395),C=n.n(k),A={insert:"head",singleton:!1};f()(C(),A);C().locals;const E=(0,c.Z)(x,g,[],!1,null,"5b939efc",null).exports;var B=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("img",e._b({class:{placeholder:e.isPlaceholderActive},attrs:{width:e.width,height:e.height,srcset:e.srcset,src:e.actualSrc}},"img",e.$attrs,!1))};B._withStripped=!0;var D=n(1379),z=n(6826);const I=Vue.extend({name:"DpiImage",props:{size:{type:[Object,Number],required:!0},src:{type:String,required:!0},intersection:{type:Object,default:()=>({})},placeholderImage:{type:Boolean,default:!1}},data:()=>({srcset:null,actualSrc:z.EmptyImageUrl,isPlaceholderActive:!1}),computed:{width(){return"object"==typeof this.size&&"width"in this.size?this.size.width:"number"==typeof this.size?this.size:null},height(){return"object"==typeof this.size&&"height"in this.size?this.size.height:"number"==typeof this.size?this.size:null}},watch:{size(){this.sourceChange()},src(){this.sourceChange()}},mounted(){const e={rootMargin:"200px",...this.intersection},t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.calcSrc(),t.disconnect())}))}),e);t.observe(this.$el)},methods:{sourceChange(){this.actualSrc!==z.EmptyImageUrl&&null!==this.srcset&&this.calcSrc()},calcSrc(){const e=!this.src||!this.size;if(this.isPlaceholderActive=e&&this.placeholderImage,e)return this.srcset=null,void(this.placeholderImage?this.actualSrc="https://s1.hdslb.com/bfs/static/blive/live-web-center/static/img/no-cover.1ebe4d5.jpg":this.actualSrc=z.EmptyImageUrl);let{src:t}=this;if(t.startsWith("http:")&&(t=t.replace("http:","https:")),t.includes("//static.hdslb.com/images/member/noface.gif"))return this.srcset=t,void(this.actualSrc=t);this.srcset=(0,D.getDpiSourceSet)(t,this.size),this.actualSrc=t}}}),S=I;const M=(0,c.Z)(S,B,[],!1,null,null,null).exports;var P=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-image-picker"},[t("VButton",{ref:"pickButton",staticClass:"pick-button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[e._t("text",(function(){return[e._v(" 选择图片 ")]}))],2),e._v(" "),t("VPopup",{staticClass:"popup",attrs:{"trigger-element":e.$refs.pickButton},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel()}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("transition-group",{staticClass:"images",attrs:{name:"image-list",tag:"div",tabindex:"-1"}},e._l(e.images,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectImage(n),expression:"() => selectImage(i)"}],key:n.name,staticClass:"image",class:{selected:n.name===e.selectedImage.name},attrs:{title:n.name,tabindex:e.popupOpen?0:-1}},[t("img",{attrs:{width:"64",height:"64",src:n.url}})])})),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:0===e.images.length,expression:"images.length === 0"}],staticClass:"empty-tip"},[e._v("空空如也哦 = ̄ω ̄=")]),e._v(" "),t("div",{staticClass:"operations"},[t("VPopup",{staticClass:"add-image-popup",attrs:{tabindex:"-1",lazy:!1,"trigger-element":e.$refs.addButton},model:{value:e.addImagePopupOpen,callback:function(t){e.addImagePopupOpen=t},expression:"addImagePopupOpen"}},[t("div",{staticClass:"add-image-row"},[e._v("\n 名称:\n "),t("TextBox",{ref:"addImageInput",attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.name,callback:function(t){e.$set(e.newImage,"name",t)},expression:"newImage.name"}})],1),e._v(" "),t("div",{staticClass:"add-image-row"},[e._v("\n 链接:\n "),t("TextBox",{attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.url,callback:function(t){e.$set(e.newImage,"url",t)},expression:"newImage.url"}})],1),e._v(" "),t("div",{staticClass:"add-image-row buttons"},[t("VButton",{attrs:{disabled:!e.addImagePopupOpen},on:{click:function(t){e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 取消\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.newImage.url||!e.newImage.name,type:"primary"},on:{click:function(t){e.addImage(e.newImage),e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 确定\n ")])],1)]),e._v(" "),t("VButton",{staticClass:"clear-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.clearImage()}}},[e._v("\n 清除选择\n ")]),e._v(" "),t("VButton",{ref:"addButton",staticClass:"add-image",attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.openAddImagePopup()}}},[e._v("\n 添加\n ")]),e._v(" "),t("VButton",{staticClass:"edit-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.editImage()}}},[e._v("\n 编辑\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.selectedImage.name},on:{click:function(t){e.removeImage(e.selectedImage),e.clearImage()}}},[e._v("\n 删除\n ")])],1),e._v(" "),t("div",{staticClass:"operations"},[t("VButton",{attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.cancel()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.popupOpen,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1),e._v(" "),e.addImagePopupOpen?t("div",{staticClass:"mask"}):e._e()],1)],1)};P._withStripped=!0;const O=[],V=Vue.extend({name:"ImagePicker",components:{VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,985)).then((e=>e.default)),TextBox:()=>Promise.resolve().then(n.bind(n,3765)).then((e=>e.default))},model:{prop:"image",event:"change"},props:{image:{type:Object,required:!0}},data:()=>({images:O,popupOpen:!1,addImagePopupOpen:!1,selectedImage:{name:"",url:""},newImage:{name:"",url:""}}),methods:{addImage:e=>{if(!e.name||!e.url)return;const t=O.find((t=>t.name===e.name));t?t.url=e.url:O.unshift(e)},removeImage:e=>{const t="string"==typeof e?e:e.name,n=O.findIndex((e=>e.name===t));-1!==n&&O.splice(n,1)},ok(){this.$emit("change",this.selectedImage),this.popupOpen=!1},cancel(){this.selectedImage=this.image,this.popupOpen=!1},selectImage(e){this.selectedImage.name===e.name?this.selectedImage={name:"",url:""}:this.selectedImage=e},clearImage(){this.selectedImage={name:"",url:""}},clearNewImage(){this.newImage={name:"",url:""}},editImage(){this.newImage=this.selectedImage,this.openAddImagePopup()},async openAddImagePopup(){this.addImagePopupOpen=!this.addImagePopupOpen,await this.$nextTick(),this.$refs.addImageInput.$refs.input.focus()}}});var T=n(9497),L=n.n(T),j={insert:"head",singleton:!1};f()(L(),j);L().locals;const R=(0,c.Z)(V,P,[],!1,null,"7b32c90b",null).exports;var N=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"image-viewer-container",class:{open:e.open},on:{click:e.detectOutside}},[t("div",{ref:"viewer",staticClass:"image-viewer"},[t("div",{staticClass:"image-container"},[e.image?t("img",{staticClass:"image",attrs:{src:e.image}}):e._e()]),e._v(" "),t("div",{staticClass:"close image-viewer-icon",attrs:{title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{size:48,icon:"mdi-close"}})],1),e._v(" "),t("a",{staticClass:"copy-link image-viewer-icon",attrs:{target:"_blank",title:"复制原链接"},on:{click:function(t){return e.copyLink()}}},[e.copiedTimer?t("VIcon",{attrs:{size:48,icon:"mdi-check"}}):t("VIcon",{attrs:{size:48,icon:"mdi-link"}})],1),e._v(" "),t("a",{staticClass:"new-tab image-viewer-icon",attrs:{target:"_blank",title:"在新标签页打开"},on:{click:function(t){return e.newTab()}}},[t("VIcon",{attrs:{size:48,icon:"mdi-open-in-new"}})],1),e._v(" "),e.blobUrl?t("a",{staticClass:"download image-viewer-icon",attrs:{target:"_blank",title:"下载",href:e.blobUrl,download:e.filename}},[t("VIcon",{attrs:{size:48,icon:"mdi-download"}})],1):e._e()])])};N._withStripped=!0;var q=n(4638),Z=n(2197),U=n(2072);const H=Vue.extend({components:{VIcon:o.default},props:{image:{type:String,required:!0}},data:()=>({filename:"",open:!1,blobUrl:"",keyHandler:null,copiedTimer:0}),watch:{async image(e){this.blobUrl&&URL.revokeObjectURL(this.blobUrl),e||(this.blobUrl="");const t=await(0,U.getBlob)(e);this.blobUrl=URL.createObjectURL(t),this.updateFilename()}},mounted(){this.keyHandler=e=>{"Escape"===e.key&&(this.open=!1)},document.addEventListener("keydown",this.keyHandler),(0,q.addComponentListener)("settingsPanel.filenameFormat",(()=>{this.updateFilename()}),!0)},beforeDestroy(){document.removeEventListener("keydown",this.keyHandler)},methods:{async copyLink(){await navigator.clipboard.writeText(this.image),this.copiedTimer&&window.clearTimeout(this.copiedTimer),this.copiedTimer=window.setTimeout((()=>{this.copiedTimer=0}),2e3)},newTab(){window.open(this.image,"_blank")},detectOutside(e){const t=this.$el,{viewer:n}=this.$refs;e.target!==t&&e.target!==n||(this.open=!1)},updateFilename(){const e=this.image;this.filename=e?(0,Z.getFriendlyTitle)(document.URL.includes("/www.bilibili.com/bangumi/"))+e.substring(e.lastIndexOf(".")):""}}});var W=n(9605),G=n.n(W),Q={insert:"head",singleton:!1};f()(G(),Q);G().locals;const Y=(0,c.Z)(H,N,[],!1,null,"8829ba14",null).exports;let X;const K=async e=>(X||await(async()=>(X=new Y({propsData:{image:"",open:!1}}).$mount(),document.body.insertAdjacentElement("beforeend",X.$el),X))(),setTimeout((()=>{X.image=e,X.open=!0})),X);var J=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-progress-bar"},[t("div",{staticClass:"progress",class:{transition:e.transition},style:{width:e.width}})])};J._withStripped=!0;const _=Vue.extend({name:"ProgressBar",props:{progress:{type:Number,default:50},min:{type:Number,default:0},max:{type:Number,default:100},transition:{type:Boolean,default:!1}},computed:{width(){let e=this.progress;e>this.max?e=this.max:ethis.max?e=this.max:e{de.has(e)?de.get(e).push({instance:t,uncheck:n}):de.set(e,[{instance:t,uncheck:n}])})),fe=Vue.extend({name:"RadioButton",components:{CheckBox:h},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},allowUncheck:{type:Boolean,default:!1},group:{type:String,default:""},checkedIcon:{type:String,default:"mdi-radiobox-marked"},notCheckedIcon:{type:String,default:"mdi-radiobox-blank"}},watch:{checked(e){if(e){const e=this.group,t=this.$el;let n;n=""===e?t.parentElement:e,de.get(n).forEach((e=>{let{instance:t,uncheck:n}=e;t!==this&&n()}))}}},mounted(){const e=this.group,t=this.$el;let n;n=me(""===e?t.parentElement:e),n(this,(()=>this.$emit("change",!1)))},methods:{emitChange(e){(this.checked&&this.allowUncheck||!this.checked)&&this.$emit("change",e)}}});const ue=(0,c.Z)(fe,le,[],!1,null,null,null).exports;var pe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-range-input"},[t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.start.toString()},on:{change:function(t){e.wrapper.start=t}}}),e._v(" "),e._t("separator",(function(){return[t("div",{staticClass:"default-separator"},[e._v("~")])]})),e._v(" "),t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.end.toString()},on:{change:function(t){e.wrapper.end=t}}})],2)};pe._withStripped=!0;const be=e=>({range:e.range,get start(){return this.range.start.toString()},set start(e){this.createNewRange(e,this.end)},get end(){return this.range.end.toString()},set end(e){this.createNewRange(this.start,e)},createNewRange(t,n){let o={start:t,end:n};e.validator&&(o=e.validator(o)),null!=o?(this.range=o,e.$emit("change",o)):this.range={start:this.range.start,end:this.range.end}}}),he=Vue.extend({name:"RangeInput",components:{TextBox:()=>Promise.resolve().then(n.bind(n,3765))},model:{prop:"range",event:"change"},props:{range:{type:Object,required:!0},validator:{type:Function,default:void 0}},data(){return{wrapper:be(this)}}});var ge=n(5620),Fe=n.n(ge),ve={insert:"head",singleton:!1};f()(Fe(),ve);Fe().locals;const we=(0,c.Z)(he,pe,[],!1,null,"b459c060",null).exports;var ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-scroll-trigger",on:{click:function(t){return e.trigger()}}},[e._t("default",(function(){return[t("VLoading")]}))],2)};ye._withStripped=!0;var xe=n(6215);const ke=Vue.extend({components:{VLoading:()=>Promise.resolve().then(n.bind(n,9032)).then((e=>e.default))},props:{detectViewport:{type:Boolean,required:!1,default:!1}},data:()=>({isFirstLoad:!0,isViewportTriggerRunning:!1,parentLoadState:"none"}),async mounted(){const e=(0,xe.useScopedConsole)("ScrollTrigger"),t=this.$el,{visible:o}=await Promise.resolve().then(n.bind(n,8643));o(t,(async n=>{if(n.some((e=>e.intersectionRatio>0))){if(e.log("Intersection Observer trigger"),this.trigger(),!this.detectViewport&&!this.isFirstLoad&&this.isViewportTriggerRunning)return;for(this.isViewportTriggerRunning=!0;this.getVisibleStateByViewport(t);)if(await(0,D.delay)(500),"loaded"===this.parentLoadState){if(!this.getVisibleStateByViewport(t))break;e.log("is first load & viewport trigger"),this.trigger()}this.isFirstLoad=!1}}))},methods:{getElementToViewportBottomDistance:e=>document.documentElement.clientHeight-e.getBoundingClientRect().top,getVisibleStateByViewport(e){return Boolean(this.getElementToViewportBottomDistance(e)>-20)},setLoadState(e){this.parentLoadState=e},resetIsFirstLoad(){this.isFirstLoad=!0},trigger(){this.$emit("trigger")}}});var Ce=n(4534),Ae=n.n(Ce),Ee={insert:"head",singleton:!1};f()(Ae(),Ee);Ae().locals;const Be=(0,c.Z)(ke,ye,[],!1,null,null,null).exports;var De=n(4085),ze=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-tab-control"},[t("div",{staticClass:"default-header"},[e._t("tabs",(function(){return[t("div",{staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},attrs:{"data-count":n.count>0?n.count:null},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)]})),e._v(" "),t("div",{staticClass:"header-item"},[e._t("header-item")],2),e._v(" "),null!==e.moreLink&&void 0!==e.moreLink?t("a",{staticClass:"be-more-link",attrs:{href:"function"==typeof e.moreLink?e.moreLink(e.selectedTab):e.moreLink,target:"_blank"}},[t("VButton",{attrs:{disabled:!e.moreLink,round:""}},[e._t("more-link",(function(){return[e._v("\n 查看更多\n "),t("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})]}))],2)],1):e._e()],2),e._v(" "),e._t("content",(function(){return[t("div",{staticClass:"default-content"},[t("transition",{attrs:{name:"content-transition"}},[t(e.selectedTab.component,e._b({tag:"component"},"component",e.selectedTab.propsData,!1))],1)],1)]}))],2)};ze._withStripped=!0;const Ie=Vue.extend({name:"TabControl",components:{VButton:()=>Promise.resolve().then(n.bind(n,9464)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,4749)).then((e=>e.default))},model:{prop:"link",event:"change"},props:{tabs:{type:Array,required:!0,validator:e=>0!==e.length},defaultTab:{type:String,required:!1,default:""},link:{type:String,required:!1,default:null},moreLink:{type:[String,Function],default:null}},data(){const e=this.tabs;return{selectedTabName:e.find((e=>e.name===this.defaultTab))?.name??e[0].name}},computed:{selectedTab(){return this.tabs.find((e=>e.name===this.selectedTabName))}},mounted(){this.$emit("change",this.selectedTab.activeLink)},methods:{selectTab(e){this.selectedTabName!==e.name?(this.selectedTabName=e.name,e.count=0,this.$emit("change",this.selectedTab.activeLink)):e.activeLink&&window.open(e.activeLink,"_blank")}}});var Se=n(271),Me=n.n(Se),Pe={insert:"head",singleton:!1};f()(Me(),Pe);Me().locals;const Oe=(0,c.Z)(Ie,ze,[],!1,null,null,null).exports;var Ve=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-text-area",attrs:{role:"text"}},[t("textarea",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"textarea",e.$attrs,!1),e.restListeners))])};Ve._withStripped=!0;var Te=n(1150);const Le=Vue.extend({name:"TextArea",mixins:[Te.t]});var je=n(9839),Re=n.n(je),Ne={insert:"head",singleton:!1};f()(Re(),Ne);Re().locals;const qe=(0,c.Z)(Le,Ve,[],!1,null,null,null).exports;var Ze=n(3765),Ue=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"hit",rawName:"v-hit",value:e.hit,expression:"hit"}],staticClass:"be-dropdown",class:{disabled:e.disabled,round:e.round},attrs:{role:"combobox",tabindex:e.disabled?-1:0,"aria-disabled":e.disabled}},[t("div",{ref:"selected",staticClass:"selected"},[t("div",{staticClass:"selected-item"},[null!==e.value&&void 0!==e.value?e._t("item",(function(){return[e._v("\n "+e._s(e.value.displayName)+"\n ")]}),{item:e.value}):e._e()],2),e._v(" "),t("div",{staticClass:"arrow",class:{open:e.popupOpen}},[e._t("arrow",(function(){return[t("div",{staticClass:"default-arrow"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"}},[t("defs",[t("clipPath",{attrs:{id:"clip-arrow-down"}},[t("rect",{attrs:{width:"24",height:"24"}})])]),e._v(" "),t("g",{attrs:{id:"arrow-down","clip-path":"url(#clip-arrow-down)"}},[t("path",{attrs:{id:"Path_1","data-name":"Path 1",d:"M2,17,12,7,22,17",transform:"translate(24 25) rotate(180)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}})])])])]}))],2)]),e._v(" "),t("VPopup",{ref:"popup",staticClass:"dropdown-popup",attrs:{lazy:!1,"trigger-element":e.$refs.selected},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.selectItem(e.value)}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(e.items,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectItem(n),expression:"() => selectItem(item)"}],key:e.keyMapper(n),staticClass:"bex-dropdown-item",attrs:{tabindex:e.popupOpen?0:-1}},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)})),0)],1)};Ue._withStripped=!0;var He=n(985);const We=Vue.extend({name:"VDropdown",components:{VPopup:He.default},model:{prop:"value",event:"change"},props:{value:{required:!0},items:{type:Array,required:!0},keyMapper:{type:Function,default:e=>e.name},round:{type:Boolean,default:!1}},data:()=>({popupOpen:!1}),computed:{disabled(){return Boolean(this.$attrs.disabled)}},watch:{disabled(e){e&&(this.popupOpen=!1)}},created(){null!==this.value&&void 0!==this.value||this.$emit("change",this.items[0]||"")},methods:{selectItem(e){e!==this.value&&this.$emit("change",e),this.popupOpen=!1,this.$el.focus()},hit(e){if(this.disabled)return;const t=this.$refs.popup.$el,n=e.target;t===n||t.contains(n)||(this.popupOpen=!this.popupOpen)}}});var Ge=n(6757),Qe=n.n(Ge),Ye={insert:"head",singleton:!1};f()(Qe(),Ye);Qe().locals;const Xe=(0,c.Z)(We,Ue,[],!1,null,"6b51ccd4",null).exports;var Ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-empty"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};Ke._withStripped=!0;var Je=n(3378);const[_e]=(0,Je.registerAndGetData)("vEmpty",{content:"空空如也哦 = ̄ω ̄="}),$e=Vue.extend({name:"VEmpty",data:()=>({config:_e})});var et=n(6473),tt=n.n(et),nt={insert:"head",singleton:!1};f()(tt(),nt);tt().locals;const ot=(0,c.Z)($e,Ke,[],!1,null,null,null).exports;var it=n(9032),rt=n(1366),at=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({staticClass:"default-widget"},"VButton",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"widget-icon"},[e._t("icon",(function(){return[t("VIcon",{attrs:{type:e.iconType,icon:e.icon}})]}))],2),e._v(" "),t("div",{staticClass:"widget-name"},[e._t("default",(function(){return[e._v(e._s(e.name))]}))],2)])};at._withStripped=!0;const ct=Vue.extend({components:{VIcon:o.default,VButton:r.default},props:{name:{type:String,default:""},icon:{type:String,default:""},iconType:{type:String,default:""}}});var st=n(6293),lt=n.n(st),dt={insert:"head",singleton:!1};f()(lt(),dt);lt().locals;const mt=(0,c.Z)(ct,at,[],!1,null,"20e1bedd",null).exports;var ft=n(5433)},2465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initMdiStyle:()=>r});var o=n(8964),i=n.n(o);const r=()=>{const e=document.createElement("style");return e.id="be-mdi",e.innerHTML=i(),e}},1150:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o=Vue.extend({model:{prop:"text",event:"change"},props:{text:{type:String,required:!1,default:""},changeOnBlur:{type:Boolean,required:!1,default:!1},validator:{type:Function,default:void 0}},data(){return{composing:!1,restListeners:lodash.omit(this.$listeners,"change","input","compositionstart","compositionend")}},methods:{emitChange(){let{value:e}=this.$refs.input;this.validator&&(e=this.validator(e,this.text),this.changeOnBlur&&(this.$refs.input.value=e)),e!==this.text&&this.$emit("change",e)},input(){this.changeOnBlur||this.composing||this.emitChange()},change(){this.changeOnBlur&&!this.composing&&this.emitChange()},compositionStart(){this.composing=!0},compositionEnd(){this.composing=!1,this.input()},focus(){this.$refs.input.focus()}}})},6866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compilationInfo:()=>m});var o=n(113);const i="the1812",r="cdn.jsdelivr.net",a={name:"jsDelivr",owner:i,host:r,stableClient:`https://${r}/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js`,previewClient:`https://${r}/gh/the1812/Bilibili-Evolved@preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${r}/npm/lodash@4.17.21/lodash.min.js`,protobuf:`https://${r}/npm/protobufjs@6.10.1/dist/light/protobuf.min.js`,jszip:`https://${r}/npm/jszip@3.7.1/dist/jszip.min.js`,sortable:`https://${r}/npm/sortablejs@1.14.0/Sortable.min.js`,mdi:`https://${r}/gh/the1812/Bilibili-Evolved@master/docs/static/mdi/mdi.css`,streamsaver:`https://${r}/npm/streamsaver@2.0.6/StreamSaver.min.js`,ffmpeg:{worker:`https://${r}/npm/@ffmpeg/ffmpeg@0.12.4/dist/umd/814.ffmpeg.js`,core:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.js`,wasm:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.wasm`}},smallLogo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo-small.png`,logo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo.png`,root:(e,t)=>`https://${r}/gh/${t||i}/Bilibili-Evolved@${e}/`},c="the1812",s="raw.githubusercontent.com",l=a,d={github:{name:"GitHub",owner:c,host:s,stableClient:`https://${s}/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js`,previewClient:`https://${s}/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${s}/lodash/lodash/4.17.21/dist/lodash.min.js`,protobuf:`https://${s}/protobufjs/protobuf.js/v6.10.1/dist/light/protobuf.min.js`,jszip:`https://${s}/Stuk/jszip/v3.7.1/dist/jszip.min.js`,sortable:`https://${s}/SortableJS/Sortable/1.14.0/Sortable.min.js`,mdi:"https://the1812.github.io/Bilibili-Evolved/static/mdi/mdi.css",streamsaver:`https://${s}/jimmywarting/StreamSaver.js/2.0.6/StreamSaver.js`,ffmpeg:a.library.ffmpeg},smallLogo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo-small.png`,logo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo.png`,root:(e,t)=>`https://${s}/${t||c}/Bilibili-Evolved/${e}/`},jsDelivr:a},m={...{year:(new Date).getFullYear(),version:o.version,altCdn:l,allCdns:d},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",branch:"master-cdn",nearestTag:"v2.8.8",versionWithTag:"v2.8.8-74-g9f446110e"}},9676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"switch-options",class:{"small-size":e.smallSize,grid:!e.popupMode}},[e.popupMode?[t("VButton",{ref:"button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[t("VIcon",{staticClass:"switch-icon",attrs:{icon:"mdi-checkbox-marked-circle-outline",size:e.smallSize?16:22}}),e._v("\n "+e._s(e.options.optionDisplayName)+"\n ")],1),e._v(" "),t("VPopup",{staticClass:"switch-options-popup widgets-popup",attrs:{"trigger-element":e.$refs.button,"esc-close":"","auto-destroy":""},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]:[t("div",{staticClass:"switch-options-grid"},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]],2)};o._withStripped=!0;var i=n(9859),r=n(4638);const a=Vue.extend({name:"SwitchOptions",components:{VPopup:i.VPopup,VButton:i.VButton,VIcon:i.VIcon,CheckBox:i.CheckBox,RadioButton:i.RadioButton},props:{options:{type:Object,required:!0},smallSize:{type:Boolean,default:!1},popupMode:{type:Boolean,default:!0}},data(){const{componentName:e}=this.options;return{popupOpen:!1,componentOptions:(0,r.getComponentSettings)(e).options}},computed:{mergedSwitchProps(){return{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline",...this.options.switchProps}}},watch:{options(){this.updateColumnsCount()}},mounted(){this.updateColumnsCount()},methods:{updateColumnsCount(){const e=this.$el,t=Math.ceil(Object.keys(this.options.switches).length/12);e.style.setProperty("--columns",t.toString())},isDim(e){return"checked"===this.options.dimAt||void 0===this.options.dimAt?this.componentOptions[`switch-${e}`]:"notChecked"===this.options.dimAt&&!this.componentOptions[`switch-${e}`]}}});var c=n(8332),s=n.n(c),l=n(3129),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},5865:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{staticClass:"check-all-updates",attrs:{disabled:e.disabled},on:{click:function(t){return e.checkUpdates()}}},[t("VIcon",{attrs:{size:16,icon:"mdi-cloud-sync-outline"}}),e._v("\n 立即检查所有更新\n")],1)};o._withStripped=!0;var i=n(7102),r=n(9859),a=n(6290);const c=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon},data:()=>({disabled:!1}),methods:{async checkUpdates(){try{this.disabled=!0;const e=i.Toast.info("正在检查更新...","检查所有更新");await(0,a.forceCheckUpdateAndReload)(),e.close()}finally{this.disabled=!1}}}});var s=n(8332),l=n.n(s),d=n(3216),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"76652ef2",null).exports},3570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bisector-dialog-content-container"},[t("div",{staticClass:"bisector-dialog-content-text"},[e._v("\n 组件二等分进行中,预计剩余\n "),t("b",{staticStyle:{color:"var(--theme-color)"}},[e._v(e._s(e.rouge)+" ")]),e._v("轮次,请确认当前情况:\n ")]),e._v(" "),t("div",{staticClass:"bisector-dialog-button-group"},[t("VButton",{on:{click:e.onGood}},[e._v("正常")]),e._v(" "),t("VButton",{on:{click:e.onBad}},[e._v("不正常")]),e._v(" "),t("VButton",{attrs:{type:"primary"},on:{click:e.onAbort}},[e._v("终止")])],1),e._v(" "),t("div",{staticClass:"bisector-dialog-content-text weak"},[e._v("\n *可以点击×号关闭对话框,刷新页面后,会再次询问\n ")])])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9859);const c=r().extend({components:{VButton:a.VButton},props:{rouge:{type:Number,required:!0},onAbort:{type:Function,default:none},onGood:{type:Function,default:none},onBad:{type:Function,default:none}}});var s=n(8332),l=n.n(s),d=n(5901),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"31cf1990",null).exports},4799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v("\n 组件二等分\n "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1)])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9859);const c=r().extend({components:{VIcon:a.VIcon},data:()=>({peek:!1}),watch:{peek(e){this.$el.closest(".be-dialog").style.opacity=e?"0.1":"1"}}});var s=n(8332),l=n.n(s),d=n(6481),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"386ddf8e",null).exports},1788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"launch-bar"},[t("div",{staticClass:"input-area"},[t("div",{staticClass:"launch-bar-form"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"input",staticClass:"input",attrs:{type:"text",autocomplete:"off",placeholder:e.recommended.word},domProps:{value:e.keyword},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnter.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),e.handleUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),e.handleDown.apply(null,arguments))}],input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),t("button",{staticClass:"submit",attrs:{title:"执行",tabindex:"-1"},on:{click:e.handleEnter}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)])]),e._v(" "),t("div",{ref:"list",staticClass:"launch-bar-suggest-list"},[e.isHistory?t("div",{staticClass:"launch-bar-history-list"},[0===e.actions.length?t("div",{staticClass:"history-empty suggest-item disabled",attrs:{tabindex:"0"}},[e._v("\n 暂无搜索历史\n ")]):e._e(),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){o===e.actions.length-1&&e.onClearHistory(),e.onAction(n)}}})}))],2):e._e(),e._v(" "),e.isHistory?e._e():t("div",{staticClass:"launch-bar-action-list"},[0===e.actions.length&&e.noActions?t("VEmpty",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}):e._e(),e._v(" "),0!==e.actions.length||e.noActions?e._e():t("VLoading",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){return e.onAction(n)}}})}))],2)])])};o._withStripped=!0;var i=n(7942),r=n(9859),a=n(3378),c=n(7913),s=n(1379),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-launch-bar-action-item suggest-item",attrs:{tabindex:"0",title:e.action.displayName||e.action.name,"data-indexer":e.action.indexer},on:{click:function(t){return t.target!==t.currentTarget?null:e.performAction(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.performAction(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:t.shiftKey?(t.preventDefault(),t.stopPropagation(),e.performDelete(t)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("previous-item",t.currentTarget))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("next-item",t.currentTarget))}]}},[t("div",{staticClass:"suggest-item-content"},[e.action.icon?t("div",{staticClass:"suggest-item-icon",on:{click:function(t){return e.performAction(t)}}},[t("VIcon",{attrs:{icon:e.action.icon,size:18}})],1):e._e(),e._v(" "),t("div",{staticClass:"suggest-item-title",on:{click:function(t){return e.performAction(t)}}},[e.action.content?t(e.action.content,{tag:"component",staticClass:"suggest-item-name",attrs:{name:e.action.name}}):t("div",{staticClass:"suggest-item-name"},[e._v("\n "+e._s(e.action.displayName||e.action.name)+"\n ")]),e._v(" "),e.action.description?t("div",{staticClass:"suggest-item-description"},[e._v("\n "+e._s(e.action.description)+"\n ")]):e._e()],1),e._v(" "),e.action.deleteAction?t("div",{staticClass:"suggest-item-delete",attrs:{title:"删除此项"},on:{click:function(t){return e.performDelete(t)}}},[t("VIcon",{attrs:{icon:"cancel",size:18}})],1):e._e()])])};l._withStripped=!0;const d=Vue.extend({components:{VIcon:r.VIcon},props:{action:{type:Object,required:!0}},methods:{async performAction(e){const{currentTarget:t}=e;await this.action.action(),this.$emit("action",t)},async performDelete(e){const{currentTarget:t}=e;this.action.deleteAction&&(await this.action.deleteAction(),this.$emit("delete-item",t))}}});var m=n(8332),f=n.n(m),u=n(116),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;var h=n(6499);const g=(0,h.Z)(d,l,[],!1,null,null,null).exports;var F=n(9373),v=n(7498),w=n(6893),y=n(6376);const[x]=(0,a.registerAndGetData)(F.LaunchBarActionProviders,[v.searchProvider,w.dr]),k=e=>[...e].sort((0,y.ascendingSort)((e=>e.order??1/0))),C=(e,t)=>t.map((t=>{const n=`${e.name}.${t.name}`;return{...t,key:n,provider:e}}));const[A]=(0,a.registerAndGetData)("launchBar.recommended",{word:"搜索",href:"https://search.bilibili.com/"}),E=Vue.extend({components:{VIcon:r.VIcon,VLoading:r.VLoading,VEmpty:r.VEmpty,ActionItem:g},data:()=>({recommended:A,actions:[],keyword:"",noActions:!1}),computed:{isHistory(){return 0===this.keyword.length}},watch:{keyword(){this.getActions()}},async mounted(){this.getActions(),(0,s.matchUrlPattern)(/^https?:\/\/search\.bilibili\.com/)&&(0,c.select)("#search-keyword, .search-input-el").then((e=>{e&&(this.keyword=e.value,document.addEventListener("change",(e=>{e.target instanceof HTMLInputElement&&"search-keyword"===e.target.id&&(this.keyword=e.target.value)})))}))},methods:{getOnlineActions:lodash.debounce((async function(){const e=(await Promise.all(x.map((async e=>C(e,await e.getActions(this.keyword)))))).flat();if(this.isHistory)return;const t=new i.Z(e,{keys:["indexer","displayName","name","description","key"]}).search(this.keyword);console.log(t),this.actions=k(t.map((e=>e.item)).slice(0,12)),this.noActions=0===this.actions.length}),200),getActions:async function(){if(this.noActions=!1,this.isHistory)return void(this.actions=k(C(w.dr,await w.dr.getActions(this.keyword))));this.actions=[],this.getOnlineActions()},handleSelect(){this.$emit("close"),this.getActions()},async handleEnter(e){if(!e.isComposing){if(this.actions.length>0&&!this.isHistory){const[e]=this.actions;if(!0!==e.explicitSelect)return void e.action()}if(this.keyword)return(0,v.search)(this.keyword),void this.handleSelect();window.open(this.recommended.href,"_blank"),this.handleSelect()}},handleUp(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item:last-child").focus(),e.preventDefault())},handleDown(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item").focus(),e.preventDefault())},previousItem(e,t){0===t?this.focus():e.previousElementSibling.focus()},nextItem(e,t){t!==this.actions.length-1?e.nextElementSibling.focus():this.focus()},search:v.search,onDeleteItem(e,t){this.previousItem(e,t),this.getActions()},onClearHistory(){this.focus(),this.getActions()},onAction(){this.handleSelect()},focus(){this.$refs.input.focus()}}});var B=n(3176),D=n.n(B),z={insert:"head",singleton:!1};f()(D(),z);D().locals;const I=(0,h.Z)(E,o,[],!1,null,null,null).exports},2829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"release-content"},[t("div",{staticClass:"release-content-markdown",domProps:{innerHTML:e._s(e.content)}}),e._v(" "),t("div",{staticClass:"release-content-actions"},[t("VButton",{on:{click:function(t){return e.$emit("dialog-close")}}},[e._v(" 取消 ")]),e._v(" "),e.detailsLink?t("a",{attrs:{href:e.detailsLink,target:"_blank"}},[t("VButton",[e._v(" 查看详情 ")])],1):e._e(),e._v(" "),e.updateUrl?t("a",{attrs:{href:e.updateUrl,target:"_blank"}},[t("VButton",{attrs:{type:"primary"}},[e._v(" 安装 ")])],1):e._e()],1)])};o._withStripped=!0;var i=n(8703),r=n(9859);const a=`https://github.com/${i.defaultOwner}/Bilibili-Evolved/releases`,c=Vue.extend({components:{VButton:r.VButton},props:{content:{type:String,default:""},updateUrl:{type:String,default:""}},data:()=>({detailsLink:a})});var s=n(8332),l=n.n(s),d=n(4954),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},7195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-description",domProps:{innerHTML:e._s(e.html)}})};o._withStripped=!0;var i=n(4638),r=n(9081);const a=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,i.getComponentSettings)(this.componentData),html:""}},async created(){this.html=await(0,r.getDescriptionHTML)(this.componentData)}});var c=n(8332),s=n.n(c),l=n(2846),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},3448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"be-settings"},[t("div",{staticClass:"sidebar"},[t("div",{ref:"widgetsIcon",class:{open:e.widgetsOpened},attrs:{title:"功能"},on:{click:[function(t){return t.shiftKey?e.theWorld.apply(null,arguments):null},function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return null;e.widgetsOpened=!e.widgetsOpened}],mouseover:function(t){return e.loadPanel("widgetsPanelPopup")}}},[t("VIcon",{attrs:{icon:"widgets",size:26}})],1),e._v(" "),t("div",{ref:"settingsIcon",class:{open:e.settingsOpened},attrs:{title:"设置"},on:{click:function(t){e.settingsOpened=!e.settingsOpened},mouseover:function(t){return e.loadPanel("settingsPanelPopup")}}},[t("VIcon",{attrs:{icon:"settings-outline",size:26}})],1)]),e._v(" "),t("VPopup",{ref:"widgetsPanelPopup",staticClass:"widgets-panel-popup",attrs:{"trigger-element":e.$refs.widgetsIcon,fixed:!0},model:{value:e.widgetsOpened,callback:function(t){e.widgetsOpened=t},expression:"widgetsOpened"}},[t("WidgetsPanel")],1),e._v(" "),t("VPopup",{ref:"settingsPanelPopup",staticClass:"settings-panel-popup",attrs:{"trigger-element":e.$refs.settingsIcon,"auto-close-predicate":e.settingsPanelClosePredicate,fixed:!0},model:{value:e.settingsOpened,callback:function(t){e.settingsOpened=t},expression:"settingsOpened"}},[t("SettingsPanel",{on:{close:function(t){e.settingsOpened=!1}}})],1)],1)};o._withStripped=!0;var i=n(9859),r=n(980);const a={name:"SettingsContainer",components:{VPopup:i.VPopup,VIcon:i.VIcon,SettingsPanel:()=>Promise.resolve().then(n.bind(n,710)).then((e=>e.default)),WidgetsPanel:()=>Promise.resolve().then(n.bind(n,8889)).then((e=>e.default))},data:()=>({settingsOpened:!1,widgetsOpened:!1}),mounted(){GM_registerMenuCommand("功能",(()=>{this.loadPanel("widgetsPanelPopup"),this.widgetsOpened=!0,this.settingsOpened=!1})),GM_registerMenuCommand("设置",(()=>{this.loadPanel("settingsPanelPopup"),this.widgetsOpened=!1,this.settingsOpened=!0}))},methods:{theWorld(){r.externalApis.theWorld(0)},settingsPanelClosePredicate:e=>!dqa(".be-settings-extra-options").some((t=>t===e.target||t.contains(e.target))),loadPanel(e){const t=this.$refs[e];t&&((t?.loaded??1)||(t.loaded=!0))}}};var c=n(8332),s=n.n(c),l=n(848),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ae});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-panel",class:{collapsed:e.collapsed,peek:e.peek}},[t("div",{staticClass:"settings-panel-header"},[t("VIcon",{attrs:{icon:"settings-outline"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("设置")]),e._v(" "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1),e._v(" "),t("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[t("VIcon",{attrs:{icon:"close",size:18}})],1)],1),e._v(" "),t("div",{staticClass:"settings-panel-content"},[t("div",{ref:"sidebarContainer",staticClass:"sidebar"},[t("ComponentTags",{ref:"componentTags",on:{change:function(t){e.searchFilter=t}}})],1),e._v(" "),t("div",{ref:"mainContainer",staticClass:"main"},[t("div",{ref:"componentList",staticClass:"component-list"},[t("div",{staticClass:"settings-panel-search-bar"},[t("TextBox",{staticClass:"settings-panel-search",attrs:{placeholder:"搜索"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}}),e._v(" "),e._l(e.searchBarActions,(function(n){return t("VButton",{key:n.key,attrs:{type:"transparent",icon:"",title:"function"==typeof n.title?n.title(e.searchBarContext):n.title,disabled:!!n.disabled&&n.disabled(e.searchBarContext)}},[t("VIcon",{attrs:{icon:n.icon,size:18},on:{click:function(t){return n.run(e.searchBarContext)}}})],1)}))],2),e._v(" "),e._l(e.renderedComponents,(function(n){return t("div",{key:n.name,on:{"!click":[function(t){return t.ctrlKey?(t.stopPropagation(),e.selectMultipleComponent(n)):null},function(t){return t.shiftKey?(t.stopPropagation(),e.selectMultipleComponent(n,!0)):null}]}},[t("ComponentSettings",{class:{selected:e.isComponentSelected(n.name)},attrs:{"component-data":n,"data-name":n.name},nativeOn:{click:function(t){return e.selectComponent(n)}}})],1)})),e._v(" "),0===e.renderedComponents.length?t("VEmpty"):e._e()],2)]),e._v(" "),t("VPopup",{ref:"detailsPopup",staticClass:"component-detail-panel",attrs:{"trigger-element":e.$refs.componentList,open:e.componentDetailOpen},on:{"popup-change":function(t){!t&&e.closePopper()}}},[e.selectedComponent?t("ComponentDetail",{key:e.selectedComponent.name,attrs:{"component-data":e.selectedComponent},on:{close:function(t){return e.closePopper()}}}):e._e()],1)],1)])};o._withStripped=!0;var i=n(9859),r=n(8047),a=n(1379),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-settings",class:{virtual:e.virtual}},[e.virtual?e._e():[t("div",{staticClass:"component-settings-row"},[t("TagRing",{attrs:{tags:e.componentData.tags}}),e._v(" "),t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),!1!==e.componentData.configurable?t("SwitchBox",{model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}}):t("VIcon",{staticClass:"details-arrow",attrs:{icon:"right-arrow",size:18}})],1)]],2)};c._withStripped=!0;var s=n(9896),l=n.n(s),d=n(4638),m=n(4085),f=n(4749),u=n(8643),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tag-ring"},[t("svg",{attrs:{height:e.size,width:e.size}},e._l(e.tags,(function(n,o){return t("circle",{key:n.name,staticClass:"tag-stroke",style:e.getStyle(n,o),attrs:{fill:"transparent","stroke-dasharray":e.circumference+" "+e.circumference,"stroke-width":e.stroke,r:e.radius,cx:e.size/2,cy:e.size/2}})})),0)])};p._withStripped=!0;const b=Vue.extend({props:{tags:{type:Array,required:!0},size:{type:Number,default:18},stroke:{type:Number,default:3}},data(){const e=this.size/2-this.stroke;return{radius:e,circumference:2*e*Math.PI}},methods:{getStyle(e,t){return{strokeDashoffset:t/this.tags.length*this.circumference,stroke:e.color}}}});var h=n(8332),g=n.n(h),F=n(2467),v=n.n(F),w={insert:"head",singleton:!1};g()(v(),w);v().locals;var y=n(6499);const x=(0,y.Z)(b,p,[],!1,null,null,null).exports;var k=n(5282);const C=Vue.extend({components:{SwitchBox:m.Z,TagRing:x,VIcon:f.default},props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,d.getComponentSettings)(this.componentData),virtual:!1}},async mounted(){const e=this.$el,t=(0,a.dq)(".settings-panel-content .main");t?(0,u.visibleInside)(e,t,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.log("settings container not found, virtual scroll will be disabled!")},methods:{markdown:e=>l()(e),descriptionI18n(e){const{description:t,options:n}=e;if(!t){if(n&&Object.keys(n).length>0){return`${Object.keys(n).length}个选项`}return"暂无说明"}return"string"==typeof t?t:t[(0,k.getSelectedLanguage)()]||t["zh-CN"]}}}),A=C;var E=n(2098),B=n.n(E),D={insert:"head",singleton:!1};g()(B(),D);B().locals;const z=(0,y.Z)(A,c,[],!1,null,null,null).exports;var I=n(5900),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-detail"},[e.settings?e._e():t("div",{staticClass:"component-not-found"},[e._v("\n 未找到组件'"+e._s(e.componentData.displayName)+"' ("+e._s(e.componentData.name)+"), 可能已被卸载.\n ")]),e._v(" "),e.settings?[t("div",{staticClass:"component-detail-header"},[t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),t("VIcon",{staticClass:"close",attrs:{icon:"close",size:18},on:{click:function(t){return e.$emit("close")}}})],1),e._v(" "),t("div",{staticClass:"component-detail-tags"},e._l(e.componentData.tags,(function(n){return t("div",{key:n.name,staticClass:"tag"},[t("div",{staticClass:"tag-color",style:{backgroundColor:n.color}}),e._v("\n "+e._s(n.displayName)+"\n ")])})),0),e._v(" "),e.componentData.options&&e.generatedOptions.length>0||e.componentData.extraOptions?[t("div",{staticClass:"component-detail-options"},[t("div",{staticClass:"component-detail-options-title"},[e._v("选项")]),e._v(" "),e._l(e.generatedOptions,(function([n,o]){return t("div",{key:n,staticClass:"generated-option"},[t("ComponentOption",{attrs:{name:n,"display-name":o.displayName,option:o,component:e.componentData}})],1)})),e._v(" "),e.componentData.extraOptions?t("div",{staticClass:"extra-option"},[t(e.componentData.extraOptions,{tag:"component",attrs:{"component-data":e.componentData}})],1):e._e(),e._v(" "),e._t("default")],2)]:e._e(),e._v(" "),!e.componentData.options||e.componentData.description?[t("ComponentDescription",{staticClass:"component-detail-description",attrs:{"component-data":e.componentData}})]:e._e(),e._v(" "),t("div",{staticClass:"component-detail-grow"}),e._v(" "),t("div",{staticClass:"component-detail-internal-data"},[e.componentData.commitHash?t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("Commit: "+e._s(e.componentData.commitHash.substring(0,9)))])]):e._e(),e._v(" "),t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("内部名称: "+e._s(e.componentData.name))]),e._v(" "),!1!==e.componentData.configurable&&e.componentActions.length>0?t("MiniToast",{staticClass:"extra-actions-wrapper",attrs:{placement:"bottom",trigger:"click"},scopedSlots:e._u([{key:"toast",fn:function(){return[t("div",{staticClass:"extra-actions-list"},e._l(e.componentActions,(function(n){return t("div",{key:n.name},[n.component?t(n.component,{tag:"component",attrs:{item:n,component:e.componentData}}):t("ComponentAction",{directives:[{name:"show",rawName:"v-show",value:!1!==n.visible,expression:"a.visible !== false"}],staticClass:"extra-action-item",attrs:{item:n,component:e.componentData}})],1)})),0)]},proxy:!0}],null,!1,2977217718)},[t("div",{staticClass:"extra-actions"},[t("VIcon",{attrs:{icon:"mdi-dots-vertical",size:16}})],1)]):e._e()],1)])]:e._e()],2)};S._withStripped=!0;var M=n(7195),P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"component-option",attrs:{"data-type":e.type}},[t("div",{staticClass:"option-name"},[e._v("\n "+e._s(e.displayName)+"\n ")]),e._v(" "),"text"===e.type||"number"===e.type?t("TextBox",{attrs:{"change-on-blur":"",validator:e.option.validator,text:e.value.toString(),placeholder:e.value.toString()},on:{change:function(t){"text"===e.type?e.valueChange(t):e.numberChange(t)}}}):e._e(),e._v(" "),"boolean"===e.type?t("SwitchBox",{attrs:{checked:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"color"===e.type?t("ColorPicker",{attrs:{compact:!0,"popup-offset":-95,color:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"range"===e.type?t("RangeInput",{attrs:{validator:e.option.validator,range:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"image"===e.type?t("ImagePicker",{attrs:{image:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"dropdown"===e.type?t("VDropdown",{attrs:{value:e.value,items:e.getDropdownItems(e.option.dropdownEnum),"key-mapper":e=>e},on:{change:function(t){return e.valueChange(t)}},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}],null,!1,3506243887)}):e._e(),e._v(" "),"switch"===e.type?t("SwitchOptions",{attrs:{"small-size":"","popup-mode":!1,options:e.option.defaultValue}}):e._e(),e._v(" "),"slider"===e.type?t("VSlider",e._b({attrs:{value:e.value},on:{change:function(t){return e.debounceValueChange(t)}}},"VSlider",e.option.slider,!1)):e._e(),e._v(" "),"unknown"===e.type?t("div",{staticClass:"unknown-option-type"},[e._v("未知的选项类型")]):e._e()],1)};P._withStripped=!0;function O(e){this.settings.options[this.name]=e,this.value=e}const V={name:"ComponentOption",components:{SwitchOptions:n(9676).default,TextBox:i.TextBox,SwitchBox:i.SwitchBox,ColorPicker:i.ColorPicker,RangeInput:i.RangeInput,VDropdown:i.VDropdown,ImagePicker:i.ImagePicker,VSlider:i.VSlider},props:{name:{type:String,required:!0},displayName:{type:String,default:""},option:{type:Object,required:!0},component:{type:Object,required:!0}},data(){const e=(0,d.getComponentSettings)(this.component);return{settings:e,value:e.options[this.name]}},computed:{type(){const e=this.option,{defaultValue:t}=e;switch(typeof t){case"boolean":return"boolean";case"number":return e.slider?"slider":"number";case"string":return e.color?"color":e.dropdownEnum?"dropdown":"text";case"object":return"start"in t&&"end"in t?"range":"name"in t&&"url"in t?"image":"name"in t&&"switches"in t?"switch":"unknown";default:return"unknown"}}},methods:{getDropdownItems:e=>{if(Array.isArray(e))return e;return Object.entries(e).filter((e=>{let[t]=e;const n=t.charCodeAt(0);return!(n>=48&&n<=57)})).map((e=>{let[,t]=e;return t}))},numberChange(e){const t=this.settings,n=parseFloat(e);Number.isNaN(n)||(t.options[this.name]=n,this.value=n)},debounceValueChange:lodash.debounce(O,200),valueChange:O}};var T=n(6206),L=n.n(T),j={insert:"head",singleton:!1};g()(L(),j);L().locals;const R=(0,y.Z)(V,P,[],!1,null,"730efac0",null).exports;var N=n(4242),q=n(3378),Z=n(106);const U=[e=>({name:"uninstall",displayName:"卸载",icon:"mdi-trash-can-outline",visible:(0,d.isUserComponent)(e),action:async()=>{const{before:t,after:n}=(0,r.getHook)("userComponents.remove",e);await t(),await(0,Z.uninstallComponent)(e.name),await n()}})],[H]=(0,q.registerAndGetData)("settingsPanel.componentActions",U);var W=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-action",class:{disabled:e.disabled},attrs:{"aria-disabled":e.disabled,title:e.item.title},on:{click:e.handleClick}},[t("VIcon",{attrs:{icon:e.item.icon,size:16}}),e._v("\n "+e._s(e.item.displayName)+"\n")],1)};W._withStripped=!0;const G=Vue.extend({components:{VIcon:i.VIcon},props:{item:{type:Object,required:!0},component:{type:Object,required:!0}},data:()=>({disabled:!1}),methods:{async handleClick(){if(!this.disabled)try{this.disabled=!0,await this.item.action(this.component)}finally{this.disabled=!1}}}});var Q=n(9745),Y=n.n(Q),X={insert:"head",singleton:!1};g()(Y(),X);Y().locals;const K=(0,y.Z)(G,W,[],!1,null,null,null).exports,J=Vue.extend({components:{ComponentDescription:M.Z,ComponentOption:R,ComponentAction:K,VButton:i.VButton,VIcon:i.VIcon,SwitchBox:i.SwitchBox,MiniToast:i.MiniToast},mixins:[N.U],data(){return{virtual:!1,componentActions:H.map((e=>e(this.componentData))).filter((e=>void 0!==e&&!1!==e.visible))}},computed:{generatedOptions(){return Object.entries(this.componentData.options??{}).filter((e=>{let[,t]=e;return!t.hidden}))}},async mounted(){const e=this.$el;(0,u.visible)(e,(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})),await this.$nextTick(),this.$emit("mounted"),console.log(this.componentActions)}});var _=n(9734),$=n.n(_),ee={insert:"head",singleton:!1};g()($(),ee);$().locals;const te=(0,y.Z)(J,S,[],!1,null,null,null).exports;var ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-tags-preview"},[t("VPopup",{staticClass:"settings-panel-sub-page",attrs:{lazy:!1,"trigger-element":e.selectedSubPageTrigger},model:{value:e.selectedSubPageOpen,callback:function(t){e.selectedSubPageOpen=t},expression:"selectedSubPageOpen"}},[t("keep-alive",[e.selectedSubPage?t(e.selectedSubPage,{tag:"component"}):e._e()],1)],1),e._v(" "),t("div",{staticClass:"icon-list"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}})],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(e){return t("div",{key:e.name,staticClass:"component-tags-item"},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:e.icon}})],1)}))],2),e._v(" "),t("div",{staticClass:"component-tags"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"tag-count"},[e._v("("+e._s(n.count)+")")])],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",on:{click:function(t){return e.openSubPage(t,n.component)}}},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])],1)}))],2)],1)};ne._withStripped=!0;var oe=n(6376),ie=n(985);const re=[{name:"userComponentsManage",displayName:"组件",component:()=>Promise.resolve().then(n.bind(n,4642)).then((e=>e.default)),icon:"mdi-cube-scan"},{name:"userPluginsManage",displayName:"插件",component:()=>Promise.resolve().then(n.bind(n,3462)).then((e=>e.default)),icon:"mdi-puzzle-outline"},{name:"customStylesManage",displayName:"样式",component:()=>Promise.resolve().then(n.bind(n,9952)).then((e=>e.default)),icon:"mdi-tune"},{name:"about",displayName:"关于",component:()=>Promise.resolve().then(n.bind(n,3663)).then((e=>e.default)),icon:"mdi-information-outline"}],ae=[e=>{let{renderedComponents:t}=e;return{name:"all",displayName:"全部",color:"inherit",icon:"mdi-shape-outline",order:0,count:t.length,filter:e=>e}},e=>{let{renderedComponents:t}=e;const n=[];t.forEach((e=>e.tags.forEach((e=>{n.push({count:0,...e,filter:t=>t.filter((t=>"all"===e.name||t.tags.some((t=>t.name===e.name))))})}))));const o=lodash.countBy(n,(e=>e.name));return lodash.uniqBy(n,(e=>e.name)).map((e=>({...e,count:o[e.name]})))}],[ce]=(0,q.registerAndGetData)("settingsPanel.tagFilters",ae),se=Vue.extend({components:{VIcon:f.default,VPopup:ie.default},data:()=>({tags:[],selectedTagName:"",subPages:re,selectedSubPage:null,selectedSubPageOpen:!1,selectedSubPageTrigger:null}),created(){this.refreshTags(),this.reset()},mounted(){this.selectTag(this.tags[0])},methods:{refreshTags(){const e=I.components.filter((e=>!e.hidden)),t=ce.flatMap((t=>"function"==typeof t?t({components:I.components,renderedComponents:e}):t));this.tags=t.sort((0,oe.ascendingSort)((e=>e.order)))},reset(){this.selectedTagName=this.tags[0].name},selectTag(e){this.selectedTagName=e.name;const{filter:t}=this.tags.find((t=>t.name===e.name));this.$emit("change",t)},async openSubPage(e,t){this.selectedSubPage!==t?(this.selectedSubPage=t,this.selectedSubPageTrigger=e.currentTarget,await this.$nextTick(),this.selectedSubPageOpen=!0):this.selectedSubPageOpen=!this.selectedSubPageOpen}}}),le=se;var de=n(2709),me=n.n(de),fe={insert:"head",singleton:!1};g()(me(),fe);me().locals;const ue=(0,y.Z)(le,ne,[],!1,null,null,null).exports;var pe=n(9081),be=n(7102),he=n(6609);const ge=[{key:"uninstallSelectedComponent",title:"卸载所选组件",icon:"mdi-trash-can-outline",disabled:e=>{let{selectedComponents:t}=e;return 0===t.length},run:e=>{window.confirm(`确定要卸载所选的 ${e.selectedComponents.length} 个组件吗?`)&&(e.selectedComponents.forEach((e=>{let{name:t}=e;(0,he.isBuiltInComponent)(t)?be.Toast.info("内置组件不能卸载","检查更新",3e3):(0,Z.uninstallComponent)(t)})),e.selectedComponents=[])}}],[Fe]=(0,q.registerAndGetData)("settingsPanel.searchBarActions",[...ge]),ve=e=>e,we={name:"SettingsPanel",components:{VIcon:i.VIcon,TextBox:i.TextBox,VPopup:i.VPopup,VButton:i.VButton,VEmpty:i.VEmpty,ComponentSettings:z,ComponentDetail:te,ComponentTags:ue},data:()=>({components:I.components,renderedComponents:I.components.filter((e=>!e.hidden)),selectedComponent:null,selectedComponents:[],componentDetailOpen:!1,collapsed:!1,peek:!1,searchKeyword:"",searchFilter:ve,searchBarActions:Fe}),computed:{isComponentSelected(){return e=>this.selectedComponents.some((t=>t.name===e))},tags(){const e=this.renderedComponents;let t=[];e.forEach((e=>e.tags.forEach((e=>{t.push({count:0,...e})}))));const n=lodash.countBy(t,(e=>e.name));return t=lodash.uniqBy(t,(e=>e.name)),t.forEach((e=>e.count=n[e.name])),t},searchBarContext(){return lodash.pick(this,"components","selectedComponent","selectedComponents","searchKeyword","searchFilter")}},watch:{searchKeyword:lodash.debounce((function(){this.updateRenderedComponents()}),200),searchFilter(){this.searchKeyword="",this.selectedComponents=[],this.updateRenderedComponents()},components(){this.updateRenderedComponents(),this.$refs.componentTags.refreshTags(),this.components.some((e=>e.name===this.selectedComponent?.name))||(this.selectedComponent=null)}},methods:{closePopper(){this.selectedComponent=null,this.selectedComponents=[],this.componentDetailOpen=!1},selectMultipleComponent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.selectedComponent&&t){const{name:t}=e,{name:n}=this.selectedComponent,o=this.renderedComponents;let i=o.findIndex((e=>e.name===n)),r=o.findIndex((e=>e.name===t));return i>r&&([i,r]=[r,i]),void(this.selectedComponents=o.slice(i,r+1))}const n=this.selectedComponents,o=n.find((t=>t.name===e.name));o?(0,a.deleteValue)(n,(e=>e.name===o.name)):n.push(e)},selectComponent(e){this.selectedComponents=[];const t=(0,r.getHook)("settingsPanel.componentDetail.close"),n=(0,r.getHook)("settingsPanel.componentDetail.open"),o=this.selectedComponent?.name,i=this.componentDetailOpen&&o===e.name;t.before(o),this.closePopper(),t.after(o),i||(n.before(e.name),this.selectedComponents.push(e),this.selectedComponent=e,this.componentDetailOpen=!0,n.after(e.name))},async updateRenderedComponents(){const e=await(async()=>this.searchKeyword?Object.fromEntries(await Promise.all(I.components.map((async e=>[e.name,[e.name,e.displayName,e.tags.map((e=>`${e.name}\n${e.displayName}`)).join("\n"),await(0,pe.getDescriptionText)(e)].join("\n").toLowerCase()])))):{})(),t=I.components.filter((t=>{if(t.hidden)return!1;if(this.searchKeyword){const n=e[t.name];return!!n&&n.includes(this.searchKeyword.toLowerCase())}return!0}));this.renderedComponents=this.searchFilter(t)}}},ye=we;var xe=n(2198),ke=n.n(xe),Ce={insert:"head",singleton:!1};g()(ke(),Ce);ke().locals;const Ae=(0,y.Z)(ye,o,[],!1,null,null,null).exports},8889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"widgets-panel"},[t("div",{staticClass:"widgets-panel-header"},[t("VIcon",{attrs:{icon:"widgets"}}),e._v("功能")],1),e._v(" "),e.loading||0!==e.widgets.length?e._e():t("VEmpty",{staticClass:"widgets-empty"},[t("div",{staticClass:"widgets-empty-content"},[e._v("\n 空空如也哦 = ̄ω ̄="),t("br"),e._v("\n 可点此参考\n "),t("a",{attrs:{href:"https://bilibili-evolved-doc.vercel.app/docs/user/settings",target:"_blank"}},[e._v("\n 用户手册\n ")]),e._v("\n 以安装所需功能\n ")])]),e._v(" "),t("div",{staticClass:"widget-items"},e._l(e.widgets,(function(e){return t(e.component,{key:e.name,tag:"component",staticClass:"widget-item",attrs:{options:e.options}})})),1)],1)};o._withStripped=!0;var i=n(1379),r=n(9859),a=n(3378),c=n(3030);const s=[],l=Vue.extend({components:{VIcon:r.VIcon,VEmpty:r.VEmpty},data:()=>(unsafeWindow.allWidgets=s,{allWidgets:s,widgets:[],loading:!0}),watch:{allWidgets(){this.allWidgets.forEach((async e=>{const t=await(async e=>{if(e.urlExclude&&e.urlExclude.some(i.matchUrlPattern))return!1;if(e.urlInclude&&e.urlInclude.every(lodash.negate(i.matchUrlPattern)))return!1;if(e.condition){const t=e.condition();return!0===t||t instanceof Promise&&!0===await t}return!0})(e);t?this.widgets.push(e):(0,i.deleteValue)(this.widgets,(t=>t.name===e.name))})),console.log("updated widgets",this.widgets)}},created(){(0,a.registerAndGetData)(c.WidgetsPlugin,s),this.$nextTick().then((()=>this.loading=!1))}});var d=n(8332),m=n.n(d),f=n(1075),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},3663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-about-page"},[t("div",{staticClass:"be-about-page-header"},[t("VIcon",{attrs:{icon:"mdi-information-outline"}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("关于")])],1),e._v(" "),t("div",{staticClass:"be-about-page-content"},[t("div",{staticClass:"script-meta-info"},[t("div",{staticClass:"meta-info-name"},[e._v("\n "+e._s(e.meta.name)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-version"},[e._v("\n "+e._s(e.meta.compilationInfo.versionWithTag)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-description"},[e._v("\n "+e._s(e.meta.description)+"\n ")])]),e._v(" "),e.feedbackSupported?t("div",{staticClass:"script-links"},[t("a",{staticClass:"homepage script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-home-outline",size:20}}),e._v("\n 主页\n ")],1)],1),e._v(" "),t("a",{staticClass:"feedback script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/issues"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-message-text-outline",size:18}}),e._v("\n 反馈\n ")],1)],1),e._v(" "),t("a",{staticClass:"releases script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/releases"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-update",size:20}}),e._v("\n 更新日志\n ")],1)],1),e._v(" "),t("a",{staticClass:"donate script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/donate.md"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-heart-outline",size:18}}),e._v("\n 捐赠\n ")],1)],1)]):e._e(),e._v(" "),t("div",{staticClass:"about-page-actions"},e._l(e.aboutPageActions,(function(n){return t("VButton",{key:n.name,staticClass:"about-page-action",attrs:{disabled:n.disabled},on:{click:function(t){return e.runAction(n,t)}}},[t("VIcon",{attrs:{icon:n.icon,size:n.iconSize||20}}),e._v("\n "+e._s(n.displayName)+"\n ")],1)})),1)])])};o._withStripped=!0;var i=n(5721),r=n(3540),a=n(9859),c=n(6897);const s=(()=>{const e=GM_info.scriptMetaStr.match(/@namespace\s*(.+)/);return!e||!e[1]||!e[1].includes("greasyfork")})(),l=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon},data:()=>({meta:i.meta,aboutPageActions:c.a,feedbackSupported:s}),methods:{formatDateTime:r.formatDateTime,async runAction(e,t){e.disabled=!0;try{await e.run(t)}finally{e.disabled=!1}}}});var d=n(8332),m=n.n(d),f=n(9611),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},4642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-components-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(5900),r=n(106),a=n(4638),c=n(8047),s=n(2983),l=n(5576);const d={key:"userComponents",icon:"mdi-cube-scan",title:"组件",description:"可以在此处添加或删除组件, 要查看组件详情, 请回到设置面板查看.",list:i.components,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,a.isUserComponent)(e)),async onItemAdd(e,t){const{before:n,after:o}=(0,c.getHook)("userComponents.add",e,t);await n();const{metadata:i,message:a}=await(0,r.installComponent)(e);return await o(i),a}},m=Vue.extend({components:{ManagePanel:s.Z,UserItem:l.Z},data:()=>({config:d}),methods:{getItemConfig:e=>({key:"userComponents",item:e,isUserItem:(0,a.isUserComponent)(e),getSettings:e=>(0,a.getComponentSettings)(e),onItemRemove:async e=>{const{before:t,after:n}=(0,c.getHook)("userComponents.remove",e);await t(),(0,r.uninstallComponent)(e.name),await n()}})}});const f=(0,n(6499).Z)(m,o,[],!1,null,null,null).exports},3462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-plugins-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(4638),r=n(8047),a=n(6598),c=n(2983),s=n(5576);const l={key:"userPlugins",icon:"mdi-puzzle-outline",title:"插件",description:"可以在此处管理插件, 插件能够增强现有组件的功能. 内置插件包括脚本本体包含的插件和组件自带的插件, 组件自带的插件会自动随组件卸载而卸载.",list:a.plugins,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,i.isUserPlugin)(e.name)),async onItemAdd(e,t){const{before:n,after:o}=(0,r.getHook)("userPlugins.add",e,t);await n();const{message:i,metadata:c}=await(0,a.installPlugin)(e);return await o(c),i}},d=Vue.extend({components:{ManagePanel:c.Z,UserItem:s.Z},data:()=>({config:l}),methods:{getItemConfig:e=>({key:"userPlugins",item:e,isUserItem:(0,i.isUserPlugin)(e.name),onItemRemove:async e=>{const{before:t,after:n}=(0,r.getHook)("userPlugins.remove",e);await t(),(0,a.uninstallPlugin)(e.name),await n()}})}});const m=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},9952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-styles-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8047),r=n(2043),a=n(2983),c=n(5576);const s={key:"userStyles",icon:"mdi-tune",title:"样式",description:"可以在此处管理自定义样式, 自定义样式能简单修改界面元素以满足您的需求, 对于更复杂的样式, 推荐使用 Stylus 浏览器插件来管理.",list:r.styles,listFilter:(e,t)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase())),async onItemAdd(e,t){const{before:n,after:o}=(0,i.getHook)("userStyles.add",e,t);await n();const{message:a,metadata:c}=await(0,r.installStyle)(e);return await o(c),a}},l=Vue.extend({components:{ManagePanel:a.Z,UserItem:c.Z},data:()=>({config:s}),methods:{getItemConfig:e=>({key:"userStyles",item:e,isUserItem:!0,onItemRemove:async e=>{const{before:t,after:n}=(0,i.getHook)("userStyles.remove",e);await t(),(0,r.uninstallStyle)(e.name),await n()}})}});const d=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},2983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-panel"},[t("div",{staticClass:"manage-panel-title sub-page-row"},[t("VIcon",{attrs:{icon:e.config.icon}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("\n "+e._s(e.config.title)+"\n ")])],1),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"description-text"},[e._v("\n "+e._s(e.config.description)+"\n ")])]):e._e(),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row separator"}):e._e(),e._v(" "),t("div",{staticClass:"sub-page-row add-item-row"},[t("div",{staticClass:"title-text"},[e._v("添加"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"item-actions"},[t("VButton",{ref:"batchAddButton",on:{click:function(t){return e.showBatchAddPopup()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-download-multiple"}}),e._v("\n 批量\n ")],1),e._v(" "),t("VButton",{on:{click:function(t){return e.browse()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-folder-open-outline"}}),e._v("\n 浏览\n ")],1),e._v(" "),t("OnlineRegistryButton",[t("VIcon",{attrs:{size:18,icon:"mdi-web"}}),e._v("\n 在线\n ")],1)],1),e._v(" "),t("VPopup",{staticClass:"batch-add-popup",attrs:{"trigger-element":e.$refs.batchAddButton},model:{value:e.batchAddShow,callback:function(t){e.batchAddShow=t},expression:"batchAddShow"}},[t("TextArea",{ref:"batchAddTextArea",staticClass:"batch-add-textarea",attrs:{placeholder:"批量粘贴功能链接, 可以混合其他类型的功能 (如合集包)"},model:{value:e.batchUrl,callback:function(t){e.batchUrl=t},expression:"batchUrl"}}),e._v(" "),t("div",{staticClass:"batch-add-actions"},[t("VButton",{on:{click:function(t){e.batchAddShow=!1}}},[t("VIcon",{attrs:{size:12,icon:"close"}}),e._v("\n 取消\n ")],1),e._v(" "),t("VButton",{attrs:{type:"primary",disabled:!e.batchUrl},on:{click:function(t){return e.batchAddItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("TextBox",{staticClass:"item-url",attrs:{placeholder:"粘贴"+e.config.title+"链接"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addItem()}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),e._v(" "),t("VButton",{attrs:{disabled:!e.url},on:{click:function(t){return e.addItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row separator"}),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"title-text"},[e._v("已安装的"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"exclude-built-in"},[e._v("\n 隐藏内置"+e._s(e.config.title)+"\n "),t("SwitchBox",{model:{value:e.excludeBuiltIn,callback:function(t){e.excludeBuiltIn=t},expression:"excludeBuiltIn"}})],1)]),e._v(" "),t("div",{staticClass:"sub-page-row search-item-row"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{staticClass:"list-search",attrs:{placeholder:`在 ${e.filteredList.length} 个${e.config.title}中搜索`},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.loaded?e._e():t("div",{staticClass:"sub-page-row"},[t("VLoading",{key:"loading"})],1),e._v(" "),e.loaded?t("div",{staticClass:"manage-item-list"},[0===e.debouncedList.length?t("VEmpty",{key:"empty"}):e._e(),e._v(" "),e._l(e.debouncedList,(function(n){return t("ManageItem",{key:n.name},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)}))],2):e._e()])};o._withStripped=!0;var i=n(7194),r=n(3074),a=n(7102),c=n(6215),s=n(6106),l=n(9859),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-item",class:{virtual:e.virtual}},[e.virtual?e._e():e._t("default")],2)};d._withStripped=!0;var m=n(4242);const f=Vue.extend({mixins:[(0,m.B)(".manage-panel .manage-item-list")]});var u=n(8332),p=n.n(u),b=n(5436),h=n.n(b),g={insert:"head",singleton:!1};p()(h(),g);h().locals;var F=n(6499);const v=(0,F.Z)(f,d,[],!1,null,null,null).exports;var w=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{on:{mouseover:function(t){return e.initPopup()},click:function(t){return e.togglePopup()}}},[e._t("default")],2)};w._withStripped=!0;var y=n(3895);const x=Vue.extend({components:{VButton:l.VButton},methods:{initPopup:y.initPopup,togglePopup:y.togglePopup}});const k=(0,F.Z)(x,w,[],!1,null,null,null).exports,C=Vue.extend({components:{VIcon:l.VIcon,VButton:l.VButton,TextBox:l.TextBox,VEmpty:l.VEmpty,VLoading:l.VLoading,VPopup:l.VPopup,TextArea:l.TextArea,SwitchBox:l.SwitchBox,ManageItem:v,OnlineRegistryButton:k},props:{config:{type:Object,required:!0}},data:()=>({search:"",url:"",loaded:!1,batchAddShow:!1,batchUrl:"",excludeBuiltIn:!0,debouncedList:[]}),computed:{filteredList(){return this.config.list.filter((e=>this.config.listFilter(e,this.search,this.excludeBuiltIn)))}},watch:{filteredList(){this.loaded=!1,window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}),200)}},mounted(){window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}))},methods:{async browse(){const e=await(0,r.pickFile)({accept:"*.js;*.zip"});if(0===e.length)return;const[t]=e;let n;if(t.name.endsWith(".zip")){const e=await s.JSZipLibrary,o=await e.loadAsync(t),i=Object.values(o.files);if(0===i.length)return void a.Toast.info("不能打开空文件",`添加${this.config.title}`);n=await i[0].async("text")}else n=await t.text();try{a.Toast.info(await(this.config.onItemAdd?.(n,"")),`添加${this.config.title}`)}catch(e){(0,c.logError)(e)}},async showBatchAddPopup(){this.batchAddShow=!this.batchAddShow,this.batchAddShow&&(await this.$nextTick(),this.$refs.batchAddTextArea?.focus())},async addItem(){if(!this.url)return;const e=a.Toast.info("获取中...",`添加${this.config.title}`);try{const t=await(0,i.tryParseZip)(this.url);e.message=await(this.config.onItemAdd?.(t,this.url)),this.url=""}catch(t){console.error(t),e.type=a.ToastType.Error,e.message=t}},async batchAddItem(){if(!this.batchUrl)return;const e=this.batchUrl.split("\n").map((e=>e.trim())).filter((e=>""!==e)),t=a.Toast.info(`获取中... (0/${e.length})`,"批量添加");let n=0;const o=await Promise.allSettled(e.map((async o=>{const{message:r}=await(0,i.installFeature)(o);return n++,t.message=`获取中... (${n}/${e.length})`,r}))),r=o.filter((e=>"fulfilled"===e.status)).length,c=o.filter((e=>"rejected"===e.status)).length;t.message=`安装完成, 成功 ${r} 个, 失败 ${c} 个.`;const s=o.map(((t,n)=>{const o=e[n];return"fulfilled"===t.status?`${t.value} ${o}`:`${t.reason} ${o}`})).join("\n");console.log(s),this.batchUrl=""}}});var A=n(9454),E=n.n(A),B={insert:"head",singleton:!1};p()(E(),B);E().locals;const D=(0,F.Z)(C,o,[],!1,null,null,null).exports},5576:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-item"},[t("div",{staticClass:"user-item-display-name"},[e._v("\n "+e._s(e.config.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"user-item-name"},[e._v("\n "+e._s(e.config.item.name)+"\n ")]),e._v(" "),e.config.isUserItem?t("div",{staticClass:"user-item-line"}):e._e(),e._v(" "),e.config.isUserItem?t("div",{ref:"removeIcon",staticClass:"user-item-remove",on:{dblclick:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:18}}),e._v(" "),t("div",{ref:"removeConfirmTemplate",staticClass:"user-item-remove-confirm"},[e._v("\n 确定要卸载 "+e._s(e.config.item.displayName)+" 吗?\n "),t("VButton",{attrs:{type:"primary"},on:{click:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}}),e._v("\n 确定\n ")],1)],1)],1):e._e()])};o._withStripped=!0;var i=n(7102),r=n(9859),a=n(9464);const c=Vue.extend({components:{VIcon:r.VIcon,VButton:a.default},props:{config:{type:Object,required:!0}},data:()=>({removeConfirm:!1,settings:{}}),mounted(){this.config.getSettings&&(this.settings=this.config.getSettings(this.config.item)),this.config.isUserItem&&i.Toast.mini(this.$refs.removeConfirmTemplate,this.$refs.removeIcon,{trigger:"click",hideOnClick:!0})},methods:{async removeItem(){await this.config.onItemRemove(this.config.item),this.removeConfirm=!1}}});var s=n(8332),l=n.n(s),d=n(8635),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},1654:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-video-control-bar-extend squirtle-block-wrap"},e._l(e.items,(function(n){return t("div",{key:n.name,staticClass:"be-video-control-bar-extend-item bilibili-player-video-btn squirtle-block-wrap bpx-player-ctrl-btn",style:{order:n.order.toString()},attrs:{"data-name":n.name},on:{click:function(e){return n.action(e)}}},[t("button",[t("span",{staticClass:"bp-svgicon"},[t("VIcon",{attrs:{icon:n.icon}})],1)]),e._v(" "),t("div",{staticClass:"be-video-control-tooltip"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)};o._withStripped=!0;var i=n(9859);const r=Vue.extend({components:{VIcon:i.VIcon},props:{items:{type:Array,required:!0}}});var a=n(8332),c=n.n(a),s=n(3329),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},5433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-mini-toast-wrapper"},[t("div",{ref:"content",staticClass:"be-mini-toast-content"},[e._t("default")],2),e._v(" "),t("div",{ref:"toast",staticClass:"be-mini-toast"},[e._t("toast")],2)])};o._withStripped=!0;var i=n(948);const r={body:()=>document.body,local:void 0},a=Vue.extend({model:{prop:"show",event:"change"},props:{show:{type:Boolean,default:!1},container:{type:String,default:"local"},placement:{type:String,default:void 0}},data:()=>({toast:null}),watch:{placement(e){e&&this.toast&&(this.toast.placement=e)}},async mounted(){await this.$nextTick();const e=r[this.container];this.toast=(0,i.$)(this.$refs.toast,this.$refs.content,{placement:this.placement,showOnCreate:this.show,trigger:"mouseenter focusin",onHide:()=>{this.$emit("change",!1)},onShow:()=>{this.$emit("change",!0)},appendTo:"function"==typeof e?e():e,...this.$attrs})}});const c=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},7292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toast-card visible",class:"toast-"+e.card.type,on:{mouseover:e.stopTimer,mouseout:e.startTimer}},[t("div",{staticClass:"toast-card-border"}),e._v(" "),t("div",{staticClass:"toast-card-header"},[t("h1",{staticClass:"toast-card-title"},[e._v("\n "+e._s(e.card.title)+"\n ")]),e._v(" "),t("div",{staticClass:"toast-card-close",class:{"show-progress":Boolean(e.remainingTime)},attrs:{title:"关闭"},on:{click:function(t){return e.card.close()}}},[t("ProgressRing",{attrs:{size:28,stroke:2,progress:e.progressMax-e.remainingTime,max:e.progressMax}}),e._v(" "),t("VIcon",{attrs:{icon:"close",size:14}})],1)]),e._v(" "),t("div",{staticClass:"toast-card-message",domProps:{innerHTML:e._s(e.card.message)}})])};o._withStripped=!0;var i=n(9859);const r=Vue.extend({components:{VIcon:i.VIcon,ProgressRing:i.ProgressRing},props:{card:{type:Object,required:!0}},data:()=>({progressMax:0,remainingTime:0}),created(){this.readDuration()},methods:{durationTick(){const{closeTime:e}=this.card;e&&(this.remainingTime=e-Number(new Date),this.remainingTime>0&&requestAnimationFrame((()=>this.durationTick())))},readDuration(){const{duration:e,closeTime:t}=this.card;e&&(this.progressMax=t-Number(new Date),this.remainingTime=this.progressMax,requestAnimationFrame((()=>this.durationTick())))},stopTimer(){this.card.clearDuration(),this.progressMax=0,this.remainingTime=0},startTimer(){this.card.setDuration(),this.readDuration()}}});var a=n(8332),c=n.n(a),s=n(936),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},4085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-switch-box",class:{checked:e.checked,disabled:e.disabled},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.disabled,tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggle())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggle())}]}},[t("label",[t("input",{ref:"input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.checked},on:{change:function(t){return t.stopPropagation(),e.$emit("change",t.target.checked)}}}),e._v(" "),e._m(0)])])};o._withStripped=!0;const i=Vue.extend({name:"SwitchBox",model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{toggle(){this.disabled||(this.$refs.input.checked=!this.$refs.input.checked,this.$emit("change",this.$refs.input.checked))}}});var r=n(8332),a=n.n(r),c=n(4377),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[function(){var e=this._self._c;this._self._setupProxy;return e("div",{staticClass:"bar"},[e("div",{staticClass:"thumb"})])}],!1,null,null,null).exports},3765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-textbox",class:{linear:e.linear},attrs:{role:"textbox"}},[t("input",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"input",e.$attrs,!1),e.restListeners)),e._v(" "),e.linear?t("div",{staticClass:"linear-bar"}):e._e()])};o._withStripped=!0;var i=n(1150);const r=Vue.extend({name:"TextBox",mixins:[i.t],props:{linear:{type:Boolean,default:!1}}});var a=n(8332),c=n.n(a),s=n(8787),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"d1f779a8",null).exports},9464:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-button",class:{[e.type]:!0,disabled:e.disabled,round:e.round,icon:e.icon},attrs:{role:"button","aria-disabled":e.disabled,tabindex:e.disabled?-1:0},on:{keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)}]}},e.disabled?null:e.$listeners),[t("div",{staticClass:"content-container"},[e._t("default",(function(){return[e._v("Button")]}))],2)])};o._withStripped=!0;const i=Vue.extend({name:"VButton",props:{type:{type:String,default:"light"},round:{type:Boolean,default:!1},icon:{type:Boolean,default:!1}},computed:{disabled(){return Boolean(this.$attrs.disabled)}}});var r=n(8332),a=n.n(r),c=n(2566),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,"18aa9448",null).exports},9032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-loading"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};o._withStripped=!0;var i=n(3378);const[r]=(0,i.registerAndGetData)("vLoading",{content:"加载中..."}),a=Vue.extend({name:"VLoading",data:()=>({config:r})});var c=n(8332),s=n.n(c),l=n(2001),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},985:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-popup",class:{open:e.open,fixed:e.fixed,close:!e.open,"closed-style":e.closedStyle}},e.$listeners),[e.loaded?e._t("default"):e._e()],2)};o._withStripped=!0;const i=Vue.extend({name:"VPopup",model:{prop:"open",event:"popup-change"},props:{open:{type:Boolean,required:!1,default:!1},closedStyle:{type:Boolean,required:!1,default:!0},fixed:{type:Boolean,required:!1,default:!1},triggerElement:{required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0},autoDestroy:{type:Boolean,required:!1,default:!1},escClose:{type:Boolean,required:!1,default:!1},autoClosePredicate:{type:Function,required:!1,default:null}},data(){return{loaded:!this.lazy}},computed:{trigger(){return null===this.triggerElement?null:"$el"in this.triggerElement?this.triggerElement.$el:this.triggerElement}},watch:{open(){this.lazy&&!this.loaded&&(this.loaded=!0),this.setAutoClose()}},mounted(){const e=this.$el;this.open&&this.setAutoClose(),this.escClose&&e.addEventListener("keydown",(e=>{"Escape"===e.key&&this.$emit("popup-change",!1)})),this.autoDestroy&&e.addEventListener("transitionend",(()=>{this.open||(this.loaded=!1)}))},methods:{openHandler(e){const t=e.target,n=document.querySelector(".toast-card-container");let o=t!==this.trigger&&!this.trigger?.contains(t)&&t!==this.$el&&!this.$el.contains(t)&&!n?.contains(t);this.autoClosePredicate&&(o=o&&this.autoClosePredicate({target:t,element:this.$el,trigger:this.trigger})),o&&this.$emit("popup-change",!1)},setAutoClose(){if(this.autoClose){["mousedown","touchstart"].forEach((e=>{this.open?document.documentElement.addEventListener(e,(e=>this.openHandler(e))):document.documentElement.removeEventListener(e,(e=>this.openHandler(e)))}))}},toggle(){this.$emit("popup-change",!this.open)}}});var r=n(8332),a=n.n(r),c=n(8581),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,null,null).exports},1366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"slider",staticClass:"be-slider",attrs:{role:"slider",tabindex:e.focusable?0:-1},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(-1))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(1))}]}},[t("div",{ref:"barContainer",staticClass:"bar-container",on:{click:function(t){return e.setByCoord(t.offsetX)}}},[e._t("bar",(function(){return[t("div",{staticClass:"default-bar"})]}))],2),e._v(" "),t("MiniToast",{ref:"thumbContainer",staticClass:"thumb-container",style:{left:e.thumbLeft},attrs:{placement:"top",arrow:!1},scopedSlots:e._u([{key:"toast",fn:function(){return[e._v("\n "+e._s(e.displayFun(e.realValue))+"\n ")]},proxy:!0}])},[e._t("thumb",(function(){return[t("div",{staticClass:"default-thumb"})]}))],2)],1)};o._withStripped=!0;var i=n(5433);const r=Vue.extend({name:"VSlider",components:{MiniToast:i.Z},model:{prop:"value",event:"change"},props:{focusable:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},value:{type:Number,default:0},center:{type:Number,default:0},step:{type:Number,default:1},displayFun:{type:Function,default:e=>String(e)}},data:()=>({realValue:0}),computed:{realMax(){return this.valueToRounded(this.max,Math.floor)},realMin(){return this.valueToRounded(this.min,Math.ceil)},valueLength(){const e=this.realMax-this.realMin;return e<0?(console.error("[VSlider] No desirable value between min and max"),0):e},thumbLeft(){if(0===this.valueLength)return 0;return`${(this.realValue-this.realMin)/this.valueLength*100}%`},centerCoord(){return this.valueToLength(this.center-this.realMin)}},watch:{value(e){e!==this.realValue&&this.setByValue(e)},center(){this.setByValue(this.realValue)},min(){this.setByRounded(this.realValue)},max(){this.setByRounded(this.realValue)}},created(){this.setByValue(this.value)},mounted(){this.setupDrag()},methods:{valueToStep(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round)(e/this.step)},valueToStepped(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.valueToStep(e,t)*this.step},lengthToValue(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return this.valueLength*(e/t)},lengthToStep(e){return this.valueToStep(this.lengthToValue(e))},lengthToStepped(e){return this.lengthToStep(e)*this.step},valueToLength(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return 0===this.valueLength?0:t*(e/this.valueLength)},valueToRounded(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.center+this.valueToStepped(e-this.center,t)},limitValue(e){return 0===this.valueLength?this.realMin:(ethis.realMax&&(e=this.realMax),e)},offsetByStep(e){this.setByRounded(this.realValue+e*this.step)},setByLimited(e){e!==this.realValue&&(this.realValue=e,this.$emit("change",this.realValue))},setByRounded(e){this.setByLimited(this.limitValue(e))},setByValue(e){this.setByRounded(this.valueToRounded(e))},setByCoord(e){this.setByRounded(this.center+this.lengthToStepped(e-this.centerCoord))},setupDrag(){function e(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e=>{e.preventDefault(),e instanceof MouseEvent||e instanceof unsafeWindow.MouseEvent?n(e.pageX):1===e.touches.length&&n(e.touches[0].pageX)};return e.addEventListener(t,i,{once:o,passive:!1}),()=>e.removeEventListener(t,i)}const t=this.$refs.thumbContainer.$el,n=[{start:"mousedown",move:"mousemove",end:"mouseup"},{start:"touchstart",move:"touchmove",end:"touchend"}];for(const o of n){let n=0,i=0;e(t,o.start,(t=>{this.$emit("start",this.realValue),this.$refs.slider.focus(),n=t,i=this.realValue;const r=e(window,o.move,(e=>{this.setByValue(i+this.lengthToValue(e-n))}));e(window,o.end,(()=>{this.$emit("end",this.realValue),r()}),!0)}))}}}});var a=n(8332),c=n.n(a),s=n(7964),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"94f62aa6",null).exports},4749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("i",e._g(e._b({staticClass:"be-icon",class:e.classes,style:{"--size":e.size+"px"}},"i",e.$attrs,!1),e.$listeners),[e._t("default"),e._v(" "),e.icon in e.$options.static.customIcons?t("div",{staticClass:"custom-icon",domProps:{innerHTML:e._s(e.$options.static.customIcons[e.icon])}}):e._e()],2)};o._withStripped=!0;var i=n(3378);const r=n(5454),a=lodash.fromPairs(r.keys().map((e=>[e.replace(/.*\/([^/]+?)\.svg$/,"$1"),r(e)]))),[c]=(0,i.registerAndGetData)("ui.icons",a),s={customIcons:a},l=Vue.extend({name:"VIcon",props:{icon:{type:String,default:""},size:{type:Number,default:24},colored:{type:Boolean,default:!1}},computed:{classes(){const e=this.$options.static.customIcons,t=this.icon,n=[];return this.colored&&n.push("colored"),""===t||t in e?n:t.startsWith("mdi-")?[...n,"mdi",t]:[...n,`be-iconfont-${t}`]}},beforeCreate(){this.$options.static=s}}),d=l;var m=n(8332),f=n.n(m),u=n(8847),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6499:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var d=l.render;l.render=function(e,t){return s.call(t),d(e,t)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,s):[s]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},7933:(e,t,n)=>{"use strict";var o=n(8254),i=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8332),i=n.n(o),r=n(2080),a=n.n(r),c={insert:"head",singleton:!1};i()(a(),c);const s=a().locals||{}},8332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n{var o=n(6292);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},813:(e,t,n)=>{var o=n(8815);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},5026:(e,t,n)=>{"use strict";const o=Object.freeze({}),i=Array.isArray;function r(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function d(e){return null!==e&&"object"==typeof e}const m=Object.prototype.toString;function f(e){return"[object Object]"===m.call(e)}function u(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===m?JSON.stringify(e,null,2):String(e)}function h(e){const t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const F=g("key,ref,slot,slot-scope,is");function v(e,t){const n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);const o=e.indexOf(t);if(o>-1)return e.splice(o,1)}}const w=Object.prototype.hasOwnProperty;function y(e,t){return w.call(e,t)}function x(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const k=/-(\w)/g,C=x((e=>e.replace(k,((e,t)=>t?t.toUpperCase():"")))),A=x((e=>e.charAt(0).toUpperCase()+e.slice(1))),E=/\B([A-Z])/g,B=x((e=>e.replace(E,"-$1").toLowerCase())),D=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function z(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function I(e,t){for(const n in t)e[n]=t[n];return e}function S(e){const t={};for(let n=0;n!1,O=e=>e;function V(e,t){if(e===t)return!0;const n=d(e),o=d(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every(((e,n)=>V(e,t[n])));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>V(e[n],t[n])))}}catch(e){return!1}}function T(e,t){for(let n=0;n0,K=Q&&Q.indexOf("edge/")>0;Q&&Q.indexOf("android");const J=Q&&/iphone|ipad|ipod|ios/.test(Q);Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q);const _=Q&&Q.match(/firefox\/(\d+)/),$={}.watch;let ee,te=!1;if(G)try{const e={};Object.defineProperty(e,"passive",{get(){te=!0}}),window.addEventListener("test-passive",null,e)}catch(o){}const ne=()=>(void 0===ee&&(ee=!G&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ee),oe=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);let ae;ae="undefined"!=typeof Set&&ie(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let ce=null;function se(e=null){e||ce&&ce._scope.off(),ce=e,e&&e._scope.on()}class le{constructor(e,t,n,o,i,r,a,c){this.tag=e,this.data=t,this.children=n,this.text=o,this.elm=i,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const de=(e="")=>{const t=new le;return t.text=e,t.isComment=!0,t};function me(e){return new le(void 0,void 0,void 0,String(e))}function fe(e){const t=new le(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}let ue=0;const pe=[];class be{constructor(){this._pending=!1,this.id=ue++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,pe.push(this))}depend(e){be.target&&be.target.addDep(this)}notify(e){const t=this.subs.filter((e=>e));for(let e=0,n=t.length;e{const e=t[n];if(Le(e))return e.value;{const t=e&&e.__ob__;return t&&t.dep.depend(),e}},set:e=>{const o=t[n];Le(o)&&!Le(e)?o.value=e:t[n]=e}})}function Ne(e,t,n){const o=e[t];if(Le(o))return o;const i={get value(){const o=e[t];return void 0===o?n:o},set value(n){e[t]=n}};return U(i,"__v_isRef",!0),i}function qe(e){return Ze(e,!1)}function Ze(e,t){if(!f(e))return e;if(Te(e))return e;const n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",o=e[n];if(o)return o;const i=Object.create(Object.getPrototypeOf(e));U(e,n,i),U(i,"__v_isReadonly",!0),U(i,"__v_raw",e),Le(e)&&U(i,"__v_isRef",!0),(t||Ve(e))&&U(i,"__v_isShallow",!0);const r=Object.keys(e);for(let n=0;nTt(e,null,n,d,t);let f,u,p=!1,b=!1;if(Le(e)?(f=()=>e.value,p=Ve(e)):Oe(e)?(f=()=>(e.__ob__.dep.depend(),e),r=!0):i(e)?(b=!0,p=e.some((e=>Oe(e)||Ve(e))),f=()=>e.map((e=>Le(e)?e.value:Oe(e)?cn(e):l(e)?m(e,"watcher getter"):void 0))):f=l(e)?t?()=>m(e,"watcher getter"):()=>{if(!d||!d._isDestroyed)return u&&u(),m(e,"watcher",[h])}:M,t&&r){const e=f;f=()=>cn(e())}let h=e=>{u=g.onStop=()=>{m(e,"watcher cleanup")}};if(ne())return h=M,t?n&&m(t,"watcher callback",[f(),b?[]:void 0,h]):f(),M;const g=new mn(ce,f,M,{lazy:!0});g.noRecurse=!t;let F=b?[]:We;return g.run=()=>{if(g.active)if(t){const e=g.get();(r||p||(b?e.some(((e,t)=>j(e,F[t]))):j(e,F)))&&(u&&u(),m(t,"watcher callback",[e,F===We?void 0:F,h]),F=e)}else g.get()},"sync"===a?g.update=g.run:"post"===a?(g.post=!0,g.update=()=>Mn(g)):g.update=()=>{if(d&&d===ce&&!d._isMounted){const e=d._preWatchers||(d._preWatchers=[]);e.indexOf(g)<0&&e.push(g)}else Mn(g)},t?n?g.run():F=g.get():"post"===a&&d?d.$once("hook:mounted",(()=>g.get())):g.get(),()=>{g.teardown()}}let Qe;class Ye{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Qe,!e&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Qe;try{return Qe=this,e()}finally{Qe=t}}}on(){Qe=this}off(){Qe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}}));function Je(e,t){function n(){const e=n.fns;if(!i(e))return Tt(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(l=ot(l,`${t||""}_${o}`),nt(l[0])&&nt(m)&&(n[d]=me(m.text+l[0].text),l.shift()),n.push.apply(n,l)):s(l)?nt(m)?n[d]=me(m.text+l):""!==l&&n.push(me(l)):nt(l)&&nt(m)?n[d]=me(m.text+l.text):(c(e._isVList)&&a(l.tag)&&r(l.key)&&a(t)&&(l.key=`__vlist${t}_${o}__`),n.push(l)));return n}function it(e,t){let n,o,r,c,s=null;if(i(e)||"string"==typeof e)for(s=new Array(e.length),n=0,o=e.length;n0,c=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(c&&i&&i!==o&&s===i.$key&&!a&&!i.$hasNormal)return i;r={};for(const o in t)t[o]&&"$"!==o[0]&&(r[o]=kt(e,n,o,t[o]))}else r={};for(const e in n)e in r||(r[e]=Ct(n,e));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",c),U(r,"$key",s),U(r,"$hasNormal",a),r}function kt(e,t,n,o){const r=function(){const t=ce;se(e);let n=arguments.length?o.apply(null,arguments):o({});n=n&&"object"==typeof n&&!i(n)?[n]:tt(n);const r=n&&n[0];return se(t),n&&(!r||1===n.length&&r.isComment&&!yt(r))?void 0:n};return o.proxy&&Object.defineProperty(t,n,{get:r,enumerable:!0,configurable:!0}),r}function Ct(e,t){return()=>e[t]}function At(e){return{get attrs(){if(!e._attrsProxy){const t=e._attrsProxy={};U(t,"_v_attr_proxy",!0),Et(t,e.$attrs,o,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Et(e._listenersProxy={},e.$listeners,o,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:D(e.$emit,e),expose(t){t&&Object.keys(t).forEach((n=>Re(e,t,n)))}}}function Et(e,t,n,o,i){let r=!1;for(const a in t)a in e?t[a]!==n[a]&&(r=!0):(r=!0,Bt(e,a,o,i));for(const n in e)n in t||(r=!0,delete e[n]);return r}function Bt(e,t,n,o){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[o][t]})}function Dt(e,t){for(const n in t)e[n]=t[n];for(const n in e)n in t||delete e[n]}function zt(){const e=ce;return e._setupContext||(e._setupContext=At(e))}let It=null;function St(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e)?t.extend(e):e}function Mt(e){if(i(e))for(let t=0;tVt(e,o,i+" (Promise/async)"))),r._handled=!0)}catch(e){Vt(e,o,i)}return r}function Lt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(t){t!==e&&jt(t)}jt(e)}function jt(e,t,n){if(!G||"undefined"==typeof console)throw e;console.error(e)}let Rt=!1;const Nt=[];let qt,Zt=!1;function Ut(){Zt=!1;const e=Nt.slice(0);Nt.length=0;for(let t=0;t{e.then(Ut),J&&setTimeout(M)},Rt=!0}else if(Y||"undefined"==typeof MutationObserver||!ie(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())qt="undefined"!=typeof setImmediate&&ie(setImmediate)?()=>{setImmediate(Ut)}:()=>{setTimeout(Ut,0)};else{let e=1;const t=new MutationObserver(Ut),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),qt=()=>{e=(e+1)%2,n.data=String(e)},Rt=!0}function Ht(e,t){let n;if(Nt.push((()=>{if(e)try{e.call(t)}catch(e){Vt(e,t,"nextTick")}else n&&n(t)})),Zt||(Zt=!0,qt()),!e&&"undefined"!=typeof Promise)return new Promise((e=>{n=e}))}function Wt(e){return(t,n=ce)=>{if(n)return function(e,t,n){const o=e.$options;o[t]=Gn(o[t],n)}(n,e,t)}}const Gt=Wt("beforeMount"),Qt=Wt("mounted"),Yt=Wt("beforeUpdate"),Xt=Wt("updated"),Kt=Wt("beforeDestroy"),Jt=Wt("destroyed"),_t=Wt("activated"),$t=Wt("deactivated"),en=Wt("serverPrefetch"),tn=Wt("renderTracked"),nn=Wt("renderTriggered"),on=Wt("errorCaptured");var rn=Object.freeze({__proto__:null,version:"2.7.14",defineComponent:function(e){return e},ref:function(e){return je(e,!1)},shallowRef:function(e){return je(e,!0)},isRef:Le,toRef:Ne,toRefs:function(e){const t=i(e)?new Array(e.length):{};for(const n in e)t[n]=Ne(e,n);return t},unref:function(e){return Le(e)?e.value:e},proxyRefs:function(e){if(Oe(e))return e;const t={},n=Object.keys(e);for(let o=0;o{t.depend()}),(()=>{t.notify()})),i={get value(){return n()},set value(e){o(e)}};return U(i,"__v_isRef",!0),i},triggerRef:function(e){e.dep&&e.dep.notify()},reactive:function(e){return Pe(e,!1),e},isReactive:Oe,isReadonly:Te,isShallow:Ve,isProxy:function(e){return Oe(e)||Te(e)},shallowReactive:Me,markRaw:function(e){return Object.isExtensible(e)&&U(e,"__v_skip",!0),e},toRaw:function e(t){const n=t&&t.__v_raw;return n?e(n):t},readonly:qe,shallowReadonly:function(e){return Ze(e,!0)},computed:function(e,t){let n,o;const i=l(e);i?(n=e,o=M):(n=e.get,o=e.set);const r=ne()?null:new mn(ce,n,M,{lazy:!0}),a={effect:r,get value(){return r?(r.dirty&&r.evaluate(),be.target&&r.depend(),r.value):n()},set value(e){o(e)}};return U(a,"__v_isRef",!0),U(a,"__v_isReadonly",i),a},watch:function(e,t,n){return Ge(e,t,n)},watchEffect:function(e,t){return Ge(e,null,t)},watchPostEffect:He,watchSyncEffect:function(e,t){return Ge(e,null,{flush:"sync"})},EffectScope:Ye,effectScope:function(e){return new Ye(e)},onScopeDispose:function(e){Qe&&Qe.cleanups.push(e)},getCurrentScope:function(){return Qe},provide:function(e,t){ce&&(Xe(ce)[e]=t)},inject:function(e,t,n=!1){const o=ce;if(o){const i=o.$parent&&o.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&l(t)?t.call(o):t}},h:function(e,t,n){return Pt(ce,e,t,n,2,!0)},getCurrentInstance:function(){return ce&&{proxy:ce}},useSlots:function(){return zt().slots},useAttrs:function(){return zt().attrs},useListeners:function(){return zt().listeners},mergeDefaults:function(e,t){const n=i(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?i(o)||l(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n},nextTick:Ht,set:ze,del:Ie,useCssModule:function(e="$style"){if(!ce)return o;return ce[e]||o},useCssVars:function(e){if(!G)return;const t=ce;t&&He((()=>{const n=t.$el,o=e(t,t._setupProxy);if(n&&1===n.nodeType){const e=n.style;for(const t in o)e.setProperty(`--${t}`,o[t])}}))},defineAsyncComponent:function(e){l(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:r,suspensible:a=!1,onError:c}=e;let s=null,d=0;const m=()=>{let e;return s||(e=s=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((d++,s=null,m()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==s&&s?s:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t))))};return()=>({component:m(),delay:i,timeout:r,error:o,loading:n})},onBeforeMount:Gt,onMounted:Qt,onBeforeUpdate:Yt,onUpdated:Xt,onBeforeUnmount:Kt,onUnmounted:Jt,onActivated:_t,onDeactivated:$t,onServerPrefetch:en,onRenderTracked:tn,onRenderTriggered:nn,onErrorCaptured:function(e,t=ce){on(e,t)}});const an=new ae;function cn(e){return sn(e,an),an.clear(),e}function sn(e,t){let n,o;const r=i(e);if(!(!r&&!d(e)||e.__v_skip||Object.isFrozen(e)||e instanceof le)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(r)for(n=e.length;n--;)sn(e[n],t);else if(Le(e))sn(e.value,t);else for(o=Object.keys(e),n=o.length;n--;)sn(e[o[n]],t)}}let ln,dn=0;class mn{constructor(e,t,n,o,i){!function(e,t=Qe){t&&t.active&&t.effects.push(e)}(this,Qe&&!Qe._vm?Qe:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ae,this.newDepIds=new ae,this.expression="",l(t)?this.getter=t:(this.getter=function(e){if(H.test(e))return;const t=e.split(".");return function(e){for(let n=0;n{hn=t}}function Fn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function vn(e,t){if(t){if(e._directInactive=!1,Fn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;tdocument.createEvent("Event").timeStamp&&(zn=()=>e.now())}const In=(e,t)=>{if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Sn(){let e,t;for(Dn=zn(),En=!0,xn.sort(In),Bn=0;Bn{for(let e=0;ee)),t._pending=!1}pe.length=0})(),oe&&q.devtools&&oe.emit("flush")}function Mn(e){const t=e.id;if(null==Cn[t]&&(e!==be.target||!e.noRecurse)){if(Cn[t]=!0,En){let t=xn.length-1;for(;t>Bn&&xn[t].id>e.id;)t--;xn.splice(t+1,0,e)}else xn.push(e);An||(An=!0,Ht(Sn))}}function Pn(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let i=0;i(this.$slots||xt(r,e.scopedSlots,this.$slots=vt(n,r)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return xt(r,e.scopedSlots,this.slots())}}),d&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=xt(r,e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,o)=>{const a=Pt(l,e,t,n,o,m);return a&&!i(a)&&(a.fnScopeId=s._scopeId,a.fnContext=r),a}:this._c=(e,t,n,o)=>Pt(l,e,t,n,o,m)}function Vn(e,t,n,o,i){const r=fe(e);return r.fnContext=n,r.fnOptions=o,t.slot&&((r.data||(r.data={})).slot=t.slot),r}function Tn(e,t){for(const n in t)e[C(n)]=t[n]}function Ln(e){return e.name||e.__name||e._componentTag}Ft(On.prototype);const jn={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;jn.prepatch(t,t)}else(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;return a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns),new e.componentOptions.Ctor(n)}(e,hn)).$mount(t?e.elm:void 0,t)},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,i,r){const a=i.data.scopedSlots,c=e.$scopedSlots,s=!!(a&&!a.$stable||c!==o&&!c.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key);let l=!!(r||e.$options._renderChildren||s);const d=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=r;const m=i.data.attrs||o;e._attrsProxy&&Et(e._attrsProxy,m,d.data&&d.data.attrs||o,e,"$attrs")&&(l=!0),e.$attrs=m,n=n||o;const f=e.$options._parentListeners;if(e._listenersProxy&&Et(e._listenersProxy,n,f||o,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,bn(e,n,f),t&&e.$options.props){Ce(!1);const n=e._props,o=e.$options._propKeys||[];for(let i=0;iv(o,n)));const l=e=>{for(let e=0,t=o.length;e{e.resolved=St(n,t),i?o.length=0:l(!0)})),f=L((t=>{a(e.errorComp)&&(e.error=!0,l(!0))})),u=e(m,f);return d(u)&&(p(u)?r(e.resolved)&&u.then(m,f):p(u.component)&&(u.component.then(m,f),a(u.error)&&(e.errorComp=St(u.error,t)),a(u.loading)&&(e.loadingComp=St(u.loading,t),0===u.delay?e.loading=!0:c=setTimeout((()=>{c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,l(!1))}),u.delay||200)),a(u.timeout)&&(s=setTimeout((()=>{s=null,r(e.resolved)&&f(null)}),u.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(f,m),void 0===e))return function(e,t,n,o,i){const r=de();return r.asyncFactory=e,r.asyncMeta={data:t,context:n,children:o,tag:i},r}(f,t,n,s,l);t=t||{},fo(e),a(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),c=r[o],s=t.model.callback;a(c)?(i(c)?-1===c.indexOf(s):c!==s)&&(r[o]=[s].concat(c)):r[o]=s}(e.options,t);const u=function(e,t,n){const o=t.options.props;if(r(o))return;const i={},{attrs:c,props:s}=e;if(a(c)||a(s))for(const e in o){const t=B(e);et(i,s,e,t,!0)||et(i,c,e,t,!1)}return i}(t,e);if(c(e.options.functional))return function(e,t,n,r,c){const s=e.options,l={},d=s.props;if(a(d))for(const e in d)l[e]=Jn(e,d,t||o);else a(n.attrs)&&Tn(l,n.attrs),a(n.props)&&Tn(l,n.props);const m=new On(n,l,c,r,e),f=s.render.call(null,m._c,m);if(f instanceof le)return Vn(f,n,m.parent,s);if(i(f)){const e=tt(f)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}let Zn=M;const Un=q.optionMergeStrategies;function Hn(e,t,n=!0){if(!t)return e;let o,i,r;const a=re?Reflect.ownKeys(t):Object.keys(t);for(let c=0;c{Un[e]=Gn})),R.forEach((function(e){Un[e+"s"]=Qn})),Un.watch=function(e,t,n,o){if(e===$&&(e=void 0),t===$&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};I(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!i(n)&&(n=[n]),r[e]=n?n.concat(o):i(o)?o:[o]}return r},Un.props=Un.methods=Un.inject=Un.computed=function(e,t,n,o){if(!e)return t;const i=Object.create(null);return I(i,e),t&&I(i,t),i},Un.provide=function(e,t){return e?function(){const n=Object.create(null);return Hn(n,l(e)?e.call(this):e),t&&Hn(n,l(t)?t.call(this):t,!1),n}:t};const Yn=function(e,t){return void 0===t?e:t};function Xn(e,t,n){if(l(t)&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,a,c;if(i(n))for(r=n.length;r--;)a=n[r],"string"==typeof a&&(c=C(a),o[c]={type:null});else if(f(n))for(const e in n)a=n[e],c=C(e),o[c]=f(a)?a:{type:a};e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(i(n))for(let e=0;e-1)if(r&&!y(i,"default"))a=!1;else if(""===a||a===B(e)){const e=to(String,i.type);(e<0||c-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===m.call(n)&&e.test(t));var n}function ho(e,t){const{cache:n,keys:o,_vnode:i}=e;for(const e in n){const r=n[e];if(r){const a=r.name;a&&!t(a)&&go(n,e,o,i)}}}function go(e,t,n,o){const i=e[t];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mo++,t._isVue=!0,t.__v_skip=!0,t._scope=new Ye(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const i=o.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Xn(fo(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&bn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=vt(t._renderChildren,i),e.$scopedSlots=n?xt(e.$parent,n.data.scopedSlots,e.$slots):o,e._c=(t,n,o,i)=>Pt(e,t,n,o,i,!1),e.$createElement=(t,n,o,i)=>Pt(e,t,n,o,i,!0);const r=n&&n.data;De(e,"$attrs",r&&r.attrs||o,null,!0),De(e,"$listeners",t._parentListeners||o,null,!0)}(t),yn(t,"beforeCreate",void 0,!1),function(e){const t=Pn(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((n=>{De(e,n,t[n])})),Ce(!0))}(t),io(t),function(e){const t=e.$options.provide;if(t){const n=l(t)?t.call(e):t;if(!d(n))return;const o=Xe(e),i=re?Reflect.ownKeys(n):Object.keys(n);for(let e=0;e1?z(n):n;const o=z(arguments,1),i=`event handler for "${e}"`;for(let e=0,r=n.length;eparseInt(this.max)&&go(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)go(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(e=>{ho(this,(t=>bo(e,t)))})),this.$watch("exclude",(e=>{ho(this,(t=>!bo(e,t)))}))},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=Mt(e),n=t&&t.componentOptions;if(n){const e=po(n),{include:o,exclude:i}=this;if(o&&(!e||!bo(o,e))||i&&e&&bo(i,e))return t;const{cache:r,keys:a}=this,c=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;r[c]?(t.componentInstance=r[c].componentInstance,v(a,c),a.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){const t={get:()=>q};Object.defineProperty(e,"config",t),e.util={warn:Zn,extend:I,mergeOptions:Xn,defineReactive:De},e.set=ze,e.delete=Ie,e.nextTick=Ht,e.observable=e=>(Be(e),e),e.options=Object.create(null),R.forEach((t=>{e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,vo),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=z(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Xn(this.options,e),this}}(e),function(e){e.cid=0;let t=1;e.extend=function(e){e=e||{};const n=this,o=n.cid,i=e._Ctor||(e._Ctor={});if(i[o])return i[o];const r=Ln(e)||Ln(n.options),a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Xn(n.options,e),a.super=n,a.options.props&&function(e){const t=e.options.props;for(const n in t)oo(e.prototype,"_props",n)}(a),a.options.computed&&function(e){const t=e.options.computed;for(const n in t)ao(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(e){a[e]=n[e]})),r&&(a.options.components[r]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=I({},a.options),i[o]=a,a}}(e),function(e){R.forEach((t=>{e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(uo),Object.defineProperty(uo.prototype,"$isServer",{get:ne}),Object.defineProperty(uo.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(uo,"FunctionalRenderContext",{value:On}),uo.version="2.7.14";const wo=g("style,class"),yo=g("input,textarea,option,select,progress"),xo=g("contenteditable,draggable,spellcheck"),ko=g("events,caret,typing,plaintext-only"),Co=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ao="http://www.w3.org/1999/xlink",Eo=e=>":"===e.charAt(5)&&"xlink"===e.slice(0,5),Bo=e=>Eo(e)?e.slice(6,e.length):"",Do=e=>null==e||!1===e;function zo(e,t){return{staticClass:Io(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Io(e,t){return e?t?e+" "+t:e:t||""}function So(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,i=e.length;oPo(e)||Oo(e),To=Object.create(null),Lo=g("text,number,password,search,email,tel,url");var jo=Object.freeze({__proto__:null,createElement:function(e,t){const n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Mo[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Ro={create(e,t){No(t)},update(e,t){e.data.ref!==t.data.ref&&(No(e,!0),No(t))},destroy(e){No(e,!0)}};function No(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,c=t?null:r,s=t?void 0:r;if(l(n))return void Tt(n,o,[c],o,"template ref function");const d=e.data.refInFor,m="string"==typeof n||"number"==typeof n,f=Le(n),u=o.$refs;if(m||f)if(d){const e=m?u[n]:n.value;t?i(e)&&v(e,r):i(e)?e.includes(r)||e.push(r):m?(u[n]=[r],qo(o,n,u[n])):n.value=[r]}else if(m){if(t&&u[n]!==r)return;u[n]=s,qo(o,n,c)}else if(f){if(t&&n.value!==r)return;n.value=c}}function qo({_setupState:e},t,n){e&&y(e,t)&&(Le(e[t])?e[t].value=n:e[t]=n)}const Zo=new le("",{},[]),Uo=["create","activate","update","remove","destroy"];function Ho(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===i||Lo(o)&&Lo(i)}(e,t)||c(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Wo(e,t,n){let o,i;const r={};for(o=t;o<=n;++o)i=e[o].key,a(i)&&(r[i]=o);return r}var Go={create:Qo,update:Qo,destroy:function(e){Qo(e,Zo)}};function Qo(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Zo,o=t===Zo,i=Xo(e.data.directives,e.context),r=Xo(t.data.directives,t.context),a=[],c=[];let s,l,d;for(s in r)l=i[s],d=r[s],l?(d.oldValue=l.value,d.oldArg=l.arg,Jo(d,"update",t,e),d.def&&d.def.componentUpdated&&c.push(d)):(Jo(d,"bind",t,e),d.def&&d.def.inserted&&a.push(d));if(a.length){const o=()=>{for(let n=0;n{for(let n=0;n-1?ti(e,t,n):Co(t)?Do(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xo(t)?e.setAttribute(t,((e,t)=>Do(t)||"false"===t?"false":"contenteditable"===e&&ko(t)?t:"true")(t,n)):Eo(t)?Do(n)?e.removeAttributeNS(Ao,Bo(t)):e.setAttributeNS(Ao,t,n):ti(e,t,n)}function ti(e,t,n){if(Do(n))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){const t=n=>{n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(t,n)}}var ni={create:$o,update:$o};function oi(e,t){const n=t.elm,o=t.data,i=e.data;if(r(o.staticClass)&&r(o.class)&&(r(i)||r(i.staticClass)&&r(i.class)))return;let c=function(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=zo(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=zo(t,n.data));return function(e,t){return a(e)||a(t)?Io(e,So(t)):""}(t.staticClass,t.class)}(t);const s=n._transitionClasses;a(s)&&(c=Io(c,So(s))),c!==n._prevClass&&(n.setAttribute("class",c),n._prevClass=c)}var ii={create:oi,update:oi};let ri;function ai(e,t,n){const o=ri;return function i(){const r=t.apply(null,arguments);null!==r&&li(e,i,n,o)}}const ci=Rt&&!(_&&Number(_[1])<=53);function si(e,t,n,o){if(ci){const e=Dn,n=t;t=n._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=e||t.timeStamp<=0||t.target.ownerDocument!==document)return n.apply(this,arguments)}}ri.addEventListener(e,t,te?{capture:n,passive:o}:n)}function li(e,t,n,o){(o||ri).removeEventListener(e,t._wrapper||t,n)}function di(e,t){if(r(e.data.on)&&r(t.data.on))return;const n=t.data.on||{},o=e.data.on||{};ri=t.elm||e.elm,function(e){if(a(e.__r)){const t=Y?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),_e(n,o,si,li,ai,t.context),ri=void 0}var mi={create:di,update:di,destroy:e=>di(e,Zo)};let fi;function ui(e,t){if(r(e.data.domProps)&&r(t.data.domProps))return;let n,o;const i=t.elm,s=e.data.domProps||{};let l=t.data.domProps||{};for(n in(a(l.__ob__)||c(l._v_attr_proxy))&&(l=t.data.domProps=I({},l)),s)n in l||(i[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=o;const e=r(o)?"":String(o);pi(i,e)&&(i.value=e)}else if("innerHTML"===n&&Oo(i.tagName)&&r(i.innerHTML)){fi=fi||document.createElement("div"),fi.innerHTML=`${o}`;const e=fi.firstChild;for(;i.firstChild;)i.removeChild(i.firstChild);for(;e.firstChild;)i.appendChild(e.firstChild)}else if(o!==s[n])try{i[n]=o}catch(e){}}}function pi(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){let n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){const n=e.value,o=e._vModifiers;if(a(o)){if(o.number)return h(n)!==h(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var bi={create:ui,update:ui};const hi=x((function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const o=e.split(n);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}));function gi(e){const t=Fi(e.style);return e.staticStyle?I(e.staticStyle,t):t}function Fi(e){return Array.isArray(e)?S(e):"string"==typeof e?hi(e):e}const vi=/^--/,wi=/\s*!important$/,yi=(e,t,n)=>{if(vi.test(t))e.style.setProperty(t,n);else if(wi.test(n))e.style.setProperty(B(t),n.replace(wi,""),"important");else{const o=Ci(t);if(Array.isArray(n))for(let t=0,i=n.length;t-1?t.split(Bi).forEach((t=>e.classList.add(t))):e.classList.add(t);else{const n=` ${e.getAttribute("class")||""} `;n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function zi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Bi).forEach((t=>e.classList.remove(t))):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{let n=` ${e.getAttribute("class")||""} `;const o=" "+t+" ";for(;n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ii(e){if(e){if("object"==typeof e){const t={};return!1!==e.css&&I(t,Si(e.name||"v")),I(t,e),t}return"string"==typeof e?Si(e):void 0}}const Si=x((e=>({enterClass:`${e}-enter`,enterToClass:`${e}-enter-to`,enterActiveClass:`${e}-enter-active`,leaveClass:`${e}-leave`,leaveToClass:`${e}-leave-to`,leaveActiveClass:`${e}-leave-active`}))),Mi=G&&!X;let Pi="transition",Oi="transitionend",Vi="animation",Ti="animationend";Mi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Pi="WebkitTransition",Oi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Vi="WebkitAnimation",Ti="webkitAnimationEnd"));const Li=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:e=>e();function ji(e){Li((()=>{Li(e)}))}function Ri(e,t){const n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Di(e,t))}function Ni(e,t){e._transitionClasses&&v(e._transitionClasses,t),zi(e,t)}function qi(e,t,n){const{type:o,timeout:i,propCount:r}=Ui(e,t);if(!o)return n();const a="transition"===o?Oi:Ti;let c=0;const s=()=>{e.removeEventListener(a,l),n()},l=t=>{t.target===e&&++c>=r&&s()};setTimeout((()=>{c0&&(l="transition",d=r,m=i.length):"animation"===t?s>0&&(l="animation",d=s,m=c.length):(d=Math.max(r,s),l=d>0?r>s?"transition":"animation":null,m=l?"transition"===l?i.length:c.length:0),{type:l,timeout:d,propCount:m,hasTransform:"transition"===l&&Zi.test(n[Pi+"Property"])}}function Hi(e,t){for(;e.lengthWi(t)+Wi(e[n]))))}function Wi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Gi(e,t){const n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());const o=Ii(e.data.transition);if(r(o))return;if(a(n._enterCb)||1!==n.nodeType)return;const{css:i,type:c,enterClass:s,enterToClass:m,enterActiveClass:f,appearClass:u,appearToClass:p,appearActiveClass:b,beforeEnter:g,enter:F,afterEnter:v,enterCancelled:w,beforeAppear:y,appear:x,afterAppear:k,appearCancelled:C,duration:A}=o;let E=hn,B=hn.$vnode;for(;B&&B.parent;)E=B.context,B=B.parent;const D=!E._isMounted||!e.isRootInsert;if(D&&!x&&""!==x)return;const z=D&&u?u:s,I=D&&b?b:f,S=D&&p?p:m,M=D&&y||g,P=D&&l(x)?x:F,O=D&&k||v,V=D&&C||w,T=h(d(A)?A.enter:A),j=!1!==i&&!X,R=Xi(P),N=n._enterCb=L((()=>{j&&(Ni(n,S),Ni(n,I)),N.cancelled?(j&&Ni(n,z),V&&V(n)):O&&O(n),n._enterCb=null}));e.data.show||$e(e,"insert",(()=>{const t=n.parentNode,o=t&&t._pending&&t._pending[e.key];o&&o.tag===e.tag&&o.elm._leaveCb&&o.elm._leaveCb(),P&&P(n,N)})),M&&M(n),j&&(Ri(n,z),Ri(n,I),ji((()=>{Ni(n,z),N.cancelled||(Ri(n,S),R||(Yi(T)?setTimeout(N,T):qi(n,c,N)))}))),e.data.show&&(t&&t(),P&&P(n,N)),j||R||N()}function Qi(e,t){const n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());const o=Ii(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(a(n._leaveCb))return;const{css:i,type:c,leaveClass:s,leaveToClass:l,leaveActiveClass:m,beforeLeave:f,leave:u,afterLeave:p,leaveCancelled:b,delayLeave:g,duration:F}=o,v=!1!==i&&!X,w=Xi(u),y=h(d(F)?F.leave:F),x=n._leaveCb=L((()=>{n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),v&&(Ni(n,l),Ni(n,m)),x.cancelled?(v&&Ni(n,s),b&&b(n)):(t(),p&&p(n)),n._leaveCb=null}));function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),v&&(Ri(n,s),Ri(n,m),ji((()=>{Ni(n,s),x.cancelled||(Ri(n,l),w||(Yi(y)?setTimeout(x,y):qi(n,c,x)))}))),u&&u(n,x),v||w||x())}g?g(k):k()}function Yi(e){return"number"==typeof e&&!isNaN(e)}function Xi(e){if(r(e))return!1;const t=e.fns;return a(t)?Xi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ki(e,t){!0!==t.data.show&&Gi(t)}const Ji=function(e){let t,n;const o={},{modules:l,nodeOps:d}=e;for(t=0;tb?(m=r(n[F+1])?null:n[F+1].elm,w(e,m,n,p,F,o)):p>F&&x(t,u,b)}(m,b,g,n,l):a(g)?(a(e.text)&&d.setTextContent(m,""),w(m,null,g,0,g.length-1,n)):a(b)?x(b,0,b.length-1):a(e.text)&&d.setTextContent(m,""):e.text!==t.text&&d.setTextContent(m,t.text),a(p)&&a(u=p.hook)&&a(u=u.postpatch)&&u(e,t)}function E(e,t,n){if(c(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e{const e=document.activeElement;e&&e.vmodel&&rr(e,"input")}));const _i={inserted(e,t,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?$e(n,"postpatch",(()=>{_i.componentUpdated(e,t,n)})):$i(e,t,n.context),e._vOptions=[].map.call(e.options,nr)):("textarea"===n.tag||Lo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",or),e.addEventListener("compositionend",ir),e.addEventListener("change",ir),X&&(e.vmodel=!0)))},componentUpdated(e,t,n){if("select"===n.tag){$i(e,t,n.context);const o=e._vOptions,i=e._vOptions=[].map.call(e.options,nr);i.some(((e,t)=>!V(e,o[t])))&&(e.multiple?t.value.some((e=>tr(e,i))):t.value!==t.oldValue&&tr(t.value,i))&&rr(e,"change")}}};function $i(e,t,n){er(e,t),(Y||K)&&setTimeout((()=>{er(e,t)}),0)}function er(e,t,n){const o=t.value,i=e.multiple;if(i&&!Array.isArray(o))return;let r,a;for(let t=0,n=e.options.length;t-1,a.selected!==r&&(a.selected=r);else if(V(nr(a),o))return void(e.selectedIndex!==t&&(e.selectedIndex=t));i||(e.selectedIndex=-1)}function tr(e,t){return t.every((t=>!V(t,e)))}function nr(e){return"_value"in e?e._value:e.value}function or(e){e.target.composing=!0}function ir(e){e.target.composing&&(e.target.composing=!1,rr(e.target,"input"))}function rr(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ar(e){return!e.componentInstance||e.data&&e.data.transition?e:ar(e.componentInstance._vnode)}var cr={bind(e,{value:t},n){const o=(n=ar(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&o?(n.data.show=!0,Gi(n,(()=>{e.style.display=i}))):e.style.display=t?i:"none"},update(e,{value:t,oldValue:n},o){!t!=!n&&((o=ar(o)).data&&o.data.transition?(o.data.show=!0,t?Gi(o,(()=>{e.style.display=e.__vOriginalDisplay})):Qi(o,(()=>{e.style.display="none"}))):e.style.display=t?e.__vOriginalDisplay:"none")},unbind(e,t,n,o,i){i||(e.style.display=e.__vOriginalDisplay)}},sr={model:_i,show:cr};const lr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function dr(e){const t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?dr(Mt(t.children)):e}function mr(e){const t={},n=e.$options;for(const o in n.propsData)t[o]=e[o];const o=n._parentListeners;for(const e in o)t[C(e)]=o[e];return t}function fr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}const ur=e=>e.tag||yt(e),pr=e=>"show"===e.name;var br={name:"transition",props:lr,abstract:!0,render(e){let t=this.$slots.default;if(!t)return;if(t=t.filter(ur),!t.length)return;const n=this.mode,o=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;const i=dr(o);if(!i)return o;if(this._leaving)return fr(e,o);const r=`__transition-${this._uid}-`;i.key=null==i.key?i.isComment?r+"comment":r+i.tag:s(i.key)?0===String(i.key).indexOf(r)?i.key:r+i.key:i.key;const a=(i.data||(i.data={})).transition=mr(this),c=this._vnode,l=dr(c);if(i.data.directives&&i.data.directives.some(pr)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!yt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){const t=l.data.transition=I({},a);if("out-in"===n)return this._leaving=!0,$e(t,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),fr(e,o);if("in-out"===n){if(yt(i))return c;let e;const n=()=>{e()};$e(a,"afterEnter",n),$e(a,"enterCancelled",n),$e(t,"delayLeave",(t=>{e=t}))}}return o}};const hr=I({tag:String,moveClass:String},lr);delete hr.mode;var gr={props:hr,beforeMount(){const e=this._update;this._update=(t,n)=>{const o=gn(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,o(),e.call(this,t,n)}},render(e){const t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],a=mr(this);for(let e=0;e{if(e.data.moved){const n=e.elm,o=n.style;Ri(n,t),o.transform=o.WebkitTransform=o.transitionDuration="",n.addEventListener(Oi,n._moveCb=function e(o){o&&o.target!==n||o&&!/transform$/.test(o.propertyName)||(n.removeEventListener(Oi,e),n._moveCb=null,Ni(n,t))})}})))},methods:{hasMove(e,t){if(!Mi)return!1;if(this._hasMove)return this._hasMove;const n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((e=>{zi(n,e)})),Di(n,t),n.style.display="none",this.$el.appendChild(n);const o=Ui(n);return this.$el.removeChild(n),this._hasMove=o.hasTransform}}};function Fr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function vr(e){e.data.newPos=e.elm.getBoundingClientRect()}function wr(e){const t=e.data.pos,n=e.data.newPos,o=t.left-n.left,i=t.top-n.top;if(o||i){e.data.moved=!0;const t=e.elm.style;t.transform=t.WebkitTransform=`translate(${o}px,${i}px)`,t.transitionDuration="0s"}}var yr={Transition:br,TransitionGroup:gr};uo.config.mustUseProp=(e,t,n)=>"value"===n&&yo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,uo.config.isReservedTag=Vo,uo.config.isReservedAttr=wo,uo.config.getTagNamespace=function(e){return Oo(e)?"svg":"math"===e?"math":void 0},uo.config.isUnknownElement=function(e){if(!G)return!0;if(Vo(e))return!1;if(e=e.toLowerCase(),null!=To[e])return To[e];const t=document.createElement(e);return e.indexOf("-")>-1?To[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:To[e]=/HTMLUnknownElement/.test(t.toString())},I(uo.options.directives,sr),I(uo.options.components,yr),uo.prototype.__patch__=G?Ji:M,uo.prototype.$mount=function(e,t){return function(e,t,n){let o;e.$el=t,e.$options.render||(e.$options.render=de),yn(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new mn(e,o,M,{before(){e._isMounted&&!e._isDestroyed&&yn(e,"beforeUpdate")}},!0),n=!1;const i=e._preWatchers;if(i)for(let e=0;e{q.devtools&&oe&&oe.emit("init",uo)}),0),I(uo,rn),e.exports=uo},7761:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7761,e.exports=t},4311:(e,t,n)=>{var o={"./index.en-US.md":5340};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=4311},3552:(e,t,n)=>{var o={"./index.en-US.ts":5564};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=3552},4353:(e,t,n)=>{var o={"./id-search/index.ts":1403};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=4353},5269:(e,t,n)=>{"use strict";n.r(t),n.d(t,{pako:()=>o}); diff --git a/dist/bilibili-evolved.user.js b/dist/bilibili-evolved.user.js index c3df0d7f1..5b680c226 100644 --- a/dist/bilibili-evolved.user.js +++ b/dist/bilibili-evolved.user.js @@ -64,13 +64,13 @@ const r=()=>{(0,o.contentLoaded)((async()=>{document.body.classList.add("round-c /* eslint-disable no-bitwise */ function*(e,t){let n,o=t?.low??0,i=t?.high??e.length;for(;o+1>>1;(yield{low:o,high:i,mid:n,slice:e.slice(o,n),rouge:Math.trunc(Math.log2(i-o))})?i=n:o=n}return{low:o,high:i,mid:n,slice:e.slice(o,n),rouge:Math.trunc(Math.log2(i-o)),target:e[o]}};var c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",[e._v("可能出问题的组件是:"+e._s(e.displayName)+"("+e._s(e.name)+")")]),e._v(" "),t("div",[t("span",{staticClass:"link",on:{click:e.restore}},[e._v("恢复原状("+e._s(e.countdown)+" 秒)")])])])};c._withStripped=!0;var s=n(5026);const l=n.n(s)().extend({data:()=>({countdown:30,userComponent:void 0}),computed:{displayName(){return this.userComponent?.metadata?.displayName},name(){return this.userComponent?.metadata?.name}},watch:{countdown(e){0===e&&this.restore()}},created(){this.interval=setInterval((()=>{this.countdown>0?this.countdown--:clearInterval(this.interval)}),1e3)},destroyed(){clearInterval(this.interval)},methods:{restore(){clearInterval(this.interval),this.$emit("restore")}}});const d=(0,n(6499).Z)(l,c,[],!1,null,null,null).exports;let m,f,u,p,b;const h=e=>{m?Object.assign(m,e):m=e},g=e=>{f=e},F=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,5600)),{userComponents:t}=e,o=lodash.pickBy(t,(e=>e.metadata.configurable||!0)),{targetComponents:i,keepDisabledComponents:r,keepEnabledComponents:a}=lodash.transform(o,((e,t,n)=>{m.keepEnabledComponents?.includes(n)?e.keepEnabledComponents.push(t):m.keepDisabledComponents?.includes(n)?e.keepDisabledComponents.push(t):e.targetComponents.push(t)}),{targetComponents:[],keepDisabledComponents:[],keepEnabledComponents:[]});return{userComponents:t,configurableUserComponents:o,targetComponents:i,keepDisabledComponents:r,keepEnabledComponents:a}},v=(e,t)=>e.forEach((e=>e.settings.enabled=t)),w=e=>e.map((e=>`${e.metadata.displayName}(${e.metadata.name})`)).join(", ")||"无",y=()=>!lodash.isEmpty(m.bisectInitialState),x=async()=>{f?.log("stop - 准备停止组件二等分"),b?.close();const{configurableUserComponents:e}=await F(),t=[];for(const[n,o]of Object.entries(e)){const e=m.originalComponentEnableState?.[n];null!=e?o.settings.enabled=e:t.push(o)}if(t.length){const e=`部分组件未能还原状态:${w(t)}`;f?.warn(`stop - ${e}`),i.Toast.error(e,"组件二等分"),await(0,r.delay)(3e3)}f?.log("stop - 清理状态"),u=null,m.bisectInitialState={},m.originalComponentEnableState={},f?.log("stop - 重载页面"),location.reload()},k=async(e,t)=>{b?.close(),f?.log("next - 当前工作状态:"+( // eslint-disable-next-line no-nested-ternary -null==e?"未知":e?"异常":"正常"));const{done:n,value:o}=u.next(e);if(n){const{low:e,high:t}=o;m.bisectInitialState={low:e,high:t};const n=`bisector-result-toast-content-${(0,r.getRandomId)()}`;i.Toast.info(`
`,"组件二等分结果"),await(0,r.delay)();const a=(0,r.mountVueComponent)(d,`#${n}`);a.userComponent=o.target,a.$on("restore",(()=>{x()}))}else{const{slice:e,low:n,high:i}=o,r=e,a=lodash.difference(p.targetComponents,e);m.bisectInitialState={low:n,high:i},f?.log(`next - 关闭组件:${w(a)}`),f?.log(`next - 开启组件:${w(r)}`),v(a,!1),v(r,!0),t&&(f?.log("next - 重载页面"),location.reload())}return{done:n,value:o}},C=async()=>{f?.log("recover - 准备恢复组件二等分"),p=await F();const{targetComponents:e,keepDisabledComponents:t,keepEnabledComponents:i}=p;v(i,!0),v(t,!1),f?.log(`recover - 保持关闭组件:${w(t)}`),f?.log(`recover - 保持开启组件:${w(i)}`),f?.log(`recover - 全部目标组件:${w(e)}`),u=a(e,m.bisectInitialState);const{done:r,value:c}=await k();if(!r){const{rouge:e}=c;b=(0,o.showDialog)({title:()=>Promise.resolve().then(n.bind(n,8526)),content:()=>Promise.resolve().then(n.bind(n,2555)),contentProps:{rouge:e,onGood:()=>k(!1,!0),onBad:()=>k(!0,!0),onAbort:()=>x()}})}},A=async()=>{if(y())return void await C();f?.log("start - 准备开始组件二等分"),p=await F();const{configurableUserComponents:e,targetComponents:t,keepDisabledComponents:n,keepEnabledComponents:o}=p;f?.log("start - 保存组件初始启用状态"),m.originalComponentEnableState=lodash.mapValues(e,(e=>e.settings.enabled)),v(t,!0),v(o,!0),v(n,!1),f?.log(`start - 保持关闭组件:${w(n)}`),f?.log(`start - 保持开启组件:${w(o)}`),f?.log(`start - 启用全部目标组件:${w(t)}`),u=a(t,m.bisectInitialState),await k(void 0,!0)}},8910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBuiltInComponents:()=>O,isBuiltInComponent:()=>V});var o=n(3082),i=n(997),r=n(3498),a=n(2496);const c={name:"launchBar.plugin",displayName:"搜索栏 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.showLaunchBar={displayName:"显示搜索栏",run:async()=>{const{toggleLaunchBar:e}=await Promise.resolve().then(n.bind(n,7943));return e(),!0}}})),t("keymap.presets",(e=>{e.showLaunchBar="/"}))}},s=(0,r.defineComponentMetadata)({name:"launchBar",displayName:"搜索栏",configurable:!1,entry:i.none,plugin:c,hidden:!0,tags:[a.t.general,a.t.utils],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});var l=n(9211),d=n(9761),m=n(1854);function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(){f(this,"accepts",(e=>e.nodeType===Node.ELEMENT_NODE)),f(this,"getValue",(e=>e.nodeValue)),f(this,"setValue",((e,t)=>{e.nodeValue=t})),f(this,"getElement",(e=>e))}// eslint-disable-next-line class-methods-use-this +null==e?"未知":e?"异常":"正常"));const{done:n,value:o}=u.next(e);if(n){const{low:e,high:t}=o;m.bisectInitialState={low:e,high:t};const n=`bisector-result-toast-content-${(0,r.getRandomId)()}`;i.Toast.info(`
`,"组件二等分结果"),await(0,r.delay)();const a=(0,r.mountVueComponent)(d,`#${n}`);a.userComponent=o.target,a.$on("restore",(()=>{x()}))}else{const{slice:e,low:n,high:i}=o,r=e,a=lodash.difference(p.targetComponents,e);m.bisectInitialState={low:n,high:i},f?.log(`next - 关闭组件:${w(a)}`),f?.log(`next - 开启组件:${w(r)}`),v(a,!1),v(r,!0),t&&(f?.log("next - 重载页面"),location.reload())}return{done:n,value:o}},C=async()=>{f?.log("recover - 准备恢复组件二等分"),p=await F();const{targetComponents:e,keepDisabledComponents:t,keepEnabledComponents:i}=p;v(i,!0),v(t,!1),f?.log(`recover - 保持关闭组件:${w(t)}`),f?.log(`recover - 保持开启组件:${w(i)}`),f?.log(`recover - 全部目标组件:${w(e)}`),u=a(e,m.bisectInitialState);const{done:r,value:c}=await k();if(!r){const{rouge:e}=c;b=(0,o.showDialog)({title:()=>Promise.resolve().then(n.bind(n,8526)),content:()=>Promise.resolve().then(n.bind(n,2555)),contentProps:{rouge:e,onGood:()=>k(!1,!0),onBad:()=>k(!0,!0),onAbort:()=>x()}})}},A=async()=>{if(y())return void await C();f?.log("start - 准备开始组件二等分"),p=await F();const{configurableUserComponents:e,targetComponents:t,keepDisabledComponents:n,keepEnabledComponents:o}=p;f?.log("start - 保存组件初始启用状态"),m.originalComponentEnableState=lodash.mapValues(e,(e=>e.settings.enabled)),v(t,!0),v(o,!0),v(n,!1),f?.log(`start - 保持关闭组件:${w(n)}`),f?.log(`start - 保持开启组件:${w(o)}`),f?.log(`start - 启用全部目标组件:${w(t)}`),u=a(t,m.bisectInitialState),await k(void 0,!0)}},8910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBuiltInComponents:()=>O,isBuiltInComponent:()=>V});var o=n(3082),i=n(997),r=n(3498),a=n(2496);const c={name:"launchBar.plugin",displayName:"搜索栏 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.showLaunchBar={displayName:"显示搜索栏",run:async()=>{const{toggleLaunchBar:e}=await Promise.resolve().then(n.bind(n,7943));return e(),!0}}})),t("keymap.presets",(e=>{e.showLaunchBar="/"}))}},s=(0,r.defineComponentMetadata)({name:"launchBar",displayName:"搜索栏",configurable:!1,entry:i.none,plugin:c,hidden:!0,tags:[a.t.general,a.t.utils],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});var l=n(9211),d=n(9761),m=n(1854);function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(){f(this,"accepts",(e=>e.nodeType===Node.ELEMENT_NODE)),f(this,"getValue",(e=>e.nodeValue)),f(this,"setValue",((e,t)=>{e.nodeValue=t})),f(this,"getElement",(e=>e))}// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this translate(e){let t=this.getValue(e);if(!t||"string"!=typeof t||"*"===t)return;t=t.trim();const n=u.map.get(t);if(void 0===n){const n=u.regex.find((e=>{let[n]=e;return n.test(t)}));if(n){const[o,i]=n;this.setValue(e,t.replace(o,i))}}else if("string"==typeof n)this.setValue(e,n);else if(Array.isArray(n)){let t=null;for(const o of n)if("string"==typeof o)t=o;else{const{text:n,selector:i,not:r}=o;this.getElement(e)?.matches(i)!==Boolean(r)&&(t=n)}null!==t&&this.setValue(e,t)}else{const{text:t,selector:o,not:i}=n;this.getElement(e)?.matches(o)!==Boolean(i)&&this.setValue(e,t)}}static walk(e,t){const n=document.createNodeIterator(e, // eslint-disable-next-line no-bitwise -NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)t(o),o=n.nextNode()}static translate(e){if(e.nodeType===Node.TEXT_NODE)return void u.textNode.translate(e);const t=e=>{for(const t of u.sensitiveTranslators)t.accepts(e)&&t.translate(e)};t(e),u.walk(e,t)}static translateCssMatches(){const e=u.map.get("*");if(e)for(const{selector:t,text:n}of e){const e=document.querySelector(t);e&&[...e.childNodes].filter((e=>e.nodeType===Node.TEXT_NODE)).forEach((e=>e.nodeValue=n))}}}f(u,"textNode",void 0),f(u,"title",void 0),f(u,"placeholder",void 0),f(u,"sensitiveTranslators",void 0),f(u,"map",void 0),f(u,"regex",void 0);u.textNode=new class extends u{constructor(){super(...arguments),f(this,"accepts",(e=>e.nodeType===Node.TEXT_NODE)),f(this,"getElement",(e=>e.parentElement))}},u.title=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("title"))),f(this,"setValue",((e,t)=>{e.setAttribute("title",t)}))}},u.placeholder=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("placeholder"))),f(this,"setValue",((e,t)=>{e.setAttribute("placeholder",t)}))}},u.sensitiveTranslators=[u.textNode,u.title,u.placeholder];const p=(0,r.defineComponentMetadata)({name:"i18n",displayName:"多语言",configurable:!1,entry:async()=>{const{getSelectedLanguage:e}=await Promise.resolve().then(n.bind(n,8590)),t=e();if(t===l.defaultLanguageCode)return;const{registerAndGetData:o}=await Promise.resolve().then(n.bind(n,6940)),[i,r]=o(`i18n.${t}`,new Map,[]);console.log(t,i.size,r.length),0===i.size&&0===r.length||(document.documentElement.setAttribute("lang",t),u.map=i,u.regex=r,u.translate(document.body),u.translateCssMatches(),(0,m.allMutations)((e=>{e.forEach((e=>{"childList"===e.type?(e.addedNodes.length>0&&u.translateCssMatches(),e.addedNodes.forEach((e=>{u.translate(e)}))):"characterData"===e.type?u.textNode.translate(e.target):"attributes"===e.type&&("title"===e.attributeName?u.title.translate(e.target):"placeholder"===e.attributeName&&u.placeholder.translate(e.target))}))})))},tags:[a.t.utils,a.t.experimental,a.t.general],description:{"zh-CN":"安装其他语言包可以更换界面语言, 机器翻译选择可以设定其他一些功能如`动态翻译`, `评论翻译`使用的翻译器. 机器翻译的选择不影响界面语言."},options:{language:{defaultValue:l.languageCodeToName[l.defaultLanguageCode],displayName:"界面语言选择",dropdownEnum:l.languageCodeToName},translator:{defaultValue:Object.keys(d.WK)[0],displayName:"机器翻译选择",dropdownEnum:d.U6}},hidden:!0,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});var b=n(9737),h=n(5600),g=n(1242),F=n(7076),v=n(1206);const{checkComponentsUpdate:w,checkLastFeature:y,forceCheckUpdate:x,forceCheckUpdateAndReload:k,silentCheckUpdate:C}=v,A=(0,r.defineOptionsMetadata)({lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},lastInstalledVersion:{displayName:"最后安装版本",defaultValue:"2.0.0",hidden:!0},localPortOverride:{displayName:"本地组件链接端口",defaultValue:"",hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5},urls:{displayName:"更新链接",defaultValue:{components:{},plugins:{},styles:{}},hidden:!0},maxUpdateCount:{displayName:"单次最大更新量 (个)",defaultValue:4}}),E=(0,r.defineComponentMetadata)({name:F.u2,displayName:"自动更新器",description:{"zh-CN":"自动检查组件, 插件和样式的更新. (仅限从设置面板中安装的)"},tags:[a.t.utils],options:A,extraOptions:()=>Promise.resolve().then(n.bind(n,5247)).then((e=>e.default)),entry:async e=>{let{settings:{options:t}}=e;if((0,i.isIframe)())return v;const n=Number(new Date)-t.lastUpdateCheck>=t.minimumDuration,o=new g.Version(b.meta.version).greaterThan(new g.Version(t.lastInstalledVersion));return n?coreApis.lifeCycle.fullyLoaded((()=>C())):o&&coreApis.lifeCycle.fullyLoaded((()=>x())),v},plugin:{displayName:"自动更新器 - 功能扩展",description:{"zh-CN":"记录在设置面板中的功能安装/卸载数据供自动更新使用; 并在组件详情中支持手动检查该组件的更新."},setup:e=>{let{addData:t,addHook:o}=e;["components","plugins","styles"].forEach((e=>{o(`user${lodash.startCase(e)}.add`,{after:(t,n,o)=>{const{options:i}=(0,h.getComponentSettings)("autoUpdate"),r=i.urls[e][o.name];r?(r.url=n,r.lastUpdateCheck=Number(new Date),r.alwaysUpdate=(0,F.jN)(n)):i.urls[e][o.name]={url:n,lastUpdateCheck:Number(new Date),installTime:Number(new Date),alwaysUpdate:(0,F.jN)(n)}}}),o(`user${lodash.startCase(e)}.remove`,{after:t=>{const{options:n}=(0,h.getComponentSettings)("autoUpdate");n.urls[e][t.name]&&delete n.urls[e][t.name]}})})),t("settingsPanel.componentActions",(e=>{const{options:t}=(0,h.getComponentSettings)("autoUpdate");e.push((e=>{const o=t.urls.components[e.name];if(o)return{name:"checkUpdate",displayName:"检查更新",icon:(0,F.jN)(o.url)?"mdi-file-download-outline":"mdi-cloud-download-outline",visible:(0,h.isUserComponent)(e),title:o.url,action:async()=>{const{Toast:t}=await Promise.resolve().then(n.bind(n,6812)),o=t.info("检查更新中...","检查更新");o.message=await w({filterNames:[e.name],force:!0}),o.duration=3e3}}}))}));const i="mdi-cloud-sync-outline";t("launchBar.actions",(e=>{e.push({name:"updateAllFeaturesActions",getActions:async()=>[{name:"检查所有更新",description:"Check Updates",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,6812)),t=e.info("正在检查更新...","检查所有更新");await k(),t.close()},icon:i}]})})),t("settingsPanel.searchBarActions",(e=>{e.unshift({key:"updateFeatures",title:e=>{let{selectedComponents:t}=e;return t.length>0?"更新所选组件":"检查所有更新"},icon:"mdi-cloud-download-outline",run:async e=>{const t=e.selectedComponents.length>0?`确定要更新所选的 ${e.selectedComponents.length} 个组件吗?`:"确定要检查所有更新吗?";if(!window.confirm(t))return;const{Toast:o}=await Promise.resolve().then(n.bind(n,6812)),{isBuiltInComponent:i}=await Promise.resolve().then(n.bind(n,8910));if(0===e.selectedComponents.length){const e=o.info("正在检查更新...","检查所有更新");k(),await k(),e.close()}else e.selectedComponents.forEach((async e=>{let{name:t}=e;if(i(t))o.info("内置组件不能更新","检查更新",3e3);else{const e=o.info("检查更新中...","检查更新"),n=await w({filterNames:[t],force:!0});e.message=n,e.duration=3e3}}))}})})),(0,h.getGeneralSettings)().devMode&&t("launchBar.actions",(e=>{e.push({name:"updateLastFeatureActions",getActions:async()=>[{name:"检查最近更新的功能",description:"Check Last Update",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,6812)),t=e.info("正在检查更新...","检查最近更新的功能");await y(),t.close()},icon:i}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),B=async()=>{const{cdnRoots:e}=await Promise.resolve().then(n.bind(n,398)),{meta:t}=await Promise.resolve().then(n.bind(n,9737)),{getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,5600));return`${e[o().cdnRoot](t.compilationInfo.branch)}dist/${t.originalFilename}`},D=(0,r.defineComponentMetadata)({name:"notifyNewVersion",displayName:"新版本提示",description:"定期检查脚本本体的更新, 并弹出提示.",tags:[a.t.utils],options:{lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5}},entry:async e=>{let{settings:{options:t}}=e;try{const{Version:e}=await Promise.resolve().then(n.bind(n,1242)),{monkey:o}=await Promise.resolve().then(n.bind(n,6629)),{meta:i}=await Promise.resolve().then(n.bind(n,9737)),{Toast:r}=await Promise.resolve().then(n.bind(n,6812)),{isDataSaveMode:a}=await Promise.resolve().then(n.bind(n,997));if(a())return;const c=Number(new Date);if(c-t.lastUpdateCheck${m.versionString} 已发布. 查看详情`,"检查更新");(await p.element).querySelector(".view-details").addEventListener("click",(()=>{(async e=>{const{showDialog:t}=await Promise.resolve().then(n.bind(n,7888));t({title:"更新说明",content:()=>Promise.resolve().then(n.bind(n,2977)),contentProps:{content:e,updateUrl:await B()}})})(u)}))}catch(e){console.warn("[新版本提示] 检查更新时发生错误: ",e)}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),z=(0,r.defineOptionsMetadata)({originalComponentEnableState:{defaultValue:{},hidden:!0},keepDisabledComponents:{defaultValue:[],hidden:!0},keepEnabledComponents:{defaultValue:[],hidden:!0},bisectInitialState:{defaultValue:{},hidden:!0}});var I=n(8549),S=n(962);const M=(0,r.defineComponentMetadata)({name:"bisector",displayName:"组件二等分",tags:[a.t.general,a.t.utils],hidden:!0,configurable:!1,entry:async e=>{let{settings:{options:t}}=e;const o=await Promise.resolve().then(n.bind(n,4848));o.setOptions(t),o.setConsole((0,S.useScopedConsole)("组件二等分")),unsafeWindow.addEventListener(I.LifeCycleEventTypes.ComponentsLoaded,(()=>{o.isRecover()&&o.recover()}))},options:z,plugin:{displayName:"组件二等分 - 功能扩展",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"bisector-start",getActions:async()=>[{name:"开始 / 继续组件二等分",description:"Start/Continue component bisection",icon:"mdi-view-split-horizontal",action:async()=>{const e=await Promise.resolve().then(n.bind(n,4848));await e.start()}}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}),P=(0,r.defineComponentMetadata)({name:"compatibilities",displayName:"兼容性选项",configurable:!1,tags:[a.t.general],options:{disableOnBalh:{defaultValue:!1,displayName:'与 "解除 B 站区域限制" 互斥'}},entry:i.none,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(7761);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,8232,17)).then((e=>e.default))}})()}),O=()=>[o.component,s,p,E,D,M,P],V=e=>O().some((t=>t.name===e))},8430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{components:()=>d,componentsMap:()=>l,componentsTags:()=>c.t,defineComponentMetadata:()=>s.defineComponentMetadata,defineOptionMetadata:()=>s.defineOptionMetadata,defineOptionsMetadata:()=>s.defineOptionsMetadata,importComponent:()=>b,loadAllComponents:()=>F,loadAllUserComponents:()=>g,loadComponent:()=>h});var o=n(5600),i=n(8549),r=n(3813),a=n(8910),c=n(2496),s=n(3498);const l={},d=lodash.once((()=>{const e=(0,a.getBuiltInComponents)();return e.forEach((e=>l[e.name]=e)),e}))(),m=async e=>{if(!e.i18n)return;const{addI18nData:t}=await Promise.resolve().then(n.bind(n,8590));for(const[n,o]of Object.entries(e.i18n)){const{map:e=[],regex:i=[]}="function"==typeof o?await o():o;t(n,e,i)}},f=e=>`${e.name}.widget`,u=async e=>{if(e.widget){const t={...e.widget,name:f(e)},{addData:o}=await Promise.resolve().then(n.bind(n,6940)),{WidgetsPlugin:i}=await Promise.resolve().then(n.bind(n,3082));o(i,(n=>{if(n.find((e=>e.name===t.name)))return;const{urlInclude:o,urlExclude:i}=t;e.urlInclude&&(o?o.push(...e.urlInclude):t.urlInclude=[...e.urlInclude]),e.urlExclude&&(i?i.push(...e.urlExclude):t.urlExclude=[...e.urlExclude]),n.push(t)}))}},p={},b=e=>{if(!(e in p))throw new Error(`组件'${e}'未加载, 请确认拼写无误且组件已开启.`);return p[e]},h=async e=>{const{componentLoadTrace:t}=await Promise.resolve().then(n.bind(n,3302)),{matchUrlPattern:i}=await Promise.resolve().then(n.bind(n,997)),{coreApis:r}=await Promise.resolve().then(n.bind(n,4612));await t(e);const a=async()=>{u(e);const t=await e.entry({settings:(0,o.getComponentSettings)(e),metadata:e,coreApis:r});p[e.name]=t||{}};e.reload&&e.unload&&(0,o.addComponentListener)(e.name,(async t=>{if(!1!==e.configurable&&!(e.urlExclude&&e.urlExclude.some(i)||e.urlInclude&&e.urlInclude.every(lodash.negate(i))))if(e.name in p){if(t&&e.reload&&(e.reload(),e.widget&&u(e)),!t&&e.unload&&(e.unload(),e.widget)){const{getData:t}=await Promise.resolve().then(n.bind(n,6940)),{WidgetsPlugin:o}=await Promise.resolve().then(n.bind(n,3082)),[i]=t(o);if(i){const t=f(e),n=i.findIndex((e=>e.name===t));-1!==n&&i.splice(n,1)}}}else t&&await a()})),(0,o.isComponentEnabled)(e)&&await a()},g=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,5600)),{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,1296));for(const[n,i]of Object.entries(e.userComponents)){const{code:e}=i;let r;try{r=t(e)}catch(e){console.error("从代码加载用户组件失败。代码可能有语法错误或代码执行时有抛出值。",{componentName:n,error:e});continue}o=r,d.push(o),l[o.name]=o}var o},F=async()=>{const e=(0,o.getGeneralSettings)(),{loadAllPlugins:t}=await Promise.resolve().then(n.bind(n,8433)),a=()=>t(d).then((()=>Promise.all(d.map(m)))).then((()=>Promise.all(d.map(h)))).then((async()=>{if(e.devMode){const{componentLoadTime:e,componentResolveTime:t}=await Promise.resolve().then(n.bind(n,3302)),{logStats:o}=await Promise.resolve().then(n.bind(n,8535));o("components block",e),o("components resolve",t)}}));return new Promise(((t,n)=>{e.scriptLoadingMode===r.LoadingMode.Delay?(0,i.fullyLoaded)((()=>a().then(t).catch(n))):e.scriptLoadingMode===r.LoadingMode.Race&&(0,i.contentLoaded)((()=>a().then(t).catch(n)))}))}},3498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defineComponentMetadata:()=>r,defineOptionMetadata:()=>o,defineOptionsMetadata:()=>i});const o=e=>e,i=e=>e,r=e=>e},7568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDescriptionHTML:()=>c,getDescriptionMarkdown:()=>a,getDescriptionText:()=>s});var o=n(9896),i=n.n(o),r=n(8590);const a=async e=>{const{description:t,author:n}=e;return(n?Array.isArray(n)?`by ${n.map((e=>`[@${e.name}](${e.link})`)).join(",")}\n\n`:`by [@${n.name}](${n.link})\n\n`:"")+await(async()=>{if(!t)return"暂无描述.";const e=async e=>"string"==typeof e?e:e();if("object"==typeof t){const n=(0,r.getSelectedLanguage)();return e(t[n]??t["zh-CN"])}return e(t)})()},c=async e=>i()(await a(e)),s=async e=>{const t=await c(e),n=document.createElement("div");return n.innerHTML=t,n.innerText}},8590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addI18nData:()=>a,getSelectedLanguage:()=>c});var o=n(6940),i=n(5600),r=n(9211);const a=(e,t,n)=>{(0,o.addData)(`i18n.${e}`,((e,o)=>{t?.forEach((t=>{let[n,o]=t;return e.set(n,o)})),n&&o.push(...n)}))},c=()=>{const e=(0,i.getComponentSettings)("i18n");return(0,r.languageNameToCode)(e.options.language)}},9761:(e,t,n)=>{"use strict";n.d(t,{Ty:()=>p,U6:()=>u,WK:()=>f});var o=n(6629),i=n(6058),r=n(5600),a=n(9211),c=n(6940),s=n(997);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(){l(this,"name",void 0),l(this,"link",void 0),l(this,"defaultLanguage",void 0)}getTargetLanguage(){const e=(0,r.getComponentSettings)("i18n");return e.enabled?(0,a.languageNameToCode)(e.options.language):this.defaultLanguage}toString(){return this.name}}class m extends d{constructor(){super(...arguments),l(this,"name","Google"),l(this,"link","https://translate.google.com/"),l(this,"defaultLanguage","zh"),l(this,"apiUrl","https://translate.google.com/translate_a/single")}async translate(e){let t=this.getTargetLanguage();t.includes("-")&&t!==this.defaultLanguage&&(t=t.substring(0,t.indexOf("-")));try{const n=await(0,o.monkey)({url:`${this.apiUrl}?${(0,s.formData)({client:"gtx",sl:"auto",tl:t,dt:"t",q:encodeURIComponent(e)})}`,method:"GET",headers:{"User-Agent":i.UserAgent},responseType:"json"});return n[0].map((e=>e[0])).join("")}catch(e){throw console.error("Translator: Google",e),new Error("调用Google翻译失败.")}}}const[f]=(0,c.registerAndGetData)("i18n.machineTranslators",{GoogleCN:new class extends m{constructor(){super(...arguments),l(this,"name","GoogleCN"),l(this,"link","https://translate.google.cn/"),l(this,"apiUrl","https://translate.google.cn/translate_a/single")}},Google:new m}),u=Object.keys(f),p=()=>{const{options:{translator:e}}=(0,r.getComponentSettings)("i18n");return f[e]||f.GoogleCN}},2100:(e,t,n)=>{"use strict";n.d(t,{WY:()=>a,dr:()=>c});var o=n(6263);const i="search_history:search_history",r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=await o.crossOriginLocalStorage.getItem(e),n=t?JSON.parse(t):[];return n},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;console.log("add",e),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(lodash.sortBy(lodash.uniqBy([{value:e,timestamp:Number(new Date)},...await r()],(e=>e.value)),(e=>e.timestamp)).reverse().slice(0,20)))},c={name:"history",getActions:async()=>{const{search:e}=await Promise.resolve().then(n.bind(n,5989)),t={name:"清除搜索历史",icon:"mdi-trash-can-outline",description:"Clear History",explicitSelect:!0,action:async()=>{await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return o.crossOriginLocalStorage.setItem(e,"[]")}()}},a=(await r()).map((t=>({name:t.value,icon:"mdi-history",explicitSelect:!0,action:()=>{e(t.value)},deleteAction:async()=>{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n=await r(),a=n.findIndex((t=>t.value===e));console.log("delete",e,a),-1!==a&&(n.splice(a,1),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(n)))}(t.value)}})));return a.length>0&&a.push(t),a}}},40:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LaunchBarActionProviders:()=>o});const o="launchBar.actions"},5989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{search:()=>a,searchProvider:()=>c});var o=n(997),i=n(6629),r=n(2100);const a=e=>{if(!e)return;(0,r.WY)(e);const t={keyword:e,from_source:"nav_suggest_new"};window.open(`https://search.bilibili.com/all?${(0,o.formData)(t)}`,"_blank")},c={name:"search",getActions:async e=>{const t=`https://s.search.bilibili.com/main/suggest?func=suggest&suggest_type=accurate&sub_type=tag&main_ver=v1&highlight=&userid=${(0,o.getUID)()}&bangumi_acc_num=1&special_acc_num=1&topic_acc_num=1&upuser_acc_num=3&tag_num=10&special_num=10&bangumi_num=10&upuser_num=3&term=${e}`,n=await(0,i.getJson)(t),r=[{name:e,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:`${e}`}})}),action:()=>a(e)}];if(0!==n.code)return r;const c=lodash.get(n,"result.tag");return c?(r.push(...c.map((e=>({name:e.value,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:e.name.replace(/suggest_high_light/g,"suggest-highlight")}})}),action:()=>a(e.value)})))),lodash.uniqBy(r,(e=>e.name))):r}}},7943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toggleLaunchBar:()=>b});var o=n(997),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"global-launch-bar-container",attrs:{lazy:!1,fixed:""},on:{"!keydown":function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("LaunchBar",{ref:"launchBar",on:{close:function(t){return e.close()}}})],1)};i._withStripped=!0;var r=n(6355),a=n(8521);const c=Vue.extend({components:{LaunchBar:a.Z,VPopup:r.default},data:()=>({show:!0}),watch:{show(e){e&&this.focus()}},async mounted(){await this.$nextTick(),this.focus()},methods:{focus(){const e=this.$refs.launchBar?.$refs.input;e?.focus(),e?.select()},close(){this.show=!1;const e=this.$refs.launchBar?.$refs.input;e?.blur()}}});var s=n(8332),l=n.n(s),d=n(2457),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,i,[],!1,null,null,null).exports;let p;const b=()=>{if(!p)return p=(0,o.mountVueComponent)(u),void document.body.append(p.$el);p.show=!p.show}},8374:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});let o=function(e){return e.Left="左侧",e.Right="右侧",e}({})},2510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{map:()=>o});const o=new Map([["通用设置","General"],["实验性","Experimental"],["通用","General"],["开发者模式","Dev mode"],["辅助颜色","Accent color"],["功能加载模式","Script loading mode"],["样式加载模式","Style loading mode"]])},3082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetsPlugin:()=>b,component:()=>g});var o=n(997),i=n(3813),r=n(4847),a=n(398),c=n(5600),s=n(2131),l=n(2496),d=n(3498),m=n(6940),f=n(40),u=n(4819);var p=n(8374);const b="widgets",h=(0,d.defineOptionsMetadata)({themeColor:{defaultValue:"#00A0D8",displayName:"主题颜色",color:!0},scriptLoadingMode:{defaultValue:i.LoadingMode.Delay,displayName:"功能加载模式",dropdownEnum:i.LoadingMode},styleLoadingMode:{defaultValue:i.LoadingMode.Race,displayName:"样式加载模式",dropdownEnum:i.LoadingMode},textColor:{defaultValue:r.TextColor.Auto,displayName:"文本颜色",dropdownEnum:r.TextColor},cdnRoot:{defaultValue:a.CdnTypes.AltCdn,displayName:"更新源",dropdownEnum:a.CdnTypes},dockSide:{defaultValue:p.l.Left,displayName:"设置面板停靠",dropdownEnum:p.l},filenameFormat:{defaultValue:"[title][ - ep]",displayName:"文件命名格式"},batchFilenameFormat:{defaultValue:"[n - ][ep]",displayName:"批量命名格式"},downloadPackageEmitMode:{defaultValue:s.h.Packed,displayName:"文件下载模式",dropdownEnum:s.h},devMode:{defaultValue:!1,displayName:"开发者模式"}}),g=(0,d.defineComponentMetadata)({name:"settingsPanel",displayName:"通用设置",configurable:!1,entry:async e=>{let{metadata:t}=e;const{isIframe:i}=await Promise.resolve().then(n.bind(n,997));i()||((0,c.addComponentListener)(`${t.name}.dockSide`,(e=>{document.body.classList.toggle("settings-panel-dock-right",e===p.l.Right)}),!0),requestIdleCallback((async()=>{const e=await Promise.resolve().then(n.bind(n,9075)),t=(0,o.mountVueComponent)(e);document.body.insertAdjacentElement("beforeend",t.$el)})))},options:h,tags:[l.t.general],plugin:{displayName:"设置面板 - 功能扩展",setup:()=>{(0,m.addData)(f.LaunchBarActionProviders,(e=>{e.push({name:"onlineRegistry",getActions:async()=>[{name:"切换在线仓库",description:"Toggle Online Registry",icon:"mdi-web",action:async()=>{const{togglePopup:e}=await Promise.resolve().then(n.bind(n,6052));e()}}]},{name:"aboutPageActionsProvider",getActions:async()=>u.a.map((e=>e.actionName?{name:e.name,displayName:e.displayName,icon:e.icon,description:e.actionName,action:()=>e.run()}:null)).filter((e=>null!==e))})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(4311);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,6284,17)).then((e=>e.default))}})(),i18n:(()=>{const e=n(3552);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.ts$/)[1],e(t)])))}})()})},9133:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,U:()=>i});var o=n(5600);const i=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,o.getComponentSettings)(this.componentData)}}}),r=e=>Vue.extend({data:()=>({virtual:!1}),async mounted(){const{dq:t}=await Promise.resolve().then(n.bind(n,997)),{visibleInside:o}=await Promise.resolve().then(n.bind(n,1854)),i=this.$el,r=t(e);r?o(i,r,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.warn("virtual container not found, virtual scroll will be disabled!")}})},4819:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(6940);const i=[{icon:"mdi-inbox-arrow-up-outline",name:"exportSettings",displayName:"导出设置",actionName:"Export Settings",run:async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,5600)),{DownloadPackage:t}=await Promise.resolve().then(n.bind(n,169));t.single("settings.json",JSON.stringify(e,void 0,2))}},{icon:"mdi-inbox-arrow-down-outline",name:"importSettings",displayName:"导入设置",actionName:"Import Settings",run:async()=>{const{logError:e}=await Promise.resolve().then(n.bind(n,962)),{pickFile:t}=await Promise.resolve().then(n.bind(n,6057)),{Toast:o}=await Promise.resolve().then(n.bind(n,6812)),i=await t({accept:"*.json"});if(0===i.length)return;const[r]=i;try{const e=JSON.parse(await r.text());Object.entries(e).forEach((e=>{let[t,n]=e;GM_setValue(t,n)})),o.success("导入成功, 正在刷新页面...","导入设置"),window.location.reload()}catch(t){e(t)}}}],[r]=(0,o.registerAndGetData)("settingsPanel.about.actions",i)},6052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initPopup:()=>N,togglePopup:()=>q});var o=n(997),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"online-registry be-settings-extra-options",attrs:{fixed:"","auto-close":!1},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"online-registry-header"},[t("VIcon",{staticClass:"online-registry-header-title-icon",attrs:{icon:"mdi-web"}}),e._v(" "),t("div",{staticClass:"online-registry-header-title"},[e._v("在线仓库")]),e._v(" "),t("VIcon",{staticClass:"online-registry-header-refresh-icon",attrs:{icon:"mdi-refresh",size:22,title:"刷新"},on:{click:function(t){return e.fetchFeatures()}}}),e._v(" "),t("VIcon",{staticClass:"online-registry-header-close-icon",attrs:{icon:"mdi-close",size:24,title:"关闭"},on:{click:function(t){e.popupOpen=!1}}})],1),e._v(" "),t("div",{staticClass:"online-registry-header"},[t("div",{staticClass:"online-registry-header-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{disabled:e.loading,placeholder:"搜索功能"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-branch"},[e._v("\n 分支:\n "),t("VDropdown",{attrs:{disabled:e.loading,items:e.registryBranches},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedBranch,callback:function(t){e.selectedBranch=t},expression:"selectedBranch"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-filter"},[e._v("\n 查看:\n "),e._l(e.itemFilterOptions,(function(n){return t("RadioButton",{key:n.value,attrs:{group:"itemFilter",checked:e.itemFilter===n.value},on:{change:function(t){t&&(e.itemFilter=n.value)}}},[e._v("\n "+e._s(n.label)+"\n ")])}))],2)]),e._v(" "),t("div",{staticClass:"online-registry-separator"}),e._v(" "),t("div",{ref:"content",staticClass:"online-registry-content"},[e.loading?t("VLoading"):e._e(),e._v(" "),e.loading||e.list.length?e._e():t("VEmpty"),e._v(" "),e._l(e.filteredList,(function(n){return t("RegistryItem",{key:n.name,ref:"items",refInFor:!0,attrs:{item:n,branch:e.selectedBranch,"item-filter":e.itemFilter},on:{refresh:e.checkInstalled}})}))],2)])};i._withStripped=!0;var r=n(7942),a=n(6629),c=n(398),s=n(9737),l=n(5600),d=n(962),m=n(9047),f=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MiniToast",{staticClass:"online-registry-item-wrapper",class:{virtual:e.virtual,hidden:e.hidden},attrs:{placement:e.placement,container:"body",delay:[200,0],offset:[0,12]},scopedSlots:e._u([{key:"toast",fn:function(){return[e.item.description?t("ComponentDescription",{attrs:{"component-data":e.item}}):e._e()]},proxy:!0}])},[e.virtual?e._e():t("div",{staticClass:"online-registry-item"},[t("VIcon",{staticClass:"item-icon",attrs:{size:18,icon:e.icon}}),e._v(" "),t("div",{staticClass:"item-badge"},[e._v("\n "+e._s(e.badge)+"\n ")]),e._v(" "),t("div",{staticClass:"item-display-name"},[e._v("\n "+e._s(e.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"item-action"},[e.installed?t("VButton",{staticClass:"reinstall-button",attrs:{title:"重新安装",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[e._v("\n "+e._s(e.installing?"正在安装":"已安装")+"\n ")]):t("VButton",{staticClass:"install-button",attrs:{title:"安装",type:"primary",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:15}}),e._v("\n "+e._s(e.installing?"正在安装":"安装")+"\n ")],1)],1)],1)])};f._withStripped=!0;var u=n(459),p=n(1854),b=n(6387),h=n(8374);let g=function(e){return e.All="all",e.Installed="installed",e.NotInstalled="notInstalled",e}({});const F=(e,t)=>`${(0,c.cdnRoots[(0,l.getGeneralSettings)().cdnRoot])(t,e.owner)}${e.fullAbsolutePath}`,v=e=>{const t=`user${lodash.startCase(e.type)}s`;return e.name in l.settings[t]},w={component:{icon:"mdi-cube-scan",badge:"组件",getUrl:F,isInstalled:v},plugin:{icon:"mdi-puzzle-outline",badge:"插件",getUrl:F,isInstalled:v},style:{icon:"mdi-tune",badge:"样式",getUrl:F,isInstalled:v},pack:{icon:"mdi-package-variant-closed",badge:"合集包",getUrl:(e,t)=>e.items.map((e=>F(e,t))).join("\n"),isInstalled:e=>e.items.every(v)}},y=Vue.extend({components:{VIcon:m.VIcon,VButton:m.VButton,MiniToast:m.MiniToast,ComponentDescription:b.Z},props:{item:{type:Object,required:!0},branch:{type:String,required:!0},itemFilter:{type:String,default:g.All}},data(){const{icon:e,badge:t,getUrl:n,isInstalled:o}=w[this.item.type];return{icon:e,badge:t,getUrl:e=>n(e,this.branch),isInstalled:o,installing:!1,installed:!1,virtual:!1,placement:"right"}},computed:{hidden(){switch(this.itemFilter){case g.All:default:return!1;case g.Installed:return!this.installed;case g.NotInstalled:return this.installed}}},created(){this.checkInstalled(),(0,l.addComponentListener)("settingsPanel.dockSide",(e=>{this.placement=e===h.l.Left?"right":"left"}),!0)},mounted(){const e=this.$el;(0,p.visibleInside)(e,e.parentElement,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))}))},methods:{checkInstalled(){this.installed=this.isInstalled(this.item)},async install(e){const t=e.split("\n").map((e=>e.trim())).filter((e=>""!==e));try{this.installing=!0,await Promise.all(t.map((async e=>(0,u.installFeature)(e)))),this.checkInstalled(),"pack"===this.item.type&&this.$emit("refresh")}catch(e){(0,d.logError)(e)}finally{this.installing=!1}}}});var x=n(8332),k=n.n(x),C=n(6474),A=n.n(C),E={insert:"head",singleton:!1};k()(A(),E);A().locals;var B=n(6499);const D=(0,B.Z)(y,f,[],!1,null,null,null).exports;var z=n(6940);const[I]=(0,z.registerAndGetData)("settingsPanel.registryBranches",["master","preview"]),S=(0,l.getGeneralSettings)();function M(e){if(!e)return void(this.filteredList=this.list);const t=this.fuse.search(e);this.filteredList=t.map((e=>e.item)),this.$nextTick().then((()=>this.$refs.content.scrollTo(0,0)))}const P=[{label:"全部",value:g.All},{label:"已安装",value:g.Installed},{label:"未安装",value:g.NotInstalled}],O=Vue.extend({components:{VIcon:m.VIcon,VDropdown:m.VDropdown,TextBox:m.TextBox,VPopup:m.VPopup,RegistryItem:D,VLoading:m.VLoading,VEmpty:m.VEmpty,RadioButton:m.RadioButton},props:{open:{default:!1,type:Boolean}},data(){const e=[S.registryBranch,s.meta.compilationInfo.branch,I[0]].filter((e=>I.includes(e)&&Boolean(e)));return{searchKeyword:"",popupOpen:!1,loading:!1,list:[],itemFilter:g.All,itemFilterOptions:P,filteredList:[],fuse:null,registryBranches:I,selectedBranch:e[0]}},watch:{searchKeyword:lodash.debounce(M,200),selectedBranch(e){S.registryBranch=e,this.fetchFeatures()}},mounted(){this.fetchFeatures()},methods:{async fetchFeatures(){if(this.loading)return;const e=c.cdnRoots[S.cdnRoot](this.selectedBranch);try{this.loading=!0,this.list=[],this.filteredList=[];const t=`${e}doc/features/features.json`,n=`${e}doc/features/pack/pack.json`,o=await(0,a.monkey)({url:t,responseType:"json"}),i=await(0,a.monkey)({url:n,responseType:"json"});if(!Array.isArray(o)||!Array.isArray(i))throw console.error("Fetch failed:",o,i,t,n),new Error("获取在线仓库数据失败, 请尝试在通用设置中设置其他更新源, 然后再试一次.");this.list=[...i,...o],this.fuse=new r.Z(this.list,{keys:["displayName","name","description"]}),M.call(this,this.searchKeyword)}catch(e){(0,d.logError)(e)}finally{this.loading=!1}},checkInstalled(){this.$refs.items?.forEach((e=>e.checkInstalled()))}}});var V=n(3615),T=n.n(V),L={insert:"head",singleton:!1};k()(T(),L);T().locals;const j=(0,B.Z)(O,i,[],!1,null,null,null).exports;let R;const N=()=>{R||(R=(0,o.mountVueComponent)(j),document.body.append(R.$el))},q=()=>{R||N(),R.popupOpen=!R.popupOpen}},2496:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o={video:{name:"video",displayName:"视频",color:"#2196F3",icon:"mdi-play-circle-outline",order:1},style:{name:"style",displayName:"样式",color:"#8BC34A",icon:"mdi-palette-outline",order:2},feeds:{name:"feeds",displayName:"动态",color:"#00ACC1",icon:"mdi-pinwheel-outline",order:3},live:{name:"live",displayName:"直播",color:"#26A69A",icon:"mdi-video-wireless-outline",order:4},utils:{name:"utils",displayName:"工具",color:"#A36FFD",icon:"mdi-rocket-launch-outline",order:5},touch:{name:"touch",displayName:"触摸",color:"#78909C",icon:"mdi-gesture-tap-button",order:6},experimental:{name:"experimental",displayName:"实验",color:"#FF5722",icon:"mdi-flask-outline",order:7},general:{name:"general",displayName:"通用",color:"#888",icon:"mdi-progress-wrench",order:8}}},7632:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bisectComponent:()=>d,installComponent:()=>c,toggleComponent:()=>l,uninstallComponent:()=>s});var o=n(5600),i=n(8910),r=n(8430),a=n(4848);const c=async e=>{const{components:t}=await Promise.resolve().then(n.bind(n,8430)),{loadFeatureCode:a}=await Promise.resolve().then(n.bind(n,8036));let c;try{c=a(e)}catch(e){throw new Error("无效的组件代码",{cause:e})}const{settings:s}=await Promise.resolve().then(n.bind(n,5600));if((0,i.isBuiltInComponent)(c.name))throw new Error(`不能覆盖内置组件'${c.name}', 请更换名称`);const l={...lodash.omit(c,"entry","widget","instantStyles","reload","unload","plugin","urlInclude","urlExclude")},d=s.userComponents[c.name];if(d){d.code=e,d.metadata=l;const t=(0,o.componentToSettings)(c);return lodash.defaultsDeep(d.settings.options,lodash.pickBy(t.options,(e=>!Array.isArray(e)))),{metadata:c,message:`已更新组件'${c.displayName}', 刷新后生效`}}return s.userComponents[c.name]={code:e,metadata:l,settings:(0,o.componentToSettings)(c)},t.push(c),r.componentsMap[c.name]=c,{metadata:c,message:`已安装组件'${c.displayName}', 刷新后生效`}},s=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),{components:o}=await Promise.resolve().then(n.bind(n,8430)),i=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[a,{metadata:c,settings:s}]=i,l=o.findIndex((e=>e.name===a));if(-1!==l){const{instantStyles:e}=o[l];if(e){const{removeStyle:t}=await Promise.resolve().then(n.bind(n,9860));e.forEach((e=>t(e.name)))}s.enabled=!1,o.splice(l,1),delete r.componentsMap[a]}return delete t.userComponents[a],{metadata:c,message:`已卸载组件'${c.displayName}, 刷新后生效'`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),o=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!o)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[,i]=o;i.settings.enabled=!i.settings.enabled;const{enabled:r}=i.settings,{displayName:a}=i.metadata;return`已${r?"开启":"关闭"}组件'${a}', 可能需要刷新后才能生效`},d=async e=>(e&&a.setOptions(e),a)},5125:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{updateCategories:()=>updateCategories,updateIcons:()=>updateIcons});var _core_ajax__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6629),_core_download__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(169);const updateCategories=async()=>{const[script]=dqa("script").filter((e=>e.src.includes("stardust-video")));if(!script)throw new Error("no script found");const scriptText=await(0,_core_ajax__WEBPACK_IMPORTED_MODULE_0__.getText)(script.src),match=scriptText.match(/([\w]+?=\[\{name:"首页".+?\}.+?\]),[\w]+?=\[\{name:"首頁"/);if(!match)throw new Error("no match in script");const variables=match[1].match(/(\w+?)(?==\[)/g),data=eval(`var ${match[1]}; [${variables.join(",")}]`);_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("raw.json",data)},updateIcons=()=>{const e=dqa(".bili-header-channel-panel svg");if(0===e.length)throw new Error("svg icons not found");const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("style","position: absolute; width: 0px; height: 0px; overflow: hidden;"),t.id="be-category-icons",e.forEach((e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","symbol");n.innerHTML=e.innerHTML,n.id=e.id.replace(/^channel-icon-/,"header-icon-")||`header-icon-${e.parentElement?.href.match(/\/v\/(.+)$/)?.[1]}`,"header-icon-teleplay"===n.id&&(n.id="header-icon-tv"),n.id||console.warn("cannot find id for",e),n.setAttribute("viewBox",e.getAttribute("viewBox")),t.appendChild(n)})),_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("icons.svg",t.outerHTML)}},6445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PlayerMode:()=>a,createPlayerModeChangeEvent:()=>c,playerPolyfill:()=>p});var o=n(1854),i=n(8689),r=n(997);let a=function(e){return e.Normal="normal",e.WideScreen="wide",e.WebFullscreen="web",e.Fullscreen="full",e}({});const c=e=>new CustomEvent("playerModeChange",{detail:{mode:e,bubbles:!0,cancelable:!0}}),s=lodash.once((async()=>{(async()=>{await(0,r.playerReady)();const e=await(0,i.select)(".bpx-player-container");if(!e)return void console.warn("[bpx player polyfill] bpxContainer not found");let t=a.Normal;(0,o.attributes)(e,(()=>{const n=e.getAttribute("data-screen"),o="player-mode-",i=[a.Normal,a.WideScreen,a.WebFullscreen,a.Fullscreen].map((e=>`${o}${e}`));document.body.classList.remove(...i),n!==a.Normal&&document.body.classList.add(`${o}${n}`),n!==t&&(window.dispatchEvent(c(n)),t=n)}))})(),(async()=>{const e=await(0,i.select)(".bpx-player-video-perch");e&&(0,r.preventEvent)(e,"dblclick")})()}));var l=n(285);const d=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getVideoMessage)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),r=t("v2 player polyfill");(0,o.allMutations)((()=>{const t=e.getVideoMessage();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),m=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getUserParams)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),r=t("v3 player polyfill");(0,o.allMutations)((()=>{const{input:t}=e.getUserParams();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),f=e=>{if(""===e)return!1;const t=parseInt(e);return!!Number.isNaN(t)||t>0},u=lodash.once((()=>{unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getManifest)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),a=t("v4 player polyfill");(0,o.allMutations)((()=>{const t=e.getManifest();if(!t)return void a.warn("invalid getManifest data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid??""};(l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))?f(n.aid)&&f(n.cid):Object.values(n).every((e=>f(e))))||a.warn("invalid manifest data",n),Object.assign(unsafeWindow,n)}))})()})),p=lodash.once((()=>Promise.allSettled([s(),d(),m(),u()])))},6561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{playerAgent:()=>h});var o=n(285),i=n(8689),r=n(997);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)} +NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)t(o),o=n.nextNode()}static translate(e){if(e.nodeType===Node.TEXT_NODE)return void u.textNode.translate(e);const t=e=>{for(const t of u.sensitiveTranslators)t.accepts(e)&&t.translate(e)};t(e),u.walk(e,t)}static translateCssMatches(){const e=u.map.get("*");if(e)for(const{selector:t,text:n}of e){const e=document.querySelector(t);e&&[...e.childNodes].filter((e=>e.nodeType===Node.TEXT_NODE)).forEach((e=>e.nodeValue=n))}}}f(u,"textNode",void 0),f(u,"title",void 0),f(u,"placeholder",void 0),f(u,"sensitiveTranslators",void 0),f(u,"map",void 0),f(u,"regex",void 0);u.textNode=new class extends u{constructor(){super(...arguments),f(this,"accepts",(e=>e.nodeType===Node.TEXT_NODE)),f(this,"getElement",(e=>e.parentElement))}},u.title=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("title"))),f(this,"setValue",((e,t)=>{e.setAttribute("title",t)}))}},u.placeholder=new class extends u{constructor(){super(...arguments),f(this,"getValue",(e=>e.getAttribute("placeholder"))),f(this,"setValue",((e,t)=>{e.setAttribute("placeholder",t)}))}},u.sensitiveTranslators=[u.textNode,u.title,u.placeholder];const p=(0,r.defineComponentMetadata)({name:"i18n",displayName:"多语言",configurable:!1,entry:async()=>{const{getSelectedLanguage:e}=await Promise.resolve().then(n.bind(n,8590)),t=e();if(t===l.defaultLanguageCode)return;const{registerAndGetData:o}=await Promise.resolve().then(n.bind(n,6940)),[i,r]=o(`i18n.${t}`,new Map,[]);console.log(t,i.size,r.length),0===i.size&&0===r.length||(document.documentElement.setAttribute("lang",t),u.map=i,u.regex=r,u.translate(document.body),u.translateCssMatches(),(0,m.allMutations)((e=>{e.forEach((e=>{"childList"===e.type?(e.addedNodes.length>0&&u.translateCssMatches(),e.addedNodes.forEach((e=>{u.translate(e)}))):"characterData"===e.type?u.textNode.translate(e.target):"attributes"===e.type&&("title"===e.attributeName?u.title.translate(e.target):"placeholder"===e.attributeName&&u.placeholder.translate(e.target))}))})))},tags:[a.t.utils,a.t.experimental,a.t.general],description:{"zh-CN":"安装其他语言包可以更换界面语言, 机器翻译选择可以设定其他一些功能如`动态翻译`, `评论翻译`使用的翻译器. 机器翻译的选择不影响界面语言."},options:{language:{defaultValue:l.languageCodeToName[l.defaultLanguageCode],displayName:"界面语言选择",dropdownEnum:l.languageCodeToName},translator:{defaultValue:Object.keys(d.WK)[0],displayName:"机器翻译选择",dropdownEnum:d.U6}},hidden:!0,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});var b=n(9737),h=n(5600),g=n(1242),F=n(7076),v=n(1206);const{checkComponentsUpdate:w,checkLastFeature:y,forceCheckUpdate:x,forceCheckUpdateAndReload:k,silentCheckUpdate:C}=v,A=(0,r.defineOptionsMetadata)({lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},lastInstalledVersion:{displayName:"最后安装版本",defaultValue:"2.0.0",hidden:!0},localPortOverride:{displayName:"本地组件链接端口",defaultValue:"",hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5},urls:{displayName:"更新链接",defaultValue:{components:{},plugins:{},styles:{}},hidden:!0},maxUpdateCount:{displayName:"单次最大更新量 (个)",defaultValue:4}}),E=(0,r.defineComponentMetadata)({name:F.u2,displayName:"自动更新器",description:{"zh-CN":"自动检查组件, 插件和样式的更新. (仅限从设置面板中安装的)"},tags:[a.t.utils],options:A,extraOptions:()=>Promise.resolve().then(n.bind(n,5247)).then((e=>e.default)),entry:async e=>{let{settings:{options:t}}=e;if((0,i.isIframe)())return v;const n=Number(new Date)-t.lastUpdateCheck>=t.minimumDuration,o=new g.Version(b.meta.version).greaterThan(new g.Version(t.lastInstalledVersion));return n?coreApis.lifeCycle.fullyLoaded((()=>C())):o&&coreApis.lifeCycle.fullyLoaded((()=>x())),v},plugin:{displayName:"自动更新器 - 功能扩展",description:{"zh-CN":"记录在设置面板中的功能安装/卸载数据供自动更新使用; 并在组件详情中支持手动检查该组件的更新."},setup:e=>{let{addData:t,addHook:o}=e;["components","plugins","styles"].forEach((e=>{o(`user${lodash.startCase(e)}.add`,{after:(t,n,o)=>{const{options:i}=(0,h.getComponentSettings)("autoUpdate"),r=i.urls[e][o.name];r?(r.url=n,r.lastUpdateCheck=Number(new Date),r.alwaysUpdate=(0,F.jN)(n)):i.urls[e][o.name]={url:n,lastUpdateCheck:Number(new Date),installTime:Number(new Date),alwaysUpdate:(0,F.jN)(n)}}}),o(`user${lodash.startCase(e)}.remove`,{after:t=>{const{options:n}=(0,h.getComponentSettings)("autoUpdate");n.urls[e][t.name]&&delete n.urls[e][t.name]}})})),t("settingsPanel.componentActions",(e=>{const{options:t}=(0,h.getComponentSettings)("autoUpdate");e.push((e=>{const o=t.urls.components[e.name];if(o)return{name:"checkUpdate",displayName:"检查更新",icon:(0,F.jN)(o.url)?"mdi-file-download-outline":"mdi-cloud-download-outline",visible:(0,h.isUserComponent)(e),title:o.url,action:async()=>{const{Toast:t}=await Promise.resolve().then(n.bind(n,6812)),o=t.info("检查更新中...","检查更新");o.message=await w({filterNames:[e.name],force:!0}),o.duration=3e3}}}))}));const i="mdi-cloud-sync-outline";t("launchBar.actions",(e=>{e.push({name:"updateAllFeaturesActions",getActions:async()=>[{name:"检查所有更新",description:"Check Updates",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,6812)),t=e.info("正在检查更新...","检查所有更新");await k(),t.close()},icon:i}]})})),t("settingsPanel.searchBarActions",(e=>{e.unshift({key:"updateFeatures",title:e=>{let{selectedComponents:t}=e;return t.length>0?"更新所选组件":"检查所有更新"},icon:"mdi-cloud-download-outline",run:async e=>{const t=e.selectedComponents.length>0?`确定要更新所选的 ${e.selectedComponents.length} 个组件吗?`:"确定要检查所有更新吗?";if(!window.confirm(t))return;const{Toast:o}=await Promise.resolve().then(n.bind(n,6812)),{isBuiltInComponent:i}=await Promise.resolve().then(n.bind(n,8910));if(0===e.selectedComponents.length){const e=o.info("正在检查更新...","检查所有更新");k(),await k(),e.close()}else e.selectedComponents.forEach((async e=>{let{name:t}=e;if(i(t))o.info("内置组件不能更新","检查更新",3e3);else{const e=o.info("检查更新中...","检查更新"),n=await w({filterNames:[t],force:!0});e.message=n,e.duration=3e3}}))}})})),(0,h.getGeneralSettings)().devMode&&t("launchBar.actions",(e=>{e.push({name:"updateLastFeatureActions",getActions:async()=>[{name:"检查最近更新的功能",description:"Check Last Update",action:async()=>{const{Toast:e}=await Promise.resolve().then(n.bind(n,6812)),t=e.info("正在检查更新...","检查最近更新的功能");await y(),t.close()},icon:i}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),B=async()=>{const{cdnRoots:e}=await Promise.resolve().then(n.bind(n,398)),{meta:t}=await Promise.resolve().then(n.bind(n,9737)),{getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,5600));return`${e[o().cdnRoot](t.compilationInfo.branch)}dist/${t.originalFilename}`},D=(0,r.defineComponentMetadata)({name:"notifyNewVersion",displayName:"新版本提示",description:"定期检查脚本本体的更新, 并弹出提示.",tags:[a.t.utils],options:{lastUpdateCheck:{displayName:"最后检查更新日期",defaultValue:0,hidden:!0},minimumDuration:{displayName:"更新间隔 (ms)",defaultValue:864e5}},entry:async e=>{let{settings:{options:t}}=e;try{const{Version:e}=await Promise.resolve().then(n.bind(n,1242)),{monkey:o}=await Promise.resolve().then(n.bind(n,6629)),{meta:i}=await Promise.resolve().then(n.bind(n,9737)),{Toast:r}=await Promise.resolve().then(n.bind(n,6812)),{isDataSaveMode:a}=await Promise.resolve().then(n.bind(n,997));if(a())return;const c=Number(new Date);if(c-t.lastUpdateCheck${m.versionString} 已发布. 查看详情`,"检查更新");(await p.element).querySelector(".view-details").addEventListener("click",(()=>{(async e=>{const{showDialog:t}=await Promise.resolve().then(n.bind(n,7888));t({title:"更新说明",content:()=>Promise.resolve().then(n.bind(n,2977)),contentProps:{content:e,updateUrl:await B()}})})(u)}))}catch(e){console.warn("[新版本提示] 检查更新时发生错误: ",e)}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),z=(0,r.defineOptionsMetadata)({originalComponentEnableState:{defaultValue:{},hidden:!0},keepDisabledComponents:{defaultValue:[],hidden:!0},keepEnabledComponents:{defaultValue:[],hidden:!0},bisectInitialState:{defaultValue:{},hidden:!0}});var I=n(8549),S=n(962);const M=(0,r.defineComponentMetadata)({name:"bisector",displayName:"组件二等分",tags:[a.t.general,a.t.utils],hidden:!0,configurable:!1,entry:async e=>{let{settings:{options:t}}=e;const o=await Promise.resolve().then(n.bind(n,4848));o.setOptions(t),o.setConsole((0,S.useScopedConsole)("组件二等分")),unsafeWindow.addEventListener(I.LifeCycleEventTypes.ComponentsLoaded,(()=>{o.isRecover()&&o.recover()}))},options:z,plugin:{displayName:"组件二等分 - 功能扩展",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"bisector-start",getActions:async()=>[{name:"开始 / 继续组件二等分",description:"Start/Continue component bisection",icon:"mdi-view-split-horizontal",action:async()=>{const e=await Promise.resolve().then(n.bind(n,4848));await e.start()}}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}),P=(0,r.defineComponentMetadata)({name:"compatibilities",displayName:"兼容性选项",configurable:!1,tags:[a.t.general],options:{disableOnBalh:{defaultValue:!1,displayName:'与 "解除 B 站区域限制" 互斥'}},entry:i.none,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(7761);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,8232,17)).then((e=>e.default))}})()}),O=()=>[o.component,s,p,E,D,M,P],V=e=>O().some((t=>t.name===e))},8430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{components:()=>d,componentsMap:()=>l,componentsTags:()=>c.t,defineComponentMetadata:()=>s.defineComponentMetadata,defineOptionMetadata:()=>s.defineOptionMetadata,defineOptionsMetadata:()=>s.defineOptionsMetadata,importComponent:()=>b,loadAllComponents:()=>F,loadAllUserComponents:()=>g,loadComponent:()=>h});var o=n(5600),i=n(8549),r=n(3813),a=n(8910),c=n(2496),s=n(3498);const l={},d=lodash.once((()=>{const e=(0,a.getBuiltInComponents)();return e.forEach((e=>l[e.name]=e)),e}))(),m=async e=>{if(!e.i18n)return;const{addI18nData:t}=await Promise.resolve().then(n.bind(n,8590));for(const[n,o]of Object.entries(e.i18n)){const{map:e=[],regex:i=[]}="function"==typeof o?await o():o;t(n,e,i)}},f=e=>`${e.name}.widget`,u=async e=>{if(e.widget){const t={...e.widget,name:f(e)},{addData:o}=await Promise.resolve().then(n.bind(n,6940)),{WidgetsPlugin:i}=await Promise.resolve().then(n.bind(n,3082));o(i,(n=>{if(n.find((e=>e.name===t.name)))return;const{urlInclude:o,urlExclude:i}=t;e.urlInclude&&(o?o.push(...e.urlInclude):t.urlInclude=[...e.urlInclude]),e.urlExclude&&(i?i.push(...e.urlExclude):t.urlExclude=[...e.urlExclude]),n.push(t)}))}},p={},b=e=>{if(!(e in p))throw new Error(`组件'${e}'未加载, 请确认拼写无误且组件已开启.`);return p[e]},h=async e=>{const{componentLoadTrace:t}=await Promise.resolve().then(n.bind(n,3302)),{matchUrlPattern:i}=await Promise.resolve().then(n.bind(n,997)),{coreApis:r}=await Promise.resolve().then(n.bind(n,4612));await t(e);const a=async()=>{u(e);const t=await e.entry({settings:(0,o.getComponentSettings)(e),metadata:e,coreApis:r});p[e.name]=t||{}};e.reload&&e.unload&&(0,o.addComponentListener)(e.name,(async t=>{if(!1!==e.configurable&&!(e.urlExclude&&e.urlExclude.some(i)||e.urlInclude&&e.urlInclude.every(lodash.negate(i))))if(e.name in p){if(t&&e.reload&&(e.reload(),e.widget&&u(e)),!t&&e.unload&&(e.unload(),e.widget)){const{getData:t}=await Promise.resolve().then(n.bind(n,6940)),{WidgetsPlugin:o}=await Promise.resolve().then(n.bind(n,3082)),[i]=t(o);if(i){const t=f(e),n=i.findIndex((e=>e.name===t));-1!==n&&i.splice(n,1)}}}else t&&await a()})),(0,o.isComponentEnabled)(e)&&await a()},g=async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,5600)),{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,1296));for(const[n,i]of Object.entries(e.userComponents)){const{code:e}=i;let r;try{r=t(e)}catch(e){console.error("从代码加载用户组件失败。代码可能有语法错误或代码执行时有抛出值。",{componentName:n,error:e});continue}o=r,d.push(o),l[o.name]=o}var o},F=async()=>{const e=(0,o.getGeneralSettings)(),{loadAllPlugins:t}=await Promise.resolve().then(n.bind(n,8433)),a=()=>t(d).then((()=>Promise.all(d.map(m)))).then((()=>Promise.all(d.map(h)))).then((async()=>{if(e.devMode){const{componentLoadTime:e,componentResolveTime:t}=await Promise.resolve().then(n.bind(n,3302)),{logStats:o}=await Promise.resolve().then(n.bind(n,8535));o("components block",e),o("components resolve",t)}}));return new Promise(((t,n)=>{e.scriptLoadingMode===r.LoadingMode.Delay?(0,i.fullyLoaded)((()=>a().then(t).catch(n))):e.scriptLoadingMode===r.LoadingMode.Race&&(0,i.contentLoaded)((()=>a().then(t).catch(n)))}))}},3498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defineComponentMetadata:()=>r,defineOptionMetadata:()=>o,defineOptionsMetadata:()=>i});const o=e=>e,i=e=>e,r=e=>e},7568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDescriptionHTML:()=>c,getDescriptionMarkdown:()=>a,getDescriptionText:()=>s});var o=n(9896),i=n.n(o),r=n(8590);const a=async e=>{const{description:t,author:n}=e;return(n?Array.isArray(n)?`by ${n.map((e=>`[@${e.name}](${e.link})`)).join(",")}\n\n`:`by [@${n.name}](${n.link})\n\n`:"")+await(async()=>{if(!t)return"暂无描述.";const e=async e=>"string"==typeof e?e:e();if("object"==typeof t){const n=(0,r.getSelectedLanguage)();return e(t[n]??t["zh-CN"])}return e(t)})()},c=async e=>i()(await a(e)),s=async e=>{const t=await c(e),n=document.createElement("div");return n.innerHTML=t,n.innerText}},8590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addI18nData:()=>a,getSelectedLanguage:()=>c});var o=n(6940),i=n(5600),r=n(9211);const a=(e,t,n)=>{(0,o.addData)(`i18n.${e}`,((e,o)=>{t?.forEach((t=>{let[n,o]=t;return e.set(n,o)})),n&&o.push(...n)}))},c=()=>{const e=(0,i.getComponentSettings)("i18n");return(0,r.languageNameToCode)(e.options.language)}},9761:(e,t,n)=>{"use strict";n.d(t,{Ty:()=>p,U6:()=>u,WK:()=>f});var o=n(6629),i=n(6058),r=n(5600),a=n(9211),c=n(6940),s=n(997);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(){l(this,"name",void 0),l(this,"link",void 0),l(this,"defaultLanguage",void 0)}getTargetLanguage(){const e=(0,r.getComponentSettings)("i18n");return e.enabled?(0,a.languageNameToCode)(e.options.language):this.defaultLanguage}toString(){return this.name}}class m extends d{constructor(){super(...arguments),l(this,"name","Google"),l(this,"link","https://translate.google.com/"),l(this,"defaultLanguage","zh"),l(this,"apiUrl","https://translate.google.com/translate_a/single")}async translate(e){let t=this.getTargetLanguage();t.includes("-")&&t!==this.defaultLanguage&&(t=t.substring(0,t.indexOf("-")));try{const n=await(0,o.monkey)({url:`${this.apiUrl}?${(0,s.formData)({client:"gtx",sl:"auto",tl:t,dt:"t",q:encodeURIComponent(e)})}`,method:"GET",headers:{"User-Agent":i.UserAgent},responseType:"json"});return n[0].map((e=>e[0])).join("")}catch(e){throw console.error("Translator: Google",e),new Error("调用Google翻译失败.")}}}const[f]=(0,c.registerAndGetData)("i18n.machineTranslators",{GoogleCN:new class extends m{constructor(){super(...arguments),l(this,"name","GoogleCN"),l(this,"link","https://translate.google.cn/"),l(this,"apiUrl","https://translate.google.cn/translate_a/single")}},Google:new m}),u=Object.keys(f),p=()=>{const{options:{translator:e}}=(0,r.getComponentSettings)("i18n");return f[e]||f.GoogleCN}},2100:(e,t,n)=>{"use strict";n.d(t,{WY:()=>a,dr:()=>c});var o=n(6263);const i="search_history:search_history",r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=await o.crossOriginLocalStorage.getItem(e),n=t?JSON.parse(t):[];return n},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;console.log("add",e),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(lodash.sortBy(lodash.uniqBy([{value:e,timestamp:Number(new Date)},...await r()],(e=>e.value)),(e=>e.timestamp)).reverse().slice(0,20)))},c={name:"history",getActions:async()=>{const{search:e}=await Promise.resolve().then(n.bind(n,5989)),t={name:"清除搜索历史",icon:"mdi-trash-can-outline",description:"Clear History",explicitSelect:!0,action:async()=>{await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return o.crossOriginLocalStorage.setItem(e,"[]")}()}},a=(await r()).map((t=>({name:t.value,icon:"mdi-history",explicitSelect:!0,action:()=>{e(t.value)},deleteAction:async()=>{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n=await r(),a=n.findIndex((t=>t.value===e));console.log("delete",e,a),-1!==a&&(n.splice(a,1),await o.crossOriginLocalStorage.setItem(t,JSON.stringify(n)))}(t.value)}})));return a.length>0&&a.push(t),a}}},40:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LaunchBarActionProviders:()=>o});const o="launchBar.actions"},5989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{search:()=>a,searchProvider:()=>c});var o=n(997),i=n(6629),r=n(2100);const a=e=>{if(!e)return;(0,r.WY)(e);const t={keyword:e,from_source:"nav_suggest_new"};window.open(`https://search.bilibili.com/all?${(0,o.formData)(t)}`,"_blank")},c={name:"search",getActions:async e=>{const t=`https://s.search.bilibili.com/main/suggest?func=suggest&suggest_type=accurate&sub_type=tag&main_ver=v1&highlight=&userid=${(0,o.getUID)()}&bangumi_acc_num=1&special_acc_num=1&topic_acc_num=1&upuser_acc_num=3&tag_num=10&special_num=10&bangumi_num=10&upuser_num=3&term=${e}`,n=await(0,i.getJson)(t),r=[{name:e,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:`${e}`}})}),action:()=>a(e)}];if(0!==n.code)return r;const c=lodash.get(n,"result.tag");return c?(r.push(...c.map((e=>({name:e.value,icon:"search",content:async()=>Vue.extend({render:t=>t("div",{domProps:{innerHTML:e.name.replace(/suggest_high_light/g,"suggest-highlight")}})}),action:()=>a(e.value)})))),lodash.uniqBy(r,(e=>e.name))):r}}},7943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toggleLaunchBar:()=>b});var o=n(997),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"global-launch-bar-container",attrs:{lazy:!1,fixed:""},on:{"!keydown":function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("LaunchBar",{ref:"launchBar",on:{close:function(t){return e.close()}}})],1)};i._withStripped=!0;var r=n(6355),a=n(8521);const c=Vue.extend({components:{LaunchBar:a.Z,VPopup:r.default},data:()=>({show:!0}),watch:{show(e){e&&this.focus()}},async mounted(){await this.$nextTick(),this.focus()},methods:{focus(){const e=this.$refs.launchBar?.$refs.input;e?.focus(),e?.select()},close(){this.show=!1;const e=this.$refs.launchBar?.$refs.input;e?.blur()}}});var s=n(8332),l=n.n(s),d=n(2457),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,i,[],!1,null,null,null).exports;let p;const b=()=>{if(!p)return p=(0,o.mountVueComponent)(u),void document.body.append(p.$el);p.show=!p.show}},8374:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});let o=function(e){return e.Left="左侧",e.Right="右侧",e}({})},2510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{map:()=>o});const o=new Map([["通用设置","General"],["实验性","Experimental"],["通用","General"],["开发者模式","Dev mode"],["辅助颜色","Accent color"],["功能加载模式","Script loading mode"],["样式加载模式","Style loading mode"]])},3082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetsPlugin:()=>b,component:()=>g});var o=n(997),i=n(3813),r=n(4847),a=n(398),c=n(5600),s=n(2131),l=n(2496),d=n(3498),m=n(6940),f=n(40),u=n(4819);var p=n(8374);const b="widgets",h=(0,d.defineOptionsMetadata)({themeColor:{defaultValue:"#00A0D8",displayName:"主题颜色",color:!0},scriptLoadingMode:{defaultValue:i.LoadingMode.Delay,displayName:"功能加载模式",dropdownEnum:i.LoadingMode},styleLoadingMode:{defaultValue:i.LoadingMode.Race,displayName:"样式加载模式",dropdownEnum:i.LoadingMode},textColor:{defaultValue:r.TextColor.Auto,displayName:"文本颜色",dropdownEnum:r.TextColor},cdnRoot:{defaultValue:a.CdnTypes.AltCdn,displayName:"更新源",dropdownEnum:a.CdnTypes},dockSide:{defaultValue:p.l.Left,displayName:"设置面板停靠",dropdownEnum:p.l},filenameFormat:{defaultValue:"[title][ - ep]",displayName:"文件命名格式"},batchFilenameFormat:{defaultValue:"[n - ][ep]",displayName:"批量命名格式"},downloadPackageEmitMode:{defaultValue:s.h.Packed,displayName:"文件下载模式",dropdownEnum:s.h},devMode:{defaultValue:!1,displayName:"开发者模式"}}),g=(0,d.defineComponentMetadata)({name:"settingsPanel",displayName:"通用设置",configurable:!1,entry:async e=>{let{metadata:t}=e;const{isIframe:i}=await Promise.resolve().then(n.bind(n,997));i()||((0,c.addComponentListener)(`${t.name}.dockSide`,(e=>{document.body.classList.toggle("settings-panel-dock-right",e===p.l.Right)}),!0),requestIdleCallback((async()=>{const e=await Promise.resolve().then(n.bind(n,9075)),t=(0,o.mountVueComponent)(e);document.body.insertAdjacentElement("beforeend",t.$el)})))},options:h,tags:[l.t.general],plugin:{displayName:"设置面板 - 功能扩展",setup:()=>{(0,m.addData)(f.LaunchBarActionProviders,(e=>{e.push({name:"onlineRegistry",getActions:async()=>[{name:"切换在线仓库",description:"Toggle Online Registry",icon:"mdi-web",action:async()=>{const{togglePopup:e}=await Promise.resolve().then(n.bind(n,6052));e()}}]},{name:"aboutPageActionsProvider",getActions:async()=>u.a.map((e=>e.actionName?{name:e.name,displayName:e.displayName,icon:e.icon,description:e.actionName,action:()=>e.run()}:null)).filter((e=>null!==e))})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(4311);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,6284,17)).then((e=>e.default))}})(),i18n:(()=>{const e=n(3552);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.ts$/)[1],e(t)])))}})()})},9133:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,U:()=>i});var o=n(5600);const i=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,o.getComponentSettings)(this.componentData)}}}),r=e=>Vue.extend({data:()=>({virtual:!1}),async mounted(){const{dq:t}=await Promise.resolve().then(n.bind(n,997)),{visibleInside:o}=await Promise.resolve().then(n.bind(n,1854)),i=this.$el,r=t(e);r?o(i,r,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.warn("virtual container not found, virtual scroll will be disabled!")}})},4819:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(6940);const i=[{icon:"mdi-inbox-arrow-up-outline",name:"exportSettings",displayName:"导出设置",actionName:"Export Settings",run:async()=>{const{settings:e}=await Promise.resolve().then(n.bind(n,5600)),{DownloadPackage:t}=await Promise.resolve().then(n.bind(n,169));t.single("settings.json",JSON.stringify(e,void 0,2))}},{icon:"mdi-inbox-arrow-down-outline",name:"importSettings",displayName:"导入设置",actionName:"Import Settings",run:async()=>{const{logError:e}=await Promise.resolve().then(n.bind(n,962)),{pickFile:t}=await Promise.resolve().then(n.bind(n,6057)),{Toast:o}=await Promise.resolve().then(n.bind(n,6812)),i=await t({accept:"*.json"});if(0===i.length)return;const[r]=i;try{const e=JSON.parse(await r.text());Object.entries(e).forEach((e=>{let[t,n]=e;GM_setValue(t,n)})),o.success("导入成功, 正在刷新页面...","导入设置"),window.location.reload()}catch(t){e(t)}}}],[r]=(0,o.registerAndGetData)("settingsPanel.about.actions",i)},6052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initPopup:()=>N,togglePopup:()=>q});var o=n(997),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"online-registry be-settings-extra-options",attrs:{fixed:"","auto-close":!1},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"online-registry-header"},[t("VIcon",{staticClass:"online-registry-header-title-icon",attrs:{icon:"mdi-web"}}),e._v(" "),t("div",{staticClass:"online-registry-header-title"},[e._v("在线仓库")]),e._v(" "),t("VIcon",{staticClass:"online-registry-header-refresh-icon",attrs:{icon:"mdi-refresh",size:22,title:"刷新"},on:{click:function(t){return e.fetchFeatures()}}}),e._v(" "),t("VIcon",{staticClass:"online-registry-header-close-icon",attrs:{icon:"mdi-close",size:24,title:"关闭"},on:{click:function(t){e.popupOpen=!1}}})],1),e._v(" "),t("div",{staticClass:"online-registry-header"},[t("div",{staticClass:"online-registry-header-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{disabled:e.loading,placeholder:"搜索功能"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-branch"},[e._v("\n 分支:\n "),t("VDropdown",{attrs:{disabled:e.loading,items:e.registryBranches},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedBranch,callback:function(t){e.selectedBranch=t},expression:"selectedBranch"}})],1),e._v(" "),t("div",{staticClass:"online-registry-header-filter"},[e._v("\n 查看:\n "),e._l(e.itemFilterOptions,(function(n){return t("RadioButton",{key:n.value,attrs:{group:"itemFilter",checked:e.itemFilter===n.value},on:{change:function(t){t&&(e.itemFilter=n.value)}}},[e._v("\n "+e._s(n.label)+"\n ")])}))],2)]),e._v(" "),t("div",{staticClass:"online-registry-separator"}),e._v(" "),t("div",{ref:"content",staticClass:"online-registry-content"},[e.loading?t("VLoading"):e._e(),e._v(" "),e.loading||e.list.length?e._e():t("VEmpty"),e._v(" "),e._l(e.filteredList,(function(n){return t("RegistryItem",{key:n.name,ref:"items",refInFor:!0,attrs:{item:n,branch:e.selectedBranch,"item-filter":e.itemFilter},on:{refresh:e.checkInstalled}})}))],2)])};i._withStripped=!0;var r=n(7942),a=n(6629),c=n(398),s=n(9737),l=n(5600),d=n(962),m=n(9047),f=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MiniToast",{staticClass:"online-registry-item-wrapper",class:{virtual:e.virtual,hidden:e.hidden},attrs:{placement:e.placement,container:"body",delay:[200,0],offset:[0,12]},scopedSlots:e._u([{key:"toast",fn:function(){return[e.item.description?t("ComponentDescription",{attrs:{"component-data":e.item}}):e._e()]},proxy:!0}])},[e.virtual?e._e():t("div",{staticClass:"online-registry-item"},[t("VIcon",{staticClass:"item-icon",attrs:{size:18,icon:e.icon}}),e._v(" "),t("div",{staticClass:"item-badge"},[e._v("\n "+e._s(e.badge)+"\n ")]),e._v(" "),t("div",{staticClass:"item-display-name"},[e._v("\n "+e._s(e.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"item-action"},[e.installed?t("VButton",{staticClass:"reinstall-button",attrs:{title:"重新安装",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[e._v("\n "+e._s(e.installing?"正在安装":"已安装")+"\n ")]):t("VButton",{staticClass:"install-button",attrs:{title:"安装",type:"primary",disabled:e.installing},on:{click:function(t){e.install(e.getUrl(e.item))}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:15}}),e._v("\n "+e._s(e.installing?"正在安装":"安装")+"\n ")],1)],1)],1)])};f._withStripped=!0;var u=n(459),p=n(1854),b=n(6387),h=n(8374);let g=function(e){return e.All="all",e.Installed="installed",e.NotInstalled="notInstalled",e}({});const F=(e,t)=>`${(0,c.cdnRoots[(0,l.getGeneralSettings)().cdnRoot])(t,e.owner)}${e.fullAbsolutePath}`,v=e=>{const t=`user${lodash.startCase(e.type)}s`;return e.name in l.settings[t]},w={component:{icon:"mdi-cube-scan",badge:"组件",getUrl:F,isInstalled:v},plugin:{icon:"mdi-puzzle-outline",badge:"插件",getUrl:F,isInstalled:v},style:{icon:"mdi-tune",badge:"样式",getUrl:F,isInstalled:v},pack:{icon:"mdi-package-variant-closed",badge:"合集包",getUrl:(e,t)=>e.items.map((e=>F(e,t))).join("\n"),isInstalled:e=>e.items.every(v)}},y=Vue.extend({components:{VIcon:m.VIcon,VButton:m.VButton,MiniToast:m.MiniToast,ComponentDescription:b.Z},props:{item:{type:Object,required:!0},branch:{type:String,required:!0},itemFilter:{type:String,default:g.All}},data(){const{icon:e,badge:t,getUrl:n,isInstalled:o}=w[this.item.type];return{icon:e,badge:t,getUrl:e=>n(e,this.branch),isInstalled:o,installing:!1,installed:!1,virtual:!1,placement:"right"}},computed:{hidden(){switch(this.itemFilter){case g.All:default:return!1;case g.Installed:return!this.installed;case g.NotInstalled:return this.installed}}},created(){this.checkInstalled(),(0,l.addComponentListener)("settingsPanel.dockSide",(e=>{this.placement=e===h.l.Left?"right":"left"}),!0)},mounted(){const e=this.$el;(0,p.visibleInside)(e,e.parentElement,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))}))},methods:{checkInstalled(){this.installed=this.isInstalled(this.item)},async install(e){const t=e.split("\n").map((e=>e.trim())).filter((e=>""!==e));try{this.installing=!0,await Promise.all(t.map((async e=>(0,u.installFeature)(e)))),this.checkInstalled(),"pack"===this.item.type&&this.$emit("refresh")}catch(e){(0,d.logError)(e)}finally{this.installing=!1}}}});var x=n(8332),k=n.n(x),C=n(6474),A=n.n(C),E={insert:"head",singleton:!1};k()(A(),E);A().locals;var B=n(6499);const D=(0,B.Z)(y,f,[],!1,null,null,null).exports;var z=n(6940);const[I]=(0,z.registerAndGetData)("settingsPanel.registryBranches",["master","preview"]),S=(0,l.getGeneralSettings)();function M(e){if(!e)return void(this.filteredList=this.list);const t=this.fuse.search(e);this.filteredList=t.map((e=>e.item)),this.$nextTick().then((()=>this.$refs.content.scrollTo(0,0)))}const P=[{label:"全部",value:g.All},{label:"已安装",value:g.Installed},{label:"未安装",value:g.NotInstalled}],O=Vue.extend({components:{VIcon:m.VIcon,VDropdown:m.VDropdown,TextBox:m.TextBox,VPopup:m.VPopup,RegistryItem:D,VLoading:m.VLoading,VEmpty:m.VEmpty,RadioButton:m.RadioButton},props:{open:{default:!1,type:Boolean}},data(){const e=[S.registryBranch,s.meta.compilationInfo.branch,I[0]].filter((e=>I.includes(e)&&Boolean(e)));return{searchKeyword:"",popupOpen:!1,loading:!1,list:[],itemFilter:g.All,itemFilterOptions:P,filteredList:[],fuse:null,registryBranches:I,selectedBranch:e[0]}},watch:{searchKeyword:lodash.debounce(M,200),selectedBranch(e){S.registryBranch=e,this.fetchFeatures()}},mounted(){this.fetchFeatures()},methods:{async fetchFeatures(){if(this.loading)return;const e=c.cdnRoots[S.cdnRoot](this.selectedBranch);try{this.loading=!0,this.list=[],this.filteredList=[];const t=`${e}doc/features/features.json`,n=`${e}doc/features/pack/pack.json`,o=await(0,a.monkey)({url:t,responseType:"json"}),i=await(0,a.monkey)({url:n,responseType:"json"});if(!Array.isArray(o)||!Array.isArray(i))throw console.error("Fetch failed:",o,i,t,n),new Error("获取在线仓库数据失败, 请尝试在通用设置中设置其他更新源, 然后再试一次.");this.list=[...i,...o],this.fuse=new r.Z(this.list,{keys:["displayName","name","description"]}),M.call(this,this.searchKeyword)}catch(e){(0,d.logError)(e)}finally{this.loading=!1}},checkInstalled(){this.$refs.items?.forEach((e=>e.checkInstalled()))}}});var V=n(3615),T=n.n(V),L={insert:"head",singleton:!1};k()(T(),L);T().locals;const j=(0,B.Z)(O,i,[],!1,null,null,null).exports;let R;const N=()=>{R||(R=(0,o.mountVueComponent)(j),document.body.append(R.$el))},q=()=>{R||N(),R.popupOpen=!R.popupOpen}},2496:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o={video:{name:"video",displayName:"视频",color:"#2196F3",icon:"mdi-play-circle-outline",order:1},style:{name:"style",displayName:"样式",color:"#8BC34A",icon:"mdi-palette-outline",order:2},feeds:{name:"feeds",displayName:"动态",color:"#00ACC1",icon:"mdi-pinwheel-outline",order:3},live:{name:"live",displayName:"直播",color:"#26A69A",icon:"mdi-video-wireless-outline",order:4},utils:{name:"utils",displayName:"工具",color:"#A36FFD",icon:"mdi-rocket-launch-outline",order:5},touch:{name:"touch",displayName:"触摸",color:"#78909C",icon:"mdi-gesture-tap-button",order:6},experimental:{name:"experimental",displayName:"实验",color:"#FF5722",icon:"mdi-flask-outline",order:7},general:{name:"general",displayName:"通用",color:"#888",icon:"mdi-progress-wrench",order:8}}},7632:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bisectComponent:()=>d,installComponent:()=>c,toggleComponent:()=>l,uninstallComponent:()=>s});var o=n(5600),i=n(8910),r=n(8430),a=n(4848);const c=async e=>{const{components:t}=await Promise.resolve().then(n.bind(n,8430)),{loadFeatureCode:a}=await Promise.resolve().then(n.bind(n,8036));let c;try{c=a(e)}catch(e){throw new Error("无效的组件代码",{cause:e})}const{settings:s}=await Promise.resolve().then(n.bind(n,5600));if((0,i.isBuiltInComponent)(c.name))throw new Error(`不能覆盖内置组件'${c.name}', 请更换名称`);const l={...lodash.omit(c,"entry","widget","instantStyles","reload","unload","plugin","urlInclude","urlExclude")},d=s.userComponents[c.name];if(d){d.code=e,d.metadata=l;const t=(0,o.componentToSettings)(c);return lodash.defaultsDeep(d.settings.options,lodash.pickBy(t.options,(e=>!Array.isArray(e)))),{metadata:c,message:`已更新组件'${c.displayName}', 刷新后生效`}}return s.userComponents[c.name]={code:e,metadata:l,settings:(0,o.componentToSettings)(c)},t.push(c),r.componentsMap[c.name]=c,{metadata:c,message:`已安装组件'${c.displayName}', 刷新后生效`}},s=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),{components:o}=await Promise.resolve().then(n.bind(n,8430)),i=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[a,{metadata:c,settings:s}]=i,l=o.findIndex((e=>e.name===a));if(-1!==l){const{instantStyles:e}=o[l];if(e){const{removeStyle:t}=await Promise.resolve().then(n.bind(n,9860));e.forEach((e=>t(e.name)))}s.enabled=!1,o.splice(l,1),delete r.componentsMap[a]}return delete t.userComponents[a],{metadata:c,message:`已卸载组件'${c.displayName}, 刷新后生效'`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),o=Object.entries(t.userComponents).find((t=>{let[n,{metadata:{displayName:o}}]=t;return n===e||o===e}));if(!o)throw new Error(`没有找到与名称'${e}'相关联的组件`);const[,i]=o;i.settings.enabled=!i.settings.enabled;const{enabled:r}=i.settings,{displayName:a}=i.metadata;return`已${r?"开启":"关闭"}组件'${a}', 可能需要刷新后才能生效`},d=async e=>(e&&a.setOptions(e),a)},5125:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{updateCategories:()=>updateCategories,updateIcons:()=>updateIcons});var _core_ajax__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6629),_core_download__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(169);const updateCategories=async()=>{const[script]=dqa("script").filter((e=>e.src.includes("stardust-video")));if(!script)throw new Error("no script found");const scriptText=await(0,_core_ajax__WEBPACK_IMPORTED_MODULE_0__.getText)(script.src),match=scriptText.match(/([\w]+?=\[\{name:"首页".+?\}.+?\]),[\w]+?=\[\{name:"首頁"/);if(!match)throw new Error("no match in script");const variables=match[1].match(/(\w+?)(?==\[)/g),data=eval(`var ${match[1]}; [${variables.join(",")}]`);_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("raw.json",data)},updateIcons=()=>{const e=dqa(".bili-header-channel-panel svg");if(0===e.length)throw new Error("svg icons not found");const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("style","position: absolute; width: 0px; height: 0px; overflow: hidden;"),t.id="be-category-icons",e.forEach((e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","symbol");n.innerHTML=e.innerHTML,n.id=e.id.replace(/^channel-icon-/,"header-icon-")||`header-icon-${e.parentElement?.href.match(/\/v\/(.+)$/)?.[1]}`,"header-icon-teleplay"===n.id&&(n.id="header-icon-tv"),n.id||console.warn("cannot find id for",e),n.setAttribute("viewBox",e.getAttribute("viewBox")),t.appendChild(n)})),_core_download__WEBPACK_IMPORTED_MODULE_1__.DownloadPackage.single("icons.svg",t.outerHTML)}},6445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PlayerMode:()=>a,createPlayerModeChangeEvent:()=>c,playerPolyfill:()=>p});var o=n(1854),i=n(8689),r=n(997);let a=function(e){return e.Normal="normal",e.WideScreen="wide",e.WebFullscreen="web",e.Fullscreen="full",e}({});const c=e=>new CustomEvent("playerModeChange",{detail:{mode:e,bubbles:!0,cancelable:!0}}),s=lodash.once((async()=>{(async()=>{await(0,r.playerReady)();const e=await(0,i.select)(".bpx-player-container");if(!e)return void console.warn("[bpx player polyfill] bpxContainer not found");let t=a.Normal;(0,o.attributes)(e,(()=>{const n=e.getAttribute("data-screen"),o="player-mode-",i=[a.Normal,a.WideScreen,a.WebFullscreen,a.Fullscreen].map((e=>`${o}${e}`));document.body.classList.remove(...i),n!==a.Normal&&document.body.classList.add(`${o}${n}`),n!==t&&(window.dispatchEvent(c(n)),t=n)}))})(),(async()=>{const e=await(0,i.select)(".bpx-player-video-perch");e&&(0,r.preventEvent)(e,"dblclick")})()}));var l=n(285);const d=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getVideoMessage)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),r=t("v2 player polyfill");(0,o.allMutations)((()=>{const t=e.getVideoMessage();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),m=lodash.once((()=>{l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))||unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getUserParams)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),r=t("v3 player polyfill");(0,o.allMutations)((()=>{const{input:t}=e.getUserParams();if(!t)return void r.warn("invalid getUserParams data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid};Object.values(n).some((e=>""===e||parseInt(e)<=0))&&r.warn("invalid input data"),Object.assign(unsafeWindow,n)}))})()})),f=e=>{if(""===e)return!1;const t=parseInt(e);return!!Number.isNaN(t)||t>0},u=lodash.once((()=>{unsafeWindow.aid||unsafeWindow.cid||(async()=>{const e=await(0,i.select)((()=>unsafeWindow.player));if(!e?.getManifest)return;const{useScopedConsole:t}=await Promise.resolve().then(n.bind(n,962)),a=t("v4 player polyfill");(0,o.allMutations)((()=>{const t=e.getManifest();if(!t)return void a.warn("invalid getManifest data");const n={aid:t.aid.toString(),cid:t.cid.toString(),bvid:t.bvid??""};(l.bangumiUrls.some((e=>(0,r.matchUrlPattern)(e)))?f(n.aid)&&f(n.cid):Object.values(n).every((e=>f(e))))||a.warn("invalid manifest data",n),Object.assign(unsafeWindow,n)}))})()})),p=lodash.once((()=>Promise.allSettled([s(),d(),m(),u()])))},6561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{playerAgent:()=>h});var o=n(285),i=n(8689),r=n(997);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)} /* eslint-disable class-methods-use-this */(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=e=>{const t=e=>"string"!=typeof e?lodash.mapValues(e,t):(e=>{const t=()=>(0,i.select)(e);return t.selector=e,t.sync=()=>dq(e),t})(e);return lodash.mapValues(e,t)},s=e=>{const t=e.sync();return t?.click(),t};let l=function(e){return e.Play="play",e}({});class d extends EventTarget{constructor(){super(),a(this,"isBpxPlayer",!0),a(this,"type",void 0),a(this,"query",void 0),a(this,"eventHandlerMap",new Map)}provideCustomQuery(e){const t=c(e[this.type]??e.video);return{...this,custom:t}}widescreen(){return s(this.query.control.buttons.widescreen)}webFullscreen(){return s(this.query.control.buttons.webFullscreen)}fullscreen(){return s(this.query.control.buttons.fullscreen)}togglePlay(){return s(this.query.control.buttons.start)}togglePip(){return s(this.query.control.buttons.pip)}toggleMute(){return s(this.query.control.buttons.volume)}toggleDanmaku(){const e=this.query.danmakuSwitch.sync();return e?(e.checked=!e.checked,(0,r.raiseEvent)(e,"change"),e.checked):null}async toggleLight(e){if(!this.nativeApi)return null;const t=this.nativeApi.getLightOff();return void 0===e?(this.nativeApi.setLightOff(!t),!t):e&&t?(this.nativeApi.setLightOff(!0),!0):e||t?null:(this.nativeApi.setLightOff(!1),!1)}getPlayerConfig(e,t){const n=this.isBpxPlayer?"bpx_player_profile":"bilibili_player_settings";return lodash.get(JSON.parse(localStorage.getItem(n)),e,t)}isAutoPlay(){return this.getPlayerConfig("video_status.autoplay")}get nativeApi(){return unsafeWindow.player||unsafeWindow.playerRaw}get nanoApi(){return unsafeWindow.nano}addEventListener(e,t,n){if(super.addEventListener(e,t,n),e===l.Play){const e=()=>{this.dispatchEvent(new Event(l.Play))};"object"==typeof n&&n.once?this.nativeApi.once(this.nanoApi.EventType.Player_Initialized,e):this.nativeApi.on(this.nanoApi.EventType.Player_Initialized,e),this.eventHandlerMap.set(t,{handler:e,options:n})}}removeEventListener(e,t,n){switch(super.removeEventListener(e,t,n),e){default:break;case l.Play:{const e=this.eventHandlerMap.get(t);if(!e||lodash.isEqual(n,e.options))break;this.nativeApi.off(this.nanoApi.EventType.Player_Initialized,e.handler)}}}isMute(){return this.nativeApi?this.nativeApi.isMuted?this.nativeApi.isMuted():this.nativeApi.isMute():null}changeVolume(e){if(!this.nativeApi)return null;if(this.nativeApi.getVolume){const t=this.nativeApi.getVolume();return this.nativeApi.setVolume(t+e/100),Math.round(100*this.nativeApi.getVolume())}const t=this.nativeApi.volume();return this.nativeApi.volume(t+e/100),Math.round(100*this.nativeApi.volume())}seek(e){return this.nativeApi?(this.nativeApi.seek(e),this.nativeApi.getCurrentTime()):null}changeTime(e){if(!this.nativeApi)return null;const t=this.query.video.element.sync();return t?(this.nativeApi.seek(t.currentTime+e,t.paused),this.nativeApi.getCurrentTime()):null}} // spell-checker: disable const m={playerArea:".bpx-player-primary-area",video:{element:".bpx-player-video-wrap video",wrap:".bpx-player-video-area",top:".bpx-player-top-wrap",state:".bpx-player-state-wrap",panel:".bpx-player-ending-panel",popup:".bpx-player-dialog-wrap",subtitle:".bpx-player-subtitle-wrap",basDanmaku:".bpx-player-bas-dm-wrap",advDanmaku:".bpx-player-adv-dm-wrap",danmaku:".bpx-player-row-dm-wrap",container:".bpx-player-video-perch"},control:{element:".bpx-player-control-entity",wrap:".bpx-player-control-wrap",mask:".bpx-player-control-mask",top:".bpx-player-control-top",progress:".bpx-player-progress",bottom:".bpx-player-control-bottom",bottomLeft:".bpx-player-control-bottom-left",bottomCenter:".bpx-player-control-bottom-center",bottomRight:".bpx-player-control-bottom-right",buttons:{start:".bpx-player-ctrl-play",next:".bpx-player-ctrl-btn-next",time:".bpx-player-ctrl-time",quality:".bpx-player-ctrl-quality",pageList:".bpx-player-ctrl-eplist",speed:".bpx-player-ctrl-playbackrate",subtitle:".bpx-player-ctrl-subtitle > div > span",volume:".bpx-player-ctrl-volume-icon",settings:".bpx-player-ctrl-setting",pip:".bpx-player-ctrl-pip",widescreen:".bpx-player-ctrl-wide",webFullscreen:".bpx-player-ctrl-web",fullscreen:".bpx-player-ctrl-full"},settings:{wrap:".bpx-player-ctrl-setting-box",lightOff:".bpx-player-ctrl-setting-lightoff .bui-checkbox-input"}},toastWrap:".bpx-player-dialog-wrap",danmakuTipLayer:".bpx-player-dm-tip",danmakuSwitch:".bpx-player-dm-switch input"}; @@ -110,7 +110,7 @@ unsafeWindow.__ENABLE_WASM_PLAYER__||Boolean(r("#bilibili-player bwp-video")))}, // eslint-disable-next-line class-methods-use-this constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler=e,this.preventSingle=t,o(this,"elements",[]),o(this,"singleClickHandler",m),o(this,"clickedOnce",!1),o(this,"stopPropagationHandler",(e=>{e.stopImmediatePropagation()})),o(this,"doubleClickHandler",(e=>{this.clickedOnce?(this.clickedOnce=!1,Promise.resolve().then((()=>{this.handler?.(e)}))):(this.clickedOnce=!0,setTimeout((()=>{this.clickedOnce&&(this.clickedOnce=!1,this.preventSingle&&this.singleClickHandler?.(e))}),200)),this.preventSingle&&e.stopImmediatePropagation()}))}bind(e){-1===this.elements.indexOf(e)&&(this.elements.push(e),e.addEventListener("click",this.doubleClickHandler,{capture:!0}),e.addEventListener("dblclick",this.stopPropagationHandler,{capture:!0}))}unbind(e){const t=this.elements.indexOf(e);-1!==t&&(this.elements.splice(t,1),e.removeEventListener("click",this.doubleClickHandler,{capture:!0}),e.removeEventListener("dblclick",this.stopPropagationHandler,{capture:!0}))}}const P=async()=>{const{sq:e}=await Promise.resolve().then(n.bind(n,8689)),{logError:t}=await Promise.resolve().then(n.bind(n,962));return await e((()=>unsafeWindow),(()=>void 0!==unsafeWindow.UserStatus)),new Promise(((e,n)=>{"https://www.bilibili.com/blackboard/newplayer.html"===document.URL.replace(window.location.search,"")&&document.URL.includes("fjw=true")||g()||(unsafeWindow.onLoginInfoLoaded?unsafeWindow.onLoginInfoLoaded(e):(t(new Error("utils.playerReady 失败")),console.error("typeof onLoginInfoLoaded === "+typeof unsafeWindow.onLoginInfoLoaded),n()))}))},O=()=>{const{activeElement:e}=document;return!!e&&(!!e.hasAttribute("contenteditable")||["input","textarea"].includes(e.nodeName.toLowerCase()))},V=e=>{if(!(e instanceof HTMLElement))return null;const t=(()=>{if(e.hasAttribute("data-src"))return e.getAttribute("data-src");if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLPictureElement&&r(e,"img")){return r(e,"img").src}if(r(e,"picture img")){return r(e,"picture img").src}const{backgroundImage:t}=e.style;if(!t)return null;const n=t.match(/url\("(.+)"\)/);return n?n[1]:null})(),n=t.match(/^(.+)(\..+?)(@.+)$/);if(n)return{url:n[1]+n[2],extension:n[2]};const o=t.match(/^(.+)(\..+?)$/);return o?{url:o[1]+o[2],extension:o[2]}:null},T=e=>{const t=()=>"visible"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",t),!0);t()||document.addEventListener("visibilitychange",t)},L=async e=>{ // eslint-disable-next-line prefer-arrow-callback -const t=E(unsafeWindow,"scrollTo",(function(){return!1}));return e?(await e(),t(),m):t},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return(n,o)=>lodash.isNumber(Number(n))?lodash.clamp(n,e,t):o},R=e=>lodash.upperFirst(lodash.camelCase(e)),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;const t=new Uint8Array(Math.ceil(e/2));return crypto.getRandomValues(t),[...t].map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,e)},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n{throw new Error("unreachable")},U=()=>navigator.connection?.saveData??!1,H=(e,t)=>{const n=new MouseEvent("mousedown",t),o=new MouseEvent("mouseup",t),i=new PointerEvent("pointerdown",t),r=new PointerEvent("pointerup",t),a=new MouseEvent("click",t);e.dispatchEvent(i),e.dispatchEvent(n),e.dispatchEvent(r),e.dispatchEvent(o),e.dispatchEvent(a)}},962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScopedConsoleCallHook:()=>m,ScopedConsoleCreateHook:()=>d,logError:()=>a,randomScopedConsole:()=>u,useScopedConsole:()=>f});var o=n(8977),i=n(997),r=n(5600);const a=async(e,t)=>{let o;"string"==typeof e?(o=e,console.error(o)):(o=(0,r.getGeneralSettings)().devMode?e.stack:e.message,console.error(e));const{Toast:i}=await Promise.resolve().then(n.bind(n,6812));i.error(o,"错误",t)},c=Symbol("ScopedConsole"),s=Symbol("NamePatch"),l={default:"#78909C",warn:"#CC7A00",error:"#BF6060",group:"#9575CD"},d="scopedConsole.create",m="scopedConsole.call",f=e=>{const{before:t,after:n}=(0,o.getHook)(d),{name:i,color:a=l.default,console:f=window.console}="string"==typeof e?{name:e}:e,u={name:i,color:a,console:f};t(e,f);let p=0;const b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.color;const i=e[c],r=(i?t.color:n)??l.default,a="#fff",d=i?["%c "]:["%c"],f={badgeNames:[...i?.badgeNames??[],...d,`%c${t.name}`],badgeValues:[...i?.badgeValues??[],"",`background-color: ${r}; color: ${a}; padding: 2px 4px; border-radius: 4px;`],original:i?.original??e},u=f.original,b=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:t.color,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;const i=b(e,t,n),r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{g[e][s]||(g[e][s]=e)}));const F={...unsafeWindow.console,...f};return F.log=b(f.log,u),F.info=b(f.info,u),F.warn=b(f.warn,u,l.warn),F.error=b(f.error,u,l.error),F.group=h(f.group,u,l.group,(e=>e+1)),F.groupCollapsed=h(f.groupCollapsed,u,l.group,(e=>e+1)),F.groupEnd=h(f.groupEnd,u,l.group,(e=>e-1)),F.debug=(()=>{const e=b(f.debug,u);return function(){if((0,r.getGeneralSettings)().devMode){for(var t=arguments.length,n=new Array(t),o=0;of({...e,name:(0,i.getRandomId)()})},197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ascendingBigIntSort:()=>a,ascendingSort:()=>i,ascendingStringSort:()=>r,descendingBigIntSort:()=>l,descendingSort:()=>c,descendingStringSort:()=>s});const o=e=>e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t)-e(n)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t).localeCompare(e(n))},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>{const o=BigInt(e(t)),i=BigInt(e(n));return o===i?0:o>i?1:-1}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n)-e(t)},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n).localeCompare(e(t))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>-a(e)(t,n)}},943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formatTitle:()=>s,getFriendlyTitle:()=>l});var o=n(997),i=n(5600),r=n(738),a=n(197);const c=e=>{let t=0,n=0;const o=[];return e.split("").forEach(((i,r)=>{"["===i&&(0===n?(o.push(e.substring(t,r)),t=r):n++),"]"===i&&(0===n?(o.push(e.substring(t,r+1)),t=r+1):n--)})),t""!==e))},s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new Date,s=()=>document.title.replace(/第[0-9]*[零一二三四五六七八九十百千]*[集话]-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/:([^:]+?)_.+?_bilibili_哔哩哔哩$/,"").replace(/_哔哩哔哩_bilibili$/,"").replace(/ - 哔哩哔哩$/,"").replace(/_哔哩哔哩 \(゜-゜\)つロ 干杯~-bilibili$/,"").replace(/(.*?) - (.*?) - 哔哩哔哩直播,二次元弹幕直播平台$/,"$1").trim(),l={title:(()=>{const e=(0,o.dq)(".video-info-container .video-title");if(null!==e)return e.getAttribute("title");const t=(0,o.dq)('[class*="mediainfo_mediaTitle"]');if(null!==t)return t.getAttribute("title");const n=(0,o.dq)(".header-info-ctnr .live-title .text");return null!==n?n.getAttribute("title"):s()})(),ep:(()=>{if(!t)return;const e=(0,o.dq)("#eplist_module li.cursor .ep-title");if(null!==e)return e.innerText;const n=(0,o.dq)("#multi_page .cur-list>ul li.on a, .video-episode-card__info-playing .video-episode-card__info-title");if(null!==n)return n.getAttribute("title");const i=(0,o.dq)(".multip-list-item.multip-list-item-active");return null!==i?i.getAttribute("title"):void 0})(),aid:unsafeWindow.aid,bvid:unsafeWindow.bvid,cid:unsafeWindow.cid,lid:document.URL.replace(/https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/,"$2"),y:i.getFullYear().toString(),M:(i.getMonth()+1).toString().padStart(2,"0"),d:i.getDate().toString().padStart(2,"0"),h:i.getHours().toString().padStart(2,"0"),m:i.getMinutes().toString().padStart(2,"0"),s:i.getSeconds().toString().padStart(2,"0"),ms:i.getMilliseconds().toString().substring(0,3)},d={...l,...n},m=c(e),f=Object.entries(d).sort((0,a.descendingSort)((e=>{let[t]=e;return t.length}))),u=m.map((e=>{if(!e.startsWith("[")||!e.endsWith("]"))return e;for(const[t,n]of f){const o=new RegExp(`^\\[([^\\[\\]]*?)${t}([^\\[\\]]*?)\\]$`),i=e.match(o);if(i&&Boolean(n))return`${i[1]??""}${n}${i[2]??""}`}return""})),p=u.join("");return(0,r.formatFilename)(p," ")},l=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s((0,i.getGeneralSettings)().filenameFormat,e,t)}},285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allVideoUrls:()=>u,bangumiUrls:()=>d,cheeseUrls:()=>m,columnUrls:()=>F,favoriteListUrls:()=>r,feedsUrls:()=>g,feedsUrlsWithoutDetail:()=>h,festivalUrls:()=>s,liveUrls:()=>b,mainSiteUrls:()=>p,matchCurrentPage:()=>w,mediaListUrls:()=>c,playerUrls:()=>v,upListUrls:()=>a,videoAndBangumiUrls:()=>f,videoUrls:()=>l,watchlaterUrls:()=>i});var o=n(997);const i=["//www.bilibili.com/medialist/play/watchlater","//www.bilibili.com/list/watchlater"],r=["//www.bilibili.com/medialist/play/ml","//www.bilibili.com/list/ml"],a=[/\/\/www\.bilibili\.com\/medialist\/play\/\d+/,/\/\/www\.bilibili\.com\/list\/\d+/],c=[...i,...r,...a,/\/\/www\.bilibili\.com\/list\//],s=[/\/\/www\.bilibili\.com\/festival\//],l=["//www.bilibili.com/video/",...s,...c],d=["//www.bilibili.com/bangumi/play/"],m=["//www.bilibili.com/cheese/"],f=[...l,...d],u=[...f,...m],p=["https://www.bilibili.com/v/",/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/([^\/]+)\.html$/,/^https:\/\/www\.bilibili\.com\/watchlater\/#\/list$/,"https://www.bilibili.com/account/"],b=[/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],h=[/^https:\/\/t\.bilibili\.com\/$/,/^https:\/\/space\.bilibili\.com\//,/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],g=[...h,/^https:\/\/t\.bilibili\.com\//,/^https:\/\/www\.bilibili\.com\/opus\/[\d]+$/],F=[/^https:\/\/www\.bilibili\.com\/read\/cv/],v=["//player.bilibili.com","//www.bilibili.com/html/player.html",...l,...d,...m],w=function(){for(var e=arguments.length,t=new Array(e),n=0;nArray.isArray(e)?e.some((e=>(0,o.matchUrlPattern)(e))):(0,o.matchUrlPattern)(e)))}},1242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CompareResult:()=>a,Version:()=>c,isFeatureAcceptable:()=>s});var o=n(8036),i=n(9737);function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a=function(e){return e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e[e.Incomparable=NaN]="Incomparable",e}({});class c{constructor(e){if(this.versionString=e,r(this,"parts",void 0),!/^[\d\.]+$/.test(e))throw new Error("Invalid version string");this.parts=e.split(".").map((e=>parseInt(e)))}compareTo(e){for(let t=0;te.parts[t]?a.Greater:a.Less}return this.parts.length!==e.parts.length?a.Less:a.Equal}greaterThan(e){return this.compareTo(e)===a.Greater}lessThan(e){return this.compareTo(e)===a.Less}equals(e){return this.compareTo(e)===a.Equal}}const s=async e=>{try{if("string"==typeof e&&(e=(0,o.loadFeatureCode)(e)),null==e)return!1;const{version:t}=i.meta.compilationInfo,{coreVersion:n}=e;if(!n||!t)return!0;const r=new c(t),a=new c(n);return r.equals(a)||r.greaterThan(a)}catch(t){return console.warn("[isFeatureAcceptable] check failed, feature =",e),!0}}},6940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addData:()=>r,getData:()=>a,registerAndGetData:()=>c,registerData:()=>i});const o=new Map,i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{if(o.has(e)){const{providers:n,loaded:i,data:r}=o.get(e);i?t(...r):n.push(t)}else o.set(e,{registered:!1,data:[],loaded:!1,providers:[t]})},a=e=>{if(o.has(e)){const t=o.get(e),{data:n,registered:i,loaded:r,providers:a}=t;if(i)return r||(a.forEach((e=>e(...n))),t.providers=[],t.loaded=!0),n}return[]},c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{"use strict";n.r(t),n.d(t,{addHook:()=>i,getHook:()=>r});const o=new Map,i=(e,t)=>{if(o.has(e)){const{providers:n}=o.get(e);n.push(t)}else o.set(e,{providers:[t]})},r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie.before?.(...n.concat(t)))))},after:async function(){for(var e=arguments.length,t=new Array(e),o=0;oe.after?.(...n.concat(t)))))}}}return{before:async()=>Promise.all([]),after:async()=>Promise.all([])}}},4179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{plugin:()=>r});const o=async(e,t,o)=>{const i={name:t,icon:"mdi-content-copy",description:`复制${e}`,indexer:o,action:async()=>{if(i.name===t){await navigator.clipboard.writeText(t);const{Toast:o}=await Promise.resolve().then(n.bind(n,6812));o.success("复制成功",`复制${e}`,1500)}}};return[i]},i=[{pattern:/^av([\d]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,6629)),i=await t(`https://api.bilibili.com/x/web-interface/view?aid=${e[1]}`),r=lodash.get(i,"data",{}),{bvid:a,title:c}=r,s=`av${e[1]}`;return{name:c||s,description:"av号跳转",indexer:s,link:`https://www.bilibili.com/av${e[1]}`,extraActions:a?await o("BV号",a,s):[]}}},{pattern:/^bv([\da-zA-Z]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,6629)),i=await t(`https://api.bilibili.com/x/web-interface/view?bvid=${e[1]}`),r=lodash.get(i,"data",{}),{aid:a,title:c}=r,s=`BV${e[1]}`;return{name:c||s,description:"BV号跳转",indexer:s,link:`https://www.bilibili.com/BV${e[1]}`,extraActions:a?await o("av号",`av${a}`,s):[]}}}],r={name:"launchBar.actions.IDSearch",displayName:"搜索栏 - 视频跳转",async setup(){const{addData:e}=await Promise.resolve().then(n.bind(n,6940)),{LaunchBarActionProviders:t}=await Promise.resolve().then(n.bind(n,40));e(t,(e=>{e.push({name:"IDSearchProvider",getActions:async e=>{const t=[];for(const n of i){const o=e.match(n.pattern);if(o){const{name:e,description:i="",indexer:r,link:a,extraActions:c=[]}=await n.getActions(o);t.push({name:e,icon:"mdi-open-in-new",indexer:r,description:i,action:()=>{window.open(a,"_blank")},order:0},...c)}}return t}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}},8433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractPluginFromComponent:()=>d,installPlugin:()=>s,loadAllPlugins:()=>f,loadPlugin:()=>m,plugins:()=>c,pluginsMap:()=>a,uninstallPlugin:()=>l});var o=n(997),i=n(6940),r=n(8977);const a={},c=lodash.once((()=>{const e=n(4353);return e.keys().map((t=>{const n=e(t);if("plugin"in n){const e=n.plugin;return a[e.name]=e,e}})).filter((e=>void 0!==e))}))(),s=async e=>{const{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,8036));let o;try{o=t(e)}catch(e){throw new Error("无效的插件代码",e)}const{settings:i}=await Promise.resolve().then(n.bind(n,5600)),r=i.userPlugins[o.name];if(r)return r.code=e,r.name=o.name,r.displayName=o.displayName||o.name,{metadata:o,message:`已更新插件'${o.displayName}', 刷新后生效`};const a={code:e,displayName:o.name,...o};return i.userPlugins[o.name]=a,c.push(a),{metadata:o,message:`已安装插件'${o.displayName||o.name}', 刷新后生效`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),i=Object.entries(t.userPlugins).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的插件`);const[r,a]=i;return delete t.userPlugins[r],(0,o.deleteValue)(c,(e=>e.name===r)),{metadata:a,message:`已卸载插件'${a.displayName}', 刷新后生效`}},d=e=>e.plugin?{name:`${e.name}.plugin`,displayName:`${e.displayName} - 附带插件`,...e.plugin}:null,m=async e=>{if(e.setup){const{pluginLoadTrace:t}=await Promise.resolve().then(n.bind(n,9372));await t(e);const{coreApis:o}=await Promise.resolve().then(n.bind(n,4612));return e.setup({coreApis:o,addData:i.addData,addHook:r.addHook,registerData:i.registerData,registerAndGetData:i.registerAndGetData,getHook:r.getHook})}return null},f=async e=>{const{settings:t,getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,5600)),{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,1296));for(const t of e){const e=d(t);e&&c.push(e)}for(const[e,n]of Object.entries(t.userPlugins)){const{code:t}=n;let o;try{o=i(t)}catch(t){console.error("从代码加载用户插件失败。代码可能包含语法错误或执行时产生了异常",{pluginName:e,error:t});continue}c.push(o)}return Promise.allSettled(c.map(m)).then((async()=>{if(o().devMode){const{pluginLoadTime:e,pluginResolveTime:t}=await Promise.resolve().then(n.bind(n,9372)),{logStats:o}=await Promise.resolve().then(n.bind(n,8535));o("plugins block",e),o("plugins resolve",t)}}))}},1154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserStyleMode:()=>r,installStyle:()=>c,styles:()=>a,uninstallStyle:()=>s});var o=n(5600),i=n(997);let r=function(e){return e.Default="default",e.Instant="instant",e.Important="important",e}({});const a=Object.values(o.settings.userStyles),c=async e=>{try{let t;const{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,8036));t="string"==typeof e?i(e):e;const{name:c,style:s,displayName:l,mode:d}=t,{removeStyle:m,addImportantStyle:f,addStyle:u}=await Promise.resolve().then(n.bind(n,9860)),p=o.settings.userStyles[c];if(p)Object.assign(p,t),m(c);else{const e={displayName:c,mode:r.Default,...t};o.settings.userStyles[c]=e,a.push(e)}return d===r.Important?f(s,c):u(s,c),{metadata:t,message:`已安装样式'${l||c}'`}}catch(e){throw new Error("无效的样式代码",{cause:e})}},s=async e=>{const t=Object.entries(o.settings.userStyles).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!t)throw new Error(`没有找到与名称'${e}'相关联的样式`);const{removeStyle:r}=await Promise.resolve().then(n.bind(n,9860)),[c,{displayName:s}]=t;return r(c),delete o.settings.userStyles[c],(0,i.deleteValue)(a,(e=>e.name===c)),{metadata:t,message:`已卸载样式'${s}'`}}},9047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncButton:()=>s,CheckBox:()=>h,ColorPicker:()=>E,DefaultWidget:()=>mt,DpiImage:()=>M,ImagePicker:()=>R,ImageViewer:()=>Y,MiniToast:()=>ft.Z,ProgressBar:()=>ne,ProgressRing:()=>se,RadioButton:()=>ue,RangeInput:()=>we,ScrollTrigger:()=>Be,SwitchBox:()=>De.Z,TabControl:()=>Oe,TextArea:()=>qe,TextBox:()=>Ze.default,VButton:()=>r.default,VDropdown:()=>Xe,VEmpty:()=>ot,VIcon:()=>o.default,VLoading:()=>it.default,VPopup:()=>He.default,VSlider:()=>rt.default,showImage:()=>K});var o=n(1282),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({attrs:{disabled:e.disabled||e.internalDisabled},on:{click:e.onClick}},"VButton",e.$attrs,!1),e.listeners),[e._t("default",(function(){return[e._v("Button")]}))],2)};i._withStripped=!0;var r=n(3932);const a=Vue.extend({components:{VButton:r.default},props:{disabled:{type:Boolean,default:!1}},data:()=>({internalDisabled:!1}),computed:{listeners(){return lodash.omit(this.$listeners,"click")},onClick(){var e=this;return async function(){try{e.internalDisabled=!0;for(var t=arguments.length,n=new Array(t),o=0;oPromise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,1282)).then((e=>e.default))},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},iconPosition:{type:String,default:"left"},checkedIcon:{type:String,default:"mdi-checkbox-marked-circle"},notCheckedIcon:{type:String,default:"mdi-checkbox-blank-circle-outline"}}});var m=n(8332),f=n.n(m),u=n(8915),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,c.Z)(d,l,[],!1,null,"07bbf374",null).exports;var g=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-color-picker"},[t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.popupOpened=!e.popupOpened,expression:"() => (popupOpened = !popupOpened)"}],ref:"button",staticClass:"selected-color",style:{backgroundColor:e.color,width:e.size+"px",height:e.size+"px"},attrs:{role:"button",tabindex:"0"}}),e._v(" "),t("VPopup",{staticClass:"picker",class:{compact:e.compact},style:{"--offset":e.popupOffset+"px"},attrs:{"esc-close":"","auto-close":!1,"trigger-element":e.$refs.button},model:{value:e.popupOpened,callback:function(t){e.popupOpened=t},expression:"popupOpened"}},[t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("预设颜色")]),e._v(" "),t("div",{staticClass:"colors"},e._l(e.colors,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectHexColor(n),expression:"() => selectHexColor(c)"}],key:n,staticClass:"color",style:{backgroundColor:n},attrs:{role:"radio",tabindex:e.popupOpened?0:-1}})})),0)]),e._v(" "),t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("调色")]),e._v(" "),t("div",{staticClass:"bars"},[e.isRGB?[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("R")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.red},on:{change:function(t){return e.wrapper.change("red",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.redGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2466330035)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.red)},on:{change:function(t){return e.wrapper.change("red",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("G")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.green},on:{change:function(t){return e.wrapper.change("green",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.greenGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2962781435)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.green)},on:{change:function(t){return e.wrapper.change("green",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.blue},on:{change:function(t){return e.wrapper.change("blue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.blueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,660815582)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.blue)},on:{change:function(t){return e.wrapper.change("blue",t)}}})],1)]:[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("H")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:359.9,value:e.wrapper.hue},on:{change:function(t){return e.wrapper.change("hue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.hueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"4","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.hue)},on:{change:function(t){return e.wrapper.change("hue",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("S")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.saturation},on:{change:function(t){return e.wrapper.change("saturationv",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.saturationGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.saturation)},on:{change:function(t){return e.wrapper.change("saturationv",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.brightness},on:{change:function(t){return e.wrapper.change("value",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.brightnessGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.brightness)},on:{change:function(t){return e.wrapper.change("value",t)}}})],1)]],2)]),e._v(" "),t("div",{staticClass:"info item-group"},[t("VButton",{staticClass:"toggle-mode",attrs:{disabled:!e.popupOpened,type:"transparent",title:e.isRGB?"切换至HSB":"切换至RGB"},on:{click:function(t){e.isRGB=!e.isRGB}}},[e._v("\n "+e._s(e.isRGB?"切换至HSB":"切换至RGB")+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"color-preview",style:{backgroundColor:e.wrapper.hex}}),e._v(" "),t("TextBox",{staticClass:"hex",attrs:{disabled:!e.popupOpened,text:e.wrapper.hex,"change-on-blur":""},on:{change:function(t){return e.selectHexColor(t)}}})],1),e._v(" "),t("div",{staticClass:"operations item-group",on:{click:function(t){e.popupOpened=!e.popupOpened}}},[t("VButton",{staticClass:"cancel",attrs:{disabled:!e.popupOpened},on:{click:function(t){return e.reset()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{staticClass:"ok",attrs:{disabled:!e.popupOpened,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1)])],1)};g._withStripped=!0;var F=n(4654),v=n.n(F);const w=JSON.parse('["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#2196F3","#00A0D8","#00ACC1","#26A69A","#81C784","#9CCC65","#FF9800","#FF7043","#A1887F","#757575","#78909C"]'),y=e=>{let t=new(v())(e);const n={get color(){return t},set color(e){t=e,this.updateProps()},change(e,n){"string"==typeof n&&(n=parseFloat(n),Number.isNaN(n))||(this.color=t[e](n))},updateProps(){this.red=t.red(),this.green=t.green(),this.blue=t.blue(),this.hue=t.hue(),this.saturation=t.saturationv(),this.brightness=t.value(),this.hex=t.hex(),this.hueGradient=`linear-gradient(to right, ${t.hue(0).hex()}, ${t.hue(60).hex()}, ${t.hue(120).hex()}, ${t.hue(180).hex()}, ${t.hue(240).hex()}, ${t.hue(300).hex()}, ${t.hue(0).hex()})`,this.saturationGradient=`linear-gradient(to right, ${t.saturationv(0).hex()}, ${t.saturationv(100).hex()})`,this.brightnessGradient=`linear-gradient(to right, ${t.value(0).hex()}, ${t.value(100).hex()})`,this.redGradient=`linear-gradient(to right, ${t.red(0).hex()}, ${t.red(255).hex()})`,this.greenGradient=`linear-gradient(to right, ${t.green(0).hex()}, ${t.green(255).hex()})`,this.blueGradient=`linear-gradient(to right, ${t.blue(0).hex()}, ${t.blue(255).hex()})`}};return n.updateProps(),n},x=Vue.extend({name:"ColorPicker",components:{TextBox:()=>Promise.resolve().then(n.bind(n,5486)).then((e=>e.default)),VSlider:()=>Promise.resolve().then(n.bind(n,2727)).then((e=>e.default)),VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,6355)).then((e=>e.default))},model:{prop:"color",event:"change"},props:{color:{type:String,default:"#000000",required:!0},size:{type:Number,default:24,required:!1},compact:{type:Boolean,default:!1},popupOffset:{type:Number,default:0}},data(){return{popupOpened:!1,wrapper:y(this.color),colors:w,isRGB:!1}},watch:{popupOpened(e){e&&(document.body.addEventListener("mousedown",(e=>{this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("mouseup",(()=>{this.popupOpened=!1}),{once:!0})})),document.body.addEventListener("touchstart",(e=>{1!==e.touches.length||this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("touchend",(()=>{this.popupOpened=!1}),{once:!0})})))}},methods:{ok(){this.$emit("change",this.wrapper.hex)},reset(){this.wrapper.color=new(v())(this.color)},selectHexColor(e){try{const t=new(v())(e,"hex");this.wrapper.color=t}catch(e){}},fixed:e=>(Math.round(10*e)/10).toString(),int:e=>Math.round(e).toString()}});var k=n(5314),C=n.n(k),A={insert:"head",singleton:!1};f()(C(),A);C().locals;const E=(0,c.Z)(x,g,[],!1,null,"5b939efc",null).exports;var B=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("img",e._b({class:{placeholder:e.isPlaceholderActive},attrs:{width:e.width,height:e.height,srcset:e.srcset,src:e.actualSrc}},"img",e.$attrs,!1))};B._withStripped=!0;var D=n(997),z=n(6058);const I=Vue.extend({name:"DpiImage",props:{size:{type:[Object,Number],required:!0},src:{type:String,required:!0},intersection:{type:Object,default:()=>({})},placeholderImage:{type:Boolean,default:!1}},data:()=>({srcset:null,actualSrc:z.EmptyImageUrl,isPlaceholderActive:!1}),computed:{width(){return"object"==typeof this.size&&"width"in this.size?this.size.width:"number"==typeof this.size?this.size:null},height(){return"object"==typeof this.size&&"height"in this.size?this.size.height:"number"==typeof this.size?this.size:null}},watch:{size(){this.sourceChange()},src(){this.sourceChange()}},mounted(){const e={rootMargin:"200px",...this.intersection},t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.calcSrc(),t.disconnect())}))}),e);t.observe(this.$el)},methods:{sourceChange(){this.actualSrc!==z.EmptyImageUrl&&null!==this.srcset&&this.calcSrc()},calcSrc(){const e=!this.src||!this.size;if(this.isPlaceholderActive=e&&this.placeholderImage,e)return this.srcset=null,void(this.placeholderImage?this.actualSrc="https://s1.hdslb.com/bfs/static/blive/live-web-center/static/img/no-cover.1ebe4d5.jpg":this.actualSrc=z.EmptyImageUrl);let{src:t}=this;if(t.startsWith("http:")&&(t=t.replace("http:","https:")),t.includes("//static.hdslb.com/images/member/noface.gif"))return this.srcset=t,void(this.actualSrc=t);this.srcset=(0,D.getDpiSourceSet)(t,this.size),this.actualSrc=t}}}),S=I;const M=(0,c.Z)(S,B,[],!1,null,null,null).exports;var P=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-image-picker"},[t("VButton",{ref:"pickButton",staticClass:"pick-button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[e._t("text",(function(){return[e._v(" 选择图片 ")]}))],2),e._v(" "),t("VPopup",{staticClass:"popup",attrs:{"trigger-element":e.$refs.pickButton},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel()}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("transition-group",{staticClass:"images",attrs:{name:"image-list",tag:"div",tabindex:"-1"}},e._l(e.images,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectImage(n),expression:"() => selectImage(i)"}],key:n.name,staticClass:"image",class:{selected:n.name===e.selectedImage.name},attrs:{title:n.name,tabindex:e.popupOpen?0:-1}},[t("img",{attrs:{width:"64",height:"64",src:n.url}})])})),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:0===e.images.length,expression:"images.length === 0"}],staticClass:"empty-tip"},[e._v("空空如也哦 = ̄ω ̄=")]),e._v(" "),t("div",{staticClass:"operations"},[t("VPopup",{staticClass:"add-image-popup",attrs:{tabindex:"-1",lazy:!1,"trigger-element":e.$refs.addButton},model:{value:e.addImagePopupOpen,callback:function(t){e.addImagePopupOpen=t},expression:"addImagePopupOpen"}},[t("div",{staticClass:"add-image-row"},[e._v("\n 名称:\n "),t("TextBox",{ref:"addImageInput",attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.name,callback:function(t){e.$set(e.newImage,"name",t)},expression:"newImage.name"}})],1),e._v(" "),t("div",{staticClass:"add-image-row"},[e._v("\n 链接:\n "),t("TextBox",{attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.url,callback:function(t){e.$set(e.newImage,"url",t)},expression:"newImage.url"}})],1),e._v(" "),t("div",{staticClass:"add-image-row buttons"},[t("VButton",{attrs:{disabled:!e.addImagePopupOpen},on:{click:function(t){e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 取消\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.newImage.url||!e.newImage.name,type:"primary"},on:{click:function(t){e.addImage(e.newImage),e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 确定\n ")])],1)]),e._v(" "),t("VButton",{staticClass:"clear-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.clearImage()}}},[e._v("\n 清除选择\n ")]),e._v(" "),t("VButton",{ref:"addButton",staticClass:"add-image",attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.openAddImagePopup()}}},[e._v("\n 添加\n ")]),e._v(" "),t("VButton",{staticClass:"edit-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.editImage()}}},[e._v("\n 编辑\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.selectedImage.name},on:{click:function(t){e.removeImage(e.selectedImage),e.clearImage()}}},[e._v("\n 删除\n ")])],1),e._v(" "),t("div",{staticClass:"operations"},[t("VButton",{attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.cancel()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.popupOpen,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1),e._v(" "),e.addImagePopupOpen?t("div",{staticClass:"mask"}):e._e()],1)],1)};P._withStripped=!0;const O=[],V=Vue.extend({name:"ImagePicker",components:{VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,6355)).then((e=>e.default)),TextBox:()=>Promise.resolve().then(n.bind(n,5486)).then((e=>e.default))},model:{prop:"image",event:"change"},props:{image:{type:Object,required:!0}},data:()=>({images:O,popupOpen:!1,addImagePopupOpen:!1,selectedImage:{name:"",url:""},newImage:{name:"",url:""}}),methods:{addImage:e=>{if(!e.name||!e.url)return;const t=O.find((t=>t.name===e.name));t?t.url=e.url:O.unshift(e)},removeImage:e=>{const t="string"==typeof e?e:e.name,n=O.findIndex((e=>e.name===t));-1!==n&&O.splice(n,1)},ok(){this.$emit("change",this.selectedImage),this.popupOpen=!1},cancel(){this.selectedImage=this.image,this.popupOpen=!1},selectImage(e){this.selectedImage.name===e.name?this.selectedImage={name:"",url:""}:this.selectedImage=e},clearImage(){this.selectedImage={name:"",url:""}},clearNewImage(){this.newImage={name:"",url:""}},editImage(){this.newImage=this.selectedImage,this.openAddImagePopup()},async openAddImagePopup(){this.addImagePopupOpen=!this.addImagePopupOpen,await this.$nextTick(),this.$refs.addImageInput.$refs.input.focus()}}});var T=n(3992),L=n.n(T),j={insert:"head",singleton:!1};f()(L(),j);L().locals;const R=(0,c.Z)(V,P,[],!1,null,"7b32c90b",null).exports;var N=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"image-viewer-container",class:{open:e.open},on:{click:e.detectOutside}},[t("div",{ref:"viewer",staticClass:"image-viewer"},[t("div",{staticClass:"image-container"},[e.image?t("img",{staticClass:"image",attrs:{src:e.image}}):e._e()]),e._v(" "),t("div",{staticClass:"close image-viewer-icon",attrs:{title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{size:48,icon:"mdi-close"}})],1),e._v(" "),t("a",{staticClass:"copy-link image-viewer-icon",attrs:{target:"_blank",title:"复制原链接"},on:{click:function(t){return e.copyLink()}}},[e.copiedTimer?t("VIcon",{attrs:{size:48,icon:"mdi-check"}}):t("VIcon",{attrs:{size:48,icon:"mdi-link"}})],1),e._v(" "),t("a",{staticClass:"new-tab image-viewer-icon",attrs:{target:"_blank",title:"在新标签页打开"},on:{click:function(t){return e.newTab()}}},[t("VIcon",{attrs:{size:48,icon:"mdi-open-in-new"}})],1),e._v(" "),e.blobUrl?t("a",{staticClass:"download image-viewer-icon",attrs:{target:"_blank",title:"下载",href:e.blobUrl,download:e.filename}},[t("VIcon",{attrs:{size:48,icon:"mdi-download"}})],1):e._e()])])};N._withStripped=!0;var q=n(5600),Z=n(943),U=n(6629);const H=Vue.extend({components:{VIcon:o.default},props:{image:{type:String,required:!0}},data:()=>({filename:"",open:!1,blobUrl:"",keyHandler:null,copiedTimer:0}),watch:{async image(e){this.blobUrl&&URL.revokeObjectURL(this.blobUrl),e||(this.blobUrl="");const t=await(0,U.getBlob)(e);this.blobUrl=URL.createObjectURL(t),this.updateFilename()}},mounted(){this.keyHandler=e=>{"Escape"===e.key&&(this.open=!1)},document.addEventListener("keydown",this.keyHandler),(0,q.addComponentListener)("settingsPanel.filenameFormat",(()=>{this.updateFilename()}),!0)},beforeDestroy(){document.removeEventListener("keydown",this.keyHandler)},methods:{async copyLink(){await navigator.clipboard.writeText(this.image),this.copiedTimer&&window.clearTimeout(this.copiedTimer),this.copiedTimer=window.setTimeout((()=>{this.copiedTimer=0}),2e3)},newTab(){window.open(this.image,"_blank")},detectOutside(e){const t=this.$el,{viewer:n}=this.$refs;e.target!==t&&e.target!==n||(this.open=!1)},updateFilename(){const e=this.image;this.filename=e?(0,Z.getFriendlyTitle)(document.URL.includes("/www.bilibili.com/bangumi/"))+e.substring(e.lastIndexOf(".")):""}}});var W=n(7677),G=n.n(W),Q={insert:"head",singleton:!1};f()(G(),Q);G().locals;const Y=(0,c.Z)(H,N,[],!1,null,"8829ba14",null).exports;let X;const K=async e=>(X||await(async()=>(X=new Y({propsData:{image:"",open:!1}}).$mount(),document.body.insertAdjacentElement("beforeend",X.$el),X))(),setTimeout((()=>{X.image=e,X.open=!0})),X);var J=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-progress-bar"},[t("div",{staticClass:"progress",class:{transition:e.transition},style:{width:e.width}})])};J._withStripped=!0;const _=Vue.extend({name:"ProgressBar",props:{progress:{type:Number,default:50},min:{type:Number,default:0},max:{type:Number,default:100},transition:{type:Boolean,default:!1}},computed:{width(){let e=this.progress;e>this.max?e=this.max:ethis.max?e=this.max:e{de.has(e)?de.get(e).push({instance:t,uncheck:n}):de.set(e,[{instance:t,uncheck:n}])})),fe=Vue.extend({name:"RadioButton",components:{CheckBox:h},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},allowUncheck:{type:Boolean,default:!1},group:{type:String,default:""},checkedIcon:{type:String,default:"mdi-radiobox-marked"},notCheckedIcon:{type:String,default:"mdi-radiobox-blank"}},watch:{checked(e){if(e){const e=this.group,t=this.$el;let n;n=""===e?t.parentElement:e,de.get(n).forEach((e=>{let{instance:t,uncheck:n}=e;t!==this&&n()}))}}},mounted(){const e=this.group,t=this.$el;let n;n=me(""===e?t.parentElement:e),n(this,(()=>this.$emit("change",!1)))},methods:{emitChange(e){(this.checked&&this.allowUncheck||!this.checked)&&this.$emit("change",e)}}});const ue=(0,c.Z)(fe,le,[],!1,null,null,null).exports;var pe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-range-input"},[t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.start.toString()},on:{change:function(t){e.wrapper.start=t}}}),e._v(" "),e._t("separator",(function(){return[t("div",{staticClass:"default-separator"},[e._v("~")])]})),e._v(" "),t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.end.toString()},on:{change:function(t){e.wrapper.end=t}}})],2)};pe._withStripped=!0;const be=e=>({range:e.range,get start(){return this.range.start.toString()},set start(e){this.createNewRange(e,this.end)},get end(){return this.range.end.toString()},set end(e){this.createNewRange(this.start,e)},createNewRange(t,n){let o={start:t,end:n};e.validator&&(o=e.validator(o)),null!=o?(this.range=o,e.$emit("change",o)):this.range={start:this.range.start,end:this.range.end}}}),he=Vue.extend({name:"RangeInput",components:{TextBox:()=>Promise.resolve().then(n.bind(n,5486))},model:{prop:"range",event:"change"},props:{range:{type:Object,required:!0},validator:{type:Function,default:void 0}},data(){return{wrapper:be(this)}}});var ge=n(6566),Fe=n.n(ge),ve={insert:"head",singleton:!1};f()(Fe(),ve);Fe().locals;const we=(0,c.Z)(he,pe,[],!1,null,"b459c060",null).exports;var ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-scroll-trigger",on:{click:function(t){return e.trigger()}}},[e._t("default",(function(){return[t("VLoading")]}))],2)};ye._withStripped=!0;var xe=n(962);const ke=Vue.extend({components:{VLoading:()=>Promise.resolve().then(n.bind(n,3441)).then((e=>e.default))},props:{detectViewport:{type:Boolean,required:!1,default:!1}},data:()=>({isFirstLoad:!0,isViewportTriggerRunning:!1,parentLoadState:"none"}),async mounted(){const e=(0,xe.useScopedConsole)("ScrollTrigger"),t=this.$el,{visible:o}=await Promise.resolve().then(n.bind(n,1854));o(t,(async n=>{if(n.some((e=>e.intersectionRatio>0))){if(e.log("Intersection Observer trigger"),this.trigger(),!this.detectViewport&&!this.isFirstLoad&&this.isViewportTriggerRunning)return;for(this.isViewportTriggerRunning=!0;this.getVisibleStateByViewport(t);)if(await(0,D.delay)(500),"loaded"===this.parentLoadState){if(!this.getVisibleStateByViewport(t))break;e.log("is first load & viewport trigger"),this.trigger()}this.isFirstLoad=!1}}))},methods:{getElementToViewportBottomDistance:e=>document.documentElement.clientHeight-e.getBoundingClientRect().top,getVisibleStateByViewport(e){return Boolean(this.getElementToViewportBottomDistance(e)>-20)},setLoadState(e){this.parentLoadState=e},resetIsFirstLoad(){this.isFirstLoad=!0},trigger(){this.$emit("trigger")}}});var Ce=n(7818),Ae=n.n(Ce),Ee={insert:"head",singleton:!1};f()(Ae(),Ee);Ae().locals;const Be=(0,c.Z)(ke,ye,[],!1,null,null,null).exports;var De=n(8798),ze=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-tab-control"},[t("div",{staticClass:"default-header"},[e._t("tabs",(function(){return[t("div",{staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},attrs:{"data-count":n.count>0?n.count:null},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)]})),e._v(" "),t("div",{staticClass:"header-item"},[e._t("header-item")],2),e._v(" "),null!==e.moreLink&&void 0!==e.moreLink?t("a",{staticClass:"be-more-link",attrs:{href:"function"==typeof e.moreLink?e.moreLink(e.selectedTab):e.moreLink,target:"_blank"}},[t("VButton",{attrs:{disabled:!e.moreLink,round:""}},[e._t("more-link",(function(){return[e._v("\n 查看更多\n "),t("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})]}))],2)],1):e._e()],2),e._v(" "),e._t("content",(function(){return[t("div",{staticClass:"default-content"},[t("transition",{attrs:{name:"content-transition"}},[t(e.selectedTab.component,e._b({tag:"component"},"component",e.selectedTab.propsData,!1))],1)],1)]}))],2)};ze._withStripped=!0;const Ie=Vue.extend({name:"TabControl",components:{VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,1282)).then((e=>e.default))},model:{prop:"link",event:"change"},props:{tabs:{type:Array,required:!0,validator:e=>0!==e.length},defaultTab:{type:String,required:!1,default:""},link:{type:String,required:!1,default:null},moreLink:{type:[String,Function],default:null}},data(){const e=this.tabs;return{selectedTabName:e.find((e=>e.name===this.defaultTab))?.name??e[0].name}},computed:{selectedTab(){return this.tabs.find((e=>e.name===this.selectedTabName))}},mounted(){this.$emit("change",this.selectedTab.activeLink)},methods:{selectTab(e){this.selectedTabName!==e.name?(this.selectedTabName=e.name,e.count=0,this.$emit("change",this.selectedTab.activeLink)):e.activeLink&&window.open(e.activeLink,"_blank")}}});var Se=n(3543),Me=n.n(Se),Pe={insert:"head",singleton:!1};f()(Me(),Pe);Me().locals;const Oe=(0,c.Z)(Ie,ze,[],!1,null,null,null).exports;var Ve=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-text-area",attrs:{role:"text"}},[t("textarea",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"textarea",e.$attrs,!1),e.restListeners))])};Ve._withStripped=!0;var Te=n(8491);const Le=Vue.extend({name:"TextArea",mixins:[Te.t]});var je=n(2407),Re=n.n(je),Ne={insert:"head",singleton:!1};f()(Re(),Ne);Re().locals;const qe=(0,c.Z)(Le,Ve,[],!1,null,null,null).exports;var Ze=n(5486),Ue=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"hit",rawName:"v-hit",value:e.hit,expression:"hit"}],staticClass:"be-dropdown",class:{disabled:e.disabled,round:e.round},attrs:{role:"combobox",tabindex:e.disabled?-1:0,"aria-disabled":e.disabled}},[t("div",{ref:"selected",staticClass:"selected"},[t("div",{staticClass:"selected-item"},[null!==e.value&&void 0!==e.value?e._t("item",(function(){return[e._v("\n "+e._s(e.value.displayName)+"\n ")]}),{item:e.value}):e._e()],2),e._v(" "),t("div",{staticClass:"arrow",class:{open:e.popupOpen}},[e._t("arrow",(function(){return[t("div",{staticClass:"default-arrow"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"}},[t("defs",[t("clipPath",{attrs:{id:"clip-arrow-down"}},[t("rect",{attrs:{width:"24",height:"24"}})])]),e._v(" "),t("g",{attrs:{id:"arrow-down","clip-path":"url(#clip-arrow-down)"}},[t("path",{attrs:{id:"Path_1","data-name":"Path 1",d:"M2,17,12,7,22,17",transform:"translate(24 25) rotate(180)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}})])])])]}))],2)]),e._v(" "),t("VPopup",{ref:"popup",staticClass:"dropdown-popup",attrs:{lazy:!1,"trigger-element":e.$refs.selected},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.selectItem(e.value)}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(e.items,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectItem(n),expression:"() => selectItem(item)"}],key:e.keyMapper(n),staticClass:"bex-dropdown-item",attrs:{tabindex:e.popupOpen?0:-1}},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)})),0)],1)};Ue._withStripped=!0;var He=n(6355);const We=Vue.extend({name:"VDropdown",components:{VPopup:He.default},model:{prop:"value",event:"change"},props:{value:{required:!0},items:{type:Array,required:!0},keyMapper:{type:Function,default:e=>e.name},round:{type:Boolean,default:!1}},data:()=>({popupOpen:!1}),computed:{disabled(){return Boolean(this.$attrs.disabled)}},watch:{disabled(e){e&&(this.popupOpen=!1)}},created(){null!==this.value&&void 0!==this.value||this.$emit("change",this.items[0]||"")},methods:{selectItem(e){e!==this.value&&this.$emit("change",e),this.popupOpen=!1,this.$el.focus()},hit(e){if(this.disabled)return;const t=this.$refs.popup.$el,n=e.target;t===n||t.contains(n)||(this.popupOpen=!this.popupOpen)}}});var Ge=n(6539),Qe=n.n(Ge),Ye={insert:"head",singleton:!1};f()(Qe(),Ye);Qe().locals;const Xe=(0,c.Z)(We,Ue,[],!1,null,"6b51ccd4",null).exports;var Ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-empty"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};Ke._withStripped=!0;var Je=n(6940);const[_e]=(0,Je.registerAndGetData)("vEmpty",{content:"空空如也哦 = ̄ω ̄="}),$e=Vue.extend({name:"VEmpty",data:()=>({config:_e})});var et=n(6105),tt=n.n(et),nt={insert:"head",singleton:!1};f()(tt(),nt);tt().locals;const ot=(0,c.Z)($e,Ke,[],!1,null,null,null).exports;var it=n(3441),rt=n(2727),at=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({staticClass:"default-widget"},"VButton",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"widget-icon"},[e._t("icon",(function(){return[t("VIcon",{attrs:{type:e.iconType,icon:e.icon}})]}))],2),e._v(" "),t("div",{staticClass:"widget-name"},[e._t("default",(function(){return[e._v(e._s(e.name))]}))],2)])};at._withStripped=!0;const ct=Vue.extend({components:{VIcon:o.default,VButton:r.default},props:{name:{type:String,default:""},icon:{type:String,default:""},iconType:{type:String,default:""}}});var st=n(6676),lt=n.n(st),dt={insert:"head",singleton:!1};f()(lt(),dt);lt().locals;const mt=(0,c.Z)(ct,at,[],!1,null,"20e1bedd",null).exports;var ft=n(7864)},2266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initMdiStyle:()=>r});var o=n(1898),i=n.n(o);const r=()=>{const e=document.createElement("style");return e.id="be-mdi",e.innerHTML=i(),e}},8491:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o=Vue.extend({model:{prop:"text",event:"change"},props:{text:{type:String,required:!1,default:""},changeOnBlur:{type:Boolean,required:!1,default:!1},validator:{type:Function,default:void 0}},data(){return{composing:!1,restListeners:lodash.omit(this.$listeners,"change","input","compositionstart","compositionend")}},methods:{emitChange(){let{value:e}=this.$refs.input;this.validator&&(e=this.validator(e,this.text),this.changeOnBlur&&(this.$refs.input.value=e)),e!==this.text&&this.$emit("change",e)},input(){this.changeOnBlur||this.composing||this.emitChange()},change(){this.changeOnBlur&&!this.composing&&this.emitChange()},compositionStart(){this.composing=!0},compositionEnd(){this.composing=!1,this.input()},focus(){this.$refs.input.focus()}}})},6433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compilationInfo:()=>m});var o=n(113);const i="the1812",r="cdn.jsdelivr.net",a={name:"jsDelivr",owner:i,host:r,stableClient:`https://${r}/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js`,previewClient:`https://${r}/gh/the1812/Bilibili-Evolved@preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${r}/npm/lodash@4.17.21/lodash.min.js`,protobuf:`https://${r}/npm/protobufjs@6.10.1/dist/light/protobuf.min.js`,jszip:`https://${r}/npm/jszip@3.7.1/dist/jszip.min.js`,sortable:`https://${r}/npm/sortablejs@1.14.0/Sortable.min.js`,mdi:`https://${r}/gh/the1812/Bilibili-Evolved@master/docs/static/mdi/mdi.css`,streamsaver:`https://${r}/npm/streamsaver@2.0.6/StreamSaver.min.js`,ffmpeg:{worker:`https://${r}/npm/@ffmpeg/ffmpeg@0.12.4/dist/umd/814.ffmpeg.js`,core:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.js`,wasm:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.wasm`}},smallLogo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo-small.png`,logo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo.png`,root:(e,t)=>`https://${r}/gh/${t||i}/Bilibili-Evolved@${e}/`},c="the1812",s="raw.githubusercontent.com",l=a,d={github:{name:"GitHub",owner:c,host:s,stableClient:`https://${s}/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js`,previewClient:`https://${s}/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${s}/lodash/lodash/4.17.21/dist/lodash.min.js`,protobuf:`https://${s}/protobufjs/protobuf.js/v6.10.1/dist/light/protobuf.min.js`,jszip:`https://${s}/Stuk/jszip/v3.7.1/dist/jszip.min.js`,sortable:`https://${s}/SortableJS/Sortable/1.14.0/Sortable.min.js`,mdi:"https://the1812.github.io/Bilibili-Evolved/static/mdi/mdi.css",streamsaver:`https://${s}/jimmywarting/StreamSaver.js/2.0.6/StreamSaver.js`,ffmpeg:a.library.ffmpeg},smallLogo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo-small.png`,logo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo.png`,root:(e,t)=>`https://${s}/${t||c}/Bilibili-Evolved/${e}/`},jsDelivr:a},m={...{year:(new Date).getFullYear(),version:o.version,altCdn:l,allCdns:d},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",branch:"master-cdn",nearestTag:"v2.8.8",versionWithTag:"v2.8.8-71-g3fed018af"}},6990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"switch-options",class:{"small-size":e.smallSize,grid:!e.popupMode}},[e.popupMode?[t("VButton",{ref:"button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[t("VIcon",{staticClass:"switch-icon",attrs:{icon:"mdi-checkbox-marked-circle-outline",size:e.smallSize?16:22}}),e._v("\n "+e._s(e.options.optionDisplayName)+"\n ")],1),e._v(" "),t("VPopup",{staticClass:"switch-options-popup widgets-popup",attrs:{"trigger-element":e.$refs.button,"esc-close":"","auto-destroy":""},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]:[t("div",{staticClass:"switch-options-grid"},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]],2)};o._withStripped=!0;var i=n(9047),r=n(5600);const a=Vue.extend({name:"SwitchOptions",components:{VPopup:i.VPopup,VButton:i.VButton,VIcon:i.VIcon,CheckBox:i.CheckBox,RadioButton:i.RadioButton},props:{options:{type:Object,required:!0},smallSize:{type:Boolean,default:!1},popupMode:{type:Boolean,default:!0}},data(){const{componentName:e}=this.options;return{popupOpen:!1,componentOptions:(0,r.getComponentSettings)(e).options}},computed:{mergedSwitchProps(){return{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline",...this.options.switchProps}}},watch:{options(){this.updateColumnsCount()}},mounted(){this.updateColumnsCount()},methods:{updateColumnsCount(){const e=this.$el,t=Math.ceil(Object.keys(this.options.switches).length/12);e.style.setProperty("--columns",t.toString())},isDim(e){return"checked"===this.options.dimAt||void 0===this.options.dimAt?this.componentOptions[`switch-${e}`]:"notChecked"===this.options.dimAt&&!this.componentOptions[`switch-${e}`]}}});var c=n(8332),s=n.n(c),l=n(4314),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},5247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{staticClass:"check-all-updates",attrs:{disabled:e.disabled},on:{click:function(t){return e.checkUpdates()}}},[t("VIcon",{attrs:{size:16,icon:"mdi-cloud-sync-outline"}}),e._v("\n 立即检查所有更新\n")],1)};o._withStripped=!0;var i=n(6812),r=n(9047),a=n(1206);const c=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon},data:()=>({disabled:!1}),methods:{async checkUpdates(){try{this.disabled=!0;const e=i.Toast.info("正在检查更新...","检查所有更新");await(0,a.forceCheckUpdateAndReload)(),e.close()}finally{this.disabled=!1}}}});var s=n(8332),l=n.n(s),d=n(1387),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"76652ef2",null).exports},2555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bisector-dialog-content-container"},[t("div",{staticClass:"bisector-dialog-content-text"},[e._v("\n 组件二等分进行中,预计剩余\n "),t("b",{staticStyle:{color:"var(--theme-color)"}},[e._v(e._s(e.rouge)+" ")]),e._v("轮次,请确认当前情况:\n ")]),e._v(" "),t("div",{staticClass:"bisector-dialog-button-group"},[t("VButton",{on:{click:e.onGood}},[e._v("正常")]),e._v(" "),t("VButton",{on:{click:e.onBad}},[e._v("不正常")]),e._v(" "),t("VButton",{attrs:{type:"primary"},on:{click:e.onAbort}},[e._v("终止")])],1),e._v(" "),t("div",{staticClass:"bisector-dialog-content-text weak"},[e._v("\n *可以点击×号关闭对话框,刷新页面后,会再次询问\n ")])])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9047);const c=r().extend({components:{VButton:a.VButton},props:{rouge:{type:Number,required:!0},onAbort:{type:Function,default:none},onGood:{type:Function,default:none},onBad:{type:Function,default:none}}});var s=n(8332),l=n.n(s),d=n(6657),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"31cf1990",null).exports},8526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v("\n 组件二等分\n "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1)])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9047);const c=r().extend({components:{VIcon:a.VIcon},data:()=>({peek:!1}),watch:{peek(e){this.$el.closest(".be-dialog").style.opacity=e?"0.1":"1"}}});var s=n(8332),l=n.n(s),d=n(7209),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"386ddf8e",null).exports},8521:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"launch-bar"},[t("div",{staticClass:"input-area"},[t("div",{staticClass:"launch-bar-form"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"input",staticClass:"input",attrs:{type:"text",autocomplete:"off",placeholder:e.recommended.word},domProps:{value:e.keyword},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnter.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),e.handleUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),e.handleDown.apply(null,arguments))}],input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),t("button",{staticClass:"submit",attrs:{title:"执行",tabindex:"-1"},on:{click:e.handleEnter}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)])]),e._v(" "),t("div",{ref:"list",staticClass:"launch-bar-suggest-list"},[e.isHistory?t("div",{staticClass:"launch-bar-history-list"},[0===e.actions.length?t("div",{staticClass:"history-empty suggest-item disabled",attrs:{tabindex:"0"}},[e._v("\n 暂无搜索历史\n ")]):e._e(),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){o===e.actions.length-1&&e.onClearHistory(),e.onAction(n)}}})}))],2):e._e(),e._v(" "),e.isHistory?e._e():t("div",{staticClass:"launch-bar-action-list"},[0===e.actions.length&&e.noActions?t("VEmpty",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}):e._e(),e._v(" "),0!==e.actions.length||e.noActions?e._e():t("VLoading",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){return e.onAction(n)}}})}))],2)])])};o._withStripped=!0;var i=n(7942),r=n(9047),a=n(6940),c=n(8689),s=n(997),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-launch-bar-action-item suggest-item",attrs:{tabindex:"0",title:e.action.displayName||e.action.name,"data-indexer":e.action.indexer},on:{click:function(t){return t.target!==t.currentTarget?null:e.performAction(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.performAction(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:t.shiftKey?(t.preventDefault(),t.stopPropagation(),e.performDelete(t)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("previous-item",t.currentTarget))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("next-item",t.currentTarget))}]}},[t("div",{staticClass:"suggest-item-content"},[e.action.icon?t("div",{staticClass:"suggest-item-icon",on:{click:function(t){return e.performAction(t)}}},[t("VIcon",{attrs:{icon:e.action.icon,size:18}})],1):e._e(),e._v(" "),t("div",{staticClass:"suggest-item-title",on:{click:function(t){return e.performAction(t)}}},[e.action.content?t(e.action.content,{tag:"component",staticClass:"suggest-item-name",attrs:{name:e.action.name}}):t("div",{staticClass:"suggest-item-name"},[e._v("\n "+e._s(e.action.displayName||e.action.name)+"\n ")]),e._v(" "),e.action.description?t("div",{staticClass:"suggest-item-description"},[e._v("\n "+e._s(e.action.description)+"\n ")]):e._e()],1),e._v(" "),e.action.deleteAction?t("div",{staticClass:"suggest-item-delete",attrs:{title:"删除此项"},on:{click:function(t){return e.performDelete(t)}}},[t("VIcon",{attrs:{icon:"cancel",size:18}})],1):e._e()])])};l._withStripped=!0;const d=Vue.extend({components:{VIcon:r.VIcon},props:{action:{type:Object,required:!0}},methods:{async performAction(e){const{currentTarget:t}=e;await this.action.action(),this.$emit("action",t)},async performDelete(e){const{currentTarget:t}=e;this.action.deleteAction&&(await this.action.deleteAction(),this.$emit("delete-item",t))}}});var m=n(8332),f=n.n(m),u=n(7559),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;var h=n(6499);const g=(0,h.Z)(d,l,[],!1,null,null,null).exports;var F=n(40),v=n(5989),w=n(2100),y=n(197);const[x]=(0,a.registerAndGetData)(F.LaunchBarActionProviders,[v.searchProvider,w.dr]),k=e=>[...e].sort((0,y.ascendingSort)((e=>e.order??1/0))),C=(e,t)=>t.map((t=>{const n=`${e.name}.${t.name}`;return{...t,key:n,provider:e}}));const[A]=(0,a.registerAndGetData)("launchBar.recommended",{word:"搜索",href:"https://search.bilibili.com/"}),E=Vue.extend({components:{VIcon:r.VIcon,VLoading:r.VLoading,VEmpty:r.VEmpty,ActionItem:g},data:()=>({recommended:A,actions:[],keyword:"",noActions:!1}),computed:{isHistory(){return 0===this.keyword.length}},watch:{keyword(){this.getActions()}},async mounted(){this.getActions(),(0,s.matchUrlPattern)(/^https?:\/\/search\.bilibili\.com/)&&(0,c.select)("#search-keyword, .search-input-el").then((e=>{e&&(this.keyword=e.value,document.addEventListener("change",(e=>{e.target instanceof HTMLInputElement&&"search-keyword"===e.target.id&&(this.keyword=e.target.value)})))}))},methods:{getOnlineActions:lodash.debounce((async function(){const e=(await Promise.all(x.map((async e=>C(e,await e.getActions(this.keyword)))))).flat();if(this.isHistory)return;const t=new i.Z(e,{keys:["indexer","displayName","name","description","key"]}).search(this.keyword);console.log(t),this.actions=k(t.map((e=>e.item)).slice(0,12)),this.noActions=0===this.actions.length}),200),getActions:async function(){if(this.noActions=!1,this.isHistory)return void(this.actions=k(C(w.dr,await w.dr.getActions(this.keyword))));this.actions=[],this.getOnlineActions()},handleSelect(){this.$emit("close"),this.getActions()},async handleEnter(e){if(!e.isComposing){if(this.actions.length>0&&!this.isHistory){const[e]=this.actions;if(!0!==e.explicitSelect)return void e.action()}if(this.keyword)return(0,v.search)(this.keyword),void this.handleSelect();window.open(this.recommended.href,"_blank"),this.handleSelect()}},handleUp(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item:last-child").focus(),e.preventDefault())},handleDown(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item").focus(),e.preventDefault())},previousItem(e,t){0===t?this.focus():e.previousElementSibling.focus()},nextItem(e,t){t!==this.actions.length-1?e.nextElementSibling.focus():this.focus()},search:v.search,onDeleteItem(e,t){this.previousItem(e,t),this.getActions()},onClearHistory(){this.focus(),this.getActions()},onAction(){this.handleSelect()},focus(){this.$refs.input.focus()}}});var B=n(7293),D=n.n(B),z={insert:"head",singleton:!1};f()(D(),z);D().locals;const I=(0,h.Z)(E,o,[],!1,null,null,null).exports},2977:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"release-content"},[t("div",{staticClass:"release-content-markdown",domProps:{innerHTML:e._s(e.content)}}),e._v(" "),t("div",{staticClass:"release-content-actions"},[t("VButton",{on:{click:function(t){return e.$emit("dialog-close")}}},[e._v(" 取消 ")]),e._v(" "),e.detailsLink?t("a",{attrs:{href:e.detailsLink,target:"_blank"}},[t("VButton",[e._v(" 查看详情 ")])],1):e._e(),e._v(" "),e.updateUrl?t("a",{attrs:{href:e.updateUrl,target:"_blank"}},[t("VButton",{attrs:{type:"primary"}},[e._v(" 安装 ")])],1):e._e()],1)])};o._withStripped=!0;var i=n(398),r=n(9047);const a=`https://github.com/${i.defaultOwner}/Bilibili-Evolved/releases`,c=Vue.extend({components:{VButton:r.VButton},props:{content:{type:String,default:""},updateUrl:{type:String,default:""}},data:()=>({detailsLink:a})});var s=n(8332),l=n.n(s),d=n(6737),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},6387:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-description",domProps:{innerHTML:e._s(e.html)}})};o._withStripped=!0;var i=n(5600),r=n(7568);const a=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,i.getComponentSettings)(this.componentData),html:""}},async created(){this.html=await(0,r.getDescriptionHTML)(this.componentData)}});var c=n(8332),s=n.n(c),l=n(6046),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},9075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"be-settings"},[t("div",{staticClass:"sidebar"},[t("div",{ref:"widgetsIcon",class:{open:e.widgetsOpened},attrs:{title:"功能"},on:{click:[function(t){return t.shiftKey?e.theWorld.apply(null,arguments):null},function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return null;e.widgetsOpened=!e.widgetsOpened}],mouseover:function(t){return e.loadPanel("widgetsPanelPopup")}}},[t("VIcon",{attrs:{icon:"widgets",size:26}})],1),e._v(" "),t("div",{ref:"settingsIcon",class:{open:e.settingsOpened},attrs:{title:"设置"},on:{click:function(t){e.settingsOpened=!e.settingsOpened},mouseover:function(t){return e.loadPanel("settingsPanelPopup")}}},[t("VIcon",{attrs:{icon:"settings-outline",size:26}})],1)]),e._v(" "),t("VPopup",{ref:"widgetsPanelPopup",staticClass:"widgets-panel-popup",attrs:{"trigger-element":e.$refs.widgetsIcon,fixed:!0},model:{value:e.widgetsOpened,callback:function(t){e.widgetsOpened=t},expression:"widgetsOpened"}},[t("WidgetsPanel")],1),e._v(" "),t("VPopup",{ref:"settingsPanelPopup",staticClass:"settings-panel-popup",attrs:{"trigger-element":e.$refs.settingsIcon,"auto-close-predicate":e.settingsPanelClosePredicate,fixed:!0},model:{value:e.settingsOpened,callback:function(t){e.settingsOpened=t},expression:"settingsOpened"}},[t("SettingsPanel",{on:{close:function(t){e.settingsOpened=!1}}})],1)],1)};o._withStripped=!0;var i=n(9047),r=n(4612);const a={name:"SettingsContainer",components:{VPopup:i.VPopup,VIcon:i.VIcon,SettingsPanel:()=>Promise.resolve().then(n.bind(n,3385)).then((e=>e.default)),WidgetsPanel:()=>Promise.resolve().then(n.bind(n,855)).then((e=>e.default))},data:()=>({settingsOpened:!1,widgetsOpened:!1}),mounted(){GM_registerMenuCommand("功能",(()=>{this.loadPanel("widgetsPanelPopup"),this.widgetsOpened=!0,this.settingsOpened=!1})),GM_registerMenuCommand("设置",(()=>{this.loadPanel("settingsPanelPopup"),this.widgetsOpened=!1,this.settingsOpened=!0}))},methods:{theWorld(){r.externalApis.theWorld(0)},settingsPanelClosePredicate:e=>!dqa(".be-settings-extra-options").some((t=>t===e.target||t.contains(e.target))),loadPanel(e){const t=this.$refs[e];t&&((t?.loaded??1)||(t.loaded=!0))}}};var c=n(8332),s=n.n(c),l=n(6290),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},3385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ae});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-panel",class:{collapsed:e.collapsed,peek:e.peek}},[t("div",{staticClass:"settings-panel-header"},[t("VIcon",{attrs:{icon:"settings-outline"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("设置")]),e._v(" "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1),e._v(" "),t("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[t("VIcon",{attrs:{icon:"close",size:18}})],1)],1),e._v(" "),t("div",{staticClass:"settings-panel-content"},[t("div",{ref:"sidebarContainer",staticClass:"sidebar"},[t("ComponentTags",{ref:"componentTags",on:{change:function(t){e.searchFilter=t}}})],1),e._v(" "),t("div",{ref:"mainContainer",staticClass:"main"},[t("div",{ref:"componentList",staticClass:"component-list"},[t("div",{staticClass:"settings-panel-search-bar"},[t("TextBox",{staticClass:"settings-panel-search",attrs:{placeholder:"搜索"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}}),e._v(" "),e._l(e.searchBarActions,(function(n){return t("VButton",{key:n.key,attrs:{type:"transparent",icon:"",title:"function"==typeof n.title?n.title(e.searchBarContext):n.title,disabled:!!n.disabled&&n.disabled(e.searchBarContext)}},[t("VIcon",{attrs:{icon:n.icon,size:18},on:{click:function(t){return n.run(e.searchBarContext)}}})],1)}))],2),e._v(" "),e._l(e.renderedComponents,(function(n){return t("div",{key:n.name,on:{"!click":[function(t){return t.ctrlKey?(t.stopPropagation(),e.selectMultipleComponent(n)):null},function(t){return t.shiftKey?(t.stopPropagation(),e.selectMultipleComponent(n,!0)):null}]}},[t("ComponentSettings",{class:{selected:e.isComponentSelected(n.name)},attrs:{"component-data":n,"data-name":n.name},nativeOn:{click:function(t){return e.selectComponent(n)}}})],1)})),e._v(" "),0===e.renderedComponents.length?t("VEmpty"):e._e()],2)]),e._v(" "),t("VPopup",{ref:"detailsPopup",staticClass:"component-detail-panel",attrs:{"trigger-element":e.$refs.componentList,open:e.componentDetailOpen},on:{"popup-change":function(t){!t&&e.closePopper()}}},[e.selectedComponent?t("ComponentDetail",{key:e.selectedComponent.name,attrs:{"component-data":e.selectedComponent},on:{close:function(t){return e.closePopper()}}}):e._e()],1)],1)])};o._withStripped=!0;var i=n(9047),r=n(8977),a=n(997),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-settings",class:{virtual:e.virtual}},[e.virtual?e._e():[t("div",{staticClass:"component-settings-row"},[t("TagRing",{attrs:{tags:e.componentData.tags}}),e._v(" "),t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),!1!==e.componentData.configurable?t("SwitchBox",{model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}}):t("VIcon",{staticClass:"details-arrow",attrs:{icon:"right-arrow",size:18}})],1)]],2)};c._withStripped=!0;var s=n(9896),l=n.n(s),d=n(5600),m=n(8798),f=n(1282),u=n(1854),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tag-ring"},[t("svg",{attrs:{height:e.size,width:e.size}},e._l(e.tags,(function(n,o){return t("circle",{key:n.name,staticClass:"tag-stroke",style:e.getStyle(n,o),attrs:{fill:"transparent","stroke-dasharray":e.circumference+" "+e.circumference,"stroke-width":e.stroke,r:e.radius,cx:e.size/2,cy:e.size/2}})})),0)])};p._withStripped=!0;const b=Vue.extend({props:{tags:{type:Array,required:!0},size:{type:Number,default:18},stroke:{type:Number,default:3}},data(){const e=this.size/2-this.stroke;return{radius:e,circumference:2*e*Math.PI}},methods:{getStyle(e,t){return{strokeDashoffset:t/this.tags.length*this.circumference,stroke:e.color}}}});var h=n(8332),g=n.n(h),F=n(8106),v=n.n(F),w={insert:"head",singleton:!1};g()(v(),w);v().locals;var y=n(6499);const x=(0,y.Z)(b,p,[],!1,null,null,null).exports;var k=n(8590);const C=Vue.extend({components:{SwitchBox:m.Z,TagRing:x,VIcon:f.default},props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,d.getComponentSettings)(this.componentData),virtual:!1}},async mounted(){const e=this.$el,t=(0,a.dq)(".settings-panel-content .main");t?(0,u.visibleInside)(e,t,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.log("settings container not found, virtual scroll will be disabled!")},methods:{markdown:e=>l()(e),descriptionI18n(e){const{description:t,options:n}=e;if(!t){if(n&&Object.keys(n).length>0){return`${Object.keys(n).length}个选项`}return"暂无说明"}return"string"==typeof t?t:t[(0,k.getSelectedLanguage)()]||t["zh-CN"]}}}),A=C;var E=n(711),B=n.n(E),D={insert:"head",singleton:!1};g()(B(),D);B().locals;const z=(0,y.Z)(A,c,[],!1,null,null,null).exports;var I=n(8430),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-detail"},[e.settings?e._e():t("div",{staticClass:"component-not-found"},[e._v("\n 未找到组件'"+e._s(e.componentData.displayName)+"' ("+e._s(e.componentData.name)+"), 可能已被卸载.\n ")]),e._v(" "),e.settings?[t("div",{staticClass:"component-detail-header"},[t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),t("VIcon",{staticClass:"close",attrs:{icon:"close",size:18},on:{click:function(t){return e.$emit("close")}}})],1),e._v(" "),t("div",{staticClass:"component-detail-tags"},e._l(e.componentData.tags,(function(n){return t("div",{key:n.name,staticClass:"tag"},[t("div",{staticClass:"tag-color",style:{backgroundColor:n.color}}),e._v("\n "+e._s(n.displayName)+"\n ")])})),0),e._v(" "),e.componentData.options&&e.generatedOptions.length>0||e.componentData.extraOptions?[t("div",{staticClass:"component-detail-options"},[t("div",{staticClass:"component-detail-options-title"},[e._v("选项")]),e._v(" "),e._l(e.generatedOptions,(function([n,o]){return t("div",{key:n,staticClass:"generated-option"},[t("ComponentOption",{attrs:{name:n,"display-name":o.displayName,option:o,component:e.componentData}})],1)})),e._v(" "),e.componentData.extraOptions?t("div",{staticClass:"extra-option"},[t(e.componentData.extraOptions,{tag:"component",attrs:{"component-data":e.componentData}})],1):e._e(),e._v(" "),e._t("default")],2)]:e._e(),e._v(" "),!e.componentData.options||e.componentData.description?[t("ComponentDescription",{staticClass:"component-detail-description",attrs:{"component-data":e.componentData}})]:e._e(),e._v(" "),t("div",{staticClass:"component-detail-grow"}),e._v(" "),t("div",{staticClass:"component-detail-internal-data"},[e.componentData.commitHash?t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("Commit: "+e._s(e.componentData.commitHash.substring(0,9)))])]):e._e(),e._v(" "),t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("内部名称: "+e._s(e.componentData.name))]),e._v(" "),!1!==e.componentData.configurable&&e.componentActions.length>0?t("MiniToast",{staticClass:"extra-actions-wrapper",attrs:{placement:"bottom",trigger:"click"},scopedSlots:e._u([{key:"toast",fn:function(){return[t("div",{staticClass:"extra-actions-list"},e._l(e.componentActions,(function(n){return t("div",{key:n.name},[n.component?t(n.component,{tag:"component",attrs:{item:n,component:e.componentData}}):t("ComponentAction",{directives:[{name:"show",rawName:"v-show",value:!1!==n.visible,expression:"a.visible !== false"}],staticClass:"extra-action-item",attrs:{item:n,component:e.componentData}})],1)})),0)]},proxy:!0}],null,!1,2977217718)},[t("div",{staticClass:"extra-actions"},[t("VIcon",{attrs:{icon:"mdi-dots-vertical",size:16}})],1)]):e._e()],1)])]:e._e()],2)};S._withStripped=!0;var M=n(6387),P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"component-option",attrs:{"data-type":e.type}},[t("div",{staticClass:"option-name"},[e._v("\n "+e._s(e.displayName)+"\n ")]),e._v(" "),"text"===e.type||"number"===e.type?t("TextBox",{attrs:{"change-on-blur":"",validator:e.option.validator,text:e.value.toString(),placeholder:e.value.toString()},on:{change:function(t){"text"===e.type?e.valueChange(t):e.numberChange(t)}}}):e._e(),e._v(" "),"boolean"===e.type?t("SwitchBox",{attrs:{checked:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"color"===e.type?t("ColorPicker",{attrs:{compact:!0,"popup-offset":-95,color:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"range"===e.type?t("RangeInput",{attrs:{validator:e.option.validator,range:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"image"===e.type?t("ImagePicker",{attrs:{image:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"dropdown"===e.type?t("VDropdown",{attrs:{value:e.value,items:e.getDropdownItems(e.option.dropdownEnum),"key-mapper":e=>e},on:{change:function(t){return e.valueChange(t)}},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}],null,!1,3506243887)}):e._e(),e._v(" "),"switch"===e.type?t("SwitchOptions",{attrs:{"small-size":"","popup-mode":!1,options:e.option.defaultValue}}):e._e(),e._v(" "),"slider"===e.type?t("VSlider",e._b({attrs:{value:e.value},on:{change:function(t){return e.debounceValueChange(t)}}},"VSlider",e.option.slider,!1)):e._e(),e._v(" "),"unknown"===e.type?t("div",{staticClass:"unknown-option-type"},[e._v("未知的选项类型")]):e._e()],1)};P._withStripped=!0;function O(e){this.settings.options[this.name]=e,this.value=e}const V={name:"ComponentOption",components:{SwitchOptions:n(6990).default,TextBox:i.TextBox,SwitchBox:i.SwitchBox,ColorPicker:i.ColorPicker,RangeInput:i.RangeInput,VDropdown:i.VDropdown,ImagePicker:i.ImagePicker,VSlider:i.VSlider},props:{name:{type:String,required:!0},displayName:{type:String,default:""},option:{type:Object,required:!0},component:{type:Object,required:!0}},data(){const e=(0,d.getComponentSettings)(this.component);return{settings:e,value:e.options[this.name]}},computed:{type(){const e=this.option,{defaultValue:t}=e;switch(typeof t){case"boolean":return"boolean";case"number":return e.slider?"slider":"number";case"string":return e.color?"color":e.dropdownEnum?"dropdown":"text";case"object":return"start"in t&&"end"in t?"range":"name"in t&&"url"in t?"image":"name"in t&&"switches"in t?"switch":"unknown";default:return"unknown"}}},methods:{getDropdownItems:e=>{if(Array.isArray(e))return e;return Object.entries(e).filter((e=>{let[t]=e;const n=t.charCodeAt(0);return!(n>=48&&n<=57)})).map((e=>{let[,t]=e;return t}))},numberChange(e){const t=this.settings,n=parseFloat(e);Number.isNaN(n)||(t.options[this.name]=n,this.value=n)},debounceValueChange:lodash.debounce(O,200),valueChange:O}};var T=n(2104),L=n.n(T),j={insert:"head",singleton:!1};g()(L(),j);L().locals;const R=(0,y.Z)(V,P,[],!1,null,"730efac0",null).exports;var N=n(9133),q=n(6940),Z=n(7632);const U=[e=>({name:"uninstall",displayName:"卸载",icon:"mdi-trash-can-outline",visible:(0,d.isUserComponent)(e),action:async()=>{const{before:t,after:n}=(0,r.getHook)("userComponents.remove",e);await t(),await(0,Z.uninstallComponent)(e.name),await n()}})],[H]=(0,q.registerAndGetData)("settingsPanel.componentActions",U);var W=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-action",class:{disabled:e.disabled},attrs:{"aria-disabled":e.disabled,title:e.item.title},on:{click:e.handleClick}},[t("VIcon",{attrs:{icon:e.item.icon,size:16}}),e._v("\n "+e._s(e.item.displayName)+"\n")],1)};W._withStripped=!0;const G=Vue.extend({components:{VIcon:i.VIcon},props:{item:{type:Object,required:!0},component:{type:Object,required:!0}},data:()=>({disabled:!1}),methods:{async handleClick(){if(!this.disabled)try{this.disabled=!0,await this.item.action(this.component)}finally{this.disabled=!1}}}});var Q=n(6905),Y=n.n(Q),X={insert:"head",singleton:!1};g()(Y(),X);Y().locals;const K=(0,y.Z)(G,W,[],!1,null,null,null).exports,J=Vue.extend({components:{ComponentDescription:M.Z,ComponentOption:R,ComponentAction:K,VButton:i.VButton,VIcon:i.VIcon,SwitchBox:i.SwitchBox,MiniToast:i.MiniToast},mixins:[N.U],data(){return{virtual:!1,componentActions:H.map((e=>e(this.componentData))).filter((e=>void 0!==e&&!1!==e.visible))}},computed:{generatedOptions(){return Object.entries(this.componentData.options??{}).filter((e=>{let[,t]=e;return!t.hidden}))}},async mounted(){const e=this.$el;(0,u.visible)(e,(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})),await this.$nextTick(),this.$emit("mounted"),console.log(this.componentActions)}});var _=n(8354),$=n.n(_),ee={insert:"head",singleton:!1};g()($(),ee);$().locals;const te=(0,y.Z)(J,S,[],!1,null,null,null).exports;var ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-tags-preview"},[t("VPopup",{staticClass:"settings-panel-sub-page",attrs:{lazy:!1,"trigger-element":e.selectedSubPageTrigger},model:{value:e.selectedSubPageOpen,callback:function(t){e.selectedSubPageOpen=t},expression:"selectedSubPageOpen"}},[t("keep-alive",[e.selectedSubPage?t(e.selectedSubPage,{tag:"component"}):e._e()],1)],1),e._v(" "),t("div",{staticClass:"icon-list"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}})],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(e){return t("div",{key:e.name,staticClass:"component-tags-item"},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:e.icon}})],1)}))],2),e._v(" "),t("div",{staticClass:"component-tags"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"tag-count"},[e._v("("+e._s(n.count)+")")])],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",on:{click:function(t){return e.openSubPage(t,n.component)}}},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])],1)}))],2)],1)};ne._withStripped=!0;var oe=n(197),ie=n(6355);const re=[{name:"userComponentsManage",displayName:"组件",component:()=>Promise.resolve().then(n.bind(n,543)).then((e=>e.default)),icon:"mdi-cube-scan"},{name:"userPluginsManage",displayName:"插件",component:()=>Promise.resolve().then(n.bind(n,5504)).then((e=>e.default)),icon:"mdi-puzzle-outline"},{name:"customStylesManage",displayName:"样式",component:()=>Promise.resolve().then(n.bind(n,6634)).then((e=>e.default)),icon:"mdi-tune"},{name:"about",displayName:"关于",component:()=>Promise.resolve().then(n.bind(n,2573)).then((e=>e.default)),icon:"mdi-information-outline"}],ae=[e=>{let{renderedComponents:t}=e;return{name:"all",displayName:"全部",color:"inherit",icon:"mdi-shape-outline",order:0,count:t.length,filter:e=>e}},e=>{let{renderedComponents:t}=e;const n=[];t.forEach((e=>e.tags.forEach((e=>{n.push({count:0,...e,filter:t=>t.filter((t=>"all"===e.name||t.tags.some((t=>t.name===e.name))))})}))));const o=lodash.countBy(n,(e=>e.name));return lodash.uniqBy(n,(e=>e.name)).map((e=>({...e,count:o[e.name]})))}],[ce]=(0,q.registerAndGetData)("settingsPanel.tagFilters",ae),se=Vue.extend({components:{VIcon:f.default,VPopup:ie.default},data:()=>({tags:[],selectedTagName:"",subPages:re,selectedSubPage:null,selectedSubPageOpen:!1,selectedSubPageTrigger:null}),created(){this.refreshTags(),this.reset()},mounted(){this.selectTag(this.tags[0])},methods:{refreshTags(){const e=I.components.filter((e=>!e.hidden)),t=ce.flatMap((t=>"function"==typeof t?t({components:I.components,renderedComponents:e}):t));this.tags=t.sort((0,oe.ascendingSort)((e=>e.order)))},reset(){this.selectedTagName=this.tags[0].name},selectTag(e){this.selectedTagName=e.name;const{filter:t}=this.tags.find((t=>t.name===e.name));this.$emit("change",t)},async openSubPage(e,t){this.selectedSubPage!==t?(this.selectedSubPage=t,this.selectedSubPageTrigger=e.currentTarget,await this.$nextTick(),this.selectedSubPageOpen=!0):this.selectedSubPageOpen=!this.selectedSubPageOpen}}}),le=se;var de=n(6641),me=n.n(de),fe={insert:"head",singleton:!1};g()(me(),fe);me().locals;const ue=(0,y.Z)(le,ne,[],!1,null,null,null).exports;var pe=n(7568),be=n(6812),he=n(8910);const ge=[{key:"uninstallSelectedComponent",title:"卸载所选组件",icon:"mdi-trash-can-outline",disabled:e=>{let{selectedComponents:t}=e;return 0===t.length},run:e=>{window.confirm(`确定要卸载所选的 ${e.selectedComponents.length} 个组件吗?`)&&(e.selectedComponents.forEach((e=>{let{name:t}=e;(0,he.isBuiltInComponent)(t)?be.Toast.info("内置组件不能卸载","检查更新",3e3):(0,Z.uninstallComponent)(t)})),e.selectedComponents=[])}}],[Fe]=(0,q.registerAndGetData)("settingsPanel.searchBarActions",[...ge]),ve=e=>e,we={name:"SettingsPanel",components:{VIcon:i.VIcon,TextBox:i.TextBox,VPopup:i.VPopup,VButton:i.VButton,VEmpty:i.VEmpty,ComponentSettings:z,ComponentDetail:te,ComponentTags:ue},data:()=>({components:I.components,renderedComponents:I.components.filter((e=>!e.hidden)),selectedComponent:null,selectedComponents:[],componentDetailOpen:!1,collapsed:!1,peek:!1,searchKeyword:"",searchFilter:ve,searchBarActions:Fe}),computed:{isComponentSelected(){return e=>this.selectedComponents.some((t=>t.name===e))},tags(){const e=this.renderedComponents;let t=[];e.forEach((e=>e.tags.forEach((e=>{t.push({count:0,...e})}))));const n=lodash.countBy(t,(e=>e.name));return t=lodash.uniqBy(t,(e=>e.name)),t.forEach((e=>e.count=n[e.name])),t},searchBarContext(){return lodash.pick(this,"components","selectedComponent","selectedComponents","searchKeyword","searchFilter")}},watch:{searchKeyword:lodash.debounce((function(){this.updateRenderedComponents()}),200),searchFilter(){this.searchKeyword="",this.selectedComponents=[],this.updateRenderedComponents()},components(){this.updateRenderedComponents(),this.$refs.componentTags.refreshTags(),this.components.some((e=>e.name===this.selectedComponent?.name))||(this.selectedComponent=null)}},methods:{closePopper(){this.selectedComponent=null,this.selectedComponents=[],this.componentDetailOpen=!1},selectMultipleComponent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.selectedComponent&&t){const{name:t}=e,{name:n}=this.selectedComponent,o=this.renderedComponents;let i=o.findIndex((e=>e.name===n)),r=o.findIndex((e=>e.name===t));return i>r&&([i,r]=[r,i]),void(this.selectedComponents=o.slice(i,r+1))}const n=this.selectedComponents,o=n.find((t=>t.name===e.name));o?(0,a.deleteValue)(n,(e=>e.name===o.name)):n.push(e)},selectComponent(e){this.selectedComponents=[];const t=(0,r.getHook)("settingsPanel.componentDetail.close"),n=(0,r.getHook)("settingsPanel.componentDetail.open"),o=this.selectedComponent?.name,i=this.componentDetailOpen&&o===e.name;t.before(o),this.closePopper(),t.after(o),i||(n.before(e.name),this.selectedComponents.push(e),this.selectedComponent=e,this.componentDetailOpen=!0,n.after(e.name))},async updateRenderedComponents(){const e=await(async()=>this.searchKeyword?Object.fromEntries(await Promise.all(I.components.map((async e=>[e.name,[e.name,e.displayName,e.tags.map((e=>`${e.name}\n${e.displayName}`)).join("\n"),await(0,pe.getDescriptionText)(e)].join("\n").toLowerCase()])))):{})(),t=I.components.filter((t=>{if(t.hidden)return!1;if(this.searchKeyword){const n=e[t.name];return!!n&&n.includes(this.searchKeyword.toLowerCase())}return!0}));this.renderedComponents=this.searchFilter(t)}}},ye=we;var xe=n(7749),ke=n.n(xe),Ce={insert:"head",singleton:!1};g()(ke(),Ce);ke().locals;const Ae=(0,y.Z)(ye,o,[],!1,null,null,null).exports},855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"widgets-panel"},[t("div",{staticClass:"widgets-panel-header"},[t("VIcon",{attrs:{icon:"widgets"}}),e._v("功能")],1),e._v(" "),e.loading||0!==e.widgets.length?e._e():t("VEmpty",{staticClass:"widgets-empty"},[t("div",{staticClass:"widgets-empty-content"},[e._v("\n 空空如也哦 = ̄ω ̄="),t("br"),e._v("\n 可点此参考\n "),t("a",{attrs:{href:"https://bilibili-evolved-doc.vercel.app/docs/user/settings",target:"_blank"}},[e._v("\n 用户手册\n ")]),e._v("\n 以安装所需功能\n ")])]),e._v(" "),t("div",{staticClass:"widget-items"},e._l(e.widgets,(function(e){return t(e.component,{key:e.name,tag:"component",staticClass:"widget-item",attrs:{options:e.options}})})),1)],1)};o._withStripped=!0;var i=n(997),r=n(9047),a=n(6940),c=n(3082);const s=[],l=Vue.extend({components:{VIcon:r.VIcon,VEmpty:r.VEmpty},data:()=>(unsafeWindow.allWidgets=s,{allWidgets:s,widgets:[],loading:!0}),watch:{allWidgets(){this.allWidgets.forEach((async e=>{const t=await(async e=>{if(e.urlExclude&&e.urlExclude.some(i.matchUrlPattern))return!1;if(e.urlInclude&&e.urlInclude.every(lodash.negate(i.matchUrlPattern)))return!1;if(e.condition){const t=e.condition();return!0===t||t instanceof Promise&&!0===await t}return!0})(e);t?this.widgets.push(e):(0,i.deleteValue)(this.widgets,(t=>t.name===e.name))})),console.log("updated widgets",this.widgets)}},created(){(0,a.registerAndGetData)(c.WidgetsPlugin,s),this.$nextTick().then((()=>this.loading=!1))}});var d=n(8332),m=n.n(d),f=n(173),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},2573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-about-page"},[t("div",{staticClass:"be-about-page-header"},[t("VIcon",{attrs:{icon:"mdi-information-outline"}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("关于")])],1),e._v(" "),t("div",{staticClass:"be-about-page-content"},[t("div",{staticClass:"script-meta-info"},[t("div",{staticClass:"meta-info-name"},[e._v("\n "+e._s(e.meta.name)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-version"},[e._v("\n "+e._s(e.meta.compilationInfo.versionWithTag)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-description"},[e._v("\n "+e._s(e.meta.description)+"\n ")])]),e._v(" "),e.feedbackSupported?t("div",{staticClass:"script-links"},[t("a",{staticClass:"homepage script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-home-outline",size:20}}),e._v("\n 主页\n ")],1)],1),e._v(" "),t("a",{staticClass:"feedback script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/issues"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-message-text-outline",size:18}}),e._v("\n 反馈\n ")],1)],1),e._v(" "),t("a",{staticClass:"releases script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/releases"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-update",size:20}}),e._v("\n 更新日志\n ")],1)],1),e._v(" "),t("a",{staticClass:"donate script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/donate.md"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-heart-outline",size:18}}),e._v("\n 捐赠\n ")],1)],1)]):e._e(),e._v(" "),t("div",{staticClass:"about-page-actions"},e._l(e.aboutPageActions,(function(n){return t("VButton",{key:n.name,staticClass:"about-page-action",attrs:{disabled:n.disabled},on:{click:function(t){return e.runAction(n,t)}}},[t("VIcon",{attrs:{icon:n.icon,size:n.iconSize||20}}),e._v("\n "+e._s(n.displayName)+"\n ")],1)})),1)])])};o._withStripped=!0;var i=n(9737),r=n(738),a=n(9047),c=n(4819);const s=(()=>{const e=GM_info.scriptMetaStr.match(/@namespace\s*(.+)/);return!e||!e[1]||!e[1].includes("greasyfork")})(),l=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon},data:()=>({meta:i.meta,aboutPageActions:c.a,feedbackSupported:s}),methods:{formatDateTime:r.formatDateTime,async runAction(e,t){e.disabled=!0;try{await e.run(t)}finally{e.disabled=!1}}}});var d=n(8332),m=n.n(d),f=n(7706),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-components-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8430),r=n(7632),a=n(5600),c=n(8977),s=n(9416),l=n(6911);const d={key:"userComponents",icon:"mdi-cube-scan",title:"组件",description:"可以在此处添加或删除组件, 要查看组件详情, 请回到设置面板查看.",list:i.components,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,a.isUserComponent)(e)),async onItemAdd(e,t){const{before:n,after:o}=(0,c.getHook)("userComponents.add",e,t);await n();const{metadata:i,message:a}=await(0,r.installComponent)(e);return await o(i),a}},m=Vue.extend({components:{ManagePanel:s.Z,UserItem:l.Z},data:()=>({config:d}),methods:{getItemConfig:e=>({key:"userComponents",item:e,isUserItem:(0,a.isUserComponent)(e),getSettings:e=>(0,a.getComponentSettings)(e),onItemRemove:async e=>{const{before:t,after:n}=(0,c.getHook)("userComponents.remove",e);await t(),(0,r.uninstallComponent)(e.name),await n()}})}});const f=(0,n(6499).Z)(m,o,[],!1,null,null,null).exports},5504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-plugins-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(5600),r=n(8977),a=n(8433),c=n(9416),s=n(6911);const l={key:"userPlugins",icon:"mdi-puzzle-outline",title:"插件",description:"可以在此处管理插件, 插件能够增强现有组件的功能. 内置插件包括脚本本体包含的插件和组件自带的插件, 组件自带的插件会自动随组件卸载而卸载.",list:a.plugins,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,i.isUserPlugin)(e.name)),async onItemAdd(e,t){const{before:n,after:o}=(0,r.getHook)("userPlugins.add",e,t);await n();const{message:i,metadata:c}=await(0,a.installPlugin)(e);return await o(c),i}},d=Vue.extend({components:{ManagePanel:c.Z,UserItem:s.Z},data:()=>({config:l}),methods:{getItemConfig:e=>({key:"userPlugins",item:e,isUserItem:(0,i.isUserPlugin)(e.name),onItemRemove:async e=>{const{before:t,after:n}=(0,r.getHook)("userPlugins.remove",e);await t(),(0,a.uninstallPlugin)(e.name),await n()}})}});const m=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-styles-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8977),r=n(1154),a=n(9416),c=n(6911);const s={key:"userStyles",icon:"mdi-tune",title:"样式",description:"可以在此处管理自定义样式, 自定义样式能简单修改界面元素以满足您的需求, 对于更复杂的样式, 推荐使用 Stylus 浏览器插件来管理.",list:r.styles,listFilter:(e,t)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase())),async onItemAdd(e,t){const{before:n,after:o}=(0,i.getHook)("userStyles.add",e,t);await n();const{message:a,metadata:c}=await(0,r.installStyle)(e);return await o(c),a}},l=Vue.extend({components:{ManagePanel:a.Z,UserItem:c.Z},data:()=>({config:s}),methods:{getItemConfig:e=>({key:"userStyles",item:e,isUserItem:!0,onItemRemove:async e=>{const{before:t,after:n}=(0,i.getHook)("userStyles.remove",e);await t(),(0,r.uninstallStyle)(e.name),await n()}})}});const d=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},9416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-panel"},[t("div",{staticClass:"manage-panel-title sub-page-row"},[t("VIcon",{attrs:{icon:e.config.icon}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("\n "+e._s(e.config.title)+"\n ")])],1),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"description-text"},[e._v("\n "+e._s(e.config.description)+"\n ")])]):e._e(),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row separator"}):e._e(),e._v(" "),t("div",{staticClass:"sub-page-row add-item-row"},[t("div",{staticClass:"title-text"},[e._v("添加"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"item-actions"},[t("VButton",{ref:"batchAddButton",on:{click:function(t){return e.showBatchAddPopup()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-download-multiple"}}),e._v("\n 批量\n ")],1),e._v(" "),t("VButton",{on:{click:function(t){return e.browse()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-folder-open-outline"}}),e._v("\n 浏览\n ")],1),e._v(" "),t("OnlineRegistryButton",[t("VIcon",{attrs:{size:18,icon:"mdi-web"}}),e._v("\n 在线\n ")],1)],1),e._v(" "),t("VPopup",{staticClass:"batch-add-popup",attrs:{"trigger-element":e.$refs.batchAddButton},model:{value:e.batchAddShow,callback:function(t){e.batchAddShow=t},expression:"batchAddShow"}},[t("TextArea",{ref:"batchAddTextArea",staticClass:"batch-add-textarea",attrs:{placeholder:"批量粘贴功能链接, 可以混合其他类型的功能 (如合集包)"},model:{value:e.batchUrl,callback:function(t){e.batchUrl=t},expression:"batchUrl"}}),e._v(" "),t("div",{staticClass:"batch-add-actions"},[t("VButton",{on:{click:function(t){e.batchAddShow=!1}}},[t("VIcon",{attrs:{size:12,icon:"close"}}),e._v("\n 取消\n ")],1),e._v(" "),t("VButton",{attrs:{type:"primary",disabled:!e.batchUrl},on:{click:function(t){return e.batchAddItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("TextBox",{staticClass:"item-url",attrs:{placeholder:"粘贴"+e.config.title+"链接"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addItem()}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),e._v(" "),t("VButton",{attrs:{disabled:!e.url},on:{click:function(t){return e.addItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row separator"}),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"title-text"},[e._v("已安装的"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"exclude-built-in"},[e._v("\n 隐藏内置"+e._s(e.config.title)+"\n "),t("SwitchBox",{model:{value:e.excludeBuiltIn,callback:function(t){e.excludeBuiltIn=t},expression:"excludeBuiltIn"}})],1)]),e._v(" "),t("div",{staticClass:"sub-page-row search-item-row"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{staticClass:"list-search",attrs:{placeholder:`在 ${e.filteredList.length} 个${e.config.title}中搜索`},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.loaded?e._e():t("div",{staticClass:"sub-page-row"},[t("VLoading",{key:"loading"})],1),e._v(" "),e.loaded?t("div",{staticClass:"manage-item-list"},[0===e.debouncedList.length?t("VEmpty",{key:"empty"}):e._e(),e._v(" "),e._l(e.debouncedList,(function(n){return t("ManageItem",{key:n.name},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)}))],2):e._e()])};o._withStripped=!0;var i=n(459),r=n(6057),a=n(6812),c=n(962),s=n(351),l=n(9047),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-item",class:{virtual:e.virtual}},[e.virtual?e._e():e._t("default")],2)};d._withStripped=!0;var m=n(9133);const f=Vue.extend({mixins:[(0,m.B)(".manage-panel .manage-item-list")]});var u=n(8332),p=n.n(u),b=n(558),h=n.n(b),g={insert:"head",singleton:!1};p()(h(),g);h().locals;var F=n(6499);const v=(0,F.Z)(f,d,[],!1,null,null,null).exports;var w=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{on:{mouseover:function(t){return e.initPopup()},click:function(t){return e.togglePopup()}}},[e._t("default")],2)};w._withStripped=!0;var y=n(6052);const x=Vue.extend({components:{VButton:l.VButton},methods:{initPopup:y.initPopup,togglePopup:y.togglePopup}});const k=(0,F.Z)(x,w,[],!1,null,null,null).exports,C=Vue.extend({components:{VIcon:l.VIcon,VButton:l.VButton,TextBox:l.TextBox,VEmpty:l.VEmpty,VLoading:l.VLoading,VPopup:l.VPopup,TextArea:l.TextArea,SwitchBox:l.SwitchBox,ManageItem:v,OnlineRegistryButton:k},props:{config:{type:Object,required:!0}},data:()=>({search:"",url:"",loaded:!1,batchAddShow:!1,batchUrl:"",excludeBuiltIn:!0,debouncedList:[]}),computed:{filteredList(){return this.config.list.filter((e=>this.config.listFilter(e,this.search,this.excludeBuiltIn)))}},watch:{filteredList(){this.loaded=!1,window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}),200)}},mounted(){window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}))},methods:{async browse(){const e=await(0,r.pickFile)({accept:"*.js;*.zip"});if(0===e.length)return;const[t]=e;let n;if(t.name.endsWith(".zip")){const e=await s.JSZipLibrary,o=await e.loadAsync(t),i=Object.values(o.files);if(0===i.length)return void a.Toast.info("不能打开空文件",`添加${this.config.title}`);n=await i[0].async("text")}else n=await t.text();try{a.Toast.info(await(this.config.onItemAdd?.(n,"")),`添加${this.config.title}`)}catch(e){(0,c.logError)(e)}},async showBatchAddPopup(){this.batchAddShow=!this.batchAddShow,this.batchAddShow&&(await this.$nextTick(),this.$refs.batchAddTextArea?.focus())},async addItem(){if(!this.url)return;const e=a.Toast.info("获取中...",`添加${this.config.title}`);try{const t=await(0,i.tryParseZip)(this.url);e.message=await(this.config.onItemAdd?.(t,this.url)),this.url=""}catch(t){console.error(t),e.type=a.ToastType.Error,e.message=t}},async batchAddItem(){if(!this.batchUrl)return;const e=this.batchUrl.split("\n").map((e=>e.trim())).filter((e=>""!==e)),t=a.Toast.info(`获取中... (0/${e.length})`,"批量添加");let n=0;const o=await Promise.allSettled(e.map((async o=>{const{message:r}=await(0,i.installFeature)(o);return n++,t.message=`获取中... (${n}/${e.length})`,r}))),r=o.filter((e=>"fulfilled"===e.status)).length,c=o.filter((e=>"rejected"===e.status)).length;t.message=`安装完成, 成功 ${r} 个, 失败 ${c} 个.`;const s=o.map(((t,n)=>{const o=e[n];return"fulfilled"===t.status?`${t.value} ${o}`:`${t.reason} ${o}`})).join("\n");console.log(s),this.batchUrl=""}}});var A=n(8694),E=n.n(A),B={insert:"head",singleton:!1};p()(E(),B);E().locals;const D=(0,F.Z)(C,o,[],!1,null,null,null).exports},6911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-item"},[t("div",{staticClass:"user-item-display-name"},[e._v("\n "+e._s(e.config.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"user-item-name"},[e._v("\n "+e._s(e.config.item.name)+"\n ")]),e._v(" "),e.config.isUserItem?t("div",{staticClass:"user-item-line"}):e._e(),e._v(" "),e.config.isUserItem?t("div",{ref:"removeIcon",staticClass:"user-item-remove",on:{dblclick:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:18}}),e._v(" "),t("div",{ref:"removeConfirmTemplate",staticClass:"user-item-remove-confirm"},[e._v("\n 确定要卸载 "+e._s(e.config.item.displayName)+" 吗?\n "),t("VButton",{attrs:{type:"primary"},on:{click:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}}),e._v("\n 确定\n ")],1)],1)],1):e._e()])};o._withStripped=!0;var i=n(6812),r=n(9047),a=n(3932);const c=Vue.extend({components:{VIcon:r.VIcon,VButton:a.default},props:{config:{type:Object,required:!0}},data:()=>({removeConfirm:!1,settings:{}}),mounted(){this.config.getSettings&&(this.settings=this.config.getSettings(this.config.item)),this.config.isUserItem&&i.Toast.mini(this.$refs.removeConfirmTemplate,this.$refs.removeIcon,{trigger:"click",hideOnClick:!0})},methods:{async removeItem(){await this.config.onItemRemove(this.config.item),this.removeConfirm=!1}}});var s=n(8332),l=n.n(s),d=n(1271),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-video-control-bar-extend squirtle-block-wrap"},e._l(e.items,(function(n){return t("div",{key:n.name,staticClass:"be-video-control-bar-extend-item bilibili-player-video-btn squirtle-block-wrap bpx-player-ctrl-btn",style:{order:n.order.toString()},attrs:{"data-name":n.name},on:{click:function(e){return n.action(e)}}},[t("button",[t("span",{staticClass:"bp-svgicon"},[t("VIcon",{attrs:{icon:n.icon}})],1)]),e._v(" "),t("div",{staticClass:"be-video-control-tooltip"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)};o._withStripped=!0;var i=n(9047);const r=Vue.extend({components:{VIcon:i.VIcon},props:{items:{type:Array,required:!0}}});var a=n(8332),c=n.n(a),s=n(6482),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},7864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-mini-toast-wrapper"},[t("div",{ref:"content",staticClass:"be-mini-toast-content"},[e._t("default")],2),e._v(" "),t("div",{ref:"toast",staticClass:"be-mini-toast"},[e._t("toast")],2)])};o._withStripped=!0;var i=n(3733);const r={body:()=>document.body,local:void 0},a=Vue.extend({model:{prop:"show",event:"change"},props:{show:{type:Boolean,default:!1},container:{type:String,default:"local"},placement:{type:String,default:void 0}},data:()=>({toast:null}),watch:{placement(e){e&&this.toast&&(this.toast.placement=e)}},async mounted(){await this.$nextTick();const e=r[this.container];this.toast=(0,i.$)(this.$refs.toast,this.$refs.content,{placement:this.placement,showOnCreate:this.show,trigger:"mouseenter focusin",onHide:()=>{this.$emit("change",!1)},onShow:()=>{this.$emit("change",!0)},appendTo:"function"==typeof e?e():e,...this.$attrs})}});const c=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},9933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toast-card visible",class:"toast-"+e.card.type,on:{mouseover:e.stopTimer,mouseout:e.startTimer}},[t("div",{staticClass:"toast-card-border"}),e._v(" "),t("div",{staticClass:"toast-card-header"},[t("h1",{staticClass:"toast-card-title"},[e._v("\n "+e._s(e.card.title)+"\n ")]),e._v(" "),t("div",{staticClass:"toast-card-close",class:{"show-progress":Boolean(e.remainingTime)},attrs:{title:"关闭"},on:{click:function(t){return e.card.close()}}},[t("ProgressRing",{attrs:{size:28,stroke:2,progress:e.progressMax-e.remainingTime,max:e.progressMax}}),e._v(" "),t("VIcon",{attrs:{icon:"close",size:14}})],1)]),e._v(" "),t("div",{staticClass:"toast-card-message",domProps:{innerHTML:e._s(e.card.message)}})])};o._withStripped=!0;var i=n(9047);const r=Vue.extend({components:{VIcon:i.VIcon,ProgressRing:i.ProgressRing},props:{card:{type:Object,required:!0}},data:()=>({progressMax:0,remainingTime:0}),created(){this.readDuration()},methods:{durationTick(){const{closeTime:e}=this.card;e&&(this.remainingTime=e-Number(new Date),this.remainingTime>0&&requestAnimationFrame((()=>this.durationTick())))},readDuration(){const{duration:e,closeTime:t}=this.card;e&&(this.progressMax=t-Number(new Date),this.remainingTime=this.progressMax,requestAnimationFrame((()=>this.durationTick())))},stopTimer(){this.card.clearDuration(),this.progressMax=0,this.remainingTime=0},startTimer(){this.card.setDuration(),this.readDuration()}}});var a=n(8332),c=n.n(a),s=n(3554),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},8798:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-switch-box",class:{checked:e.checked,disabled:e.disabled},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.disabled,tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggle())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggle())}]}},[t("label",[t("input",{ref:"input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.checked},on:{change:function(t){return t.stopPropagation(),e.$emit("change",t.target.checked)}}}),e._v(" "),e._m(0)])])};o._withStripped=!0;const i=Vue.extend({name:"SwitchBox",model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{toggle(){this.disabled||(this.$refs.input.checked=!this.$refs.input.checked,this.$emit("change",this.$refs.input.checked))}}});var r=n(8332),a=n.n(r),c=n(9732),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[function(){var e=this._self._c;this._self._setupProxy;return e("div",{staticClass:"bar"},[e("div",{staticClass:"thumb"})])}],!1,null,null,null).exports},5486:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-textbox",class:{linear:e.linear},attrs:{role:"textbox"}},[t("input",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"input",e.$attrs,!1),e.restListeners)),e._v(" "),e.linear?t("div",{staticClass:"linear-bar"}):e._e()])};o._withStripped=!0;var i=n(8491);const r=Vue.extend({name:"TextBox",mixins:[i.t],props:{linear:{type:Boolean,default:!1}}});var a=n(8332),c=n.n(a),s=n(3753),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"d1f779a8",null).exports},3932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-button",class:{[e.type]:!0,disabled:e.disabled,round:e.round,icon:e.icon},attrs:{role:"button","aria-disabled":e.disabled,tabindex:e.disabled?-1:0},on:{keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)}]}},e.disabled?null:e.$listeners),[t("div",{staticClass:"content-container"},[e._t("default",(function(){return[e._v("Button")]}))],2)])};o._withStripped=!0;const i=Vue.extend({name:"VButton",props:{type:{type:String,default:"light"},round:{type:Boolean,default:!1},icon:{type:Boolean,default:!1}},computed:{disabled(){return Boolean(this.$attrs.disabled)}}});var r=n(8332),a=n.n(r),c=n(4538),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,"18aa9448",null).exports},3441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-loading"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};o._withStripped=!0;var i=n(6940);const[r]=(0,i.registerAndGetData)("vLoading",{content:"加载中..."}),a=Vue.extend({name:"VLoading",data:()=>({config:r})});var c=n(8332),s=n.n(c),l=n(4833),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},6355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-popup",class:{open:e.open,fixed:e.fixed,close:!e.open,"closed-style":e.closedStyle}},e.$listeners),[e.loaded?e._t("default"):e._e()],2)};o._withStripped=!0;const i=Vue.extend({name:"VPopup",model:{prop:"open",event:"popup-change"},props:{open:{type:Boolean,required:!1,default:!1},closedStyle:{type:Boolean,required:!1,default:!0},fixed:{type:Boolean,required:!1,default:!1},triggerElement:{required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0},autoDestroy:{type:Boolean,required:!1,default:!1},escClose:{type:Boolean,required:!1,default:!1},autoClosePredicate:{type:Function,required:!1,default:null}},data(){return{loaded:!this.lazy}},computed:{trigger(){return null===this.triggerElement?null:"$el"in this.triggerElement?this.triggerElement.$el:this.triggerElement}},watch:{open(){this.lazy&&!this.loaded&&(this.loaded=!0),this.setAutoClose()}},mounted(){const e=this.$el;this.open&&this.setAutoClose(),this.escClose&&e.addEventListener("keydown",(e=>{"Escape"===e.key&&this.$emit("popup-change",!1)})),this.autoDestroy&&e.addEventListener("transitionend",(()=>{this.open||(this.loaded=!1)}))},methods:{openHandler(e){const t=e.target,n=document.querySelector(".toast-card-container");let o=t!==this.trigger&&!this.trigger?.contains(t)&&t!==this.$el&&!this.$el.contains(t)&&!n?.contains(t);this.autoClosePredicate&&(o=o&&this.autoClosePredicate({target:t,element:this.$el,trigger:this.trigger})),o&&this.$emit("popup-change",!1)},setAutoClose(){if(this.autoClose){["mousedown","touchstart"].forEach((e=>{this.open?document.documentElement.addEventListener(e,(e=>this.openHandler(e))):document.documentElement.removeEventListener(e,(e=>this.openHandler(e)))}))}},toggle(){this.$emit("popup-change",!this.open)}}});var r=n(8332),a=n.n(r),c=n(2618),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,null,null).exports},2727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"slider",staticClass:"be-slider",attrs:{role:"slider",tabindex:e.focusable?0:-1},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(-1))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(1))}]}},[t("div",{ref:"barContainer",staticClass:"bar-container",on:{click:function(t){return e.setByCoord(t.offsetX)}}},[e._t("bar",(function(){return[t("div",{staticClass:"default-bar"})]}))],2),e._v(" "),t("MiniToast",{ref:"thumbContainer",staticClass:"thumb-container",style:{left:e.thumbLeft},attrs:{placement:"top",arrow:!1},scopedSlots:e._u([{key:"toast",fn:function(){return[e._v("\n "+e._s(e.displayFun(e.realValue))+"\n ")]},proxy:!0}])},[e._t("thumb",(function(){return[t("div",{staticClass:"default-thumb"})]}))],2)],1)};o._withStripped=!0;var i=n(7864);const r=Vue.extend({name:"VSlider",components:{MiniToast:i.Z},model:{prop:"value",event:"change"},props:{focusable:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},value:{type:Number,default:0},center:{type:Number,default:0},step:{type:Number,default:1},displayFun:{type:Function,default:e=>String(e)}},data:()=>({realValue:0}),computed:{realMax(){return this.valueToRounded(this.max,Math.floor)},realMin(){return this.valueToRounded(this.min,Math.ceil)},valueLength(){const e=this.realMax-this.realMin;return e<0?(console.error("[VSlider] No desirable value between min and max"),0):e},thumbLeft(){if(0===this.valueLength)return 0;return`${(this.realValue-this.realMin)/this.valueLength*100}%`},centerCoord(){return this.valueToLength(this.center-this.realMin)}},watch:{value(e){e!==this.realValue&&this.setByValue(e)},center(){this.setByValue(this.realValue)},min(){this.setByRounded(this.realValue)},max(){this.setByRounded(this.realValue)}},created(){this.setByValue(this.value)},mounted(){this.setupDrag()},methods:{valueToStep(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round)(e/this.step)},valueToStepped(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.valueToStep(e,t)*this.step},lengthToValue(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return this.valueLength*(e/t)},lengthToStep(e){return this.valueToStep(this.lengthToValue(e))},lengthToStepped(e){return this.lengthToStep(e)*this.step},valueToLength(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return 0===this.valueLength?0:t*(e/this.valueLength)},valueToRounded(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.center+this.valueToStepped(e-this.center,t)},limitValue(e){return 0===this.valueLength?this.realMin:(ethis.realMax&&(e=this.realMax),e)},offsetByStep(e){this.setByRounded(this.realValue+e*this.step)},setByLimited(e){e!==this.realValue&&(this.realValue=e,this.$emit("change",this.realValue))},setByRounded(e){this.setByLimited(this.limitValue(e))},setByValue(e){this.setByRounded(this.valueToRounded(e))},setByCoord(e){this.setByRounded(this.center+this.lengthToStepped(e-this.centerCoord))},setupDrag(){function e(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e=>{e.preventDefault(),e instanceof MouseEvent||e instanceof unsafeWindow.MouseEvent?n(e.pageX):1===e.touches.length&&n(e.touches[0].pageX)};return e.addEventListener(t,i,{once:o,passive:!1}),()=>e.removeEventListener(t,i)}const t=this.$refs.thumbContainer.$el,n=[{start:"mousedown",move:"mousemove",end:"mouseup"},{start:"touchstart",move:"touchmove",end:"touchend"}];for(const o of n){let n=0,i=0;e(t,o.start,(t=>{this.$emit("start",this.realValue),this.$refs.slider.focus(),n=t,i=this.realValue;const r=e(window,o.move,(e=>{this.setByValue(i+this.lengthToValue(e-n))}));e(window,o.end,(()=>{this.$emit("end",this.realValue),r()}),!0)}))}}}});var a=n(8332),c=n.n(a),s=n(1390),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"94f62aa6",null).exports},1282:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("i",e._g(e._b({staticClass:"be-icon",class:e.classes,style:{"--size":e.size+"px"}},"i",e.$attrs,!1),e.$listeners),[e._t("default"),e._v(" "),e.icon in e.$options.static.customIcons?t("div",{staticClass:"custom-icon",domProps:{innerHTML:e._s(e.$options.static.customIcons[e.icon])}}):e._e()],2)};o._withStripped=!0;var i=n(6940);const r=n(5454),a=lodash.fromPairs(r.keys().map((e=>[e.replace(/.*\/([^/]+?)\.svg$/,"$1"),r(e)]))),[c]=(0,i.registerAndGetData)("ui.icons",a),s={customIcons:a},l=Vue.extend({name:"VIcon",props:{icon:{type:String,default:""},size:{type:Number,default:24},colored:{type:Boolean,default:!1}},computed:{classes(){const e=this.$options.static.customIcons,t=this.icon,n=[];return this.colored&&n.push("colored"),""===t||t in e?n:t.startsWith("mdi-")?[...n,"mdi",t]:[...n,`be-iconfont-${t}`]}},beforeCreate(){this.$options.static=s}}),d=l;var m=n(8332),f=n.n(m),u=n(8462),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6499:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var d=l.render;l.render=function(e,t){return s.call(t),d(e,t)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,s):[s]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},7933:(e,t,n)=>{"use strict";var o=n(8254),i=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8332),i=n.n(o),r=n(1489),a=n.n(r),c={insert:"head",singleton:!1};i()(a(),c);const s=a().locals||{}},8332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( +const t=E(unsafeWindow,"scrollTo",(function(){return!1}));return e?(await e(),t(),m):t},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return(n,o)=>lodash.isNumber(Number(n))?lodash.clamp(n,e,t):o},R=e=>lodash.upperFirst(lodash.camelCase(e)),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;const t=new Uint8Array(Math.ceil(e/2));return crypto.getRandomValues(t),[...t].map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,e)},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n{throw new Error("unreachable")},U=()=>navigator.connection?.saveData??!1,H=(e,t)=>{const n=new MouseEvent("mousedown",t),o=new MouseEvent("mouseup",t),i=new PointerEvent("pointerdown",t),r=new PointerEvent("pointerup",t),a=new MouseEvent("click",t);e.dispatchEvent(i),e.dispatchEvent(n),e.dispatchEvent(r),e.dispatchEvent(o),e.dispatchEvent(a)}},962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScopedConsoleCallHook:()=>m,ScopedConsoleCreateHook:()=>d,logError:()=>a,randomScopedConsole:()=>u,useScopedConsole:()=>f});var o=n(8977),i=n(997),r=n(5600);const a=async(e,t)=>{let o;"string"==typeof e?(o=e,console.error(o)):(o=(0,r.getGeneralSettings)().devMode?e.stack:e.message,console.error(e));const{Toast:i}=await Promise.resolve().then(n.bind(n,6812));i.error(o,"错误",t)},c=Symbol("ScopedConsole"),s=Symbol("NamePatch"),l={default:"#78909C",warn:"#CC7A00",error:"#BF6060",group:"#9575CD"},d="scopedConsole.create",m="scopedConsole.call",f=e=>{const{before:t,after:n}=(0,o.getHook)(d),{name:i,color:a=l.default,console:f=window.console}="string"==typeof e?{name:e}:e,u={name:i,color:a,console:f};t(e,f);let p=0;const b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.color;const i=e[c],r=(i?t.color:n)??l.default,a="#fff",d=i?["%c "]:["%c"],f={badgeNames:[...i?.badgeNames??[],...d,`%c${t.name}`],badgeValues:[...i?.badgeValues??[],"",`background-color: ${r}; color: ${a}; padding: 2px 4px; border-radius: 4px;`],original:i?.original??e},u=f.original,b=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:t.color,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;const i=b(e,t,n),r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{g[e][s]||(g[e][s]=e)}));const F={...unsafeWindow.console,...f};return F.log=b(f.log,u),F.info=b(f.info,u),F.warn=b(f.warn,u,l.warn),F.error=b(f.error,u,l.error),F.group=h(f.group,u,l.group,(e=>e+1)),F.groupCollapsed=h(f.groupCollapsed,u,l.group,(e=>e+1)),F.groupEnd=h(f.groupEnd,u,l.group,(e=>e-1)),F.debug=(()=>{const e=b(f.debug,u);return function(){if((0,r.getGeneralSettings)().devMode){for(var t=arguments.length,n=new Array(t),o=0;of({...e,name:(0,i.getRandomId)()})},197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ascendingBigIntSort:()=>a,ascendingSort:()=>i,ascendingStringSort:()=>r,descendingBigIntSort:()=>l,descendingSort:()=>c,descendingStringSort:()=>s});const o=e=>e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t)-e(n)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(t).localeCompare(e(n))},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>{const o=BigInt(e(t)),i=BigInt(e(n));return o===i?0:o>i?1:-1}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n)-e(t)},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>e(n).localeCompare(e(t))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(t,n)=>-a(e)(t,n)}},943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formatTitle:()=>s,getFriendlyTitle:()=>l});var o=n(997),i=n(5600),r=n(738),a=n(197);const c=e=>{let t=0,n=0;const o=[];return e.split("").forEach(((i,r)=>{"["===i&&(0===n?(o.push(e.substring(t,r)),t=r):n++),"]"===i&&(0===n?(o.push(e.substring(t,r+1)),t=r+1):n--)})),t""!==e))},s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new Date,s=()=>document.title.replace(/第[0-9]*[零一二三四五六七八九十百千]*[集话]-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/-[^-]+-[^-]+在线观看-bilibili-哔哩哔哩$/,"").replace(/:([^:]+?)_.+?_bilibili_哔哩哔哩$/,"").replace(/_哔哩哔哩_bilibili$/,"").replace(/ - 哔哩哔哩$/,"").replace(/_哔哩哔哩 \(゜-゜\)つロ 干杯~-bilibili$/,"").replace(/(.*?) - (.*?) - 哔哩哔哩直播,二次元弹幕直播平台$/,"$1").trim(),l={title:(()=>{const e=(0,o.dq)(".video-info-container .video-title");if(null!==e)return e.getAttribute("title");const t=(0,o.dq)('[class*="mediainfo_mediaTitle"]');if(null!==t)return t.getAttribute("title");const n=(0,o.dq)(".header-info-ctnr .live-title .text");return null!==n?n.getAttribute("title"):s()})(),ep:(()=>{if(!t)return;const e=(0,o.dq)("#eplist_module li.cursor .ep-title");if(null!==e)return e.innerText;const n=(0,o.dq)("#multi_page .cur-list>ul li.on a, .video-episode-card__info-playing .video-episode-card__info-title");if(null!==n)return n.getAttribute("title");const i=(0,o.dq)(".multip-list-item.multip-list-item-active");return null!==i?i.getAttribute("title"):void 0})(),aid:unsafeWindow.aid,bvid:unsafeWindow.bvid,cid:unsafeWindow.cid,lid:document.URL.replace(/https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/,"$2"),y:i.getFullYear().toString(),M:(i.getMonth()+1).toString().padStart(2,"0"),d:i.getDate().toString().padStart(2,"0"),h:i.getHours().toString().padStart(2,"0"),m:i.getMinutes().toString().padStart(2,"0"),s:i.getSeconds().toString().padStart(2,"0"),ms:i.getMilliseconds().toString().substring(0,3)},d={...l,...n},m=c(e),f=Object.entries(d).sort((0,a.descendingSort)((e=>{let[t]=e;return t.length}))),u=m.map((e=>{if(!e.startsWith("[")||!e.endsWith("]"))return e;for(const[t,n]of f){const o=new RegExp(`^\\[([^\\[\\]]*?)${t}([^\\[\\]]*?)\\]$`),i=e.match(o);if(i&&Boolean(n))return`${i[1]??""}${n}${i[2]??""}`}return""})),p=u.join("");return(0,r.formatFilename)(p," ")},l=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s((0,i.getGeneralSettings)().filenameFormat,e,t)}},285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allVideoUrls:()=>u,bangumiUrls:()=>d,cheeseUrls:()=>m,columnUrls:()=>F,favoriteListUrls:()=>r,feedsUrls:()=>g,feedsUrlsWithoutDetail:()=>h,festivalUrls:()=>s,liveUrls:()=>b,mainSiteUrls:()=>p,matchCurrentPage:()=>w,mediaListUrls:()=>c,playerUrls:()=>v,upListUrls:()=>a,videoAndBangumiUrls:()=>f,videoUrls:()=>l,watchlaterUrls:()=>i});var o=n(997);const i=["//www.bilibili.com/medialist/play/watchlater","//www.bilibili.com/list/watchlater"],r=["//www.bilibili.com/medialist/play/ml","//www.bilibili.com/list/ml"],a=[/\/\/www\.bilibili\.com\/medialist\/play\/\d+/,/\/\/www\.bilibili\.com\/list\/\d+/],c=[...i,...r,...a,/\/\/www\.bilibili\.com\/list\//],s=[/\/\/www\.bilibili\.com\/festival\//],l=["//www.bilibili.com/video/",...s,...c],d=["//www.bilibili.com/bangumi/play/"],m=["//www.bilibili.com/cheese/"],f=[...l,...d],u=[...f,...m],p=["https://www.bilibili.com/v/",/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/([^\/]+)\.html$/,/^https:\/\/www\.bilibili\.com\/watchlater\/#\/list$/,"https://www.bilibili.com/account/"],b=[/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],h=[/^https:\/\/t\.bilibili\.com\/$/,/^https:\/\/space\.bilibili\.com\//,/^https:\/\/live\.bilibili\.com\/(blanc\/)?[\d]+/],g=[...h,/^https:\/\/t\.bilibili\.com\//,/^https:\/\/www\.bilibili\.com\/opus\/[\d]+$/],F=[/^https:\/\/www\.bilibili\.com\/read\/cv/],v=["//player.bilibili.com","//www.bilibili.com/html/player.html",...l,...d,...m],w=function(){for(var e=arguments.length,t=new Array(e),n=0;nArray.isArray(e)?e.some((e=>(0,o.matchUrlPattern)(e))):(0,o.matchUrlPattern)(e)))}},1242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CompareResult:()=>a,Version:()=>c,isFeatureAcceptable:()=>s});var o=n(8036),i=n(9737);function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a=function(e){return e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e[e.Incomparable=NaN]="Incomparable",e}({});class c{constructor(e){if(this.versionString=e,r(this,"parts",void 0),!/^[\d\.]+$/.test(e))throw new Error("Invalid version string");this.parts=e.split(".").map((e=>parseInt(e)))}compareTo(e){for(let t=0;te.parts[t]?a.Greater:a.Less}return this.parts.length!==e.parts.length?a.Less:a.Equal}greaterThan(e){return this.compareTo(e)===a.Greater}lessThan(e){return this.compareTo(e)===a.Less}equals(e){return this.compareTo(e)===a.Equal}}const s=async e=>{try{if("string"==typeof e&&(e=(0,o.loadFeatureCode)(e)),null==e)return!1;const{version:t}=i.meta.compilationInfo,{coreVersion:n}=e;if(!n||!t)return!0;const r=new c(t),a=new c(n);return r.equals(a)||r.greaterThan(a)}catch(t){return console.warn("[isFeatureAcceptable] check failed, feature =",e),!0}}},6940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addData:()=>r,getData:()=>a,registerAndGetData:()=>c,registerData:()=>i});const o=new Map,i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{if(o.has(e)){const{providers:n,loaded:i,data:r}=o.get(e);i?t(...r):n.push(t)}else o.set(e,{registered:!1,data:[],loaded:!1,providers:[t]})},a=e=>{if(o.has(e)){const t=o.get(e),{data:n,registered:i,loaded:r,providers:a}=t;if(i)return r||(a.forEach((e=>e(...n))),t.providers=[],t.loaded=!0),n}return[]},c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{"use strict";n.r(t),n.d(t,{addHook:()=>i,getHook:()=>r});const o=new Map,i=(e,t)=>{if(o.has(e)){const{providers:n}=o.get(e);n.push(t)}else o.set(e,{providers:[t]})},r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie.before?.(...n.concat(t)))))},after:async function(){for(var e=arguments.length,t=new Array(e),o=0;oe.after?.(...n.concat(t)))))}}}return{before:async()=>Promise.all([]),after:async()=>Promise.all([])}}},4179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{plugin:()=>r});const o=async(e,t,o)=>{const i={name:t,icon:"mdi-content-copy",description:`复制${e}`,indexer:o,action:async()=>{if(i.name===t){await navigator.clipboard.writeText(t);const{Toast:o}=await Promise.resolve().then(n.bind(n,6812));o.success("复制成功",`复制${e}`,1500)}}};return[i]},i=[{pattern:/^av([\d]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,6629)),i=await t(`https://api.bilibili.com/x/web-interface/view?aid=${e[1]}`),r=lodash.get(i,"data",{}),{bvid:a,title:c}=r,s=`av${e[1]}`;return{name:c||s,description:"av号跳转",indexer:s,link:`https://www.bilibili.com/av${e[1]}`,extraActions:a?await o("BV号",a,s):[]}}},{pattern:/^bv([\da-zA-Z]+)$/i,getActions:async e=>{const{getJsonWithCredentials:t}=await Promise.resolve().then(n.bind(n,6629)),i=await t(`https://api.bilibili.com/x/web-interface/view?bvid=${e[1]}`),r=lodash.get(i,"data",{}),{aid:a,title:c}=r,s=`BV${e[1]}`;return{name:c||s,description:"BV号跳转",indexer:s,link:`https://www.bilibili.com/BV${e[1]}`,extraActions:a?await o("av号",`av${a}`,s):[]}}}],r={name:"launchBar.actions.IDSearch",displayName:"搜索栏 - 视频跳转",async setup(){const{addData:e}=await Promise.resolve().then(n.bind(n,6940)),{LaunchBarActionProviders:t}=await Promise.resolve().then(n.bind(n,40));e(t,(e=>{e.push({name:"IDSearchProvider",getActions:async e=>{const t=[];for(const n of i){const o=e.match(n.pattern);if(o){const{name:e,description:i="",indexer:r,link:a,extraActions:c=[]}=await n.getActions(o);t.push({name:e,icon:"mdi-open-in-new",indexer:r,description:i,action:()=>{window.open(a,"_blank")},order:0},...c)}}return t}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}},8433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractPluginFromComponent:()=>d,installPlugin:()=>s,loadAllPlugins:()=>f,loadPlugin:()=>m,plugins:()=>c,pluginsMap:()=>a,uninstallPlugin:()=>l});var o=n(997),i=n(6940),r=n(8977);const a={},c=lodash.once((()=>{const e=n(4353);return e.keys().map((t=>{const n=e(t);if("plugin"in n){const e=n.plugin;return a[e.name]=e,e}})).filter((e=>void 0!==e))}))(),s=async e=>{const{loadFeatureCode:t}=await Promise.resolve().then(n.bind(n,8036));let o;try{o=t(e)}catch(e){throw new Error("无效的插件代码",e)}const{settings:i}=await Promise.resolve().then(n.bind(n,5600)),r=i.userPlugins[o.name];if(r)return r.code=e,r.name=o.name,r.displayName=o.displayName||o.name,{metadata:o,message:`已更新插件'${o.displayName}', 刷新后生效`};const a={code:e,displayName:o.name,...o};return i.userPlugins[o.name]=a,c.push(a),{metadata:o,message:`已安装插件'${o.displayName||o.name}', 刷新后生效`}},l=async e=>{const{settings:t}=await Promise.resolve().then(n.bind(n,5600)),i=Object.entries(t.userPlugins).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!i)throw new Error(`没有找到与名称'${e}'相关联的插件`);const[r,a]=i;return delete t.userPlugins[r],(0,o.deleteValue)(c,(e=>e.name===r)),{metadata:a,message:`已卸载插件'${a.displayName}', 刷新后生效`}},d=e=>e.plugin?{name:`${e.name}.plugin`,displayName:`${e.displayName} - 附带插件`,...e.plugin}:null,m=async e=>{if(e.setup){const{pluginLoadTrace:t}=await Promise.resolve().then(n.bind(n,9372));await t(e);const{coreApis:o}=await Promise.resolve().then(n.bind(n,4612));return e.setup({coreApis:o,addData:i.addData,addHook:r.addHook,registerData:i.registerData,registerAndGetData:i.registerAndGetData,getHook:r.getHook})}return null},f=async e=>{const{settings:t,getGeneralSettings:o}=await Promise.resolve().then(n.bind(n,5600)),{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,1296));for(const t of e){const e=d(t);e&&c.push(e)}for(const[e,n]of Object.entries(t.userPlugins)){const{code:t}=n;let o;try{o=i(t)}catch(t){console.error("从代码加载用户插件失败。代码可能包含语法错误或执行时产生了异常",{pluginName:e,error:t});continue}c.push(o)}return Promise.allSettled(c.map(m)).then((async()=>{if(o().devMode){const{pluginLoadTime:e,pluginResolveTime:t}=await Promise.resolve().then(n.bind(n,9372)),{logStats:o}=await Promise.resolve().then(n.bind(n,8535));o("plugins block",e),o("plugins resolve",t)}}))}},1154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserStyleMode:()=>r,installStyle:()=>c,styles:()=>a,uninstallStyle:()=>s});var o=n(5600),i=n(997);let r=function(e){return e.Default="default",e.Instant="instant",e.Important="important",e}({});const a=Object.values(o.settings.userStyles),c=async e=>{try{let t;const{loadFeatureCode:i}=await Promise.resolve().then(n.bind(n,8036));t="string"==typeof e?i(e):e;const{name:c,style:s,displayName:l,mode:d}=t,{removeStyle:m,addImportantStyle:f,addStyle:u}=await Promise.resolve().then(n.bind(n,9860)),p=o.settings.userStyles[c];if(p)Object.assign(p,t),m(c);else{const e={displayName:c,mode:r.Default,...t};o.settings.userStyles[c]=e,a.push(e)}return d===r.Important?f(s,c):u(s,c),{metadata:t,message:`已安装样式'${l||c}'`}}catch(e){throw new Error("无效的样式代码",{cause:e})}},s=async e=>{const t=Object.entries(o.settings.userStyles).find((t=>{let[n,{displayName:o}]=t;return n===e||o===e}));if(!t)throw new Error(`没有找到与名称'${e}'相关联的样式`);const{removeStyle:r}=await Promise.resolve().then(n.bind(n,9860)),[c,{displayName:s}]=t;return r(c),delete o.settings.userStyles[c],(0,i.deleteValue)(a,(e=>e.name===c)),{metadata:t,message:`已卸载样式'${s}'`}}},9047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncButton:()=>s,CheckBox:()=>h,ColorPicker:()=>E,DefaultWidget:()=>mt,DpiImage:()=>M,ImagePicker:()=>R,ImageViewer:()=>Y,MiniToast:()=>ft.Z,ProgressBar:()=>ne,ProgressRing:()=>se,RadioButton:()=>ue,RangeInput:()=>we,ScrollTrigger:()=>Be,SwitchBox:()=>De.Z,TabControl:()=>Oe,TextArea:()=>qe,TextBox:()=>Ze.default,VButton:()=>r.default,VDropdown:()=>Xe,VEmpty:()=>ot,VIcon:()=>o.default,VLoading:()=>it.default,VPopup:()=>He.default,VSlider:()=>rt.default,showImage:()=>K});var o=n(1282),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({attrs:{disabled:e.disabled||e.internalDisabled},on:{click:e.onClick}},"VButton",e.$attrs,!1),e.listeners),[e._t("default",(function(){return[e._v("Button")]}))],2)};i._withStripped=!0;var r=n(3932);const a=Vue.extend({components:{VButton:r.default},props:{disabled:{type:Boolean,default:!1}},data:()=>({internalDisabled:!1}),computed:{listeners(){return lodash.omit(this.$listeners,"click")},onClick(){var e=this;return async function(){try{e.internalDisabled=!0;for(var t=arguments.length,n=new Array(t),o=0;oPromise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,1282)).then((e=>e.default))},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},iconPosition:{type:String,default:"left"},checkedIcon:{type:String,default:"mdi-checkbox-marked-circle"},notCheckedIcon:{type:String,default:"mdi-checkbox-blank-circle-outline"}}});var m=n(8332),f=n.n(m),u=n(8915),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,c.Z)(d,l,[],!1,null,"07bbf374",null).exports;var g=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-color-picker"},[t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.popupOpened=!e.popupOpened,expression:"() => (popupOpened = !popupOpened)"}],ref:"button",staticClass:"selected-color",style:{backgroundColor:e.color,width:e.size+"px",height:e.size+"px"},attrs:{role:"button",tabindex:"0"}}),e._v(" "),t("VPopup",{staticClass:"picker",class:{compact:e.compact},style:{"--offset":e.popupOffset+"px"},attrs:{"esc-close":"","auto-close":!1,"trigger-element":e.$refs.button},model:{value:e.popupOpened,callback:function(t){e.popupOpened=t},expression:"popupOpened"}},[t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("预设颜色")]),e._v(" "),t("div",{staticClass:"colors"},e._l(e.colors,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectHexColor(n),expression:"() => selectHexColor(c)"}],key:n,staticClass:"color",style:{backgroundColor:n},attrs:{role:"radio",tabindex:e.popupOpened?0:-1}})})),0)]),e._v(" "),t("div",{staticClass:"item-group"},[t("div",{staticClass:"item-title"},[e._v("调色")]),e._v(" "),t("div",{staticClass:"bars"},[e.isRGB?[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("R")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.red},on:{change:function(t){return e.wrapper.change("red",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.redGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2466330035)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.red)},on:{change:function(t){return e.wrapper.change("red",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("G")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.green},on:{change:function(t){return e.wrapper.change("green",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.greenGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,2962781435)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.green)},on:{change:function(t){return e.wrapper.change("green",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:255,value:e.wrapper.blue},on:{change:function(t){return e.wrapper.change("blue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.blueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}],null,!1,660815582)}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"3","change-on-blur":"",disabled:!e.popupOpened,text:e.int(e.wrapper.blue)},on:{change:function(t){return e.wrapper.change("blue",t)}}})],1)]:[t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("H")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,max:359.9,value:e.wrapper.hue},on:{change:function(t){return e.wrapper.change("hue",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.hueGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"4","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.hue)},on:{change:function(t){return e.wrapper.change("hue",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("S")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.saturation},on:{change:function(t){return e.wrapper.change("saturationv",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.saturationGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.saturation)},on:{change:function(t){return e.wrapper.change("saturationv",t)}}})],1),e._v(" "),t("div",{staticClass:"bar"},[t("div",{staticClass:"bar-name"},[e._v("B")]),e._v(" "),t("VSlider",{attrs:{focusable:!1,value:e.wrapper.brightness},on:{change:function(t){return e.wrapper.change("value",t)}},scopedSlots:e._u([{key:"bar",fn:function(){return[t("div",{staticClass:"color-bar",style:{background:e.wrapper.brightnessGradient}})]},proxy:!0},{key:"thumb",fn:function(){return[t("div",{staticClass:"color-thumb"})]},proxy:!0}])}),e._v(" "),t("TextBox",{staticClass:"bar-value",attrs:{"max-length":"5","change-on-blur":"",disabled:!e.popupOpened,text:e.fixed(e.wrapper.brightness)},on:{change:function(t){return e.wrapper.change("value",t)}}})],1)]],2)]),e._v(" "),t("div",{staticClass:"info item-group"},[t("VButton",{staticClass:"toggle-mode",attrs:{disabled:!e.popupOpened,type:"transparent",title:e.isRGB?"切换至HSB":"切换至RGB"},on:{click:function(t){e.isRGB=!e.isRGB}}},[e._v("\n "+e._s(e.isRGB?"切换至HSB":"切换至RGB")+"\n ")]),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),t("div",{staticClass:"color-preview",style:{backgroundColor:e.wrapper.hex}}),e._v(" "),t("TextBox",{staticClass:"hex",attrs:{disabled:!e.popupOpened,text:e.wrapper.hex,"change-on-blur":""},on:{change:function(t){return e.selectHexColor(t)}}})],1),e._v(" "),t("div",{staticClass:"operations item-group",on:{click:function(t){e.popupOpened=!e.popupOpened}}},[t("VButton",{staticClass:"cancel",attrs:{disabled:!e.popupOpened},on:{click:function(t){return e.reset()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{staticClass:"ok",attrs:{disabled:!e.popupOpened,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1)])],1)};g._withStripped=!0;var F=n(4654),v=n.n(F);const w=JSON.parse('["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#2196F3","#00A0D8","#00ACC1","#26A69A","#81C784","#9CCC65","#FF9800","#FF7043","#A1887F","#757575","#78909C"]'),y=e=>{let t=new(v())(e);const n={get color(){return t},set color(e){t=e,this.updateProps()},change(e,n){"string"==typeof n&&(n=parseFloat(n),Number.isNaN(n))||(this.color=t[e](n))},updateProps(){this.red=t.red(),this.green=t.green(),this.blue=t.blue(),this.hue=t.hue(),this.saturation=t.saturationv(),this.brightness=t.value(),this.hex=t.hex(),this.hueGradient=`linear-gradient(to right, ${t.hue(0).hex()}, ${t.hue(60).hex()}, ${t.hue(120).hex()}, ${t.hue(180).hex()}, ${t.hue(240).hex()}, ${t.hue(300).hex()}, ${t.hue(0).hex()})`,this.saturationGradient=`linear-gradient(to right, ${t.saturationv(0).hex()}, ${t.saturationv(100).hex()})`,this.brightnessGradient=`linear-gradient(to right, ${t.value(0).hex()}, ${t.value(100).hex()})`,this.redGradient=`linear-gradient(to right, ${t.red(0).hex()}, ${t.red(255).hex()})`,this.greenGradient=`linear-gradient(to right, ${t.green(0).hex()}, ${t.green(255).hex()})`,this.blueGradient=`linear-gradient(to right, ${t.blue(0).hex()}, ${t.blue(255).hex()})`}};return n.updateProps(),n},x=Vue.extend({name:"ColorPicker",components:{TextBox:()=>Promise.resolve().then(n.bind(n,5486)).then((e=>e.default)),VSlider:()=>Promise.resolve().then(n.bind(n,2727)).then((e=>e.default)),VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,6355)).then((e=>e.default))},model:{prop:"color",event:"change"},props:{color:{type:String,default:"#000000",required:!0},size:{type:Number,default:24,required:!1},compact:{type:Boolean,default:!1},popupOffset:{type:Number,default:0}},data(){return{popupOpened:!1,wrapper:y(this.color),colors:w,isRGB:!1}},watch:{popupOpened(e){e&&(document.body.addEventListener("mousedown",(e=>{this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("mouseup",(()=>{this.popupOpened=!1}),{once:!0})})),document.body.addEventListener("touchstart",(e=>{1!==e.touches.length||this.$el.contains(e.target)||this.$el===e.target||document.body.addEventListener("touchend",(()=>{this.popupOpened=!1}),{once:!0})})))}},methods:{ok(){this.$emit("change",this.wrapper.hex)},reset(){this.wrapper.color=new(v())(this.color)},selectHexColor(e){try{const t=new(v())(e,"hex");this.wrapper.color=t}catch(e){}},fixed:e=>(Math.round(10*e)/10).toString(),int:e=>Math.round(e).toString()}});var k=n(5314),C=n.n(k),A={insert:"head",singleton:!1};f()(C(),A);C().locals;const E=(0,c.Z)(x,g,[],!1,null,"5b939efc",null).exports;var B=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("img",e._b({class:{placeholder:e.isPlaceholderActive},attrs:{width:e.width,height:e.height,srcset:e.srcset,src:e.actualSrc}},"img",e.$attrs,!1))};B._withStripped=!0;var D=n(997),z=n(6058);const I=Vue.extend({name:"DpiImage",props:{size:{type:[Object,Number],required:!0},src:{type:String,required:!0},intersection:{type:Object,default:()=>({})},placeholderImage:{type:Boolean,default:!1}},data:()=>({srcset:null,actualSrc:z.EmptyImageUrl,isPlaceholderActive:!1}),computed:{width(){return"object"==typeof this.size&&"width"in this.size?this.size.width:"number"==typeof this.size?this.size:null},height(){return"object"==typeof this.size&&"height"in this.size?this.size.height:"number"==typeof this.size?this.size:null}},watch:{size(){this.sourceChange()},src(){this.sourceChange()}},mounted(){const e={rootMargin:"200px",...this.intersection},t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.calcSrc(),t.disconnect())}))}),e);t.observe(this.$el)},methods:{sourceChange(){this.actualSrc!==z.EmptyImageUrl&&null!==this.srcset&&this.calcSrc()},calcSrc(){const e=!this.src||!this.size;if(this.isPlaceholderActive=e&&this.placeholderImage,e)return this.srcset=null,void(this.placeholderImage?this.actualSrc="https://s1.hdslb.com/bfs/static/blive/live-web-center/static/img/no-cover.1ebe4d5.jpg":this.actualSrc=z.EmptyImageUrl);let{src:t}=this;if(t.startsWith("http:")&&(t=t.replace("http:","https:")),t.includes("//static.hdslb.com/images/member/noface.gif"))return this.srcset=t,void(this.actualSrc=t);this.srcset=(0,D.getDpiSourceSet)(t,this.size),this.actualSrc=t}}}),S=I;const M=(0,c.Z)(S,B,[],!1,null,null,null).exports;var P=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-image-picker"},[t("VButton",{ref:"pickButton",staticClass:"pick-button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[e._t("text",(function(){return[e._v(" 选择图片 ")]}))],2),e._v(" "),t("VPopup",{staticClass:"popup",attrs:{"trigger-element":e.$refs.pickButton},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel()}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("transition-group",{staticClass:"images",attrs:{name:"image-list",tag:"div",tabindex:"-1"}},e._l(e.images,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectImage(n),expression:"() => selectImage(i)"}],key:n.name,staticClass:"image",class:{selected:n.name===e.selectedImage.name},attrs:{title:n.name,tabindex:e.popupOpen?0:-1}},[t("img",{attrs:{width:"64",height:"64",src:n.url}})])})),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:0===e.images.length,expression:"images.length === 0"}],staticClass:"empty-tip"},[e._v("空空如也哦 = ̄ω ̄=")]),e._v(" "),t("div",{staticClass:"operations"},[t("VPopup",{staticClass:"add-image-popup",attrs:{tabindex:"-1",lazy:!1,"trigger-element":e.$refs.addButton},model:{value:e.addImagePopupOpen,callback:function(t){e.addImagePopupOpen=t},expression:"addImagePopupOpen"}},[t("div",{staticClass:"add-image-row"},[e._v("\n 名称:\n "),t("TextBox",{ref:"addImageInput",attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.name,callback:function(t){e.$set(e.newImage,"name",t)},expression:"newImage.name"}})],1),e._v(" "),t("div",{staticClass:"add-image-row"},[e._v("\n 链接:\n "),t("TextBox",{attrs:{disabled:!e.addImagePopupOpen},model:{value:e.newImage.url,callback:function(t){e.$set(e.newImage,"url",t)},expression:"newImage.url"}})],1),e._v(" "),t("div",{staticClass:"add-image-row buttons"},[t("VButton",{attrs:{disabled:!e.addImagePopupOpen},on:{click:function(t){e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 取消\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.newImage.url||!e.newImage.name,type:"primary"},on:{click:function(t){e.addImage(e.newImage),e.addImagePopupOpen=!1,e.clearNewImage()}}},[e._v("\n 确定\n ")])],1)]),e._v(" "),t("VButton",{staticClass:"clear-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.clearImage()}}},[e._v("\n 清除选择\n ")]),e._v(" "),t("VButton",{ref:"addButton",staticClass:"add-image",attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.openAddImagePopup()}}},[e._v("\n 添加\n ")]),e._v(" "),t("VButton",{staticClass:"edit-image",attrs:{disabled:!e.selectedImage.name},on:{click:function(t){return e.editImage()}}},[e._v("\n 编辑\n ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.selectedImage.name},on:{click:function(t){e.removeImage(e.selectedImage),e.clearImage()}}},[e._v("\n 删除\n ")])],1),e._v(" "),t("div",{staticClass:"operations"},[t("VButton",{attrs:{disabled:!e.popupOpen},on:{click:function(t){return e.cancel()}}},[e._v(" 取消 ")]),e._v(" "),t("VButton",{attrs:{disabled:!e.popupOpen,type:"primary"},on:{click:function(t){return e.ok()}}},[e._v(" 确定 ")])],1),e._v(" "),e.addImagePopupOpen?t("div",{staticClass:"mask"}):e._e()],1)],1)};P._withStripped=!0;const O=[],V=Vue.extend({name:"ImagePicker",components:{VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VPopup:()=>Promise.resolve().then(n.bind(n,6355)).then((e=>e.default)),TextBox:()=>Promise.resolve().then(n.bind(n,5486)).then((e=>e.default))},model:{prop:"image",event:"change"},props:{image:{type:Object,required:!0}},data:()=>({images:O,popupOpen:!1,addImagePopupOpen:!1,selectedImage:{name:"",url:""},newImage:{name:"",url:""}}),methods:{addImage:e=>{if(!e.name||!e.url)return;const t=O.find((t=>t.name===e.name));t?t.url=e.url:O.unshift(e)},removeImage:e=>{const t="string"==typeof e?e:e.name,n=O.findIndex((e=>e.name===t));-1!==n&&O.splice(n,1)},ok(){this.$emit("change",this.selectedImage),this.popupOpen=!1},cancel(){this.selectedImage=this.image,this.popupOpen=!1},selectImage(e){this.selectedImage.name===e.name?this.selectedImage={name:"",url:""}:this.selectedImage=e},clearImage(){this.selectedImage={name:"",url:""}},clearNewImage(){this.newImage={name:"",url:""}},editImage(){this.newImage=this.selectedImage,this.openAddImagePopup()},async openAddImagePopup(){this.addImagePopupOpen=!this.addImagePopupOpen,await this.$nextTick(),this.$refs.addImageInput.$refs.input.focus()}}});var T=n(3992),L=n.n(T),j={insert:"head",singleton:!1};f()(L(),j);L().locals;const R=(0,c.Z)(V,P,[],!1,null,"7b32c90b",null).exports;var N=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"image-viewer-container",class:{open:e.open},on:{click:e.detectOutside}},[t("div",{ref:"viewer",staticClass:"image-viewer"},[t("div",{staticClass:"image-container"},[e.image?t("img",{staticClass:"image",attrs:{src:e.image}}):e._e()]),e._v(" "),t("div",{staticClass:"close image-viewer-icon",attrs:{title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{size:48,icon:"mdi-close"}})],1),e._v(" "),t("a",{staticClass:"copy-link image-viewer-icon",attrs:{target:"_blank",title:"复制原链接"},on:{click:function(t){return e.copyLink()}}},[e.copiedTimer?t("VIcon",{attrs:{size:48,icon:"mdi-check"}}):t("VIcon",{attrs:{size:48,icon:"mdi-link"}})],1),e._v(" "),t("a",{staticClass:"new-tab image-viewer-icon",attrs:{target:"_blank",title:"在新标签页打开"},on:{click:function(t){return e.newTab()}}},[t("VIcon",{attrs:{size:48,icon:"mdi-open-in-new"}})],1),e._v(" "),e.blobUrl?t("a",{staticClass:"download image-viewer-icon",attrs:{target:"_blank",title:"下载",href:e.blobUrl,download:e.filename}},[t("VIcon",{attrs:{size:48,icon:"mdi-download"}})],1):e._e()])])};N._withStripped=!0;var q=n(5600),Z=n(943),U=n(6629);const H=Vue.extend({components:{VIcon:o.default},props:{image:{type:String,required:!0}},data:()=>({filename:"",open:!1,blobUrl:"",keyHandler:null,copiedTimer:0}),watch:{async image(e){this.blobUrl&&URL.revokeObjectURL(this.blobUrl),e||(this.blobUrl="");const t=await(0,U.getBlob)(e);this.blobUrl=URL.createObjectURL(t),this.updateFilename()}},mounted(){this.keyHandler=e=>{"Escape"===e.key&&(this.open=!1)},document.addEventListener("keydown",this.keyHandler),(0,q.addComponentListener)("settingsPanel.filenameFormat",(()=>{this.updateFilename()}),!0)},beforeDestroy(){document.removeEventListener("keydown",this.keyHandler)},methods:{async copyLink(){await navigator.clipboard.writeText(this.image),this.copiedTimer&&window.clearTimeout(this.copiedTimer),this.copiedTimer=window.setTimeout((()=>{this.copiedTimer=0}),2e3)},newTab(){window.open(this.image,"_blank")},detectOutside(e){const t=this.$el,{viewer:n}=this.$refs;e.target!==t&&e.target!==n||(this.open=!1)},updateFilename(){const e=this.image;this.filename=e?(0,Z.getFriendlyTitle)(document.URL.includes("/www.bilibili.com/bangumi/"))+e.substring(e.lastIndexOf(".")):""}}});var W=n(7677),G=n.n(W),Q={insert:"head",singleton:!1};f()(G(),Q);G().locals;const Y=(0,c.Z)(H,N,[],!1,null,"8829ba14",null).exports;let X;const K=async e=>(X||await(async()=>(X=new Y({propsData:{image:"",open:!1}}).$mount(),document.body.insertAdjacentElement("beforeend",X.$el),X))(),setTimeout((()=>{X.image=e,X.open=!0})),X);var J=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-progress-bar"},[t("div",{staticClass:"progress",class:{transition:e.transition},style:{width:e.width}})])};J._withStripped=!0;const _=Vue.extend({name:"ProgressBar",props:{progress:{type:Number,default:50},min:{type:Number,default:0},max:{type:Number,default:100},transition:{type:Boolean,default:!1}},computed:{width(){let e=this.progress;e>this.max?e=this.max:ethis.max?e=this.max:e{de.has(e)?de.get(e).push({instance:t,uncheck:n}):de.set(e,[{instance:t,uncheck:n}])})),fe=Vue.extend({name:"RadioButton",components:{CheckBox:h},model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,required:!0},allowUncheck:{type:Boolean,default:!1},group:{type:String,default:""},checkedIcon:{type:String,default:"mdi-radiobox-marked"},notCheckedIcon:{type:String,default:"mdi-radiobox-blank"}},watch:{checked(e){if(e){const e=this.group,t=this.$el;let n;n=""===e?t.parentElement:e,de.get(n).forEach((e=>{let{instance:t,uncheck:n}=e;t!==this&&n()}))}}},mounted(){const e=this.group,t=this.$el;let n;n=me(""===e?t.parentElement:e),n(this,(()=>this.$emit("change",!1)))},methods:{emitChange(e){(this.checked&&this.allowUncheck||!this.checked)&&this.$emit("change",e)}}});const ue=(0,c.Z)(fe,le,[],!1,null,null,null).exports;var pe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-range-input"},[t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.start.toString()},on:{change:function(t){e.wrapper.start=t}}}),e._v(" "),e._t("separator",(function(){return[t("div",{staticClass:"default-separator"},[e._v("~")])]})),e._v(" "),t("TextBox",{attrs:{"change-on-blur":"",text:e.wrapper.range.end.toString()},on:{change:function(t){e.wrapper.end=t}}})],2)};pe._withStripped=!0;const be=e=>({range:e.range,get start(){return this.range.start.toString()},set start(e){this.createNewRange(e,this.end)},get end(){return this.range.end.toString()},set end(e){this.createNewRange(this.start,e)},createNewRange(t,n){let o={start:t,end:n};e.validator&&(o=e.validator(o)),null!=o?(this.range=o,e.$emit("change",o)):this.range={start:this.range.start,end:this.range.end}}}),he=Vue.extend({name:"RangeInput",components:{TextBox:()=>Promise.resolve().then(n.bind(n,5486))},model:{prop:"range",event:"change"},props:{range:{type:Object,required:!0},validator:{type:Function,default:void 0}},data(){return{wrapper:be(this)}}});var ge=n(6566),Fe=n.n(ge),ve={insert:"head",singleton:!1};f()(Fe(),ve);Fe().locals;const we=(0,c.Z)(he,pe,[],!1,null,"b459c060",null).exports;var ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-scroll-trigger",on:{click:function(t){return e.trigger()}}},[e._t("default",(function(){return[t("VLoading")]}))],2)};ye._withStripped=!0;var xe=n(962);const ke=Vue.extend({components:{VLoading:()=>Promise.resolve().then(n.bind(n,3441)).then((e=>e.default))},props:{detectViewport:{type:Boolean,required:!1,default:!1}},data:()=>({isFirstLoad:!0,isViewportTriggerRunning:!1,parentLoadState:"none"}),async mounted(){const e=(0,xe.useScopedConsole)("ScrollTrigger"),t=this.$el,{visible:o}=await Promise.resolve().then(n.bind(n,1854));o(t,(async n=>{if(n.some((e=>e.intersectionRatio>0))){if(e.log("Intersection Observer trigger"),this.trigger(),!this.detectViewport&&!this.isFirstLoad&&this.isViewportTriggerRunning)return;for(this.isViewportTriggerRunning=!0;this.getVisibleStateByViewport(t);)if(await(0,D.delay)(500),"loaded"===this.parentLoadState){if(!this.getVisibleStateByViewport(t))break;e.log("is first load & viewport trigger"),this.trigger()}this.isFirstLoad=!1}}))},methods:{getElementToViewportBottomDistance:e=>document.documentElement.clientHeight-e.getBoundingClientRect().top,getVisibleStateByViewport(e){return Boolean(this.getElementToViewportBottomDistance(e)>-20)},setLoadState(e){this.parentLoadState=e},resetIsFirstLoad(){this.isFirstLoad=!0},trigger(){this.$emit("trigger")}}});var Ce=n(7818),Ae=n.n(Ce),Ee={insert:"head",singleton:!1};f()(Ae(),Ee);Ae().locals;const Be=(0,c.Z)(ke,ye,[],!1,null,null,null).exports;var De=n(8798),ze=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-tab-control"},[t("div",{staticClass:"default-header"},[e._t("tabs",(function(){return[t("div",{staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},attrs:{"data-count":n.count>0?n.count:null},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)]})),e._v(" "),t("div",{staticClass:"header-item"},[e._t("header-item")],2),e._v(" "),null!==e.moreLink&&void 0!==e.moreLink?t("a",{staticClass:"be-more-link",attrs:{href:"function"==typeof e.moreLink?e.moreLink(e.selectedTab):e.moreLink,target:"_blank"}},[t("VButton",{attrs:{disabled:!e.moreLink,round:""}},[e._t("more-link",(function(){return[e._v("\n 查看更多\n "),t("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})]}))],2)],1):e._e()],2),e._v(" "),e._t("content",(function(){return[t("div",{staticClass:"default-content"},[t("transition",{attrs:{name:"content-transition"}},[t(e.selectedTab.component,e._b({tag:"component"},"component",e.selectedTab.propsData,!1))],1)],1)]}))],2)};ze._withStripped=!0;const Ie=Vue.extend({name:"TabControl",components:{VButton:()=>Promise.resolve().then(n.bind(n,3932)).then((e=>e.default)),VIcon:()=>Promise.resolve().then(n.bind(n,1282)).then((e=>e.default))},model:{prop:"link",event:"change"},props:{tabs:{type:Array,required:!0,validator:e=>0!==e.length},defaultTab:{type:String,required:!1,default:""},link:{type:String,required:!1,default:null},moreLink:{type:[String,Function],default:null}},data(){const e=this.tabs;return{selectedTabName:e.find((e=>e.name===this.defaultTab))?.name??e[0].name}},computed:{selectedTab(){return this.tabs.find((e=>e.name===this.selectedTabName))}},mounted(){this.$emit("change",this.selectedTab.activeLink)},methods:{selectTab(e){this.selectedTabName!==e.name?(this.selectedTabName=e.name,e.count=0,this.$emit("change",this.selectedTab.activeLink)):e.activeLink&&window.open(e.activeLink,"_blank")}}});var Se=n(3543),Me=n.n(Se),Pe={insert:"head",singleton:!1};f()(Me(),Pe);Me().locals;const Oe=(0,c.Z)(Ie,ze,[],!1,null,null,null).exports;var Ve=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-text-area",attrs:{role:"text"}},[t("textarea",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"textarea",e.$attrs,!1),e.restListeners))])};Ve._withStripped=!0;var Te=n(8491);const Le=Vue.extend({name:"TextArea",mixins:[Te.t]});var je=n(2407),Re=n.n(je),Ne={insert:"head",singleton:!1};f()(Re(),Ne);Re().locals;const qe=(0,c.Z)(Le,Ve,[],!1,null,null,null).exports;var Ze=n(5486),Ue=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"hit",rawName:"v-hit",value:e.hit,expression:"hit"}],staticClass:"be-dropdown",class:{disabled:e.disabled,round:e.round},attrs:{role:"combobox",tabindex:e.disabled?-1:0,"aria-disabled":e.disabled}},[t("div",{ref:"selected",staticClass:"selected"},[t("div",{staticClass:"selected-item"},[null!==e.value&&void 0!==e.value?e._t("item",(function(){return[e._v("\n "+e._s(e.value.displayName)+"\n ")]}),{item:e.value}):e._e()],2),e._v(" "),t("div",{staticClass:"arrow",class:{open:e.popupOpen}},[e._t("arrow",(function(){return[t("div",{staticClass:"default-arrow"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"}},[t("defs",[t("clipPath",{attrs:{id:"clip-arrow-down"}},[t("rect",{attrs:{width:"24",height:"24"}})])]),e._v(" "),t("g",{attrs:{id:"arrow-down","clip-path":"url(#clip-arrow-down)"}},[t("path",{attrs:{id:"Path_1","data-name":"Path 1",d:"M2,17,12,7,22,17",transform:"translate(24 25) rotate(180)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}})])])])]}))],2)]),e._v(" "),t("VPopup",{ref:"popup",staticClass:"dropdown-popup",attrs:{lazy:!1,"trigger-element":e.$refs.selected},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.selectItem(e.value)}},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(e.items,(function(n){return t("div",{directives:[{name:"hit",rawName:"v-hit",value:()=>e.selectItem(n),expression:"() => selectItem(item)"}],key:e.keyMapper(n),staticClass:"bex-dropdown-item",attrs:{tabindex:e.popupOpen?0:-1}},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)})),0)],1)};Ue._withStripped=!0;var He=n(6355);const We=Vue.extend({name:"VDropdown",components:{VPopup:He.default},model:{prop:"value",event:"change"},props:{value:{required:!0},items:{type:Array,required:!0},keyMapper:{type:Function,default:e=>e.name},round:{type:Boolean,default:!1}},data:()=>({popupOpen:!1}),computed:{disabled(){return Boolean(this.$attrs.disabled)}},watch:{disabled(e){e&&(this.popupOpen=!1)}},created(){null!==this.value&&void 0!==this.value||this.$emit("change",this.items[0]||"")},methods:{selectItem(e){e!==this.value&&this.$emit("change",e),this.popupOpen=!1,this.$el.focus()},hit(e){if(this.disabled)return;const t=this.$refs.popup.$el,n=e.target;t===n||t.contains(n)||(this.popupOpen=!this.popupOpen)}}});var Ge=n(6539),Qe=n.n(Ge),Ye={insert:"head",singleton:!1};f()(Qe(),Ye);Qe().locals;const Xe=(0,c.Z)(We,Ue,[],!1,null,"6b51ccd4",null).exports;var Ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-empty"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};Ke._withStripped=!0;var Je=n(6940);const[_e]=(0,Je.registerAndGetData)("vEmpty",{content:"空空如也哦 = ̄ω ̄="}),$e=Vue.extend({name:"VEmpty",data:()=>({config:_e})});var et=n(6105),tt=n.n(et),nt={insert:"head",singleton:!1};f()(tt(),nt);tt().locals;const ot=(0,c.Z)($e,Ke,[],!1,null,null,null).exports;var it=n(3441),rt=n(2727),at=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",e._g(e._b({staticClass:"default-widget"},"VButton",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"widget-icon"},[e._t("icon",(function(){return[t("VIcon",{attrs:{type:e.iconType,icon:e.icon}})]}))],2),e._v(" "),t("div",{staticClass:"widget-name"},[e._t("default",(function(){return[e._v(e._s(e.name))]}))],2)])};at._withStripped=!0;const ct=Vue.extend({components:{VIcon:o.default,VButton:r.default},props:{name:{type:String,default:""},icon:{type:String,default:""},iconType:{type:String,default:""}}});var st=n(6676),lt=n.n(st),dt={insert:"head",singleton:!1};f()(lt(),dt);lt().locals;const mt=(0,c.Z)(ct,at,[],!1,null,"20e1bedd",null).exports;var ft=n(7864)},2266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initMdiStyle:()=>r});var o=n(1898),i=n.n(o);const r=()=>{const e=document.createElement("style");return e.id="be-mdi",e.innerHTML=i(),e}},8491:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const o=Vue.extend({model:{prop:"text",event:"change"},props:{text:{type:String,required:!1,default:""},changeOnBlur:{type:Boolean,required:!1,default:!1},validator:{type:Function,default:void 0}},data(){return{composing:!1,restListeners:lodash.omit(this.$listeners,"change","input","compositionstart","compositionend")}},methods:{emitChange(){let{value:e}=this.$refs.input;this.validator&&(e=this.validator(e,this.text),this.changeOnBlur&&(this.$refs.input.value=e)),e!==this.text&&this.$emit("change",e)},input(){this.changeOnBlur||this.composing||this.emitChange()},change(){this.changeOnBlur&&!this.composing&&this.emitChange()},compositionStart(){this.composing=!0},compositionEnd(){this.composing=!1,this.input()},focus(){this.$refs.input.focus()}}})},6433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compilationInfo:()=>m});var o=n(113);const i="the1812",r="cdn.jsdelivr.net",a={name:"jsDelivr",owner:i,host:r,stableClient:`https://${r}/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js`,previewClient:`https://${r}/gh/the1812/Bilibili-Evolved@preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${r}/npm/lodash@4.17.21/lodash.min.js`,protobuf:`https://${r}/npm/protobufjs@6.10.1/dist/light/protobuf.min.js`,jszip:`https://${r}/npm/jszip@3.7.1/dist/jszip.min.js`,sortable:`https://${r}/npm/sortablejs@1.14.0/Sortable.min.js`,mdi:`https://${r}/gh/the1812/Bilibili-Evolved@master/docs/static/mdi/mdi.css`,streamsaver:`https://${r}/npm/streamsaver@2.0.6/StreamSaver.min.js`,ffmpeg:{worker:`https://${r}/npm/@ffmpeg/ffmpeg@0.12.4/dist/umd/814.ffmpeg.js`,core:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.js`,wasm:`https://${r}/npm/@ffmpeg/core@0.12.4/dist/umd/ffmpeg-core.wasm`}},smallLogo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo-small.png`,logo:`https://${r}/gh/the1812/Bilibili-Evolved@preview/images/logo.png`,root:(e,t)=>`https://${r}/gh/${t||i}/Bilibili-Evolved@${e}/`},c="the1812",s="raw.githubusercontent.com",l=a,d={github:{name:"GitHub",owner:c,host:s,stableClient:`https://${s}/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js`,previewClient:`https://${s}/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js`,library:{lodash:`https://${s}/lodash/lodash/4.17.21/dist/lodash.min.js`,protobuf:`https://${s}/protobufjs/protobuf.js/v6.10.1/dist/light/protobuf.min.js`,jszip:`https://${s}/Stuk/jszip/v3.7.1/dist/jszip.min.js`,sortable:`https://${s}/SortableJS/Sortable/1.14.0/Sortable.min.js`,mdi:"https://the1812.github.io/Bilibili-Evolved/static/mdi/mdi.css",streamsaver:`https://${s}/jimmywarting/StreamSaver.js/2.0.6/StreamSaver.js`,ffmpeg:a.library.ffmpeg},smallLogo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo-small.png`,logo:`https://${s}/the1812/Bilibili-Evolved/preview/images/logo.png`,root:(e,t)=>`https://${s}/${t||c}/Bilibili-Evolved/${e}/`},jsDelivr:a},m={...{year:(new Date).getFullYear(),version:o.version,altCdn:l,allCdns:d},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",branch:"master-cdn",nearestTag:"v2.8.8",versionWithTag:"v2.8.8-74-g9f446110e"}},6990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"switch-options",class:{"small-size":e.smallSize,grid:!e.popupMode}},[e.popupMode?[t("VButton",{ref:"button",on:{click:function(t){e.popupOpen=!e.popupOpen}}},[t("VIcon",{staticClass:"switch-icon",attrs:{icon:"mdi-checkbox-marked-circle-outline",size:e.smallSize?16:22}}),e._v("\n "+e._s(e.options.optionDisplayName)+"\n ")],1),e._v(" "),t("VPopup",{staticClass:"switch-options-popup widgets-popup",attrs:{"trigger-element":e.$refs.button,"esc-close":"","auto-destroy":""},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]:[t("div",{staticClass:"switch-options-grid"},e._l(Object.keys(e.options.switches),(function(n){return t(e.options.radio?"RadioButton":"CheckBox",e._b({key:n,tag:"component",class:{dim:e.isDim(n)},attrs:{checked:e.componentOptions[`switch-${n}`]},on:{change:function(t){e.componentOptions[`switch-${n}`]=t}}},"component",e.mergedSwitchProps,!1),[e._v("\n "+e._s(e.options.switches[n].displayName)+"\n ")])})),1)]],2)};o._withStripped=!0;var i=n(9047),r=n(5600);const a=Vue.extend({name:"SwitchOptions",components:{VPopup:i.VPopup,VButton:i.VButton,VIcon:i.VIcon,CheckBox:i.CheckBox,RadioButton:i.RadioButton},props:{options:{type:Object,required:!0},smallSize:{type:Boolean,default:!1},popupMode:{type:Boolean,default:!0}},data(){const{componentName:e}=this.options;return{popupOpen:!1,componentOptions:(0,r.getComponentSettings)(e).options}},computed:{mergedSwitchProps(){return{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline",...this.options.switchProps}}},watch:{options(){this.updateColumnsCount()}},mounted(){this.updateColumnsCount()},methods:{updateColumnsCount(){const e=this.$el,t=Math.ceil(Object.keys(this.options.switches).length/12);e.style.setProperty("--columns",t.toString())},isDim(e){return"checked"===this.options.dimAt||void 0===this.options.dimAt?this.componentOptions[`switch-${e}`]:"notChecked"===this.options.dimAt&&!this.componentOptions[`switch-${e}`]}}});var c=n(8332),s=n.n(c),l=n(4314),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},5247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{staticClass:"check-all-updates",attrs:{disabled:e.disabled},on:{click:function(t){return e.checkUpdates()}}},[t("VIcon",{attrs:{size:16,icon:"mdi-cloud-sync-outline"}}),e._v("\n 立即检查所有更新\n")],1)};o._withStripped=!0;var i=n(6812),r=n(9047),a=n(1206);const c=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon},data:()=>({disabled:!1}),methods:{async checkUpdates(){try{this.disabled=!0;const e=i.Toast.info("正在检查更新...","检查所有更新");await(0,a.forceCheckUpdateAndReload)(),e.close()}finally{this.disabled=!1}}}});var s=n(8332),l=n.n(s),d=n(1387),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"76652ef2",null).exports},2555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bisector-dialog-content-container"},[t("div",{staticClass:"bisector-dialog-content-text"},[e._v("\n 组件二等分进行中,预计剩余\n "),t("b",{staticStyle:{color:"var(--theme-color)"}},[e._v(e._s(e.rouge)+" ")]),e._v("轮次,请确认当前情况:\n ")]),e._v(" "),t("div",{staticClass:"bisector-dialog-button-group"},[t("VButton",{on:{click:e.onGood}},[e._v("正常")]),e._v(" "),t("VButton",{on:{click:e.onBad}},[e._v("不正常")]),e._v(" "),t("VButton",{attrs:{type:"primary"},on:{click:e.onAbort}},[e._v("终止")])],1),e._v(" "),t("div",{staticClass:"bisector-dialog-content-text weak"},[e._v("\n *可以点击×号关闭对话框,刷新页面后,会再次询问\n ")])])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9047);const c=r().extend({components:{VButton:a.VButton},props:{rouge:{type:Number,required:!0},onAbort:{type:Function,default:none},onGood:{type:Function,default:none},onBad:{type:Function,default:none}}});var s=n(8332),l=n.n(s),d=n(6657),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"31cf1990",null).exports},8526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v("\n 组件二等分\n "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1)])};o._withStripped=!0;var i=n(5026),r=n.n(i),a=n(9047);const c=r().extend({components:{VIcon:a.VIcon},data:()=>({peek:!1}),watch:{peek(e){this.$el.closest(".be-dialog").style.opacity=e?"0.1":"1"}}});var s=n(8332),l=n.n(s),d=n(7209),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,"386ddf8e",null).exports},8521:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"launch-bar"},[t("div",{staticClass:"input-area"},[t("div",{staticClass:"launch-bar-form"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"input",staticClass:"input",attrs:{type:"text",autocomplete:"off",placeholder:e.recommended.word},domProps:{value:e.keyword},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnter.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),e.handleUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),e.handleDown.apply(null,arguments))}],input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),t("button",{staticClass:"submit",attrs:{title:"执行",tabindex:"-1"},on:{click:e.handleEnter}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)])]),e._v(" "),t("div",{ref:"list",staticClass:"launch-bar-suggest-list"},[e.isHistory?t("div",{staticClass:"launch-bar-history-list"},[0===e.actions.length?t("div",{staticClass:"history-empty suggest-item disabled",attrs:{tabindex:"0"}},[e._v("\n 暂无搜索历史\n ")]):e._e(),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){o===e.actions.length-1&&e.onClearHistory(),e.onAction(n)}}})}))],2):e._e(),e._v(" "),e.isHistory?e._e():t("div",{staticClass:"launch-bar-action-list"},[0===e.actions.length&&e.noActions?t("VEmpty",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}):e._e(),e._v(" "),0!==e.actions.length||e.noActions?e._e():t("VLoading",{staticClass:"suggest-item disabled",attrs:{tabindex:"0"}}),e._v(" "),e._l(e.actions,(function(n,o){return t("ActionItem",{key:n.key,attrs:{action:n},on:{"previous-item":function(t){return e.previousItem(t,o)},"next-item":function(t){return e.nextItem(t,o)},"delete-item":function(t){return e.onDeleteItem(t,o)},action:function(t){return e.onAction(n)}}})}))],2)])])};o._withStripped=!0;var i=n(7942),r=n(9047),a=n(6940),c=n(8689),s=n(997),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-launch-bar-action-item suggest-item",attrs:{tabindex:"0",title:e.action.displayName||e.action.name,"data-indexer":e.action.indexer},on:{click:function(t){return t.target!==t.currentTarget?null:e.performAction(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.performAction(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:t.shiftKey?(t.preventDefault(),t.stopPropagation(),e.performDelete(t)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("previous-item",t.currentTarget))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.$emit("next-item",t.currentTarget))}]}},[t("div",{staticClass:"suggest-item-content"},[e.action.icon?t("div",{staticClass:"suggest-item-icon",on:{click:function(t){return e.performAction(t)}}},[t("VIcon",{attrs:{icon:e.action.icon,size:18}})],1):e._e(),e._v(" "),t("div",{staticClass:"suggest-item-title",on:{click:function(t){return e.performAction(t)}}},[e.action.content?t(e.action.content,{tag:"component",staticClass:"suggest-item-name",attrs:{name:e.action.name}}):t("div",{staticClass:"suggest-item-name"},[e._v("\n "+e._s(e.action.displayName||e.action.name)+"\n ")]),e._v(" "),e.action.description?t("div",{staticClass:"suggest-item-description"},[e._v("\n "+e._s(e.action.description)+"\n ")]):e._e()],1),e._v(" "),e.action.deleteAction?t("div",{staticClass:"suggest-item-delete",attrs:{title:"删除此项"},on:{click:function(t){return e.performDelete(t)}}},[t("VIcon",{attrs:{icon:"cancel",size:18}})],1):e._e()])])};l._withStripped=!0;const d=Vue.extend({components:{VIcon:r.VIcon},props:{action:{type:Object,required:!0}},methods:{async performAction(e){const{currentTarget:t}=e;await this.action.action(),this.$emit("action",t)},async performDelete(e){const{currentTarget:t}=e;this.action.deleteAction&&(await this.action.deleteAction(),this.$emit("delete-item",t))}}});var m=n(8332),f=n.n(m),u=n(7559),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;var h=n(6499);const g=(0,h.Z)(d,l,[],!1,null,null,null).exports;var F=n(40),v=n(5989),w=n(2100),y=n(197);const[x]=(0,a.registerAndGetData)(F.LaunchBarActionProviders,[v.searchProvider,w.dr]),k=e=>[...e].sort((0,y.ascendingSort)((e=>e.order??1/0))),C=(e,t)=>t.map((t=>{const n=`${e.name}.${t.name}`;return{...t,key:n,provider:e}}));const[A]=(0,a.registerAndGetData)("launchBar.recommended",{word:"搜索",href:"https://search.bilibili.com/"}),E=Vue.extend({components:{VIcon:r.VIcon,VLoading:r.VLoading,VEmpty:r.VEmpty,ActionItem:g},data:()=>({recommended:A,actions:[],keyword:"",noActions:!1}),computed:{isHistory(){return 0===this.keyword.length}},watch:{keyword(){this.getActions()}},async mounted(){this.getActions(),(0,s.matchUrlPattern)(/^https?:\/\/search\.bilibili\.com/)&&(0,c.select)("#search-keyword, .search-input-el").then((e=>{e&&(this.keyword=e.value,document.addEventListener("change",(e=>{e.target instanceof HTMLInputElement&&"search-keyword"===e.target.id&&(this.keyword=e.target.value)})))}))},methods:{getOnlineActions:lodash.debounce((async function(){const e=(await Promise.all(x.map((async e=>C(e,await e.getActions(this.keyword)))))).flat();if(this.isHistory)return;const t=new i.Z(e,{keys:["indexer","displayName","name","description","key"]}).search(this.keyword);console.log(t),this.actions=k(t.map((e=>e.item)).slice(0,12)),this.noActions=0===this.actions.length}),200),getActions:async function(){if(this.noActions=!1,this.isHistory)return void(this.actions=k(C(w.dr,await w.dr.getActions(this.keyword))));this.actions=[],this.getOnlineActions()},handleSelect(){this.$emit("close"),this.getActions()},async handleEnter(e){if(!e.isComposing){if(this.actions.length>0&&!this.isHistory){const[e]=this.actions;if(!0!==e.explicitSelect)return void e.action()}if(this.keyword)return(0,v.search)(this.keyword),void this.handleSelect();window.open(this.recommended.href,"_blank"),this.handleSelect()}},handleUp(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item:last-child").focus(),e.preventDefault())},handleDown(e){e.isComposing||(this.$refs.list.querySelector(".suggest-item").focus(),e.preventDefault())},previousItem(e,t){0===t?this.focus():e.previousElementSibling.focus()},nextItem(e,t){t!==this.actions.length-1?e.nextElementSibling.focus():this.focus()},search:v.search,onDeleteItem(e,t){this.previousItem(e,t),this.getActions()},onClearHistory(){this.focus(),this.getActions()},onAction(){this.handleSelect()},focus(){this.$refs.input.focus()}}});var B=n(7293),D=n.n(B),z={insert:"head",singleton:!1};f()(D(),z);D().locals;const I=(0,h.Z)(E,o,[],!1,null,null,null).exports},2977:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"release-content"},[t("div",{staticClass:"release-content-markdown",domProps:{innerHTML:e._s(e.content)}}),e._v(" "),t("div",{staticClass:"release-content-actions"},[t("VButton",{on:{click:function(t){return e.$emit("dialog-close")}}},[e._v(" 取消 ")]),e._v(" "),e.detailsLink?t("a",{attrs:{href:e.detailsLink,target:"_blank"}},[t("VButton",[e._v(" 查看详情 ")])],1):e._e(),e._v(" "),e.updateUrl?t("a",{attrs:{href:e.updateUrl,target:"_blank"}},[t("VButton",{attrs:{type:"primary"}},[e._v(" 安装 ")])],1):e._e()],1)])};o._withStripped=!0;var i=n(398),r=n(9047);const a=`https://github.com/${i.defaultOwner}/Bilibili-Evolved/releases`,c=Vue.extend({components:{VButton:r.VButton},props:{content:{type:String,default:""},updateUrl:{type:String,default:""}},data:()=>({detailsLink:a})});var s=n(8332),l=n.n(s),d=n(6737),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},6387:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-description",domProps:{innerHTML:e._s(e.html)}})};o._withStripped=!0;var i=n(5600),r=n(7568);const a=Vue.extend({props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,i.getComponentSettings)(this.componentData),html:""}},async created(){this.html=await(0,r.getDescriptionHTML)(this.componentData)}});var c=n(8332),s=n.n(c),l=n(6046),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},9075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"be-settings"},[t("div",{staticClass:"sidebar"},[t("div",{ref:"widgetsIcon",class:{open:e.widgetsOpened},attrs:{title:"功能"},on:{click:[function(t){return t.shiftKey?e.theWorld.apply(null,arguments):null},function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return null;e.widgetsOpened=!e.widgetsOpened}],mouseover:function(t){return e.loadPanel("widgetsPanelPopup")}}},[t("VIcon",{attrs:{icon:"widgets",size:26}})],1),e._v(" "),t("div",{ref:"settingsIcon",class:{open:e.settingsOpened},attrs:{title:"设置"},on:{click:function(t){e.settingsOpened=!e.settingsOpened},mouseover:function(t){return e.loadPanel("settingsPanelPopup")}}},[t("VIcon",{attrs:{icon:"settings-outline",size:26}})],1)]),e._v(" "),t("VPopup",{ref:"widgetsPanelPopup",staticClass:"widgets-panel-popup",attrs:{"trigger-element":e.$refs.widgetsIcon,fixed:!0},model:{value:e.widgetsOpened,callback:function(t){e.widgetsOpened=t},expression:"widgetsOpened"}},[t("WidgetsPanel")],1),e._v(" "),t("VPopup",{ref:"settingsPanelPopup",staticClass:"settings-panel-popup",attrs:{"trigger-element":e.$refs.settingsIcon,"auto-close-predicate":e.settingsPanelClosePredicate,fixed:!0},model:{value:e.settingsOpened,callback:function(t){e.settingsOpened=t},expression:"settingsOpened"}},[t("SettingsPanel",{on:{close:function(t){e.settingsOpened=!1}}})],1)],1)};o._withStripped=!0;var i=n(9047),r=n(4612);const a={name:"SettingsContainer",components:{VPopup:i.VPopup,VIcon:i.VIcon,SettingsPanel:()=>Promise.resolve().then(n.bind(n,3385)).then((e=>e.default)),WidgetsPanel:()=>Promise.resolve().then(n.bind(n,855)).then((e=>e.default))},data:()=>({settingsOpened:!1,widgetsOpened:!1}),mounted(){GM_registerMenuCommand("功能",(()=>{this.loadPanel("widgetsPanelPopup"),this.widgetsOpened=!0,this.settingsOpened=!1})),GM_registerMenuCommand("设置",(()=>{this.loadPanel("settingsPanelPopup"),this.widgetsOpened=!1,this.settingsOpened=!0}))},methods:{theWorld(){r.externalApis.theWorld(0)},settingsPanelClosePredicate:e=>!dqa(".be-settings-extra-options").some((t=>t===e.target||t.contains(e.target))),loadPanel(e){const t=this.$refs[e];t&&((t?.loaded??1)||(t.loaded=!0))}}};var c=n(8332),s=n.n(c),l=n(6290),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},3385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ae});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-panel",class:{collapsed:e.collapsed,peek:e.peek}},[t("div",{staticClass:"settings-panel-header"},[t("VIcon",{attrs:{icon:"settings-outline"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("设置")]),e._v(" "),t("div",{staticClass:"peek",staticStyle:{"margin-left":"auto"},attrs:{title:"透视"},on:{mouseover:function(t){e.peek=!0},mouseout:function(t){e.peek=!1}}},[t("VIcon",{attrs:{icon:"eye",size:18}})],1),e._v(" "),t("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[t("VIcon",{attrs:{icon:"close",size:18}})],1)],1),e._v(" "),t("div",{staticClass:"settings-panel-content"},[t("div",{ref:"sidebarContainer",staticClass:"sidebar"},[t("ComponentTags",{ref:"componentTags",on:{change:function(t){e.searchFilter=t}}})],1),e._v(" "),t("div",{ref:"mainContainer",staticClass:"main"},[t("div",{ref:"componentList",staticClass:"component-list"},[t("div",{staticClass:"settings-panel-search-bar"},[t("TextBox",{staticClass:"settings-panel-search",attrs:{placeholder:"搜索"},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}}),e._v(" "),e._l(e.searchBarActions,(function(n){return t("VButton",{key:n.key,attrs:{type:"transparent",icon:"",title:"function"==typeof n.title?n.title(e.searchBarContext):n.title,disabled:!!n.disabled&&n.disabled(e.searchBarContext)}},[t("VIcon",{attrs:{icon:n.icon,size:18},on:{click:function(t){return n.run(e.searchBarContext)}}})],1)}))],2),e._v(" "),e._l(e.renderedComponents,(function(n){return t("div",{key:n.name,on:{"!click":[function(t){return t.ctrlKey?(t.stopPropagation(),e.selectMultipleComponent(n)):null},function(t){return t.shiftKey?(t.stopPropagation(),e.selectMultipleComponent(n,!0)):null}]}},[t("ComponentSettings",{class:{selected:e.isComponentSelected(n.name)},attrs:{"component-data":n,"data-name":n.name},nativeOn:{click:function(t){return e.selectComponent(n)}}})],1)})),e._v(" "),0===e.renderedComponents.length?t("VEmpty"):e._e()],2)]),e._v(" "),t("VPopup",{ref:"detailsPopup",staticClass:"component-detail-panel",attrs:{"trigger-element":e.$refs.componentList,open:e.componentDetailOpen},on:{"popup-change":function(t){!t&&e.closePopper()}}},[e.selectedComponent?t("ComponentDetail",{key:e.selectedComponent.name,attrs:{"component-data":e.selectedComponent},on:{close:function(t){return e.closePopper()}}}):e._e()],1)],1)])};o._withStripped=!0;var i=n(9047),r=n(8977),a=n(997),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-settings",class:{virtual:e.virtual}},[e.virtual?e._e():[t("div",{staticClass:"component-settings-row"},[t("TagRing",{attrs:{tags:e.componentData.tags}}),e._v(" "),t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),!1!==e.componentData.configurable?t("SwitchBox",{model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}}):t("VIcon",{staticClass:"details-arrow",attrs:{icon:"right-arrow",size:18}})],1)]],2)};c._withStripped=!0;var s=n(9896),l=n.n(s),d=n(5600),m=n(8798),f=n(1282),u=n(1854),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tag-ring"},[t("svg",{attrs:{height:e.size,width:e.size}},e._l(e.tags,(function(n,o){return t("circle",{key:n.name,staticClass:"tag-stroke",style:e.getStyle(n,o),attrs:{fill:"transparent","stroke-dasharray":e.circumference+" "+e.circumference,"stroke-width":e.stroke,r:e.radius,cx:e.size/2,cy:e.size/2}})})),0)])};p._withStripped=!0;const b=Vue.extend({props:{tags:{type:Array,required:!0},size:{type:Number,default:18},stroke:{type:Number,default:3}},data(){const e=this.size/2-this.stroke;return{radius:e,circumference:2*e*Math.PI}},methods:{getStyle(e,t){return{strokeDashoffset:t/this.tags.length*this.circumference,stroke:e.color}}}});var h=n(8332),g=n.n(h),F=n(8106),v=n.n(F),w={insert:"head",singleton:!1};g()(v(),w);v().locals;var y=n(6499);const x=(0,y.Z)(b,p,[],!1,null,null,null).exports;var k=n(8590);const C=Vue.extend({components:{SwitchBox:m.Z,TagRing:x,VIcon:f.default},props:{componentData:{type:Object,required:!0}},data(){return{settings:(0,d.getComponentSettings)(this.componentData),virtual:!1}},async mounted(){const e=this.$el,t=(0,a.dq)(".settings-panel-content .main");t?(0,u.visibleInside)(e,t,"150% 0px",(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})):console.log("settings container not found, virtual scroll will be disabled!")},methods:{markdown:e=>l()(e),descriptionI18n(e){const{description:t,options:n}=e;if(!t){if(n&&Object.keys(n).length>0){return`${Object.keys(n).length}个选项`}return"暂无说明"}return"string"==typeof t?t:t[(0,k.getSelectedLanguage)()]||t["zh-CN"]}}}),A=C;var E=n(711),B=n.n(E),D={insert:"head",singleton:!1};g()(B(),D);B().locals;const z=(0,y.Z)(A,c,[],!1,null,null,null).exports;var I=n(8430),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-detail"},[e.settings?e._e():t("div",{staticClass:"component-not-found"},[e._v("\n 未找到组件'"+e._s(e.componentData.displayName)+"' ("+e._s(e.componentData.name)+"), 可能已被卸载.\n ")]),e._v(" "),e.settings?[t("div",{staticClass:"component-detail-header"},[t("div",{staticClass:"display-name"},[e._v("\n "+e._s(e.componentData.displayName)+"\n ")]),e._v(" "),t("VIcon",{staticClass:"close",attrs:{icon:"close",size:18},on:{click:function(t){return e.$emit("close")}}})],1),e._v(" "),t("div",{staticClass:"component-detail-tags"},e._l(e.componentData.tags,(function(n){return t("div",{key:n.name,staticClass:"tag"},[t("div",{staticClass:"tag-color",style:{backgroundColor:n.color}}),e._v("\n "+e._s(n.displayName)+"\n ")])})),0),e._v(" "),e.componentData.options&&e.generatedOptions.length>0||e.componentData.extraOptions?[t("div",{staticClass:"component-detail-options"},[t("div",{staticClass:"component-detail-options-title"},[e._v("选项")]),e._v(" "),e._l(e.generatedOptions,(function([n,o]){return t("div",{key:n,staticClass:"generated-option"},[t("ComponentOption",{attrs:{name:n,"display-name":o.displayName,option:o,component:e.componentData}})],1)})),e._v(" "),e.componentData.extraOptions?t("div",{staticClass:"extra-option"},[t(e.componentData.extraOptions,{tag:"component",attrs:{"component-data":e.componentData}})],1):e._e(),e._v(" "),e._t("default")],2)]:e._e(),e._v(" "),!e.componentData.options||e.componentData.description?[t("ComponentDescription",{staticClass:"component-detail-description",attrs:{"component-data":e.componentData}})]:e._e(),e._v(" "),t("div",{staticClass:"component-detail-grow"}),e._v(" "),t("div",{staticClass:"component-detail-internal-data"},[e.componentData.commitHash?t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("Commit: "+e._s(e.componentData.commitHash.substring(0,9)))])]):e._e(),e._v(" "),t("div",{staticClass:"component-detail-internal-data-row"},[t("div",{staticClass:"internal-name"},[e._v("内部名称: "+e._s(e.componentData.name))]),e._v(" "),!1!==e.componentData.configurable&&e.componentActions.length>0?t("MiniToast",{staticClass:"extra-actions-wrapper",attrs:{placement:"bottom",trigger:"click"},scopedSlots:e._u([{key:"toast",fn:function(){return[t("div",{staticClass:"extra-actions-list"},e._l(e.componentActions,(function(n){return t("div",{key:n.name},[n.component?t(n.component,{tag:"component",attrs:{item:n,component:e.componentData}}):t("ComponentAction",{directives:[{name:"show",rawName:"v-show",value:!1!==n.visible,expression:"a.visible !== false"}],staticClass:"extra-action-item",attrs:{item:n,component:e.componentData}})],1)})),0)]},proxy:!0}],null,!1,2977217718)},[t("div",{staticClass:"extra-actions"},[t("VIcon",{attrs:{icon:"mdi-dots-vertical",size:16}})],1)]):e._e()],1)])]:e._e()],2)};S._withStripped=!0;var M=n(6387),P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"component-option",attrs:{"data-type":e.type}},[t("div",{staticClass:"option-name"},[e._v("\n "+e._s(e.displayName)+"\n ")]),e._v(" "),"text"===e.type||"number"===e.type?t("TextBox",{attrs:{"change-on-blur":"",validator:e.option.validator,text:e.value.toString(),placeholder:e.value.toString()},on:{change:function(t){"text"===e.type?e.valueChange(t):e.numberChange(t)}}}):e._e(),e._v(" "),"boolean"===e.type?t("SwitchBox",{attrs:{checked:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"color"===e.type?t("ColorPicker",{attrs:{compact:!0,"popup-offset":-95,color:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"range"===e.type?t("RangeInput",{attrs:{validator:e.option.validator,range:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"image"===e.type?t("ImagePicker",{attrs:{image:e.value},on:{change:function(t){return e.valueChange(t)}}}):e._e(),e._v(" "),"dropdown"===e.type?t("VDropdown",{attrs:{value:e.value,items:e.getDropdownItems(e.option.dropdownEnum),"key-mapper":e=>e},on:{change:function(t){return e.valueChange(t)}},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}],null,!1,3506243887)}):e._e(),e._v(" "),"switch"===e.type?t("SwitchOptions",{attrs:{"small-size":"","popup-mode":!1,options:e.option.defaultValue}}):e._e(),e._v(" "),"slider"===e.type?t("VSlider",e._b({attrs:{value:e.value},on:{change:function(t){return e.debounceValueChange(t)}}},"VSlider",e.option.slider,!1)):e._e(),e._v(" "),"unknown"===e.type?t("div",{staticClass:"unknown-option-type"},[e._v("未知的选项类型")]):e._e()],1)};P._withStripped=!0;function O(e){this.settings.options[this.name]=e,this.value=e}const V={name:"ComponentOption",components:{SwitchOptions:n(6990).default,TextBox:i.TextBox,SwitchBox:i.SwitchBox,ColorPicker:i.ColorPicker,RangeInput:i.RangeInput,VDropdown:i.VDropdown,ImagePicker:i.ImagePicker,VSlider:i.VSlider},props:{name:{type:String,required:!0},displayName:{type:String,default:""},option:{type:Object,required:!0},component:{type:Object,required:!0}},data(){const e=(0,d.getComponentSettings)(this.component);return{settings:e,value:e.options[this.name]}},computed:{type(){const e=this.option,{defaultValue:t}=e;switch(typeof t){case"boolean":return"boolean";case"number":return e.slider?"slider":"number";case"string":return e.color?"color":e.dropdownEnum?"dropdown":"text";case"object":return"start"in t&&"end"in t?"range":"name"in t&&"url"in t?"image":"name"in t&&"switches"in t?"switch":"unknown";default:return"unknown"}}},methods:{getDropdownItems:e=>{if(Array.isArray(e))return e;return Object.entries(e).filter((e=>{let[t]=e;const n=t.charCodeAt(0);return!(n>=48&&n<=57)})).map((e=>{let[,t]=e;return t}))},numberChange(e){const t=this.settings,n=parseFloat(e);Number.isNaN(n)||(t.options[this.name]=n,this.value=n)},debounceValueChange:lodash.debounce(O,200),valueChange:O}};var T=n(2104),L=n.n(T),j={insert:"head",singleton:!1};g()(L(),j);L().locals;const R=(0,y.Z)(V,P,[],!1,null,"730efac0",null).exports;var N=n(9133),q=n(6940),Z=n(7632);const U=[e=>({name:"uninstall",displayName:"卸载",icon:"mdi-trash-can-outline",visible:(0,d.isUserComponent)(e),action:async()=>{const{before:t,after:n}=(0,r.getHook)("userComponents.remove",e);await t(),await(0,Z.uninstallComponent)(e.name),await n()}})],[H]=(0,q.registerAndGetData)("settingsPanel.componentActions",U);var W=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-action",class:{disabled:e.disabled},attrs:{"aria-disabled":e.disabled,title:e.item.title},on:{click:e.handleClick}},[t("VIcon",{attrs:{icon:e.item.icon,size:16}}),e._v("\n "+e._s(e.item.displayName)+"\n")],1)};W._withStripped=!0;const G=Vue.extend({components:{VIcon:i.VIcon},props:{item:{type:Object,required:!0},component:{type:Object,required:!0}},data:()=>({disabled:!1}),methods:{async handleClick(){if(!this.disabled)try{this.disabled=!0,await this.item.action(this.component)}finally{this.disabled=!1}}}});var Q=n(6905),Y=n.n(Q),X={insert:"head",singleton:!1};g()(Y(),X);Y().locals;const K=(0,y.Z)(G,W,[],!1,null,null,null).exports,J=Vue.extend({components:{ComponentDescription:M.Z,ComponentOption:R,ComponentAction:K,VButton:i.VButton,VIcon:i.VIcon,SwitchBox:i.SwitchBox,MiniToast:i.MiniToast},mixins:[N.U],data(){return{virtual:!1,componentActions:H.map((e=>e(this.componentData))).filter((e=>void 0!==e&&!1!==e.visible))}},computed:{generatedOptions(){return Object.entries(this.componentData.options??{}).filter((e=>{let[,t]=e;return!t.hidden}))}},async mounted(){const e=this.$el;(0,u.visible)(e,(e=>{e.forEach((e=>{this.virtual=!e.isIntersecting}))})),await this.$nextTick(),this.$emit("mounted"),console.log(this.componentActions)}});var _=n(8354),$=n.n(_),ee={insert:"head",singleton:!1};g()($(),ee);$().locals;const te=(0,y.Z)(J,S,[],!1,null,null,null).exports;var ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-tags-preview"},[t("VPopup",{staticClass:"settings-panel-sub-page",attrs:{lazy:!1,"trigger-element":e.selectedSubPageTrigger},model:{value:e.selectedSubPageOpen,callback:function(t){e.selectedSubPageOpen=t},expression:"selectedSubPageOpen"}},[t("keep-alive",[e.selectedSubPage?t(e.selectedSubPage,{tag:"component"}):e._e()],1)],1),e._v(" "),t("div",{staticClass:"icon-list"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}})],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(e){return t("div",{key:e.name,staticClass:"component-tags-item"},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:e.icon}})],1)}))],2),e._v(" "),t("div",{staticClass:"component-tags"},[e._l(e.tags,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",class:{selected:n.name===e.selectedTagName},on:{click:function(t){return e.selectTag(n)}}},[t("VIcon",{style:{color:n.color},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"tag-count"},[e._v("("+e._s(n.count)+")")])],1)})),e._v(" "),t("div",{staticClass:"grow"}),e._v(" "),e._l(e.subPages,(function(n){return t("div",{key:n.name,staticClass:"component-tags-item",on:{click:function(t){return e.openSubPage(t,n.component)}}},[t("VIcon",{style:{color:"inherit"},attrs:{size:20,icon:n.icon}}),e._v(" "),t("div",{staticClass:"tag-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])],1)}))],2)],1)};ne._withStripped=!0;var oe=n(197),ie=n(6355);const re=[{name:"userComponentsManage",displayName:"组件",component:()=>Promise.resolve().then(n.bind(n,543)).then((e=>e.default)),icon:"mdi-cube-scan"},{name:"userPluginsManage",displayName:"插件",component:()=>Promise.resolve().then(n.bind(n,5504)).then((e=>e.default)),icon:"mdi-puzzle-outline"},{name:"customStylesManage",displayName:"样式",component:()=>Promise.resolve().then(n.bind(n,6634)).then((e=>e.default)),icon:"mdi-tune"},{name:"about",displayName:"关于",component:()=>Promise.resolve().then(n.bind(n,2573)).then((e=>e.default)),icon:"mdi-information-outline"}],ae=[e=>{let{renderedComponents:t}=e;return{name:"all",displayName:"全部",color:"inherit",icon:"mdi-shape-outline",order:0,count:t.length,filter:e=>e}},e=>{let{renderedComponents:t}=e;const n=[];t.forEach((e=>e.tags.forEach((e=>{n.push({count:0,...e,filter:t=>t.filter((t=>"all"===e.name||t.tags.some((t=>t.name===e.name))))})}))));const o=lodash.countBy(n,(e=>e.name));return lodash.uniqBy(n,(e=>e.name)).map((e=>({...e,count:o[e.name]})))}],[ce]=(0,q.registerAndGetData)("settingsPanel.tagFilters",ae),se=Vue.extend({components:{VIcon:f.default,VPopup:ie.default},data:()=>({tags:[],selectedTagName:"",subPages:re,selectedSubPage:null,selectedSubPageOpen:!1,selectedSubPageTrigger:null}),created(){this.refreshTags(),this.reset()},mounted(){this.selectTag(this.tags[0])},methods:{refreshTags(){const e=I.components.filter((e=>!e.hidden)),t=ce.flatMap((t=>"function"==typeof t?t({components:I.components,renderedComponents:e}):t));this.tags=t.sort((0,oe.ascendingSort)((e=>e.order)))},reset(){this.selectedTagName=this.tags[0].name},selectTag(e){this.selectedTagName=e.name;const{filter:t}=this.tags.find((t=>t.name===e.name));this.$emit("change",t)},async openSubPage(e,t){this.selectedSubPage!==t?(this.selectedSubPage=t,this.selectedSubPageTrigger=e.currentTarget,await this.$nextTick(),this.selectedSubPageOpen=!0):this.selectedSubPageOpen=!this.selectedSubPageOpen}}}),le=se;var de=n(6641),me=n.n(de),fe={insert:"head",singleton:!1};g()(me(),fe);me().locals;const ue=(0,y.Z)(le,ne,[],!1,null,null,null).exports;var pe=n(7568),be=n(6812),he=n(8910);const ge=[{key:"uninstallSelectedComponent",title:"卸载所选组件",icon:"mdi-trash-can-outline",disabled:e=>{let{selectedComponents:t}=e;return 0===t.length},run:e=>{window.confirm(`确定要卸载所选的 ${e.selectedComponents.length} 个组件吗?`)&&(e.selectedComponents.forEach((e=>{let{name:t}=e;(0,he.isBuiltInComponent)(t)?be.Toast.info("内置组件不能卸载","检查更新",3e3):(0,Z.uninstallComponent)(t)})),e.selectedComponents=[])}}],[Fe]=(0,q.registerAndGetData)("settingsPanel.searchBarActions",[...ge]),ve=e=>e,we={name:"SettingsPanel",components:{VIcon:i.VIcon,TextBox:i.TextBox,VPopup:i.VPopup,VButton:i.VButton,VEmpty:i.VEmpty,ComponentSettings:z,ComponentDetail:te,ComponentTags:ue},data:()=>({components:I.components,renderedComponents:I.components.filter((e=>!e.hidden)),selectedComponent:null,selectedComponents:[],componentDetailOpen:!1,collapsed:!1,peek:!1,searchKeyword:"",searchFilter:ve,searchBarActions:Fe}),computed:{isComponentSelected(){return e=>this.selectedComponents.some((t=>t.name===e))},tags(){const e=this.renderedComponents;let t=[];e.forEach((e=>e.tags.forEach((e=>{t.push({count:0,...e})}))));const n=lodash.countBy(t,(e=>e.name));return t=lodash.uniqBy(t,(e=>e.name)),t.forEach((e=>e.count=n[e.name])),t},searchBarContext(){return lodash.pick(this,"components","selectedComponent","selectedComponents","searchKeyword","searchFilter")}},watch:{searchKeyword:lodash.debounce((function(){this.updateRenderedComponents()}),200),searchFilter(){this.searchKeyword="",this.selectedComponents=[],this.updateRenderedComponents()},components(){this.updateRenderedComponents(),this.$refs.componentTags.refreshTags(),this.components.some((e=>e.name===this.selectedComponent?.name))||(this.selectedComponent=null)}},methods:{closePopper(){this.selectedComponent=null,this.selectedComponents=[],this.componentDetailOpen=!1},selectMultipleComponent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.selectedComponent&&t){const{name:t}=e,{name:n}=this.selectedComponent,o=this.renderedComponents;let i=o.findIndex((e=>e.name===n)),r=o.findIndex((e=>e.name===t));return i>r&&([i,r]=[r,i]),void(this.selectedComponents=o.slice(i,r+1))}const n=this.selectedComponents,o=n.find((t=>t.name===e.name));o?(0,a.deleteValue)(n,(e=>e.name===o.name)):n.push(e)},selectComponent(e){this.selectedComponents=[];const t=(0,r.getHook)("settingsPanel.componentDetail.close"),n=(0,r.getHook)("settingsPanel.componentDetail.open"),o=this.selectedComponent?.name,i=this.componentDetailOpen&&o===e.name;t.before(o),this.closePopper(),t.after(o),i||(n.before(e.name),this.selectedComponents.push(e),this.selectedComponent=e,this.componentDetailOpen=!0,n.after(e.name))},async updateRenderedComponents(){const e=await(async()=>this.searchKeyword?Object.fromEntries(await Promise.all(I.components.map((async e=>[e.name,[e.name,e.displayName,e.tags.map((e=>`${e.name}\n${e.displayName}`)).join("\n"),await(0,pe.getDescriptionText)(e)].join("\n").toLowerCase()])))):{})(),t=I.components.filter((t=>{if(t.hidden)return!1;if(this.searchKeyword){const n=e[t.name];return!!n&&n.includes(this.searchKeyword.toLowerCase())}return!0}));this.renderedComponents=this.searchFilter(t)}}},ye=we;var xe=n(7749),ke=n.n(xe),Ce={insert:"head",singleton:!1};g()(ke(),Ce);ke().locals;const Ae=(0,y.Z)(ye,o,[],!1,null,null,null).exports},855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"widgets-panel"},[t("div",{staticClass:"widgets-panel-header"},[t("VIcon",{attrs:{icon:"widgets"}}),e._v("功能")],1),e._v(" "),e.loading||0!==e.widgets.length?e._e():t("VEmpty",{staticClass:"widgets-empty"},[t("div",{staticClass:"widgets-empty-content"},[e._v("\n 空空如也哦 = ̄ω ̄="),t("br"),e._v("\n 可点此参考\n "),t("a",{attrs:{href:"https://bilibili-evolved-doc.vercel.app/docs/user/settings",target:"_blank"}},[e._v("\n 用户手册\n ")]),e._v("\n 以安装所需功能\n ")])]),e._v(" "),t("div",{staticClass:"widget-items"},e._l(e.widgets,(function(e){return t(e.component,{key:e.name,tag:"component",staticClass:"widget-item",attrs:{options:e.options}})})),1)],1)};o._withStripped=!0;var i=n(997),r=n(9047),a=n(6940),c=n(3082);const s=[],l=Vue.extend({components:{VIcon:r.VIcon,VEmpty:r.VEmpty},data:()=>(unsafeWindow.allWidgets=s,{allWidgets:s,widgets:[],loading:!0}),watch:{allWidgets(){this.allWidgets.forEach((async e=>{const t=await(async e=>{if(e.urlExclude&&e.urlExclude.some(i.matchUrlPattern))return!1;if(e.urlInclude&&e.urlInclude.every(lodash.negate(i.matchUrlPattern)))return!1;if(e.condition){const t=e.condition();return!0===t||t instanceof Promise&&!0===await t}return!0})(e);t?this.widgets.push(e):(0,i.deleteValue)(this.widgets,(t=>t.name===e.name))})),console.log("updated widgets",this.widgets)}},created(){(0,a.registerAndGetData)(c.WidgetsPlugin,s),this.$nextTick().then((()=>this.loading=!1))}});var d=n(8332),m=n.n(d),f=n(173),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},2573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-about-page"},[t("div",{staticClass:"be-about-page-header"},[t("VIcon",{attrs:{icon:"mdi-information-outline"}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("关于")])],1),e._v(" "),t("div",{staticClass:"be-about-page-content"},[t("div",{staticClass:"script-meta-info"},[t("div",{staticClass:"meta-info-name"},[e._v("\n "+e._s(e.meta.name)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-version"},[e._v("\n "+e._s(e.meta.compilationInfo.versionWithTag)+"\n ")]),e._v(" "),t("div",{staticClass:"meta-info-description"},[e._v("\n "+e._s(e.meta.description)+"\n ")])]),e._v(" "),e.feedbackSupported?t("div",{staticClass:"script-links"},[t("a",{staticClass:"homepage script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-home-outline",size:20}}),e._v("\n 主页\n ")],1)],1),e._v(" "),t("a",{staticClass:"feedback script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/issues"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-message-text-outline",size:18}}),e._v("\n 反馈\n ")],1)],1),e._v(" "),t("a",{staticClass:"releases script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/releases"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-update",size:20}}),e._v("\n 更新日志\n ")],1)],1),e._v(" "),t("a",{staticClass:"donate script-link",attrs:{target:"_blank",href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/donate.md"}},[t("VButton",[t("VIcon",{attrs:{icon:"mdi-heart-outline",size:18}}),e._v("\n 捐赠\n ")],1)],1)]):e._e(),e._v(" "),t("div",{staticClass:"about-page-actions"},e._l(e.aboutPageActions,(function(n){return t("VButton",{key:n.name,staticClass:"about-page-action",attrs:{disabled:n.disabled},on:{click:function(t){return e.runAction(n,t)}}},[t("VIcon",{attrs:{icon:n.icon,size:n.iconSize||20}}),e._v("\n "+e._s(n.displayName)+"\n ")],1)})),1)])])};o._withStripped=!0;var i=n(9737),r=n(738),a=n(9047),c=n(4819);const s=(()=>{const e=GM_info.scriptMetaStr.match(/@namespace\s*(.+)/);return!e||!e[1]||!e[1].includes("greasyfork")})(),l=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon},data:()=>({meta:i.meta,aboutPageActions:c.a,feedbackSupported:s}),methods:{formatDateTime:r.formatDateTime,async runAction(e,t){e.disabled=!0;try{await e.run(t)}finally{e.disabled=!1}}}});var d=n(8332),m=n.n(d),f=n(7706),u=n.n(f),p={insert:"head",singleton:!1};m()(u(),p);u().locals;const b=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-components-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8430),r=n(7632),a=n(5600),c=n(8977),s=n(9416),l=n(6911);const d={key:"userComponents",icon:"mdi-cube-scan",title:"组件",description:"可以在此处添加或删除组件, 要查看组件详情, 请回到设置面板查看.",list:i.components,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,a.isUserComponent)(e)),async onItemAdd(e,t){const{before:n,after:o}=(0,c.getHook)("userComponents.add",e,t);await n();const{metadata:i,message:a}=await(0,r.installComponent)(e);return await o(i),a}},m=Vue.extend({components:{ManagePanel:s.Z,UserItem:l.Z},data:()=>({config:d}),methods:{getItemConfig:e=>({key:"userComponents",item:e,isUserItem:(0,a.isUserComponent)(e),getSettings:e=>(0,a.getComponentSettings)(e),onItemRemove:async e=>{const{before:t,after:n}=(0,c.getHook)("userComponents.remove",e);await t(),(0,r.uninstallComponent)(e.name),await n()}})}});const f=(0,n(6499).Z)(m,o,[],!1,null,null,null).exports},5504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-plugins-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(5600),r=n(8977),a=n(8433),c=n(9416),s=n(6911);const l={key:"userPlugins",icon:"mdi-puzzle-outline",title:"插件",description:"可以在此处管理插件, 插件能够增强现有组件的功能. 内置插件包括脚本本体包含的插件和组件自带的插件, 组件自带的插件会自动随组件卸载而卸载.",list:a.plugins,listFilter:(e,t,n)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase()))&&!(n&&!(0,i.isUserPlugin)(e.name)),async onItemAdd(e,t){const{before:n,after:o}=(0,r.getHook)("userPlugins.add",e,t);await n();const{message:i,metadata:c}=await(0,a.installPlugin)(e);return await o(c),i}},d=Vue.extend({components:{ManagePanel:c.Z,UserItem:s.Z},data:()=>({config:l}),methods:{getItemConfig:e=>({key:"userPlugins",item:e,isUserItem:(0,i.isUserPlugin)(e.name),onItemRemove:async e=>{const{before:t,after:n}=(0,r.getHook)("userPlugins.remove",e);await t(),(0,a.uninstallPlugin)(e.name),await n()}})}});const m=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-styles-page"},[t("ManagePanel",{attrs:{config:e.config},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("UserItem",{attrs:{config:e.getItemConfig(n)}})]}}])})],1)};o._withStripped=!0;var i=n(8977),r=n(1154),a=n(9416),c=n(6911);const s={key:"userStyles",icon:"mdi-tune",title:"样式",description:"可以在此处管理自定义样式, 自定义样式能简单修改界面元素以满足您的需求, 对于更复杂的样式, 推荐使用 Stylus 浏览器插件来管理.",list:r.styles,listFilter:(e,t)=>!(t&&!`${e.name}\n${e.displayName}`.toLowerCase().includes(t.toLowerCase())),async onItemAdd(e,t){const{before:n,after:o}=(0,i.getHook)("userStyles.add",e,t);await n();const{message:a,metadata:c}=await(0,r.installStyle)(e);return await o(c),a}},l=Vue.extend({components:{ManagePanel:a.Z,UserItem:c.Z},data:()=>({config:s}),methods:{getItemConfig:e=>({key:"userStyles",item:e,isUserItem:!0,onItemRemove:async e=>{const{before:t,after:n}=(0,i.getHook)("userStyles.remove",e);await t(),(0,r.uninstallStyle)(e.name),await n()}})}});const d=(0,n(6499).Z)(l,o,[],!1,null,null,null).exports},9416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-panel"},[t("div",{staticClass:"manage-panel-title sub-page-row"},[t("VIcon",{attrs:{icon:e.config.icon}}),e._v(" "),t("div",{staticClass:"title-text"},[e._v("\n "+e._s(e.config.title)+"\n ")])],1),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"description-text"},[e._v("\n "+e._s(e.config.description)+"\n ")])]):e._e(),e._v(" "),e.config.description?t("div",{staticClass:"sub-page-row separator"}):e._e(),e._v(" "),t("div",{staticClass:"sub-page-row add-item-row"},[t("div",{staticClass:"title-text"},[e._v("添加"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"item-actions"},[t("VButton",{ref:"batchAddButton",on:{click:function(t){return e.showBatchAddPopup()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-download-multiple"}}),e._v("\n 批量\n ")],1),e._v(" "),t("VButton",{on:{click:function(t){return e.browse()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-folder-open-outline"}}),e._v("\n 浏览\n ")],1),e._v(" "),t("OnlineRegistryButton",[t("VIcon",{attrs:{size:18,icon:"mdi-web"}}),e._v("\n 在线\n ")],1)],1),e._v(" "),t("VPopup",{staticClass:"batch-add-popup",attrs:{"trigger-element":e.$refs.batchAddButton},model:{value:e.batchAddShow,callback:function(t){e.batchAddShow=t},expression:"batchAddShow"}},[t("TextArea",{ref:"batchAddTextArea",staticClass:"batch-add-textarea",attrs:{placeholder:"批量粘贴功能链接, 可以混合其他类型的功能 (如合集包)"},model:{value:e.batchUrl,callback:function(t){e.batchUrl=t},expression:"batchUrl"}}),e._v(" "),t("div",{staticClass:"batch-add-actions"},[t("VButton",{on:{click:function(t){e.batchAddShow=!1}}},[t("VIcon",{attrs:{size:12,icon:"close"}}),e._v("\n 取消\n ")],1),e._v(" "),t("VButton",{attrs:{type:"primary",disabled:!e.batchUrl},on:{click:function(t){return e.batchAddItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("TextBox",{staticClass:"item-url",attrs:{placeholder:"粘贴"+e.config.title+"链接"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addItem()}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),e._v(" "),t("VButton",{attrs:{disabled:!e.url},on:{click:function(t){return e.addItem()}}},[t("VIcon",{attrs:{size:18,icon:"mdi-plus"}}),e._v("\n 添加\n ")],1)],1),e._v(" "),t("div",{staticClass:"sub-page-row separator"}),e._v(" "),t("div",{staticClass:"sub-page-row"},[t("div",{staticClass:"title-text"},[e._v("已安装的"+e._s(e.config.title)+":")]),e._v(" "),t("div",{staticClass:"exclude-built-in"},[e._v("\n 隐藏内置"+e._s(e.config.title)+"\n "),t("SwitchBox",{model:{value:e.excludeBuiltIn,callback:function(t){e.excludeBuiltIn=t},expression:"excludeBuiltIn"}})],1)]),e._v(" "),t("div",{staticClass:"sub-page-row search-item-row"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{staticClass:"list-search",attrs:{placeholder:`在 ${e.filteredList.length} 个${e.config.title}中搜索`},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.loaded?e._e():t("div",{staticClass:"sub-page-row"},[t("VLoading",{key:"loading"})],1),e._v(" "),e.loaded?t("div",{staticClass:"manage-item-list"},[0===e.debouncedList.length?t("VEmpty",{key:"empty"}):e._e(),e._v(" "),e._l(e.debouncedList,(function(n){return t("ManageItem",{key:n.name},[e._t("item",(function(){return[e._v("\n "+e._s(n.displayName)+"\n ")]}),{item:n})],2)}))],2):e._e()])};o._withStripped=!0;var i=n(459),r=n(6057),a=n(6812),c=n(962),s=n(351),l=n(9047),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-item",class:{virtual:e.virtual}},[e.virtual?e._e():e._t("default")],2)};d._withStripped=!0;var m=n(9133);const f=Vue.extend({mixins:[(0,m.B)(".manage-panel .manage-item-list")]});var u=n(8332),p=n.n(u),b=n(558),h=n.n(b),g={insert:"head",singleton:!1};p()(h(),g);h().locals;var F=n(6499);const v=(0,F.Z)(f,d,[],!1,null,null,null).exports;var w=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VButton",{on:{mouseover:function(t){return e.initPopup()},click:function(t){return e.togglePopup()}}},[e._t("default")],2)};w._withStripped=!0;var y=n(6052);const x=Vue.extend({components:{VButton:l.VButton},methods:{initPopup:y.initPopup,togglePopup:y.togglePopup}});const k=(0,F.Z)(x,w,[],!1,null,null,null).exports,C=Vue.extend({components:{VIcon:l.VIcon,VButton:l.VButton,TextBox:l.TextBox,VEmpty:l.VEmpty,VLoading:l.VLoading,VPopup:l.VPopup,TextArea:l.TextArea,SwitchBox:l.SwitchBox,ManageItem:v,OnlineRegistryButton:k},props:{config:{type:Object,required:!0}},data:()=>({search:"",url:"",loaded:!1,batchAddShow:!1,batchUrl:"",excludeBuiltIn:!0,debouncedList:[]}),computed:{filteredList(){return this.config.list.filter((e=>this.config.listFilter(e,this.search,this.excludeBuiltIn)))}},watch:{filteredList(){this.loaded=!1,window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}),200)}},mounted(){window.setTimeout((()=>{this.debouncedList=this.filteredList,this.loaded=!0}))},methods:{async browse(){const e=await(0,r.pickFile)({accept:"*.js;*.zip"});if(0===e.length)return;const[t]=e;let n;if(t.name.endsWith(".zip")){const e=await s.JSZipLibrary,o=await e.loadAsync(t),i=Object.values(o.files);if(0===i.length)return void a.Toast.info("不能打开空文件",`添加${this.config.title}`);n=await i[0].async("text")}else n=await t.text();try{a.Toast.info(await(this.config.onItemAdd?.(n,"")),`添加${this.config.title}`)}catch(e){(0,c.logError)(e)}},async showBatchAddPopup(){this.batchAddShow=!this.batchAddShow,this.batchAddShow&&(await this.$nextTick(),this.$refs.batchAddTextArea?.focus())},async addItem(){if(!this.url)return;const e=a.Toast.info("获取中...",`添加${this.config.title}`);try{const t=await(0,i.tryParseZip)(this.url);e.message=await(this.config.onItemAdd?.(t,this.url)),this.url=""}catch(t){console.error(t),e.type=a.ToastType.Error,e.message=t}},async batchAddItem(){if(!this.batchUrl)return;const e=this.batchUrl.split("\n").map((e=>e.trim())).filter((e=>""!==e)),t=a.Toast.info(`获取中... (0/${e.length})`,"批量添加");let n=0;const o=await Promise.allSettled(e.map((async o=>{const{message:r}=await(0,i.installFeature)(o);return n++,t.message=`获取中... (${n}/${e.length})`,r}))),r=o.filter((e=>"fulfilled"===e.status)).length,c=o.filter((e=>"rejected"===e.status)).length;t.message=`安装完成, 成功 ${r} 个, 失败 ${c} 个.`;const s=o.map(((t,n)=>{const o=e[n];return"fulfilled"===t.status?`${t.value} ${o}`:`${t.reason} ${o}`})).join("\n");console.log(s),this.batchUrl=""}}});var A=n(8694),E=n.n(A),B={insert:"head",singleton:!1};p()(E(),B);E().locals;const D=(0,F.Z)(C,o,[],!1,null,null,null).exports},6911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"user-item"},[t("div",{staticClass:"user-item-display-name"},[e._v("\n "+e._s(e.config.item.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"user-item-name"},[e._v("\n "+e._s(e.config.item.name)+"\n ")]),e._v(" "),e.config.isUserItem?t("div",{staticClass:"user-item-line"}):e._e(),e._v(" "),e.config.isUserItem?t("div",{ref:"removeIcon",staticClass:"user-item-remove",on:{dblclick:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:18}}),e._v(" "),t("div",{ref:"removeConfirmTemplate",staticClass:"user-item-remove-confirm"},[e._v("\n 确定要卸载 "+e._s(e.config.item.displayName)+" 吗?\n "),t("VButton",{attrs:{type:"primary"},on:{click:function(t){return e.removeItem()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}}),e._v("\n 确定\n ")],1)],1)],1):e._e()])};o._withStripped=!0;var i=n(6812),r=n(9047),a=n(3932);const c=Vue.extend({components:{VIcon:r.VIcon,VButton:a.default},props:{config:{type:Object,required:!0}},data:()=>({removeConfirm:!1,settings:{}}),mounted(){this.config.getSettings&&(this.settings=this.config.getSettings(this.config.item)),this.config.isUserItem&&i.Toast.mini(this.$refs.removeConfirmTemplate,this.$refs.removeIcon,{trigger:"click",hideOnClick:!0})},methods:{async removeItem(){await this.config.onItemRemove(this.config.item),this.removeConfirm=!1}}});var s=n(8332),l=n.n(s),d=n(1271),m=n.n(d),f={insert:"head",singleton:!1};l()(m(),f);m().locals;const u=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-video-control-bar-extend squirtle-block-wrap"},e._l(e.items,(function(n){return t("div",{key:n.name,staticClass:"be-video-control-bar-extend-item bilibili-player-video-btn squirtle-block-wrap bpx-player-ctrl-btn",style:{order:n.order.toString()},attrs:{"data-name":n.name},on:{click:function(e){return n.action(e)}}},[t("button",[t("span",{staticClass:"bp-svgicon"},[t("VIcon",{attrs:{icon:n.icon}})],1)]),e._v(" "),t("div",{staticClass:"be-video-control-tooltip"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)};o._withStripped=!0;var i=n(9047);const r=Vue.extend({components:{VIcon:i.VIcon},props:{items:{type:Array,required:!0}}});var a=n(8332),c=n.n(a),s=n(6482),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},7864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-mini-toast-wrapper"},[t("div",{ref:"content",staticClass:"be-mini-toast-content"},[e._t("default")],2),e._v(" "),t("div",{ref:"toast",staticClass:"be-mini-toast"},[e._t("toast")],2)])};o._withStripped=!0;var i=n(3733);const r={body:()=>document.body,local:void 0},a=Vue.extend({model:{prop:"show",event:"change"},props:{show:{type:Boolean,default:!1},container:{type:String,default:"local"},placement:{type:String,default:void 0}},data:()=>({toast:null}),watch:{placement(e){e&&this.toast&&(this.toast.placement=e)}},async mounted(){await this.$nextTick();const e=r[this.container];this.toast=(0,i.$)(this.$refs.toast,this.$refs.content,{placement:this.placement,showOnCreate:this.show,trigger:"mouseenter focusin",onHide:()=>{this.$emit("change",!1)},onShow:()=>{this.$emit("change",!0)},appendTo:"function"==typeof e?e():e,...this.$attrs})}});const c=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},9933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toast-card visible",class:"toast-"+e.card.type,on:{mouseover:e.stopTimer,mouseout:e.startTimer}},[t("div",{staticClass:"toast-card-border"}),e._v(" "),t("div",{staticClass:"toast-card-header"},[t("h1",{staticClass:"toast-card-title"},[e._v("\n "+e._s(e.card.title)+"\n ")]),e._v(" "),t("div",{staticClass:"toast-card-close",class:{"show-progress":Boolean(e.remainingTime)},attrs:{title:"关闭"},on:{click:function(t){return e.card.close()}}},[t("ProgressRing",{attrs:{size:28,stroke:2,progress:e.progressMax-e.remainingTime,max:e.progressMax}}),e._v(" "),t("VIcon",{attrs:{icon:"close",size:14}})],1)]),e._v(" "),t("div",{staticClass:"toast-card-message",domProps:{innerHTML:e._s(e.card.message)}})])};o._withStripped=!0;var i=n(9047);const r=Vue.extend({components:{VIcon:i.VIcon,ProgressRing:i.ProgressRing},props:{card:{type:Object,required:!0}},data:()=>({progressMax:0,remainingTime:0}),created(){this.readDuration()},methods:{durationTick(){const{closeTime:e}=this.card;e&&(this.remainingTime=e-Number(new Date),this.remainingTime>0&&requestAnimationFrame((()=>this.durationTick())))},readDuration(){const{duration:e,closeTime:t}=this.card;e&&(this.progressMax=t-Number(new Date),this.remainingTime=this.progressMax,requestAnimationFrame((()=>this.durationTick())))},stopTimer(){this.card.clearDuration(),this.progressMax=0,this.remainingTime=0},startTimer(){this.card.setDuration(),this.readDuration()}}});var a=n(8332),c=n.n(a),s=n(3554),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,null,null).exports},8798:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-switch-box",class:{checked:e.checked,disabled:e.disabled},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.disabled,tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggle())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggle())}]}},[t("label",[t("input",{ref:"input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.checked},on:{change:function(t){return t.stopPropagation(),e.$emit("change",t.target.checked)}}}),e._v(" "),e._m(0)])])};o._withStripped=!0;const i=Vue.extend({name:"SwitchBox",model:{prop:"checked",event:"change"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{toggle(){this.disabled||(this.$refs.input.checked=!this.$refs.input.checked,this.$emit("change",this.$refs.input.checked))}}});var r=n(8332),a=n.n(r),c=n(9732),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[function(){var e=this._self._c;this._self._setupProxy;return e("div",{staticClass:"bar"},[e("div",{staticClass:"thumb"})])}],!1,null,null,null).exports},5486:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-textbox",class:{linear:e.linear},attrs:{role:"textbox"}},[t("input",e._g(e._b({ref:"input",attrs:{type:"text"},domProps:{value:e.text},on:{change:function(t){return t.stopPropagation(),e.change.apply(null,arguments)},input:function(t){return t.stopPropagation(),e.input.apply(null,arguments)},compositionstart:e.compositionStart,compositionend:e.compositionEnd}},"input",e.$attrs,!1),e.restListeners)),e._v(" "),e.linear?t("div",{staticClass:"linear-bar"}):e._e()])};o._withStripped=!0;var i=n(8491);const r=Vue.extend({name:"TextBox",mixins:[i.t],props:{linear:{type:Boolean,default:!1}}});var a=n(8332),c=n.n(a),s=n(3753),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"d1f779a8",null).exports},3932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-button",class:{[e.type]:!0,disabled:e.disabled,round:e.round,icon:e.icon},attrs:{role:"button","aria-disabled":e.disabled,tabindex:e.disabled?-1:0},on:{keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.preventDefault(),e.$listeners.click&&e.$listeners.click(t)}]}},e.disabled?null:e.$listeners),[t("div",{staticClass:"content-container"},[e._t("default",(function(){return[e._v("Button")]}))],2)])};o._withStripped=!0;const i=Vue.extend({name:"VButton",props:{type:{type:String,default:"light"},round:{type:Boolean,default:!1},icon:{type:Boolean,default:!1}},computed:{disabled(){return Boolean(this.$attrs.disabled)}}});var r=n(8332),a=n.n(r),c=n(4538),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,"18aa9448",null).exports},3441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-loading"},[e._t("default",(function(){return["string"==typeof e.config.content&&e.config.content.length>0?[e._v("\n "+e._s(e.config.content)+"\n ")]:e._e(),e._v(" "),"string"!=typeof e.config.content?t(e.config.content,{tag:"component"}):e._e()]}))],2)};o._withStripped=!0;var i=n(6940);const[r]=(0,i.registerAndGetData)("vLoading",{content:"加载中..."}),a=Vue.extend({name:"VLoading",data:()=>({config:r})});var c=n(8332),s=n.n(c),l=n(4833),d=n.n(l),m={insert:"head",singleton:!1};s()(d(),m);d().locals;const f=(0,n(6499).Z)(a,o,[],!1,null,null,null).exports},6355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"be-popup",class:{open:e.open,fixed:e.fixed,close:!e.open,"closed-style":e.closedStyle}},e.$listeners),[e.loaded?e._t("default"):e._e()],2)};o._withStripped=!0;const i=Vue.extend({name:"VPopup",model:{prop:"open",event:"popup-change"},props:{open:{type:Boolean,required:!1,default:!1},closedStyle:{type:Boolean,required:!1,default:!0},fixed:{type:Boolean,required:!1,default:!1},triggerElement:{required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0},autoDestroy:{type:Boolean,required:!1,default:!1},escClose:{type:Boolean,required:!1,default:!1},autoClosePredicate:{type:Function,required:!1,default:null}},data(){return{loaded:!this.lazy}},computed:{trigger(){return null===this.triggerElement?null:"$el"in this.triggerElement?this.triggerElement.$el:this.triggerElement}},watch:{open(){this.lazy&&!this.loaded&&(this.loaded=!0),this.setAutoClose()}},mounted(){const e=this.$el;this.open&&this.setAutoClose(),this.escClose&&e.addEventListener("keydown",(e=>{"Escape"===e.key&&this.$emit("popup-change",!1)})),this.autoDestroy&&e.addEventListener("transitionend",(()=>{this.open||(this.loaded=!1)}))},methods:{openHandler(e){const t=e.target,n=document.querySelector(".toast-card-container");let o=t!==this.trigger&&!this.trigger?.contains(t)&&t!==this.$el&&!this.$el.contains(t)&&!n?.contains(t);this.autoClosePredicate&&(o=o&&this.autoClosePredicate({target:t,element:this.$el,trigger:this.trigger})),o&&this.$emit("popup-change",!1)},setAutoClose(){if(this.autoClose){["mousedown","touchstart"].forEach((e=>{this.open?document.documentElement.addEventListener(e,(e=>this.openHandler(e))):document.documentElement.removeEventListener(e,(e=>this.openHandler(e)))}))}},toggle(){this.$emit("popup-change",!this.open)}}});var r=n(8332),a=n.n(r),c=n(2618),s=n.n(c),l={insert:"head",singleton:!1};a()(s(),l);s().locals;const d=(0,n(6499).Z)(i,o,[],!1,null,null,null).exports},2727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"slider",staticClass:"be-slider",attrs:{role:"slider",tabindex:e.focusable?0:-1},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(-1))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),t.stopPropagation(),e.offsetByStep(1))}]}},[t("div",{ref:"barContainer",staticClass:"bar-container",on:{click:function(t){return e.setByCoord(t.offsetX)}}},[e._t("bar",(function(){return[t("div",{staticClass:"default-bar"})]}))],2),e._v(" "),t("MiniToast",{ref:"thumbContainer",staticClass:"thumb-container",style:{left:e.thumbLeft},attrs:{placement:"top",arrow:!1},scopedSlots:e._u([{key:"toast",fn:function(){return[e._v("\n "+e._s(e.displayFun(e.realValue))+"\n ")]},proxy:!0}])},[e._t("thumb",(function(){return[t("div",{staticClass:"default-thumb"})]}))],2)],1)};o._withStripped=!0;var i=n(7864);const r=Vue.extend({name:"VSlider",components:{MiniToast:i.Z},model:{prop:"value",event:"change"},props:{focusable:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},value:{type:Number,default:0},center:{type:Number,default:0},step:{type:Number,default:1},displayFun:{type:Function,default:e=>String(e)}},data:()=>({realValue:0}),computed:{realMax(){return this.valueToRounded(this.max,Math.floor)},realMin(){return this.valueToRounded(this.min,Math.ceil)},valueLength(){const e=this.realMax-this.realMin;return e<0?(console.error("[VSlider] No desirable value between min and max"),0):e},thumbLeft(){if(0===this.valueLength)return 0;return`${(this.realValue-this.realMin)/this.valueLength*100}%`},centerCoord(){return this.valueToLength(this.center-this.realMin)}},watch:{value(e){e!==this.realValue&&this.setByValue(e)},center(){this.setByValue(this.realValue)},min(){this.setByRounded(this.realValue)},max(){this.setByRounded(this.realValue)}},created(){this.setByValue(this.value)},mounted(){this.setupDrag()},methods:{valueToStep(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round)(e/this.step)},valueToStepped(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.valueToStep(e,t)*this.step},lengthToValue(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return this.valueLength*(e/t)},lengthToStep(e){return this.valueToStep(this.lengthToValue(e))},lengthToStepped(e){return this.lengthToStep(e)*this.step},valueToLength(e){const t=this.$refs.barContainer.getBoundingClientRect().width;return 0===this.valueLength?0:t*(e/this.valueLength)},valueToRounded(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.round;return this.center+this.valueToStepped(e-this.center,t)},limitValue(e){return 0===this.valueLength?this.realMin:(ethis.realMax&&(e=this.realMax),e)},offsetByStep(e){this.setByRounded(this.realValue+e*this.step)},setByLimited(e){e!==this.realValue&&(this.realValue=e,this.$emit("change",this.realValue))},setByRounded(e){this.setByLimited(this.limitValue(e))},setByValue(e){this.setByRounded(this.valueToRounded(e))},setByCoord(e){this.setByRounded(this.center+this.lengthToStepped(e-this.centerCoord))},setupDrag(){function e(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e=>{e.preventDefault(),e instanceof MouseEvent||e instanceof unsafeWindow.MouseEvent?n(e.pageX):1===e.touches.length&&n(e.touches[0].pageX)};return e.addEventListener(t,i,{once:o,passive:!1}),()=>e.removeEventListener(t,i)}const t=this.$refs.thumbContainer.$el,n=[{start:"mousedown",move:"mousemove",end:"mouseup"},{start:"touchstart",move:"touchmove",end:"touchend"}];for(const o of n){let n=0,i=0;e(t,o.start,(t=>{this.$emit("start",this.realValue),this.$refs.slider.focus(),n=t,i=this.realValue;const r=e(window,o.move,(e=>{this.setByValue(i+this.lengthToValue(e-n))}));e(window,o.end,(()=>{this.$emit("end",this.realValue),r()}),!0)}))}}}});var a=n(8332),c=n.n(a),s=n(1390),l=n.n(s),d={insert:"head",singleton:!1};c()(l(),d);l().locals;const m=(0,n(6499).Z)(r,o,[],!1,null,"94f62aa6",null).exports},1282:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("i",e._g(e._b({staticClass:"be-icon",class:e.classes,style:{"--size":e.size+"px"}},"i",e.$attrs,!1),e.$listeners),[e._t("default"),e._v(" "),e.icon in e.$options.static.customIcons?t("div",{staticClass:"custom-icon",domProps:{innerHTML:e._s(e.$options.static.customIcons[e.icon])}}):e._e()],2)};o._withStripped=!0;var i=n(6940);const r=n(5454),a=lodash.fromPairs(r.keys().map((e=>[e.replace(/.*\/([^/]+?)\.svg$/,"$1"),r(e)]))),[c]=(0,i.registerAndGetData)("ui.icons",a),s={customIcons:a},l=Vue.extend({name:"VIcon",props:{icon:{type:String,default:""},size:{type:Number,default:24},colored:{type:Boolean,default:!1}},computed:{classes(){const e=this.$options.static.customIcons,t=this.icon,n=[];return this.colored&&n.push("colored"),""===t||t in e?n:t.startsWith("mdi-")?[...n,"mdi",t]:[...n,`be-iconfont-${t}`]}},beforeCreate(){this.$options.static=s}}),d=l;var m=n(8332),f=n.n(m),u=n(8462),p=n.n(u),b={insert:"head",singleton:!1};f()(p(),b);p().locals;const h=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},6499:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var d=l.render;l.render=function(e,t){return s.call(t),d(e,t)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,s):[s]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},7933:(e,t,n)=>{"use strict";var o=n(8254),i=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8332),i=n.n(o),r=n(1489),a=n.n(r),c={insert:"head",singleton:!1};i()(a(),c);const s=a().locals||{}},8332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n{var o=n(9145);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},3975:(e,t,n)=>{var o=n(3617);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},5026:(e,t,n)=>{"use strict";const o=Object.freeze({}),i=Array.isArray;function r(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function d(e){return null!==e&&"object"==typeof e}const m=Object.prototype.toString;function f(e){return"[object Object]"===m.call(e)}function u(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===m?JSON.stringify(e,null,2):String(e)}function h(e){const t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const F=g("key,ref,slot,slot-scope,is");function v(e,t){const n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);const o=e.indexOf(t);if(o>-1)return e.splice(o,1)}}const w=Object.prototype.hasOwnProperty;function y(e,t){return w.call(e,t)}function x(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const k=/-(\w)/g,C=x((e=>e.replace(k,((e,t)=>t?t.toUpperCase():"")))),A=x((e=>e.charAt(0).toUpperCase()+e.slice(1))),E=/\B([A-Z])/g,B=x((e=>e.replace(E,"-$1").toLowerCase())),D=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function z(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function I(e,t){for(const n in t)e[n]=t[n];return e}function S(e){const t={};for(let n=0;n!1,O=e=>e;function V(e,t){if(e===t)return!0;const n=d(e),o=d(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every(((e,n)=>V(e,t[n])));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>V(e[n],t[n])))}}catch(e){return!1}}function T(e,t){for(let n=0;n0,K=Q&&Q.indexOf("edge/")>0;Q&&Q.indexOf("android");const J=Q&&/iphone|ipad|ipod|ios/.test(Q);Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q);const _=Q&&Q.match(/firefox\/(\d+)/),$={}.watch;let ee,te=!1;if(G)try{const e={};Object.defineProperty(e,"passive",{get(){te=!0}}),window.addEventListener("test-passive",null,e)}catch(o){}const ne=()=>(void 0===ee&&(ee=!G&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ee),oe=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);let ae;ae="undefined"!=typeof Set&&ie(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let ce=null;function se(e=null){e||ce&&ce._scope.off(),ce=e,e&&e._scope.on()}class le{constructor(e,t,n,o,i,r,a,c){this.tag=e,this.data=t,this.children=n,this.text=o,this.elm=i,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const de=(e="")=>{const t=new le;return t.text=e,t.isComment=!0,t};function me(e){return new le(void 0,void 0,void 0,String(e))}function fe(e){const t=new le(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}let ue=0;const pe=[];class be{constructor(){this._pending=!1,this.id=ue++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,pe.push(this))}depend(e){be.target&&be.target.addDep(this)}notify(e){const t=this.subs.filter((e=>e));for(let e=0,n=t.length;e{const e=t[n];if(Le(e))return e.value;{const t=e&&e.__ob__;return t&&t.dep.depend(),e}},set:e=>{const o=t[n];Le(o)&&!Le(e)?o.value=e:t[n]=e}})}function Ne(e,t,n){const o=e[t];if(Le(o))return o;const i={get value(){const o=e[t];return void 0===o?n:o},set value(n){e[t]=n}};return U(i,"__v_isRef",!0),i}function qe(e){return Ze(e,!1)}function Ze(e,t){if(!f(e))return e;if(Te(e))return e;const n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",o=e[n];if(o)return o;const i=Object.create(Object.getPrototypeOf(e));U(e,n,i),U(i,"__v_isReadonly",!0),U(i,"__v_raw",e),Le(e)&&U(i,"__v_isRef",!0),(t||Ve(e))&&U(i,"__v_isShallow",!0);const r=Object.keys(e);for(let n=0;nTt(e,null,n,d,t);let f,u,p=!1,b=!1;if(Le(e)?(f=()=>e.value,p=Ve(e)):Oe(e)?(f=()=>(e.__ob__.dep.depend(),e),r=!0):i(e)?(b=!0,p=e.some((e=>Oe(e)||Ve(e))),f=()=>e.map((e=>Le(e)?e.value:Oe(e)?cn(e):l(e)?m(e,"watcher getter"):void 0))):f=l(e)?t?()=>m(e,"watcher getter"):()=>{if(!d||!d._isDestroyed)return u&&u(),m(e,"watcher",[h])}:M,t&&r){const e=f;f=()=>cn(e())}let h=e=>{u=g.onStop=()=>{m(e,"watcher cleanup")}};if(ne())return h=M,t?n&&m(t,"watcher callback",[f(),b?[]:void 0,h]):f(),M;const g=new mn(ce,f,M,{lazy:!0});g.noRecurse=!t;let F=b?[]:We;return g.run=()=>{if(g.active)if(t){const e=g.get();(r||p||(b?e.some(((e,t)=>j(e,F[t]))):j(e,F)))&&(u&&u(),m(t,"watcher callback",[e,F===We?void 0:F,h]),F=e)}else g.get()},"sync"===a?g.update=g.run:"post"===a?(g.post=!0,g.update=()=>Mn(g)):g.update=()=>{if(d&&d===ce&&!d._isMounted){const e=d._preWatchers||(d._preWatchers=[]);e.indexOf(g)<0&&e.push(g)}else Mn(g)},t?n?g.run():F=g.get():"post"===a&&d?d.$once("hook:mounted",(()=>g.get())):g.get(),()=>{g.teardown()}}let Qe;class Ye{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Qe,!e&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Qe;try{return Qe=this,e()}finally{Qe=t}}}on(){Qe=this}off(){Qe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}}));function Je(e,t){function n(){const e=n.fns;if(!i(e))return Tt(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(l=ot(l,`${t||""}_${o}`),nt(l[0])&&nt(m)&&(n[d]=me(m.text+l[0].text),l.shift()),n.push.apply(n,l)):s(l)?nt(m)?n[d]=me(m.text+l):""!==l&&n.push(me(l)):nt(l)&&nt(m)?n[d]=me(m.text+l.text):(c(e._isVList)&&a(l.tag)&&r(l.key)&&a(t)&&(l.key=`__vlist${t}_${o}__`),n.push(l)));return n}function it(e,t){let n,o,r,c,s=null;if(i(e)||"string"==typeof e)for(s=new Array(e.length),n=0,o=e.length;n0,c=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(c&&i&&i!==o&&s===i.$key&&!a&&!i.$hasNormal)return i;r={};for(const o in t)t[o]&&"$"!==o[0]&&(r[o]=kt(e,n,o,t[o]))}else r={};for(const e in n)e in r||(r[e]=Ct(n,e));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",c),U(r,"$key",s),U(r,"$hasNormal",a),r}function kt(e,t,n,o){const r=function(){const t=ce;se(e);let n=arguments.length?o.apply(null,arguments):o({});n=n&&"object"==typeof n&&!i(n)?[n]:tt(n);const r=n&&n[0];return se(t),n&&(!r||1===n.length&&r.isComment&&!yt(r))?void 0:n};return o.proxy&&Object.defineProperty(t,n,{get:r,enumerable:!0,configurable:!0}),r}function Ct(e,t){return()=>e[t]}function At(e){return{get attrs(){if(!e._attrsProxy){const t=e._attrsProxy={};U(t,"_v_attr_proxy",!0),Et(t,e.$attrs,o,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Et(e._listenersProxy={},e.$listeners,o,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:D(e.$emit,e),expose(t){t&&Object.keys(t).forEach((n=>Re(e,t,n)))}}}function Et(e,t,n,o,i){let r=!1;for(const a in t)a in e?t[a]!==n[a]&&(r=!0):(r=!0,Bt(e,a,o,i));for(const n in e)n in t||(r=!0,delete e[n]);return r}function Bt(e,t,n,o){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[o][t]})}function Dt(e,t){for(const n in t)e[n]=t[n];for(const n in e)n in t||delete e[n]}function zt(){const e=ce;return e._setupContext||(e._setupContext=At(e))}let It=null;function St(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e)?t.extend(e):e}function Mt(e){if(i(e))for(let t=0;tVt(e,o,i+" (Promise/async)"))),r._handled=!0)}catch(e){Vt(e,o,i)}return r}function Lt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(t){t!==e&&jt(t)}jt(e)}function jt(e,t,n){if(!G||"undefined"==typeof console)throw e;console.error(e)}let Rt=!1;const Nt=[];let qt,Zt=!1;function Ut(){Zt=!1;const e=Nt.slice(0);Nt.length=0;for(let t=0;t{e.then(Ut),J&&setTimeout(M)},Rt=!0}else if(Y||"undefined"==typeof MutationObserver||!ie(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())qt="undefined"!=typeof setImmediate&&ie(setImmediate)?()=>{setImmediate(Ut)}:()=>{setTimeout(Ut,0)};else{let e=1;const t=new MutationObserver(Ut),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),qt=()=>{e=(e+1)%2,n.data=String(e)},Rt=!0}function Ht(e,t){let n;if(Nt.push((()=>{if(e)try{e.call(t)}catch(e){Vt(e,t,"nextTick")}else n&&n(t)})),Zt||(Zt=!0,qt()),!e&&"undefined"!=typeof Promise)return new Promise((e=>{n=e}))}function Wt(e){return(t,n=ce)=>{if(n)return function(e,t,n){const o=e.$options;o[t]=Gn(o[t],n)}(n,e,t)}}const Gt=Wt("beforeMount"),Qt=Wt("mounted"),Yt=Wt("beforeUpdate"),Xt=Wt("updated"),Kt=Wt("beforeDestroy"),Jt=Wt("destroyed"),_t=Wt("activated"),$t=Wt("deactivated"),en=Wt("serverPrefetch"),tn=Wt("renderTracked"),nn=Wt("renderTriggered"),on=Wt("errorCaptured");var rn=Object.freeze({__proto__:null,version:"2.7.14",defineComponent:function(e){return e},ref:function(e){return je(e,!1)},shallowRef:function(e){return je(e,!0)},isRef:Le,toRef:Ne,toRefs:function(e){const t=i(e)?new Array(e.length):{};for(const n in e)t[n]=Ne(e,n);return t},unref:function(e){return Le(e)?e.value:e},proxyRefs:function(e){if(Oe(e))return e;const t={},n=Object.keys(e);for(let o=0;o{t.depend()}),(()=>{t.notify()})),i={get value(){return n()},set value(e){o(e)}};return U(i,"__v_isRef",!0),i},triggerRef:function(e){e.dep&&e.dep.notify()},reactive:function(e){return Pe(e,!1),e},isReactive:Oe,isReadonly:Te,isShallow:Ve,isProxy:function(e){return Oe(e)||Te(e)},shallowReactive:Me,markRaw:function(e){return Object.isExtensible(e)&&U(e,"__v_skip",!0),e},toRaw:function e(t){const n=t&&t.__v_raw;return n?e(n):t},readonly:qe,shallowReadonly:function(e){return Ze(e,!0)},computed:function(e,t){let n,o;const i=l(e);i?(n=e,o=M):(n=e.get,o=e.set);const r=ne()?null:new mn(ce,n,M,{lazy:!0}),a={effect:r,get value(){return r?(r.dirty&&r.evaluate(),be.target&&r.depend(),r.value):n()},set value(e){o(e)}};return U(a,"__v_isRef",!0),U(a,"__v_isReadonly",i),a},watch:function(e,t,n){return Ge(e,t,n)},watchEffect:function(e,t){return Ge(e,null,t)},watchPostEffect:He,watchSyncEffect:function(e,t){return Ge(e,null,{flush:"sync"})},EffectScope:Ye,effectScope:function(e){return new Ye(e)},onScopeDispose:function(e){Qe&&Qe.cleanups.push(e)},getCurrentScope:function(){return Qe},provide:function(e,t){ce&&(Xe(ce)[e]=t)},inject:function(e,t,n=!1){const o=ce;if(o){const i=o.$parent&&o.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&l(t)?t.call(o):t}},h:function(e,t,n){return Pt(ce,e,t,n,2,!0)},getCurrentInstance:function(){return ce&&{proxy:ce}},useSlots:function(){return zt().slots},useAttrs:function(){return zt().attrs},useListeners:function(){return zt().listeners},mergeDefaults:function(e,t){const n=i(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?i(o)||l(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n},nextTick:Ht,set:ze,del:Ie,useCssModule:function(e="$style"){if(!ce)return o;return ce[e]||o},useCssVars:function(e){if(!G)return;const t=ce;t&&He((()=>{const n=t.$el,o=e(t,t._setupProxy);if(n&&1===n.nodeType){const e=n.style;for(const t in o)e.setProperty(`--${t}`,o[t])}}))},defineAsyncComponent:function(e){l(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:r,suspensible:a=!1,onError:c}=e;let s=null,d=0;const m=()=>{let e;return s||(e=s=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((d++,s=null,m()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==s&&s?s:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t))))};return()=>({component:m(),delay:i,timeout:r,error:o,loading:n})},onBeforeMount:Gt,onMounted:Qt,onBeforeUpdate:Yt,onUpdated:Xt,onBeforeUnmount:Kt,onUnmounted:Jt,onActivated:_t,onDeactivated:$t,onServerPrefetch:en,onRenderTracked:tn,onRenderTriggered:nn,onErrorCaptured:function(e,t=ce){on(e,t)}});const an=new ae;function cn(e){return sn(e,an),an.clear(),e}function sn(e,t){let n,o;const r=i(e);if(!(!r&&!d(e)||e.__v_skip||Object.isFrozen(e)||e instanceof le)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(r)for(n=e.length;n--;)sn(e[n],t);else if(Le(e))sn(e.value,t);else for(o=Object.keys(e),n=o.length;n--;)sn(e[o[n]],t)}}let ln,dn=0;class mn{constructor(e,t,n,o,i){!function(e,t=Qe){t&&t.active&&t.effects.push(e)}(this,Qe&&!Qe._vm?Qe:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ae,this.newDepIds=new ae,this.expression="",l(t)?this.getter=t:(this.getter=function(e){if(H.test(e))return;const t=e.split(".");return function(e){for(let n=0;n{hn=t}}function Fn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function vn(e,t){if(t){if(e._directInactive=!1,Fn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;tdocument.createEvent("Event").timeStamp&&(zn=()=>e.now())}const In=(e,t)=>{if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Sn(){let e,t;for(Dn=zn(),En=!0,xn.sort(In),Bn=0;Bn{for(let e=0;ee)),t._pending=!1}pe.length=0})(),oe&&q.devtools&&oe.emit("flush")}function Mn(e){const t=e.id;if(null==Cn[t]&&(e!==be.target||!e.noRecurse)){if(Cn[t]=!0,En){let t=xn.length-1;for(;t>Bn&&xn[t].id>e.id;)t--;xn.splice(t+1,0,e)}else xn.push(e);An||(An=!0,Ht(Sn))}}function Pn(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let i=0;i(this.$slots||xt(r,e.scopedSlots,this.$slots=vt(n,r)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return xt(r,e.scopedSlots,this.slots())}}),d&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=xt(r,e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,o)=>{const a=Pt(l,e,t,n,o,m);return a&&!i(a)&&(a.fnScopeId=s._scopeId,a.fnContext=r),a}:this._c=(e,t,n,o)=>Pt(l,e,t,n,o,m)}function Vn(e,t,n,o,i){const r=fe(e);return r.fnContext=n,r.fnOptions=o,t.slot&&((r.data||(r.data={})).slot=t.slot),r}function Tn(e,t){for(const n in t)e[C(n)]=t[n]}function Ln(e){return e.name||e.__name||e._componentTag}Ft(On.prototype);const jn={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;jn.prepatch(t,t)}else(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;return a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns),new e.componentOptions.Ctor(n)}(e,hn)).$mount(t?e.elm:void 0,t)},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,i,r){const a=i.data.scopedSlots,c=e.$scopedSlots,s=!!(a&&!a.$stable||c!==o&&!c.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key);let l=!!(r||e.$options._renderChildren||s);const d=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=r;const m=i.data.attrs||o;e._attrsProxy&&Et(e._attrsProxy,m,d.data&&d.data.attrs||o,e,"$attrs")&&(l=!0),e.$attrs=m,n=n||o;const f=e.$options._parentListeners;if(e._listenersProxy&&Et(e._listenersProxy,n,f||o,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,bn(e,n,f),t&&e.$options.props){Ce(!1);const n=e._props,o=e.$options._propKeys||[];for(let i=0;iv(o,n)));const l=e=>{for(let e=0,t=o.length;e{e.resolved=St(n,t),i?o.length=0:l(!0)})),f=L((t=>{a(e.errorComp)&&(e.error=!0,l(!0))})),u=e(m,f);return d(u)&&(p(u)?r(e.resolved)&&u.then(m,f):p(u.component)&&(u.component.then(m,f),a(u.error)&&(e.errorComp=St(u.error,t)),a(u.loading)&&(e.loadingComp=St(u.loading,t),0===u.delay?e.loading=!0:c=setTimeout((()=>{c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,l(!1))}),u.delay||200)),a(u.timeout)&&(s=setTimeout((()=>{s=null,r(e.resolved)&&f(null)}),u.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(f,m),void 0===e))return function(e,t,n,o,i){const r=de();return r.asyncFactory=e,r.asyncMeta={data:t,context:n,children:o,tag:i},r}(f,t,n,s,l);t=t||{},fo(e),a(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),c=r[o],s=t.model.callback;a(c)?(i(c)?-1===c.indexOf(s):c!==s)&&(r[o]=[s].concat(c)):r[o]=s}(e.options,t);const u=function(e,t,n){const o=t.options.props;if(r(o))return;const i={},{attrs:c,props:s}=e;if(a(c)||a(s))for(const e in o){const t=B(e);et(i,s,e,t,!0)||et(i,c,e,t,!1)}return i}(t,e);if(c(e.options.functional))return function(e,t,n,r,c){const s=e.options,l={},d=s.props;if(a(d))for(const e in d)l[e]=Jn(e,d,t||o);else a(n.attrs)&&Tn(l,n.attrs),a(n.props)&&Tn(l,n.props);const m=new On(n,l,c,r,e),f=s.render.call(null,m._c,m);if(f instanceof le)return Vn(f,n,m.parent,s);if(i(f)){const e=tt(f)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}let Zn=M;const Un=q.optionMergeStrategies;function Hn(e,t,n=!0){if(!t)return e;let o,i,r;const a=re?Reflect.ownKeys(t):Object.keys(t);for(let c=0;c{Un[e]=Gn})),R.forEach((function(e){Un[e+"s"]=Qn})),Un.watch=function(e,t,n,o){if(e===$&&(e=void 0),t===$&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};I(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!i(n)&&(n=[n]),r[e]=n?n.concat(o):i(o)?o:[o]}return r},Un.props=Un.methods=Un.inject=Un.computed=function(e,t,n,o){if(!e)return t;const i=Object.create(null);return I(i,e),t&&I(i,t),i},Un.provide=function(e,t){return e?function(){const n=Object.create(null);return Hn(n,l(e)?e.call(this):e),t&&Hn(n,l(t)?t.call(this):t,!1),n}:t};const Yn=function(e,t){return void 0===t?e:t};function Xn(e,t,n){if(l(t)&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,a,c;if(i(n))for(r=n.length;r--;)a=n[r],"string"==typeof a&&(c=C(a),o[c]={type:null});else if(f(n))for(const e in n)a=n[e],c=C(e),o[c]=f(a)?a:{type:a};e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(i(n))for(let e=0;e-1)if(r&&!y(i,"default"))a=!1;else if(""===a||a===B(e)){const e=to(String,i.type);(e<0||c-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===m.call(n)&&e.test(t));var n}function ho(e,t){const{cache:n,keys:o,_vnode:i}=e;for(const e in n){const r=n[e];if(r){const a=r.name;a&&!t(a)&&go(n,e,o,i)}}}function go(e,t,n,o){const i=e[t];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mo++,t._isVue=!0,t.__v_skip=!0,t._scope=new Ye(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const i=o.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Xn(fo(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&bn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=vt(t._renderChildren,i),e.$scopedSlots=n?xt(e.$parent,n.data.scopedSlots,e.$slots):o,e._c=(t,n,o,i)=>Pt(e,t,n,o,i,!1),e.$createElement=(t,n,o,i)=>Pt(e,t,n,o,i,!0);const r=n&&n.data;De(e,"$attrs",r&&r.attrs||o,null,!0),De(e,"$listeners",t._parentListeners||o,null,!0)}(t),yn(t,"beforeCreate",void 0,!1),function(e){const t=Pn(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((n=>{De(e,n,t[n])})),Ce(!0))}(t),io(t),function(e){const t=e.$options.provide;if(t){const n=l(t)?t.call(e):t;if(!d(n))return;const o=Xe(e),i=re?Reflect.ownKeys(n):Object.keys(n);for(let e=0;e1?z(n):n;const o=z(arguments,1),i=`event handler for "${e}"`;for(let e=0,r=n.length;eparseInt(this.max)&&go(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)go(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(e=>{ho(this,(t=>bo(e,t)))})),this.$watch("exclude",(e=>{ho(this,(t=>!bo(e,t)))}))},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=Mt(e),n=t&&t.componentOptions;if(n){const e=po(n),{include:o,exclude:i}=this;if(o&&(!e||!bo(o,e))||i&&e&&bo(i,e))return t;const{cache:r,keys:a}=this,c=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;r[c]?(t.componentInstance=r[c].componentInstance,v(a,c),a.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){const t={get:()=>q};Object.defineProperty(e,"config",t),e.util={warn:Zn,extend:I,mergeOptions:Xn,defineReactive:De},e.set=ze,e.delete=Ie,e.nextTick=Ht,e.observable=e=>(Be(e),e),e.options=Object.create(null),R.forEach((t=>{e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,vo),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=z(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Xn(this.options,e),this}}(e),function(e){e.cid=0;let t=1;e.extend=function(e){e=e||{};const n=this,o=n.cid,i=e._Ctor||(e._Ctor={});if(i[o])return i[o];const r=Ln(e)||Ln(n.options),a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Xn(n.options,e),a.super=n,a.options.props&&function(e){const t=e.options.props;for(const n in t)oo(e.prototype,"_props",n)}(a),a.options.computed&&function(e){const t=e.options.computed;for(const n in t)ao(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(e){a[e]=n[e]})),r&&(a.options.components[r]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=I({},a.options),i[o]=a,a}}(e),function(e){R.forEach((t=>{e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(uo),Object.defineProperty(uo.prototype,"$isServer",{get:ne}),Object.defineProperty(uo.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(uo,"FunctionalRenderContext",{value:On}),uo.version="2.7.14";const wo=g("style,class"),yo=g("input,textarea,option,select,progress"),xo=g("contenteditable,draggable,spellcheck"),ko=g("events,caret,typing,plaintext-only"),Co=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ao="http://www.w3.org/1999/xlink",Eo=e=>":"===e.charAt(5)&&"xlink"===e.slice(0,5),Bo=e=>Eo(e)?e.slice(6,e.length):"",Do=e=>null==e||!1===e;function zo(e,t){return{staticClass:Io(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Io(e,t){return e?t?e+" "+t:e:t||""}function So(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,i=e.length;oPo(e)||Oo(e),To=Object.create(null),Lo=g("text,number,password,search,email,tel,url");var jo=Object.freeze({__proto__:null,createElement:function(e,t){const n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Mo[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Ro={create(e,t){No(t)},update(e,t){e.data.ref!==t.data.ref&&(No(e,!0),No(t))},destroy(e){No(e,!0)}};function No(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,c=t?null:r,s=t?void 0:r;if(l(n))return void Tt(n,o,[c],o,"template ref function");const d=e.data.refInFor,m="string"==typeof n||"number"==typeof n,f=Le(n),u=o.$refs;if(m||f)if(d){const e=m?u[n]:n.value;t?i(e)&&v(e,r):i(e)?e.includes(r)||e.push(r):m?(u[n]=[r],qo(o,n,u[n])):n.value=[r]}else if(m){if(t&&u[n]!==r)return;u[n]=s,qo(o,n,c)}else if(f){if(t&&n.value!==r)return;n.value=c}}function qo({_setupState:e},t,n){e&&y(e,t)&&(Le(e[t])?e[t].value=n:e[t]=n)}const Zo=new le("",{},[]),Uo=["create","activate","update","remove","destroy"];function Ho(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===i||Lo(o)&&Lo(i)}(e,t)||c(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Wo(e,t,n){let o,i;const r={};for(o=t;o<=n;++o)i=e[o].key,a(i)&&(r[i]=o);return r}var Go={create:Qo,update:Qo,destroy:function(e){Qo(e,Zo)}};function Qo(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Zo,o=t===Zo,i=Xo(e.data.directives,e.context),r=Xo(t.data.directives,t.context),a=[],c=[];let s,l,d;for(s in r)l=i[s],d=r[s],l?(d.oldValue=l.value,d.oldArg=l.arg,Jo(d,"update",t,e),d.def&&d.def.componentUpdated&&c.push(d)):(Jo(d,"bind",t,e),d.def&&d.def.inserted&&a.push(d));if(a.length){const o=()=>{for(let n=0;n{for(let n=0;n-1?ti(e,t,n):Co(t)?Do(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xo(t)?e.setAttribute(t,((e,t)=>Do(t)||"false"===t?"false":"contenteditable"===e&&ko(t)?t:"true")(t,n)):Eo(t)?Do(n)?e.removeAttributeNS(Ao,Bo(t)):e.setAttributeNS(Ao,t,n):ti(e,t,n)}function ti(e,t,n){if(Do(n))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){const t=n=>{n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(t,n)}}var ni={create:$o,update:$o};function oi(e,t){const n=t.elm,o=t.data,i=e.data;if(r(o.staticClass)&&r(o.class)&&(r(i)||r(i.staticClass)&&r(i.class)))return;let c=function(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=zo(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=zo(t,n.data));return function(e,t){return a(e)||a(t)?Io(e,So(t)):""}(t.staticClass,t.class)}(t);const s=n._transitionClasses;a(s)&&(c=Io(c,So(s))),c!==n._prevClass&&(n.setAttribute("class",c),n._prevClass=c)}var ii={create:oi,update:oi};let ri;function ai(e,t,n){const o=ri;return function i(){const r=t.apply(null,arguments);null!==r&&li(e,i,n,o)}}const ci=Rt&&!(_&&Number(_[1])<=53);function si(e,t,n,o){if(ci){const e=Dn,n=t;t=n._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=e||t.timeStamp<=0||t.target.ownerDocument!==document)return n.apply(this,arguments)}}ri.addEventListener(e,t,te?{capture:n,passive:o}:n)}function li(e,t,n,o){(o||ri).removeEventListener(e,t._wrapper||t,n)}function di(e,t){if(r(e.data.on)&&r(t.data.on))return;const n=t.data.on||{},o=e.data.on||{};ri=t.elm||e.elm,function(e){if(a(e.__r)){const t=Y?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),_e(n,o,si,li,ai,t.context),ri=void 0}var mi={create:di,update:di,destroy:e=>di(e,Zo)};let fi;function ui(e,t){if(r(e.data.domProps)&&r(t.data.domProps))return;let n,o;const i=t.elm,s=e.data.domProps||{};let l=t.data.domProps||{};for(n in(a(l.__ob__)||c(l._v_attr_proxy))&&(l=t.data.domProps=I({},l)),s)n in l||(i[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=o;const e=r(o)?"":String(o);pi(i,e)&&(i.value=e)}else if("innerHTML"===n&&Oo(i.tagName)&&r(i.innerHTML)){fi=fi||document.createElement("div"),fi.innerHTML=`${o}`;const e=fi.firstChild;for(;i.firstChild;)i.removeChild(i.firstChild);for(;e.firstChild;)i.appendChild(e.firstChild)}else if(o!==s[n])try{i[n]=o}catch(e){}}}function pi(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){let n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){const n=e.value,o=e._vModifiers;if(a(o)){if(o.number)return h(n)!==h(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var bi={create:ui,update:ui};const hi=x((function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const o=e.split(n);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}));function gi(e){const t=Fi(e.style);return e.staticStyle?I(e.staticStyle,t):t}function Fi(e){return Array.isArray(e)?S(e):"string"==typeof e?hi(e):e}const vi=/^--/,wi=/\s*!important$/,yi=(e,t,n)=>{if(vi.test(t))e.style.setProperty(t,n);else if(wi.test(n))e.style.setProperty(B(t),n.replace(wi,""),"important");else{const o=Ci(t);if(Array.isArray(n))for(let t=0,i=n.length;t-1?t.split(Bi).forEach((t=>e.classList.add(t))):e.classList.add(t);else{const n=` ${e.getAttribute("class")||""} `;n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function zi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Bi).forEach((t=>e.classList.remove(t))):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{let n=` ${e.getAttribute("class")||""} `;const o=" "+t+" ";for(;n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ii(e){if(e){if("object"==typeof e){const t={};return!1!==e.css&&I(t,Si(e.name||"v")),I(t,e),t}return"string"==typeof e?Si(e):void 0}}const Si=x((e=>({enterClass:`${e}-enter`,enterToClass:`${e}-enter-to`,enterActiveClass:`${e}-enter-active`,leaveClass:`${e}-leave`,leaveToClass:`${e}-leave-to`,leaveActiveClass:`${e}-leave-active`}))),Mi=G&&!X;let Pi="transition",Oi="transitionend",Vi="animation",Ti="animationend";Mi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Pi="WebkitTransition",Oi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Vi="WebkitAnimation",Ti="webkitAnimationEnd"));const Li=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:e=>e();function ji(e){Li((()=>{Li(e)}))}function Ri(e,t){const n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Di(e,t))}function Ni(e,t){e._transitionClasses&&v(e._transitionClasses,t),zi(e,t)}function qi(e,t,n){const{type:o,timeout:i,propCount:r}=Ui(e,t);if(!o)return n();const a="transition"===o?Oi:Ti;let c=0;const s=()=>{e.removeEventListener(a,l),n()},l=t=>{t.target===e&&++c>=r&&s()};setTimeout((()=>{c0&&(l="transition",d=r,m=i.length):"animation"===t?s>0&&(l="animation",d=s,m=c.length):(d=Math.max(r,s),l=d>0?r>s?"transition":"animation":null,m=l?"transition"===l?i.length:c.length:0),{type:l,timeout:d,propCount:m,hasTransform:"transition"===l&&Zi.test(n[Pi+"Property"])}}function Hi(e,t){for(;e.lengthWi(t)+Wi(e[n]))))}function Wi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Gi(e,t){const n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());const o=Ii(e.data.transition);if(r(o))return;if(a(n._enterCb)||1!==n.nodeType)return;const{css:i,type:c,enterClass:s,enterToClass:m,enterActiveClass:f,appearClass:u,appearToClass:p,appearActiveClass:b,beforeEnter:g,enter:F,afterEnter:v,enterCancelled:w,beforeAppear:y,appear:x,afterAppear:k,appearCancelled:C,duration:A}=o;let E=hn,B=hn.$vnode;for(;B&&B.parent;)E=B.context,B=B.parent;const D=!E._isMounted||!e.isRootInsert;if(D&&!x&&""!==x)return;const z=D&&u?u:s,I=D&&b?b:f,S=D&&p?p:m,M=D&&y||g,P=D&&l(x)?x:F,O=D&&k||v,V=D&&C||w,T=h(d(A)?A.enter:A),j=!1!==i&&!X,R=Xi(P),N=n._enterCb=L((()=>{j&&(Ni(n,S),Ni(n,I)),N.cancelled?(j&&Ni(n,z),V&&V(n)):O&&O(n),n._enterCb=null}));e.data.show||$e(e,"insert",(()=>{const t=n.parentNode,o=t&&t._pending&&t._pending[e.key];o&&o.tag===e.tag&&o.elm._leaveCb&&o.elm._leaveCb(),P&&P(n,N)})),M&&M(n),j&&(Ri(n,z),Ri(n,I),ji((()=>{Ni(n,z),N.cancelled||(Ri(n,S),R||(Yi(T)?setTimeout(N,T):qi(n,c,N)))}))),e.data.show&&(t&&t(),P&&P(n,N)),j||R||N()}function Qi(e,t){const n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());const o=Ii(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(a(n._leaveCb))return;const{css:i,type:c,leaveClass:s,leaveToClass:l,leaveActiveClass:m,beforeLeave:f,leave:u,afterLeave:p,leaveCancelled:b,delayLeave:g,duration:F}=o,v=!1!==i&&!X,w=Xi(u),y=h(d(F)?F.leave:F),x=n._leaveCb=L((()=>{n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),v&&(Ni(n,l),Ni(n,m)),x.cancelled?(v&&Ni(n,s),b&&b(n)):(t(),p&&p(n)),n._leaveCb=null}));function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),v&&(Ri(n,s),Ri(n,m),ji((()=>{Ni(n,s),x.cancelled||(Ri(n,l),w||(Yi(y)?setTimeout(x,y):qi(n,c,x)))}))),u&&u(n,x),v||w||x())}g?g(k):k()}function Yi(e){return"number"==typeof e&&!isNaN(e)}function Xi(e){if(r(e))return!1;const t=e.fns;return a(t)?Xi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ki(e,t){!0!==t.data.show&&Gi(t)}const Ji=function(e){let t,n;const o={},{modules:l,nodeOps:d}=e;for(t=0;tb?(m=r(n[F+1])?null:n[F+1].elm,w(e,m,n,p,F,o)):p>F&&x(t,u,b)}(m,b,g,n,l):a(g)?(a(e.text)&&d.setTextContent(m,""),w(m,null,g,0,g.length-1,n)):a(b)?x(b,0,b.length-1):a(e.text)&&d.setTextContent(m,""):e.text!==t.text&&d.setTextContent(m,t.text),a(p)&&a(u=p.hook)&&a(u=u.postpatch)&&u(e,t)}function E(e,t,n){if(c(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e{const e=document.activeElement;e&&e.vmodel&&rr(e,"input")}));const _i={inserted(e,t,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?$e(n,"postpatch",(()=>{_i.componentUpdated(e,t,n)})):$i(e,t,n.context),e._vOptions=[].map.call(e.options,nr)):("textarea"===n.tag||Lo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",or),e.addEventListener("compositionend",ir),e.addEventListener("change",ir),X&&(e.vmodel=!0)))},componentUpdated(e,t,n){if("select"===n.tag){$i(e,t,n.context);const o=e._vOptions,i=e._vOptions=[].map.call(e.options,nr);i.some(((e,t)=>!V(e,o[t])))&&(e.multiple?t.value.some((e=>tr(e,i))):t.value!==t.oldValue&&tr(t.value,i))&&rr(e,"change")}}};function $i(e,t,n){er(e,t),(Y||K)&&setTimeout((()=>{er(e,t)}),0)}function er(e,t,n){const o=t.value,i=e.multiple;if(i&&!Array.isArray(o))return;let r,a;for(let t=0,n=e.options.length;t-1,a.selected!==r&&(a.selected=r);else if(V(nr(a),o))return void(e.selectedIndex!==t&&(e.selectedIndex=t));i||(e.selectedIndex=-1)}function tr(e,t){return t.every((t=>!V(t,e)))}function nr(e){return"_value"in e?e._value:e.value}function or(e){e.target.composing=!0}function ir(e){e.target.composing&&(e.target.composing=!1,rr(e.target,"input"))}function rr(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ar(e){return!e.componentInstance||e.data&&e.data.transition?e:ar(e.componentInstance._vnode)}var cr={bind(e,{value:t},n){const o=(n=ar(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&o?(n.data.show=!0,Gi(n,(()=>{e.style.display=i}))):e.style.display=t?i:"none"},update(e,{value:t,oldValue:n},o){!t!=!n&&((o=ar(o)).data&&o.data.transition?(o.data.show=!0,t?Gi(o,(()=>{e.style.display=e.__vOriginalDisplay})):Qi(o,(()=>{e.style.display="none"}))):e.style.display=t?e.__vOriginalDisplay:"none")},unbind(e,t,n,o,i){i||(e.style.display=e.__vOriginalDisplay)}},sr={model:_i,show:cr};const lr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function dr(e){const t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?dr(Mt(t.children)):e}function mr(e){const t={},n=e.$options;for(const o in n.propsData)t[o]=e[o];const o=n._parentListeners;for(const e in o)t[C(e)]=o[e];return t}function fr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}const ur=e=>e.tag||yt(e),pr=e=>"show"===e.name;var br={name:"transition",props:lr,abstract:!0,render(e){let t=this.$slots.default;if(!t)return;if(t=t.filter(ur),!t.length)return;const n=this.mode,o=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;const i=dr(o);if(!i)return o;if(this._leaving)return fr(e,o);const r=`__transition-${this._uid}-`;i.key=null==i.key?i.isComment?r+"comment":r+i.tag:s(i.key)?0===String(i.key).indexOf(r)?i.key:r+i.key:i.key;const a=(i.data||(i.data={})).transition=mr(this),c=this._vnode,l=dr(c);if(i.data.directives&&i.data.directives.some(pr)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!yt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){const t=l.data.transition=I({},a);if("out-in"===n)return this._leaving=!0,$e(t,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),fr(e,o);if("in-out"===n){if(yt(i))return c;let e;const n=()=>{e()};$e(a,"afterEnter",n),$e(a,"enterCancelled",n),$e(t,"delayLeave",(t=>{e=t}))}}return o}};const hr=I({tag:String,moveClass:String},lr);delete hr.mode;var gr={props:hr,beforeMount(){const e=this._update;this._update=(t,n)=>{const o=gn(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,o(),e.call(this,t,n)}},render(e){const t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],a=mr(this);for(let e=0;e{if(e.data.moved){const n=e.elm,o=n.style;Ri(n,t),o.transform=o.WebkitTransform=o.transitionDuration="",n.addEventListener(Oi,n._moveCb=function e(o){o&&o.target!==n||o&&!/transform$/.test(o.propertyName)||(n.removeEventListener(Oi,e),n._moveCb=null,Ni(n,t))})}})))},methods:{hasMove(e,t){if(!Mi)return!1;if(this._hasMove)return this._hasMove;const n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((e=>{zi(n,e)})),Di(n,t),n.style.display="none",this.$el.appendChild(n);const o=Ui(n);return this.$el.removeChild(n),this._hasMove=o.hasTransform}}};function Fr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function vr(e){e.data.newPos=e.elm.getBoundingClientRect()}function wr(e){const t=e.data.pos,n=e.data.newPos,o=t.left-n.left,i=t.top-n.top;if(o||i){e.data.moved=!0;const t=e.elm.style;t.transform=t.WebkitTransform=`translate(${o}px,${i}px)`,t.transitionDuration="0s"}}var yr={Transition:br,TransitionGroup:gr};uo.config.mustUseProp=(e,t,n)=>"value"===n&&yo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,uo.config.isReservedTag=Vo,uo.config.isReservedAttr=wo,uo.config.getTagNamespace=function(e){return Oo(e)?"svg":"math"===e?"math":void 0},uo.config.isUnknownElement=function(e){if(!G)return!0;if(Vo(e))return!1;if(e=e.toLowerCase(),null!=To[e])return To[e];const t=document.createElement(e);return e.indexOf("-")>-1?To[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:To[e]=/HTMLUnknownElement/.test(t.toString())},I(uo.options.directives,sr),I(uo.options.components,yr),uo.prototype.__patch__=G?Ji:M,uo.prototype.$mount=function(e,t){return function(e,t,n){let o;e.$el=t,e.$options.render||(e.$options.render=de),yn(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new mn(e,o,M,{before(){e._isMounted&&!e._isDestroyed&&yn(e,"beforeUpdate")}},!0),n=!1;const i=e._preWatchers;if(i)for(let e=0;e{q.devtools&&oe&&oe.emit("init",uo)}),0),I(uo,rn),e.exports=uo},7761:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7761,e.exports=t},4311:(e,t,n)=>{var o={"./index.en-US.md":5340};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=4311},3552:(e,t,n)=>{var o={"./index.en-US.ts":2510};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=3552},4353:(e,t,n)=>{var o={"./id-search/index.ts":4179};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=4353},5269:(e,t,n)=>{"use strict";n.r(t),n.d(t,{pako:()=>o}); diff --git a/registry/dist/components/feeds/copy-link.js b/registry/dist/components/feeds/copy-link.js index bcc5260bf..b82230d0e 100644 --- a/registry/dist/components/feeds/copy-link.js +++ b/registry/dist/components/feeds/copy-link.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/copy-link"]=t():e["feeds/copy-link"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={799:e=>{e.exports=coreApis.componentApis.feeds.api}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"copyFeedsLink",displayName:"复制动态链接",description:{"zh-CN":"开启后, 可在每条动态的菜单中选择复制链接."},entry:async()=>{const{forEachFeedsCard:e,addMenuItem:t}=await Promise.resolve().then(n.t.bind(n,799,23));e({added:e=>{t(e,{className:"copy-link",text:"复制链接",action:async()=>{await navigator.clipboard.writeText(`https://t.bilibili.com/${e.id}`)}})}})},urlInclude:t.feedsUrls,tags:[componentsTags.feeds,componentsTags.utils],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/copy-link"]=t():e["feeds/copy-link"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={799:e=>{e.exports=coreApis.componentApis.feeds.api}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,n.d(i,c),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"copyFeedsLink",displayName:"复制动态链接",description:{"zh-CN":"开启后, 可在每条动态的菜单中选择复制链接."},entry:async()=>{const{forEachFeedsCard:e,addMenuItem:t}=await Promise.resolve().then(n.t.bind(n,799,23));e({added:e=>{t(e,{className:"copy-link",text:"复制链接",action:async()=>{await navigator.clipboard.writeText(`https://t.bilibili.com/${e.id}`)}})}})},urlInclude:t.feedsUrls,tags:[componentsTags.feeds,componentsTags.utils],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/disable-details.js b/registry/dist/components/feeds/disable-details.js index 7e4b03be7..1ded05325 100644 --- a/registry/dist/components/feeds/disable-details.js +++ b/registry/dist/components/feeds/disable-details.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{var o=n(915);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},170:(e,t,n)=>{var o=n(116);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},356:e=>{"use strict";e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>d});const e=coreApis.componentApis.define;var t=r(799);const n=coreApis.utils.urls;let o=!0;const a="disable-feeds-details-style",s=async()=>{const{addImportantStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:t}=await Promise.resolve().then(r.t.bind(r,770,23));e(t,a)},d=(0,e.defineComponentMetadata)({name:"disableFeedsDetails",displayName:"禁止跳转动态详情",tags:[componentsTags.feeds],urlInclude:n.feedsUrls,description:{"zh-CN":"禁止动态点击后跳转详情页, 方便选择其中的文字."},entry:async()=>{const{addImportantStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23)),{forEachFeedsCard:n}=await Promise.resolve().then(r.t.bind(r,799,23)),{default:i}=await Promise.resolve().then(r.t.bind(r,170,23));e(i,"disable-feeds-details-init-style"),s();n({added:e=>{const{element:n}=e;n.addEventListener("click",(e=>{if(e.ctrlKey||!o)return;const t=dqa(n,'.content, .bili-dyn-content [data-module="desc"] .bili-rich-text, .dyn-card-opus__summary'),r=e.target;if(r.hasAttribute("click-title"))return;if(["bili-rich-text__action","bili-rich-text-topic","bili-rich-text-module","bili-rich-text-link"].some((e=>r.classList.contains(e))))return;dqa(n,".im-popup").some((e=>e.contains(r)))||t.some((e=>e===r||e.contains(r)))&&e.stopImmediatePropagation()}),{capture:!0});const r=dq(n,".post-content, .bili-dyn-content");if(!r)return;if(![".video-container",".bangumi-container",".media-list",".article-container"].some((e=>dq(r,e)))&&!dq(r,".details")&&(r.classList.contains("repost")||e.type===t.feedsCardTypes.repost)){const e=dq(r,".content, .bili-dyn-content__orig__desc, .dyn-card-opus__summary");if(!e)return;const t=document.createElement("div");t.classList.add("details"),t.setAttribute("click-title","详情"),t.innerHTML='\n 详情\n ',e.insertAdjacentElement("beforeend",t)}}})},unload:()=>{document.getElementById(a)?.remove(),o=!1},reload:()=>{s(),o=!0},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var o=n(915);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},170:(e,t,n)=>{var o=n(116);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},356:e=>{"use strict";e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>d});const e=coreApis.componentApis.define;var t=r(799);const n=coreApis.utils.urls;let o=!0;const a="disable-feeds-details-style",s=async()=>{const{addImportantStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:t}=await Promise.resolve().then(r.t.bind(r,770,23));e(t,a)},d=(0,e.defineComponentMetadata)({name:"disableFeedsDetails",displayName:"禁止跳转动态详情",tags:[componentsTags.feeds],urlInclude:n.feedsUrls,description:{"zh-CN":"禁止动态点击后跳转详情页, 方便选择其中的文字."},entry:async()=>{const{addImportantStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23)),{forEachFeedsCard:n}=await Promise.resolve().then(r.t.bind(r,799,23)),{default:i}=await Promise.resolve().then(r.t.bind(r,170,23));e(i,"disable-feeds-details-init-style"),s();n({added:e=>{const{element:n}=e;n.addEventListener("click",(e=>{if(e.ctrlKey||!o)return;const t=dqa(n,'.content, .bili-dyn-content [data-module="desc"] .bili-rich-text, .dyn-card-opus__summary'),r=e.target;if(r.hasAttribute("click-title"))return;if(["bili-rich-text__action","bili-rich-text-topic","bili-rich-text-module","bili-rich-text-link"].some((e=>r.classList.contains(e))))return;dqa(n,".im-popup").some((e=>e.contains(r)))||t.some((e=>e===r||e.contains(r)))&&e.stopImmediatePropagation()}),{capture:!0});const r=dq(n,".post-content, .bili-dyn-content");if(!r)return;if(![".video-container",".bangumi-container",".media-list",".article-container"].some((e=>dq(r,e)))&&!dq(r,".details")&&(r.classList.contains("repost")||e.type===t.feedsCardTypes.repost)){const e=dq(r,".content, .bili-dyn-content__orig__desc, .dyn-card-opus__summary");if(!e)return;const t=document.createElement("div");t.classList.add("details"),t.setAttribute("click-title","详情"),t.innerHTML='\n 详情\n ',e.insertAdjacentElement("beforeend",t)}}})},unload:()=>{document.getElementById(a)?.remove(),o=!1},reload:()=>{s(),o=!0},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/extend-live.js b/registry/dist/components/feeds/extend-live.js index e6e0c419f..9ecf34036 100644 --- a/registry/dist/components/feeds/extend-live.js +++ b/registry/dist/components/feeds/extend-live.js @@ -6,7 +6,7 @@ t.i=function(e,n,i){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-live-list"},[t("div",{staticClass:"be-live-list-header"},[t("div",{staticClass:"be-live-list-title"},[e._v("\n 正在直播\n "),t("div",{staticClass:"be-live-list-count"},[e._v("("+e._s(e.items.length)+")")])]),e._v(" "),t("div",{staticClass:"be-live-list-actions"},[e.loaded?t("div",{staticClass:"be-live-list-refresh",attrs:{title:"刷新"},on:{click:e.refresh}},[t("VIcon",{attrs:{icon:"mdi-refresh",size:16}})],1):e._e(),e._v(" "),t("a",{staticClass:"be-live-list-more",attrs:{target:"_blank",href:"https://link.bilibili.com/p/center/index#/user-center/follow/1"}},[e._v("\n 更多\n "),t("VIcon",{attrs:{icon:"right-arrow",size:14}})],1)])]),e._v(" "),t("div",{staticClass:"be-live-list-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{placeholder:"搜索"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),e._v(" "),t("div",{staticClass:"be-live-list-content"},[e.loaded?e._e():t("VLoading"),e._v(" "),e.loaded&&0===e.filteredItems.length?t("VEmpty"):e._e(),e._v(" "),e._l(e.filteredItems,(function(n){return t("a",{key:n.roomid,staticClass:"be-live-list-item",attrs:{target:"_blank",href:n.link}},[t("div",{staticClass:"be-live-list-item-avatar"},[t("DpiImage",{attrs:{src:n.face,alt:n.title,size:36}})],1),e._v(" "),t("div",{staticClass:"be-live-list-item-info"},[t("div",{staticClass:"be-live-list-item-title",attrs:{title:n.title}},[e._v("\n "+e._s(e.decodeTitle(n.title))+"\n ")]),e._v(" "),t("div",{staticClass:"be-live-list-item-user",attrs:{title:n.uname}},[e._v("\n "+e._s(n.uname)+"\n ")])])])}))],2)])};i._withStripped=!0;const o=coreApis.ui,r=coreApis.ajax,s=Vue.extend({components:{VIcon:o.VIcon,TextBox:o.TextBox,DpiImage:o.DpiImage,VEmpty:o.VEmpty,VLoading:o.VLoading},data:()=>({items:[],loaded:!1,keyword:""}),computed:{filteredItems(){return this.keyword?this.items.filter((e=>{const t=t=>e[t].toString().toLowerCase().includes(this.keyword.toLowerCase());return t("title")||t("uname")||t("roomid")||t("uid")})):this.items}},created(){this.refresh()},methods:{decodeTitle:e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},async refresh(){try{this.items=[],this.loaded=!1;const[,e]=(0,r.responsiveGetPages)({api:e=>(0,r.getJsonWithCredentials)(`https://api.live.bilibili.com/xlive/web-ucenter/v1/xfetter/GetWebList?page=${e}`),getList:e=>lodash.get(e,"data.list",[]).map((e=>{const{face:t,uname:n,title:i,room_id:o,cover_from_user:r,online:s,uid:a,link:l}=e;return{cover:t,face:t,uname:n,title:i,roomid:o,pic:r,online:s,uid:a,link:l}})),getTotal:e=>lodash.get(e,"data.count",0)}),[t,n]=await Promise.all([e,this.fetchRecommendItems()]);this.items=this.sortByRecommend(t,n)}finally{this.loaded=!0}},fetchRecommendItems:async()=>(await(0,r.getJsonWithCredentials)("https://api.bilibili.com/x/polymer/web-dynamic/v1/portal")).data.live_users.items.map((e=>{const{jump_url:t,room_id:n,face:i,title:o,uname:r,mid:s}=e;return{cover:i,face:i,uname:r,title:o,roomid:n,pic:"",online:0,uid:s,link:t}})),sortByRecommend(e,t){const n=t.map((e=>e.roomid)),i=e.filter((e=>!n.includes(e.roomid)));return lodash.concat(t,i)}}});var a=n(332),l=n.n(a),c=n(274),d=n.n(c),p={insert:"head",singleton:!1};l()(d(),p);d().locals;var f=function(e,t,n,i,o,r,s,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}(s,i,[],!1,null,null,null);const u=f.exports},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( +var s=this[r][0];null!=s&&(o[s]=!0)}for(var l=0;l{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-live-list"},[t("div",{staticClass:"be-live-list-header"},[t("div",{staticClass:"be-live-list-title"},[e._v("\n 正在直播\n "),t("div",{staticClass:"be-live-list-count"},[e._v("("+e._s(e.items.length)+")")])]),e._v(" "),t("div",{staticClass:"be-live-list-actions"},[e.loaded?t("div",{staticClass:"be-live-list-refresh",attrs:{title:"刷新"},on:{click:e.refresh}},[t("VIcon",{attrs:{icon:"mdi-refresh",size:16}})],1):e._e(),e._v(" "),t("a",{staticClass:"be-live-list-more",attrs:{target:"_blank",href:"https://link.bilibili.com/p/center/index#/user-center/follow/1"}},[e._v("\n 更多\n "),t("VIcon",{attrs:{icon:"right-arrow",size:14}})],1)])]),e._v(" "),t("div",{staticClass:"be-live-list-search"},[t("VIcon",{attrs:{icon:"search",size:18}}),e._v(" "),t("TextBox",{attrs:{placeholder:"搜索"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),e._v(" "),t("div",{staticClass:"be-live-list-content"},[e.loaded?e._e():t("VLoading"),e._v(" "),e.loaded&&0===e.filteredItems.length?t("VEmpty"):e._e(),e._v(" "),e._l(e.filteredItems,(function(n){return t("a",{key:n.roomid,staticClass:"be-live-list-item",attrs:{target:"_blank",href:n.link}},[t("div",{staticClass:"be-live-list-item-avatar"},[t("DpiImage",{attrs:{src:n.face,alt:n.title,size:36}})],1),e._v(" "),t("div",{staticClass:"be-live-list-item-info"},[t("div",{staticClass:"be-live-list-item-title",attrs:{title:n.title}},[e._v("\n "+e._s(e.decodeTitle(n.title))+"\n ")]),e._v(" "),t("div",{staticClass:"be-live-list-item-user",attrs:{title:n.uname}},[e._v("\n "+e._s(n.uname)+"\n ")])])])}))],2)])};i._withStripped=!0;const o=coreApis.ui,r=coreApis.ajax,s=Vue.extend({components:{VIcon:o.VIcon,TextBox:o.TextBox,DpiImage:o.DpiImage,VEmpty:o.VEmpty,VLoading:o.VLoading},data:()=>({items:[],loaded:!1,keyword:""}),computed:{filteredItems(){return this.keyword?this.items.filter((e=>{const t=t=>e[t].toString().toLowerCase().includes(this.keyword.toLowerCase());return t("title")||t("uname")||t("roomid")||t("uid")})):this.items}},created(){this.refresh()},methods:{decodeTitle:e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},async refresh(){try{this.items=[],this.loaded=!1;const[,e]=(0,r.responsiveGetPages)({api:e=>(0,r.getJsonWithCredentials)(`https://api.live.bilibili.com/xlive/web-ucenter/v1/xfetter/GetWebList?page=${e}`),getList:e=>lodash.get(e,"data.list",[]).map((e=>{const{face:t,uname:n,title:i,room_id:o,cover_from_user:r,online:s,uid:l,link:a}=e;return{cover:t,face:t,uname:n,title:i,roomid:o,pic:r,online:s,uid:l,link:a}})),getTotal:e=>lodash.get(e,"data.count",0)}),[t,n]=await Promise.all([e,this.fetchRecommendItems()]);this.items=this.sortByRecommend(t,n)}finally{this.loaded=!0}},fetchRecommendItems:async()=>(await(0,r.getJsonWithCredentials)("https://api.bilibili.com/x/polymer/web-dynamic/v1/portal")).data.live_users.items.map((e=>{const{jump_url:t,room_id:n,face:i,title:o,uname:r,mid:s}=e;return{cover:i,face:i,uname:r,title:o,roomid:n,pic:"",online:0,uid:s,link:t}})),sortByRecommend(e,t){const n=t.map((e=>e.roomid)),i=e.filter((e=>!n.includes(e.roomid)));return lodash.concat(t,i)}}});var l=n(332),a=n.n(l),c=n(274),d=n.n(c),p={insert:"head",singleton:!1};a()(d(),p);d().locals;var f=function(e,t,n,i,o,r,s,l){var a,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=a):o&&(a=l?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var d=c.render;c.render=function(e,t){return a.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,a):[a]}return{exports:e,options:c}}(s,i,[],!1,null,null,null);const u=f.exports},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var i=n(735);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},405:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=405,e.exports=t},478:e=>{"use strict";e.exports="替换动态的 `正在直播` 面板, 能够显示超过 10 个的直播间.\n"}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,n=coreApis.spinQuery,i=coreApis.utils,s=coreApis.utils.log,a=(0,e.defineComponentMetadata)({name:"extendFeedsLive",displayName:"直播信息扩充",entry:(0,t.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,399,23))),(async()=>{const e=(0,s.useScopedConsole)("extendFeedsLive"),t=await(0,n.select)(".bili-dyn-home--member aside.left");let r;t||e.error("aside not found");if((a=t.childNodes[t.childNodes.length-1]).nodeType!==Node.COMMENT_NODE&&a instanceof HTMLElement&&"section"===a.tagName.toLowerCase()&&a.classList.contains("sticky"))r=await(0,n.select)((()=>dq(t,"section.sticky")));else{const e=document.createElement("section");e.classList.add("sticky"),t.appendChild(e),r=e}var a;r||e.error("container not found");const l=await Promise.resolve().then(o.bind(o,749)).then((e=>e.default)),c=(0,i.mountVueComponent)(l);r.appendChild(c.$el)})),tags:[componentsTags.feeds,componentsTags.live],urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(405);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,478,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function l(e){for(var t=-1,n=0;n{var i=n(735);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},405:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=405,e.exports=t},478:e=>{"use strict";e.exports="替换动态的 `正在直播` 面板, 能够显示超过 10 个的直播间.\n"}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>l});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,n=coreApis.spinQuery,i=coreApis.utils,s=coreApis.utils.log,l=(0,e.defineComponentMetadata)({name:"extendFeedsLive",displayName:"直播信息扩充",entry:(0,t.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,399,23))),(async()=>{const e=(0,s.useScopedConsole)("extendFeedsLive"),t=await(0,n.select)(".bili-dyn-home--member aside.left");let r;t||e.error("aside not found");if((l=t.childNodes[t.childNodes.length-1]).nodeType!==Node.COMMENT_NODE&&l instanceof HTMLElement&&"section"===l.tagName.toLowerCase()&&l.classList.contains("sticky"))r=await(0,n.select)((()=>dq(t,"section.sticky")));else{const e=document.createElement("section");e.classList.add("sticky"),t.appendChild(e),r=e}var l;r||e.error("container not found");const a=await Promise.resolve().then(o.bind(o,749)).then((e=>e.default)),c=(0,i.mountVueComponent)(a);r.appendChild(c.$el)})),tags:[componentsTags.feeds,componentsTags.live],urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(405);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,478,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/filter.js b/registry/dist/components/feeds/filter.js index 8a3e2eea6..2831b371f 100644 --- a/registry/dist/components/feeds/filter.js +++ b/registry/dist/components/feeds/filter.js @@ -6,7 +6,7 @@ t.i=function(e,n,i){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var s={};if(i)for(var l=0;l{"use strict";n.d(t,{w:()=>s});const i=(e,t)=>!(!e||!t)&&(e.startsWith("/")&&e.endsWith("/")?new RegExp(e.slice(1,e.length-1)).test(t):t.includes(e)),s=(e,t)=>{const n=e.match(/(.+) up:([^ ]+)/);return n?i(n[1],t.text)&&i(n[2],t.username):i(e,t.text)}},507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"feeds-filter",class:{collapse:e.collapse}},[t("div",{staticClass:"feeds-filter-header",on:{click:function(t){e.collapse=!e.collapse}}},[t("h1",[e._v("动态过滤")]),e._v(" "),t("VIcon",{attrs:{icon:"mdi-chevron-up"}})],1),e._v(" "),t("h2",[e._v("类型")]),e._v(" "),t("div",{staticClass:"filter-types"},e._l(e.allTypes,(function([e,n]){return t("FilterTypeSwitch",{key:n.id,attrs:{name:e,type:n}})})),1),e._v(" "),t("h2",[e._v("关键词")]),e._v(" "),t("div",{staticClass:"filter-patterns"},e._l(e.patterns,(function(n){return t("div",{key:n,staticClass:"pattern"},[e._v("\n "+e._s(n)+"\n "),t("VIcon",{attrs:{title:"删除",icon:"mdi-trash-can-outline",size:16},nativeOn:{click:function(t){return e.deletePattern(n)}}})],1)})),0),e._v(" "),t("div",{staticClass:"add-pattern"},[t("TextBox",{attrs:{placeholder:"支持正则表达式 /^xxx$/",type:"text"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addPattern(e.newPattern)}},model:{value:e.newPattern,callback:function(t){e.newPattern=t},expression:"newPattern"}}),e._v(" "),t("VButton",{attrs:{type:"transparent"},nativeOn:{click:function(t){return e.addPattern(e.newPattern)}}},[t("VIcon",{attrs:{title:"添加",icon:"mdi-plus",size:18}})],1)],1),e._v(" "),t("h2",[e._v("板块")]),e._v(" "),t("div",{staticClass:"filter-side-card"},e._l(Object.entries(e.allSideCards),(function([n,i]){return t("div",{key:n,staticClass:"filter-side-card-switch feeds-filter-switch",on:{click:function(t){return e.toggleBlockSide(n)}}},[t("label",{class:{disabled:e.sideDisabled(n)}},[t("span",{staticClass:"name",class:{disabled:e.sideDisabled(n)}},[e._v(e._s(i.displayName))]),e._v(" "),t("VIcon",{staticClass:"disabled",attrs:{size:16,icon:"mdi-cancel"}}),e._v(" "),t("VIcon",{attrs:{size:16,icon:"mdi-check"}})],1)])})),0)])};i._withStripped=!0;var s=n(799),l=n(986),r=n(200);const a=coreApis.observer;var d=n(648),o=n(259);const{options:f}=(0,l.getComponentSettings)("feedsFilter"),c={0:{className:"profile",displayName:"个人资料"},1:{className:"following-tags",displayName:"话题"},2:{className:"notice",displayName:"公告栏"},3:{className:"live",displayName:"正在直播"},5:{className:"most-viewed",displayName:"关注栏"},6:{className:"compose",displayName:"发布动态"}};let p;const b="feeds-filter-side-block-",y=Vue.extend({components:{FilterTypeSwitch:()=>Promise.resolve().then(n.bind(n,593)),VIcon:d.VIcon,TextBox:d.TextBox,VButton:d.VButton},data:()=>({allTypes:[],patterns:[...f.patterns],newPattern:"",allSideCards:c,blockSideCards:[...f.sideCards],collapse:!0}),watch:{patterns(){f.patterns=this.patterns,p&&p.cards.forEach((e=>this.updateCard(lodash.clone(e))))}},async mounted(){this.updateBlockSide();const e=await(0,r.select)(".feed-card .tab-bar, .bili-dyn-list-tabs__list");if(!e)return void console.error("tabBar not found");document.body.classList.add("enable-feeds-filter");if(this.allTypes=Object.entries(s.feedsCardTypes).concat(Object.entries({"self-repost":{id:-1,name:"自转发"}})).filter((e=>{let[,t]=e;return t.id<=2048})).map((e=>{let[t,n]=e;return[t,lodash.clone(n)]})),p=await(0,s.forEachFeedsCard)({added:e=>{this.updateCard(lodash.clone(e))}}),"v1"===p.managerType){const t=e.querySelector(".tab:nth-child(1) .tab-text");(0,a.attributes)(t,(()=>{document.body.classList.toggle("by-type",!t.classList.contains("selected"))}))}if("v2"===p.managerType){const e=await(0,r.select)(".bili-dyn-home--member main"),t=()=>Boolean(dq(".bili-dyn-list-tabs__item:first-child.active")),n=()=>Boolean(dq(".bili-dyn-up-list__item:first-child.active"));(0,a.attributesSubtree)(e,(()=>{document.body.classList.toggle("by-type",n()&&!t())}))}},methods:{updateCard(e){const t={...e};e.type===s.feedsCardTypes.repost&&(t.text+=`\n${e.repostText}`);f.patterns.some((e=>(0,o.w)(e,t)))?e.element.classList.add("pattern-block"):e.element.classList.remove("pattern-block")},deletePattern(e){const t=f.patterns.indexOf(e);-1!==t&&this.patterns.splice(t,1)},addPattern(e){e&&!this.patterns.includes(e)&&this.patterns.push(e),this.newPattern=""},updateBlockSide(){Object.entries(c).forEach((e=>{let[t,n]=e;const i=b+n.className;document.body.classList[this.blockSideCards.includes(t)?"add":"remove"](i)}))},toggleBlockSide(e){const t=this.blockSideCards.indexOf(e),n=c[e];-1!==t?(this.blockSideCards.splice(t,1),document.body.classList.remove(b+n.className)):(this.blockSideCards.push(e),document.body.classList.add(b+n.className)),f.sideCards=this.blockSideCards},sideDisabled(e){return this.blockSideCards.includes(e)}}}),u=y;var m=n(332),h=n.n(m),v=n(147),g=n.n(v),x={insert:"head",singleton:!1};h()(g(),x);g().locals;const _=(0,n(499).Z)(u,i,[],!1,null,null,null).exports},593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"filter-type-switch feeds-filter-switch"},[t("label",{class:{disabled:e.disabled}},[t("span",{staticClass:"name",class:{disabled:e.disabled}},[e._v(e._s(e.type.name))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.disabled,expression:"disabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.disabled)?e._i(e.disabled,null)>-1:e.disabled},on:{change:function(t){var n=e.disabled,i=t.target,s=!!i.checked;if(Array.isArray(n)){var l=e._i(n,null);i.checked?l<0&&(e.disabled=n.concat([null])):l>-1&&(e.disabled=n.slice(0,l).concat(n.slice(l+1)))}else e.disabled=s}}}),e._v(" "),e.disabled?t("VIcon",{staticClass:"disabled",attrs:{size:16,icon:"mdi-cancel"}}):t("VIcon",{attrs:{size:16,icon:"mdi-check"}})],1)])};i._withStripped=!0;var s=n(986),l=n(648);const{options:r}=(0,s.getComponentSettings)("feedsFilter"),a=Vue.extend({components:{VIcon:l.VIcon},props:{name:{type:String,required:!0},type:{type:Object,required:!0}},data(){const e=this.type.id>=0?"types":"specialTypes";return{disabled:r[e].includes(this.type.id),optionKey:e}},watch:{disabled(e){this.setFilter(e)}},created(){this.setFilter(this.disabled,!1)},methods:{setFilter(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(document.body.classList[e?"add":"remove"](`feeds-filter-block-${this.name}`),!t)return;const n=this.optionKey;if(e)r[n].push(this.type.id);else{const e=r[n].indexOf(this.type.id);-1!==e&&r[n].splice(e,1)}}}});var d=n(332),o=n.n(d),f=n(389),c=n.n(f),p={insert:"head",singleton:!1};o()(c(),p);c().locals;const b=(0,n(499).Z)(a,i,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function i(e,t,n,i,s,l,r,a){var d,o="function"==typeof e?e.options:e;if(t&&(o.render=t,o.staticRenderFns=n,o._compiled=!0),i&&(o.functional=!0),l&&(o._scopeId="data-v-"+l),r?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},o._ssrRegister=d):s&&(d=a?function(){s.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:s),d)if(o.functional){o._injectStyles=d;var f=o.render;o.render=function(e,t){return d.call(t),f(e,t)}}else{var c=o.beforeCreate;o.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:o}}n.d(t,{Z:()=>i})},332:(e,t,n)=>{"use strict";var i,s=function(){return void 0===i&&( +var r=this[l][0];null!=r&&(s[r]=!0)}for(var d=0;d{"use strict";n.d(t,{w:()=>s});const i=(e,t)=>!(!e||!t)&&(e.startsWith("/")&&e.endsWith("/")?new RegExp(e.slice(1,e.length-1)).test(t):t.includes(e)),s=(e,t)=>{const n=e.match(/(.+) up:([^ ]+)/);return n?i(n[1],t.text)&&i(n[2],t.username):i(e,t.text)}},507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"feeds-filter",class:{collapse:e.collapse}},[t("div",{staticClass:"feeds-filter-header",on:{click:function(t){e.collapse=!e.collapse}}},[t("h1",[e._v("动态过滤")]),e._v(" "),t("VIcon",{attrs:{icon:"mdi-chevron-up"}})],1),e._v(" "),t("h2",[e._v("类型")]),e._v(" "),t("div",{staticClass:"filter-types"},e._l(e.allTypes,(function([e,n]){return t("FilterTypeSwitch",{key:n.id,attrs:{name:e,type:n}})})),1),e._v(" "),t("h2",[e._v("关键词")]),e._v(" "),t("div",{staticClass:"filter-patterns"},e._l(e.patterns,(function(n){return t("div",{key:n,staticClass:"pattern"},[e._v("\n "+e._s(n)+"\n "),t("VIcon",{attrs:{title:"删除",icon:"mdi-trash-can-outline",size:16},nativeOn:{click:function(t){return e.deletePattern(n)}}})],1)})),0),e._v(" "),t("div",{staticClass:"add-pattern"},[t("TextBox",{attrs:{placeholder:"支持正则表达式 /^xxx$/",type:"text"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addPattern(e.newPattern)}},model:{value:e.newPattern,callback:function(t){e.newPattern=t},expression:"newPattern"}}),e._v(" "),t("VButton",{attrs:{type:"transparent"},nativeOn:{click:function(t){return e.addPattern(e.newPattern)}}},[t("VIcon",{attrs:{title:"添加",icon:"mdi-plus",size:18}})],1)],1),e._v(" "),t("h2",[e._v("板块")]),e._v(" "),t("div",{staticClass:"filter-side-card"},e._l(Object.entries(e.allSideCards),(function([n,i]){return t("div",{key:n,staticClass:"filter-side-card-switch feeds-filter-switch",on:{click:function(t){return e.toggleBlockSide(n)}}},[t("label",{class:{disabled:e.sideDisabled(n)}},[t("span",{staticClass:"name",class:{disabled:e.sideDisabled(n)}},[e._v(e._s(i.displayName))]),e._v(" "),t("VIcon",{staticClass:"disabled",attrs:{size:16,icon:"mdi-cancel"}}),e._v(" "),t("VIcon",{attrs:{size:16,icon:"mdi-check"}})],1)])})),0)])};i._withStripped=!0;var s=n(799),l=n(986),r=n(200);const d=coreApis.observer;var a=n(648),o=n(259);const{options:f}=(0,l.getComponentSettings)("feedsFilter"),c={0:{className:"profile",displayName:"个人资料"},1:{className:"following-tags",displayName:"话题"},2:{className:"notice",displayName:"公告栏"},3:{className:"live",displayName:"正在直播"},5:{className:"most-viewed",displayName:"关注栏"},6:{className:"compose",displayName:"发布动态"}};let p;const b="feeds-filter-side-block-",y=Vue.extend({components:{FilterTypeSwitch:()=>Promise.resolve().then(n.bind(n,593)),VIcon:a.VIcon,TextBox:a.TextBox,VButton:a.VButton},data:()=>({allTypes:[],patterns:[...f.patterns],newPattern:"",allSideCards:c,blockSideCards:[...f.sideCards],collapse:!0}),watch:{patterns(){f.patterns=this.patterns,p&&p.cards.forEach((e=>this.updateCard(lodash.clone(e))))}},async mounted(){this.updateBlockSide();const e=await(0,r.select)(".feed-card .tab-bar, .bili-dyn-list-tabs__list");if(!e)return void console.error("tabBar not found");document.body.classList.add("enable-feeds-filter");if(this.allTypes=Object.entries(s.feedsCardTypes).concat(Object.entries({"self-repost":{id:-1,name:"自转发"}})).filter((e=>{let[,t]=e;return t.id<=2048})).map((e=>{let[t,n]=e;return[t,lodash.clone(n)]})),p=await(0,s.forEachFeedsCard)({added:e=>{this.updateCard(lodash.clone(e))}}),"v1"===p.managerType){const t=e.querySelector(".tab:nth-child(1) .tab-text");(0,d.attributes)(t,(()=>{document.body.classList.toggle("by-type",!t.classList.contains("selected"))}))}if("v2"===p.managerType){const e=await(0,r.select)(".bili-dyn-home--member main"),t=()=>Boolean(dq(".bili-dyn-list-tabs__item:first-child.active")),n=()=>Boolean(dq(".bili-dyn-up-list__item:first-child.active"));(0,d.attributesSubtree)(e,(()=>{document.body.classList.toggle("by-type",n()&&!t())}))}},methods:{updateCard(e){const t={...e};e.type===s.feedsCardTypes.repost&&(t.text+=`\n${e.repostText}`);f.patterns.some((e=>(0,o.w)(e,t)))?e.element.classList.add("pattern-block"):e.element.classList.remove("pattern-block")},deletePattern(e){const t=f.patterns.indexOf(e);-1!==t&&this.patterns.splice(t,1)},addPattern(e){e&&!this.patterns.includes(e)&&this.patterns.push(e),this.newPattern=""},updateBlockSide(){Object.entries(c).forEach((e=>{let[t,n]=e;const i=b+n.className;document.body.classList[this.blockSideCards.includes(t)?"add":"remove"](i)}))},toggleBlockSide(e){const t=this.blockSideCards.indexOf(e),n=c[e];-1!==t?(this.blockSideCards.splice(t,1),document.body.classList.remove(b+n.className)):(this.blockSideCards.push(e),document.body.classList.add(b+n.className)),f.sideCards=this.blockSideCards},sideDisabled(e){return this.blockSideCards.includes(e)}}}),u=y;var m=n(332),h=n.n(m),v=n(147),g=n.n(v),x={insert:"head",singleton:!1};h()(g(),x);g().locals;const _=(0,n(499).Z)(u,i,[],!1,null,null,null).exports},593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"filter-type-switch feeds-filter-switch"},[t("label",{class:{disabled:e.disabled}},[t("span",{staticClass:"name",class:{disabled:e.disabled}},[e._v(e._s(e.type.name))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.disabled,expression:"disabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.disabled)?e._i(e.disabled,null)>-1:e.disabled},on:{change:function(t){var n=e.disabled,i=t.target,s=!!i.checked;if(Array.isArray(n)){var l=e._i(n,null);i.checked?l<0&&(e.disabled=n.concat([null])):l>-1&&(e.disabled=n.slice(0,l).concat(n.slice(l+1)))}else e.disabled=s}}}),e._v(" "),e.disabled?t("VIcon",{staticClass:"disabled",attrs:{size:16,icon:"mdi-cancel"}}):t("VIcon",{attrs:{size:16,icon:"mdi-check"}})],1)])};i._withStripped=!0;var s=n(986),l=n(648);const{options:r}=(0,s.getComponentSettings)("feedsFilter"),d=Vue.extend({components:{VIcon:l.VIcon},props:{name:{type:String,required:!0},type:{type:Object,required:!0}},data(){const e=this.type.id>=0?"types":"specialTypes";return{disabled:r[e].includes(this.type.id),optionKey:e}},watch:{disabled(e){this.setFilter(e)}},created(){this.setFilter(this.disabled,!1)},methods:{setFilter(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(document.body.classList[e?"add":"remove"](`feeds-filter-block-${this.name}`),!t)return;const n=this.optionKey;if(e)r[n].push(this.type.id);else{const e=r[n].indexOf(this.type.id);-1!==e&&r[n].splice(e,1)}}}});var a=n(332),o=n.n(a),f=n(389),c=n.n(f),p={insert:"head",singleton:!1};o()(c(),p);c().locals;const b=(0,n(499).Z)(d,i,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function i(e,t,n,i,s,l,r,d){var a,o="function"==typeof e?e.options:e;if(t&&(o.render=t,o.staticRenderFns=n,o._compiled=!0),i&&(o.functional=!0),l&&(o._scopeId="data-v-"+l),r?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},o._ssrRegister=a):s&&(a=d?function(){s.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(o.functional){o._injectStyles=a;var f=o.render;o.render=function(e,t){return a.call(t),f(e,t)}}else{var c=o.beforeCreate;o.beforeCreate=c?[].concat(c,a):[a]}return{exports:e,options:o}}n.d(t,{Z:()=>i})},332:(e,t,n)=>{"use strict";var i,s=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},l=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=156,e.exports=t},814:e=>{"use strict";e.exports="按照类型或者关键词过滤动态首页的内容, 也可以移除动态页的一些侧边卡片. 详细设置请前往[动态首页](https://t.bilibili.com/)查看.\n"},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},986:e=>{"use strict";e.exports=coreApis.settings},200:e=>{"use strict";e.exports=coreApis.spinQuery},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={id:e,exports:{}};return n[e](l,l.exports,s),l.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var l=Object.create(null);s.r(l);var r={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,s.d(l,r),l},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";s.d(l,{component:()=>o});const e=coreApis.componentApis.define;var t=s(799),n=s(986),i=s(259);const r=[{username:"title",text:"epTitle"},{username:"upName",text:["title","dynamic"]},{username:["username","repostUsername"],text:["text","repostText"]}],a={name:"feeds.contentFilters.patterns",displayName:"动态关键词过滤",setup:e=>{let{addData:t}=e;t("feeds.contentFilters",(e=>{e.push({filter:e=>{const{patterns:t}=(0,n.getComponentSettings)("feedsFilter").options;return e.filter((e=>{const n=r.find((t=>Object.values(t).every((t=>Array.isArray(t)?t.some((t=>t in e)):t in e)))),s=Object.fromEntries(Object.entries(n).map((t=>{let[n,i]=t;return Array.isArray(i)?[n,i.map((t=>e[t]??"")).join("\n").trim()]:[n,e[i].trim()]})));return t.every((e=>!(0,i.w)(e,s)))}))}})}))}},d=(0,e.defineOptionsMetadata)({types:{defaultValue:[],displayName:"过滤动态类型",hidden:!0},patterns:{defaultValue:[],displayName:"过滤关键词",hidden:!0},sideCards:{defaultValue:[],displayName:"过滤侧边栏",hidden:!0},specialTypes:{defaultValue:[],displayName:"过滤特殊动态类型",hidden:!0}}),o=(0,e.defineComponentMetadata)({name:"feedsFilter",displayName:"动态过滤器",entry:async()=>{const{select:e}=await Promise.resolve().then(s.t.bind(s,200,23));let n;if("v2"===t.feedsCardsManager.managerType){const t=await e(".bili-dyn-home--member aside.left"),i=document.createElement("section");i.classList.add("feeds-filter-section"),t.insertAdjacentElement("afterbegin",i),n=i}else n=await e(".home-container .left-panel");if(null===n)return;const i=await Promise.resolve().then(s.bind(s,507)),{mountVueComponent:l}=await Promise.resolve().then(s.t.bind(s,605,23));n.insertAdjacentElement("afterbegin",l(i).$el)},tags:[componentsTags.feeds],options:d,reload:()=>document.body.classList.remove("disable-feeds-filter"),unload:()=>document.body.classList.add("disable-feeds-filter"),urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],plugin:a,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=s(156);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(s.t.bind(s,814,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},l=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function d(e){for(var t=-1,n=0;n{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=156,e.exports=t},814:e=>{"use strict";e.exports="按照类型或者关键词过滤动态首页的内容, 也可以移除动态页的一些侧边卡片. 详细设置请前往[动态首页](https://t.bilibili.com/)查看.\n"},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},986:e=>{"use strict";e.exports=coreApis.settings},200:e=>{"use strict";e.exports=coreApis.spinQuery},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={id:e,exports:{}};return n[e](l,l.exports,s),l.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var l=Object.create(null);s.r(l);var r={};e=e||[null,t({}),t([]),t(t)];for(var d=2&i&&n;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,s.d(l,r),l},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";s.d(l,{component:()=>o});const e=coreApis.componentApis.define;var t=s(799),n=s(986),i=s(259);const r=[{username:"title",text:"epTitle"},{username:"upName",text:["title","dynamic"]},{username:["username","repostUsername"],text:["text","repostText"]}],d={name:"feeds.contentFilters.patterns",displayName:"动态关键词过滤",setup:e=>{let{addData:t}=e;t("feeds.contentFilters",(e=>{e.push({filter:e=>{const{patterns:t}=(0,n.getComponentSettings)("feedsFilter").options;return e.filter((e=>{const n=r.find((t=>Object.values(t).every((t=>Array.isArray(t)?t.some((t=>t in e)):t in e)))),s=Object.fromEntries(Object.entries(n).map((t=>{let[n,i]=t;return Array.isArray(i)?[n,i.map((t=>e[t]??"")).join("\n").trim()]:[n,e[i].trim()]})));return t.every((e=>!(0,i.w)(e,s)))}))}})}))}},a=(0,e.defineOptionsMetadata)({types:{defaultValue:[],displayName:"过滤动态类型",hidden:!0},patterns:{defaultValue:[],displayName:"过滤关键词",hidden:!0},sideCards:{defaultValue:[],displayName:"过滤侧边栏",hidden:!0},specialTypes:{defaultValue:[],displayName:"过滤特殊动态类型",hidden:!0}}),o=(0,e.defineComponentMetadata)({name:"feedsFilter",displayName:"动态过滤器",entry:async()=>{const{select:e}=await Promise.resolve().then(s.t.bind(s,200,23));let n;if("v2"===t.feedsCardsManager.managerType){const t=await e(".bili-dyn-home--member aside.left"),i=document.createElement("section");i.classList.add("feeds-filter-section"),t.insertAdjacentElement("afterbegin",i),n=i}else n=await e(".home-container .left-panel");if(null===n)return;const i=await Promise.resolve().then(s.bind(s,507)),{mountVueComponent:l}=await Promise.resolve().then(s.t.bind(s,605,23));n.insertAdjacentElement("afterbegin",l(i).$el)},tags:[componentsTags.feeds],options:a,reload:()=>document.body.classList.remove("disable-feeds-filter"),unload:()=>document.body.classList.add("disable-feeds-filter"),urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],plugin:d,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=s(156);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(s.t.bind(s,814,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/fixed-sidebars.js b/registry/dist/components/feeds/fixed-sidebars.js index 6bf4f9557..5bb02dae7 100644 --- a/registry/dist/components/feeds/fixed-sidebars.js +++ b/registry/dist/components/feeds/fixed-sidebars.js @@ -6,4 +6,4 @@ e.i=function(n,t,i){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var o={};if(i)for(var r=0;r{var i=t(656);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},567:n=>{"use strict";n.exports=coreApis.componentApis.feeds.disableProfilePopup}},i={};function o(n){var e=i[n];if(void 0!==e)return e.exports;var r=i[n]={id:n,exports:{}};return t[n](r,r.exports,o),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(t,i){if(1&i&&(t=this(t)),8&i)return t;if("object"==typeof t&&t){if(4&i&&t.__esModule)return t;if(16&i&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var a={};n=n||[null,e({}),e([]),e(e)];for(var p=2&i&&t;"object"==typeof p&&!~n.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((n=>a[n]=()=>t[n]));return a.default=()=>t,o.d(r,a),r},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>n});const n=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"fixedFeedsSidebars",instantStyles:[{name:"fixed-sidebars-style",style:()=>Promise.resolve().then(o.t.bind(o,709,23)),important:!0}],displayName:"强制固定动态侧栏",description:{"zh-CN":"强制固定动态主页的顶栏和所有侧栏."},tags:[componentsTags.feeds],entry:async()=>{const{disableProfilePopup:n}=await Promise.resolve().then(o.t.bind(o,567,23));n()},urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var a=this[r][0];null!=a&&(o[a]=!0)}for(var p=0;p{var i=t(656);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},567:n=>{"use strict";n.exports=coreApis.componentApis.feeds.disableProfilePopup}},i={};function o(n){var e=i[n];if(void 0!==e)return e.exports;var r=i[n]={id:n,exports:{}};return t[n](r,r.exports,o),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(t,i){if(1&i&&(t=this(t)),8&i)return t;if("object"==typeof t&&t){if(4&i&&t.__esModule)return t;if(16&i&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var a={};n=n||[null,e({}),e([]),e(e)];for(var p=2&i&&t;"object"==typeof p&&!~n.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((n=>a[n]=()=>t[n]));return a.default=()=>t,o.d(r,a),r},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>n});const n=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"fixedFeedsSidebars",instantStyles:[{name:"fixed-sidebars-style",style:()=>Promise.resolve().then(o.t.bind(o,709,23)),important:!0}],displayName:"强制固定动态侧栏",description:{"zh-CN":"强制固定动态主页的顶栏和所有侧栏."},tags:[componentsTags.feeds],entry:async()=>{const{disableProfilePopup:n}=await Promise.resolve().then(o.t.bind(o,567,23));n()},urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/fold-comments.js b/registry/dist/components/feeds/fold-comments.js index e3ccdb5fe..d3fadd402 100644 --- a/registry/dist/components/feeds/fold-comments.js +++ b/registry/dist/components/feeds/fold-comments.js @@ -6,4 +6,4 @@ n.i=function(e,o,t){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(t)for(var i=0;i{var t=o(918);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},391:e=>{"use strict";e.exports=coreApis.observer}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,t){if(1&t&&(o=this(o)),8&t)return o;if("object"==typeof o&&o){if(4&t&&o.__esModule)return o;if(16&t&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,n({}),n([]),n(n)];for(var a=2&t&&o;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>s});const e=coreApis.componentApis.define,n=coreApis.componentApis.styledComponent,o=coreApis.utils.urls;var t=r(799);const c=coreApis.spinQuery;var a=r(391);const s=(0,e.defineComponentMetadata)({name:"foldComments",displayName:"快速收起评论",description:{"zh-CN":"动态里查看评论区时, 在底部添加一个`收起评论`按钮, 这样就不用再回到上面收起了."},urlInclude:o.feedsUrlsWithoutDetail,tags:[componentsTags.feeds],entry:(0,n.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,279,23))),(async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,799,23)),{childList:n}=await Promise.resolve().then(r.t.bind(r,391,23)),o=".bb-comment, .bili-comment-container";e({added:e=>(e=>{const r=async(n,t)=>{const r=await(0,c.select)((()=>dq(n,o)));if(null!==r.querySelector(".fold-comment"))return;if(null===r)return void console.error("未找到评论区");const i=document.createElement("div");i.classList.add("fold-comment"),i.innerHTML="收起评论",i.addEventListener("click",(()=>{t(),e.scrollIntoView(),window.scrollBy({top:-75})})),r.insertAdjacentElement("beforeend",i)};if("v2"!==t.feedsCardsManager.managerType)if("v1"!==t.feedsCardsManager.managerType)console.warn("unrecognized card type",e);else{const o=e.querySelector(".panel-area");if(null===o)return void console.warn("panelArea not found",e);const t=()=>{e.querySelector(".button-bar").children[1]?.click()};if(0===o.childElementCount){const[e]=n(o,(n=>{n.length>0&&(r(o,t),e.disconnect())}))}else r(o,t)}else{const n=dq(e,o),t=()=>{dq(e,".bili-dyn-action.comment")?.click()};n?r(n,t):(0,a.childListSubtree)(e,(()=>{dq(e,o)&&r(e,t)}))}})(e.element)})})),commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var a=0;a{var t=o(918);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},391:e=>{"use strict";e.exports=coreApis.observer}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,t){if(1&t&&(o=this(o)),8&t)return o;if("object"==typeof o&&o){if(4&t&&o.__esModule)return o;if(16&t&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,n({}),n([]),n(n)];for(var a=2&t&&o;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>s});const e=coreApis.componentApis.define,n=coreApis.componentApis.styledComponent,o=coreApis.utils.urls;var t=r(799);const c=coreApis.spinQuery;var a=r(391);const s=(0,e.defineComponentMetadata)({name:"foldComments",displayName:"快速收起评论",description:{"zh-CN":"动态里查看评论区时, 在底部添加一个`收起评论`按钮, 这样就不用再回到上面收起了."},urlInclude:o.feedsUrlsWithoutDetail,tags:[componentsTags.feeds],entry:(0,n.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,279,23))),(async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,799,23)),{childList:n}=await Promise.resolve().then(r.t.bind(r,391,23)),o=".bb-comment, .bili-comment-container";e({added:e=>(e=>{const r=async(n,t)=>{const r=await(0,c.select)((()=>dq(n,o)));if(null!==r.querySelector(".fold-comment"))return;if(null===r)return void console.error("未找到评论区");const i=document.createElement("div");i.classList.add("fold-comment"),i.innerHTML="收起评论",i.addEventListener("click",(()=>{t(),e.scrollIntoView(),window.scrollBy({top:-75})})),r.insertAdjacentElement("beforeend",i)};if("v2"!==t.feedsCardsManager.managerType)if("v1"!==t.feedsCardsManager.managerType)console.warn("unrecognized card type",e);else{const o=e.querySelector(".panel-area");if(null===o)return void console.warn("panelArea not found",e);const t=()=>{e.querySelector(".button-bar").children[1]?.click()};if(0===o.childElementCount){const[e]=n(o,(n=>{n.length>0&&(r(o,t),e.disconnect())}))}else r(o,t)}else{const n=dq(e,o),t=()=>{dq(e,".bili-dyn-action.comment")?.click()};n?r(n,t):(0,a.childListSubtree)(e,(()=>{dq(e,o)&&r(e,t)}))}})(e.element)})})),commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/full-content.js b/registry/dist/components/feeds/full-content.js index 98c9ddd89..068ff6eaf 100644 --- a/registry/dist/components/feeds/full-content.js +++ b/registry/dist/components/feeds/full-content.js @@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign t=[[null,t,""]]);var r={};if(o)for(var i=0;i{var o=n(267);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},660:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=660,t.exports=e},230:t=>{"use strict";t.exports="不管内容多长, 总是完全展开动态的内容. (专栏不算)\n"}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>a[t]=()=>n[t]));return a.default=()=>n,r.d(i,a),i},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const t=coreApis.componentApis.define,e=coreApis.utils.urls,n=(0,t.defineComponentMetadata)({name:"fullFeedsContent",instantStyles:[{name:"full-feeds-content",style:()=>Promise.resolve().then(r.t.bind(r,957,23))}],displayName:"展开动态内容",tags:[componentsTags.style,componentsTags.feeds],urlInclude:e.feedsUrlsWithoutDetail,entry:none,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=r(660);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,230,17)).then((t=>t.default))}})()})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var a=0;a{var o=n(267);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},660:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=660,t.exports=e},230:t=>{"use strict";t.exports="不管内容多长, 总是完全展开动态的内容. (专栏不算)\n"}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>c[t]=()=>n[t]));return c.default=()=>n,r.d(i,c),i},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const t=coreApis.componentApis.define,e=coreApis.utils.urls,n=(0,t.defineComponentMetadata)({name:"fullFeedsContent",instantStyles:[{name:"full-feeds-content",style:()=>Promise.resolve().then(r.t.bind(r,957,23))}],displayName:"展开动态内容",tags:[componentsTags.style,componentsTags.feeds],urlInclude:e.feedsUrlsWithoutDetail,entry:none,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=r(660);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,230,17)).then((t=>t.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/full-title.js b/registry/dist/components/feeds/full-title.js index 4927d2911..472340fb8 100644 --- a/registry/dist/components/feeds/full-title.js +++ b/registry/dist/components/feeds/full-title.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(810);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=(0,e.defineComponentMetadata)({...(0,t.toggleStyle)("fullFeedsTitle",(()=>Promise.resolve().then(r.t.bind(r,733,23)))),displayName:"展开动态标题",description:{"zh-CN":"在顶栏的视频动态中, 无论标题多长总是完全展开."},tags:[componentsTags.feeds,componentsTags.style],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var a=0;a{var n=o(810);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=(0,e.defineComponentMetadata)({...(0,t.toggleStyle)("fullFeedsTitle",(()=>Promise.resolve().then(r.t.bind(r,733,23)))),displayName:"展开动态标题",description:{"zh-CN":"在顶栏的视频动态中, 无论标题多长总是完全展开."},tags:[componentsTags.feeds,componentsTags.style],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/hide-comment-preview.js b/registry/dist/components/feeds/hide-comment-preview.js index 2c0da069b..ae3ac7705 100644 --- a/registry/dist/components/feeds/hide-comment-preview.js +++ b/registry/dist/components/feeds/hide-comment-preview.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(935);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},831:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=831,e.exports=t},631:e=>{"use strict";e.exports="隐藏动态评论按钮上方的精选评论预览. (详细可看 [#3322](https://github.com/the1812/Bilibili-Evolved/discussions/3322))\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideFeedsCommentPreview",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,tags:[componentsTags.feeds,componentsTags.style],displayName:"隐藏动态评论预览",entry:none,instantStyles:[{style:()=>Promise.resolve().then(r.t.bind(r,81,23)),name:e}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(831);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,631,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c{var n=o(935);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},831:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=831,e.exports=t},631:e=>{"use strict";e.exports="隐藏动态评论按钮上方的精选评论预览. (详细可看 [#3322](https://github.com/the1812/Bilibili-Evolved/discussions/3322))\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideFeedsCommentPreview",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,tags:[componentsTags.feeds,componentsTags.style],displayName:"隐藏动态评论预览",entry:none,instantStyles:[{style:()=>Promise.resolve().then(r.t.bind(r,81,23)),name:e}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(831);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,631,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/image-auto-back-to-top.js b/registry/dist/components/feeds/image-auto-back-to-top.js index 5b3b7c6d6..7f33caaf6 100644 --- a/registry/dist/components/feeds/image-auto-back-to-top.js +++ b/registry/dist/components/feeds/image-auto-back-to-top.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/image-auto-back-to-top"]=t():e["feeds/image-auto-back-to-top"]=t()}(globalThis,(()=>(()=>{var e,t,o={583:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=583,e.exports=t},953:e=>{"use strict";e.exports="在动态里查看图片详情时 (非全屏), 切换图片自动回到图片顶部; 退出查看图片模式时, 自动将动态移入视图内.\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>s});const e=coreApis.componentApis.define,t=coreApis.componentApis.feeds.api,o=coreApis.observer,r=coreApis.utils.log,a=coreApis.utils.urls,s=(0,e.defineComponentMetadata)({name:"imageAutoBackToTop",displayName:"动态看图自动回顶",tags:[componentsTags.feeds],urlInclude:a.feedsUrlsWithoutDetail,entry:()=>{const e=(0,r.useScopedConsole)("imageAutoBackToTop");(0,t.forEachFeedsCard)({added:t=>{const r=e=>{e?.scrollIntoView(),window.scrollBy({top:-75})},n=dqa(t.element,".bili-album");(0,o.mutationObserve)(n,{childList:!0,attributes:!0,subtree:!0},(o=>{o.forEach((o=>{const n=()=>o.target instanceof HTMLElement&&o.target.classList.contains("bili-album__watch")&&"style"===o.attributeName?"none"!==o.target.style.display:null,i=e=>[...e].some((e=>e instanceof HTMLElement&&e.classList.contains("bili-album__watch")));(i(o.removedNodes)||!1===n())&&(r(t.element),e.log("imagePreviewExited"));if(i(o.addedNodes)||!0===n()){const o=dq(t.element,".bili-album__watch__control");r(o),e.log("imagePreviewEntered")}}))})),(0,o.attributesSubtree)(t.element,(o=>{o.forEach((o=>{if(!(o.target instanceof HTMLImageElement&&o.target.matches(".bili-album__watch__content img")&&"src"===o.attributeName))return;const n=dq(t.element,".bili-album__watch__control");r(n),e.log("imagePreviewSwitched")}))}))}})},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(583);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,953,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/image-auto-back-to-top"]=t():e["feeds/image-auto-back-to-top"]=t()}(globalThis,(()=>(()=>{var e,t,o={583:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=583,e.exports=t},953:e=>{"use strict";e.exports="在动态里查看图片详情时 (非全屏), 切换图片自动回到图片顶部; 退出查看图片模式时, 自动将动态移入视图内.\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>s});const e=coreApis.componentApis.define,t=coreApis.componentApis.feeds.api,o=coreApis.observer,r=coreApis.utils.log,a=coreApis.utils.urls,s=(0,e.defineComponentMetadata)({name:"imageAutoBackToTop",displayName:"动态看图自动回顶",tags:[componentsTags.feeds],urlInclude:a.feedsUrlsWithoutDetail,entry:()=>{const e=(0,r.useScopedConsole)("imageAutoBackToTop");(0,t.forEachFeedsCard)({added:t=>{const r=e=>{e?.scrollIntoView(),window.scrollBy({top:-75})},n=dqa(t.element,".bili-album");(0,o.mutationObserve)(n,{childList:!0,attributes:!0,subtree:!0},(o=>{o.forEach((o=>{const n=()=>o.target instanceof HTMLElement&&o.target.classList.contains("bili-album__watch")&&"style"===o.attributeName?"none"!==o.target.style.display:null,i=e=>[...e].some((e=>e instanceof HTMLElement&&e.classList.contains("bili-album__watch")));(i(o.removedNodes)||!1===n())&&(r(t.element),e.log("imagePreviewExited"));if(i(o.addedNodes)||!0===n()){const o=dq(t.element,".bili-album__watch__control");r(o),e.log("imagePreviewEntered")}}))})),(0,o.attributesSubtree)(t.element,(o=>{o.forEach((o=>{if(!(o.target instanceof HTMLImageElement&&o.target.matches(".bili-album__watch__content img")&&"src"===o.attributeName))return;const n=dq(t.element,".bili-album__watch__control");r(n),e.log("imagePreviewSwitched")}))}))}})},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(583);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,953,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/feeds/unfold.js b/registry/dist/components/feeds/unfold.js index 66760994d..9df56efb0 100644 --- a/registry/dist/components/feeds/unfold.js +++ b/registry/dist/components/feeds/unfold.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/unfold"]=t():e["feeds/unfold"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={799:e=>{e.exports=coreApis.componentApis.feeds.api}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var f={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&o;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>f[e]=()=>o[e]));return f.default=()=>o,r.d(i,f),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.spinQuery,o=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"unfoldFeeds",displayName:"动态反折叠",tags:[componentsTags.feeds],description:{"zh-CN":"\n自动展开被折叠的动态.\n\n动态被折叠可能是因为:\n- 短时间内大量更新作品\n- 多人转发同一个作品\n- 被审核折叠\n"},urlInclude:o.feedsUrlsWithoutDetail,entry:async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,799,23));e({added:async e=>{(await(0,t.select)((()=>dq(e.element,".fold-hoverable, .bili-dyn-item-fold"))))?.click()}})},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/unfold"]=t():e["feeds/unfold"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={799:e=>{e.exports=coreApis.componentApis.feeds.api}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.spinQuery,o=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"unfoldFeeds",displayName:"动态反折叠",tags:[componentsTags.feeds],description:{"zh-CN":"\n自动展开被折叠的动态.\n\n动态被折叠可能是因为:\n- 短时间内大量更新作品\n- 多人转发同一个作品\n- 被审核折叠\n"},urlInclude:o.feedsUrlsWithoutDetail,entry:async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,799,23));e({added:async e=>{(await(0,t.select)((()=>dq(e.element,".fold-hoverable, .bili-dyn-item-fold"))))?.click()}})},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/badge-helper.js b/registry/dist/components/live/badge-helper.js index 1be25c770..476e2eb12 100644 --- a/registry/dist/components/live/badge-helper.js +++ b/registry/dist/components/live/badge-helper.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var o={};if(l)for(var a=0;a{"use strict";t.d(n,{j9:()=>p,Dx:()=>s,KK:()=>c,eB:()=>u});const l=coreApis.ajax;var o=t(605);const a=coreApis.utils.log;function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,n||"default");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const r=(e,n)=>{if(0!==e.code){const t=`${n} 错误码:${e.code} ${e.message||""}`;return(0,a.logError)(t),!1}return!0};class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.isActive=e,this.id=n}}class p extends d{constructor(e){const{medal:{medal_id:n,level:t,medal_name:l,wearing_status:o,is_lighted:a},anchor_info:{nick_name:r},room_info:{room_id:d}}=e;super(1===o,n),i(this,"level",void 0),i(this,"name",void 0),i(this,"upName",void 0),i(this,"roomID",void 0),i(this,"isLighted",void 0),this.level=t,this.name=l,this.upName=r,this.roomID=d,this.isLighted=a}async activate(){const e=await(0,l.postTextWithCredentials)("https://api.live.bilibili.com/xlive/web-room/v1/fansMedal/wear",new URLSearchParams({medal_id:this.id.toString(),csrf_token:(0,o.getCsrf)(),csrf:(0,o.getCsrf)()})),n=r(JSON.parse(e),"佩戴勋章失败.");return this.isActive=!0,n}async deactivate(){const e=await(0,l.postTextWithCredentials)("https://api.live.bilibili.com/xlive/web-room/v1/fansMedal/take_off",new URLSearchParams({csrf_token:(0,o.getCsrf)(),csrf:(0,o.getCsrf)()})),n=r(JSON.parse(e),"卸下勋章失败.");return this.isActive=!1,n}}const c=async()=>(await(0,l.getPages)({api:e=>(0,l.getJsonWithCredentials)(`https://api.live.bilibili.com/xlive/app-ucenter/v1/fansMedal/panel?page=${e}&page_size=50`),getList:e=>(r(e,"无法获取勋章列表."),[...lodash.get(e,"data.list",[]),...lodash.get(e,"data.special_list",[])]),getTotal:e=>lodash.get(e,"data.total_number",0)})).map((e=>new p(e)));class s extends d{constructor(e){const{identification:n,wear:t,tid:l,cid:o,name:a,source:r}=e;super(t,n),i(this,"tid",void 0),i(this,"cid",void 0),i(this,"name",void 0),i(this,"source",void 0),i(this,"imageUrl",void 0),this.tid=l,this.cid=o,this.name=a,this.source=r,s.getImageMap().then((e=>{this.imageUrl=e[this.id]}))}static async getImageMap(){if(void 0===s.imageMap){const e=JSON.parse(await(0,l.getTextWithCredentials)("https://api.live.bilibili.com/rc/v1/Title/webTitles"));return r(e,"获取头衔图片失败.")?(s.imageMap={},e.data.forEach((e=>{s.imageMap[e.identification]=e.web_pic_url})),s.imageMap):{}}return s.imageMap}async activate(){const e=JSON.parse(await(0,l.postTextWithCredentials)("https://api.live.bilibili.com/i/ajaxWearTitle",`id=${this.tid}&cid=${this.cid}&csrf=${(0,o.getCsrf)()}&csrf_token=${(0,o.getCsrf)()}`));return!!r(e,"佩戴头衔失败.")&&(this.isActive=!0,!0)}async deactivate(){const e=JSON.parse(await(0,l.postTextWithCredentials)("https://api.live.bilibili.com/i/ajaxCancelWearTitle",`csrf=${(0,o.getCsrf)()}&csrf_token=${(0,o.getCsrf)()}`));return!!r(e,"卸下头衔失败.")&&(this.isActive=!1,!0)}}i(s,"imageMap",void 0);const u=async()=>{const e=JSON.parse(await(0,l.getTextWithCredentials)("https://api.live.bilibili.com/xlive/web-ucenter/v1/user_title/TitleList?normal=0&special=0&had=1&page=1&page_size=256"));return r(e,"无法获取头衔列表.")?lodash.get(e,"data.list",[]).map((e=>new s(e))):[]}},610:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c,t=e._self._setupProxy;return n("div",{ref:"element",staticClass:"multiple-widgets"},[n(t.VPopup,{ref:"medalPopup",staticClass:"badge-popup widgets-popup medal",attrs:{"trigger-element":e.$refs.medalButton},model:{value:t.medalOpen,callback:function(e){t.medalOpen=e},expression:"medalOpen"}},[n("ul",e._l(t.medalList,(function(l){return n("li",{key:l.id,class:{active:l.isActive,gray:t.grayEffect&&!l.isLighted},attrs:{"data-id":l.id,title:l.upName},on:{click:function(e){return t.toggleBadge(l,t.medalList)}}},[n("div",{staticClass:"fans-medal-item",class:["level-"+l.level]},[n("span",{staticClass:"label"},[e._v(e._s(l.name))]),e._v(" "),n("span",{staticClass:"level"},[e._v(e._s(l.level))])])])})),0)]),e._v(" "),n(t.DefaultWidget,{ref:"medalButton",attrs:{icon:"mdi-medal"},on:{click:function(e){t.medalOpen=!t.medalOpen}}},[n("span",[e._v("更换勋章")])]),e._v(" "),n(t.VPopup,{ref:"titlePopup",staticClass:"badge-popup widgets-popup title",attrs:{"trigger-element":e.$refs.titleButton},model:{value:t.titleOpen,callback:function(e){t.titleOpen=e},expression:"titleOpen"}},[n("ul",e._l(t.titleList,(function(e){return n("li",{key:e.id,class:{active:e.isActive},attrs:{"data-id":e.id},on:{click:function(n){return t.toggleBadge(e,t.titleList)}}},[n("img",{staticClass:"title-image",attrs:{src:e.imageUrl}})])})),0)]),e._v(" "),n(t.DefaultWidget,{ref:"titleButton",attrs:{icon:"mdi-script-outline"},on:{click:function(e){t.titleOpen=!t.titleOpen}}},[n("span",[e._v("更换头衔")])])],1)};l._withStripped=!0;const o=globalThis.Vue;var a=t(986);const i=coreApis.utils.sort,r=coreApis.ui;var d=t(867);const p=(0,o.defineComponent)({__name:"BadgeHelper",setup(e){const{options:n}=(0,a.getComponentSettings)("badgeHelper"),t=(0,o.ref)(),l=(0,o.ref)([]),p=(0,o.ref)([]),c=(0,o.ref)(!1),s=(0,o.ref)(!1),u=(0,o.ref)(!0),b=()=>{const e=Math.min(Math.ceil(l.value.length/18),15);t.value.style.setProperty("--medal-columns",e.toString());const n=Math.min(Math.ceil(p.value.length/18),15);t.value.style.setProperty("--title-columns",n.toString())},f=async()=>{l.value=(await(0,d.KK)()).sort((0,i.descendingSort)((e=>e.level))).slice(0,n.maxBadgeCount)},g=async()=>{p.value=(await(0,d.eB)()).slice(0,n.maxBadgeCount)};return(0,o.onMounted)((async()=>{(0,a.addComponentListener)("badgeHelper.grayEffect",(e=>{u.value=e}),!0);await(async()=>{const e=f();await d.Dx.getImageMap();const n=g();return Promise.all([e,n])})(),b()})),{__sfc:!0,options:n,element:t,medalList:l,titleList:p,medalOpen:c,titleOpen:s,grayEffect:u,updateColumnsCount:b,loadMedalList:f,loadTitleList:g,toggleBadge:async(e,t)=>{if(console.log(e),e.isActive)e.isActive=!1,await e.deactivate();else{const l=t.find((e=>e.isActive));l&&(l.isActive=!1),e.isActive=!0,await e.activate(),e instanceof d.j9&&(n.defaultMedalID=e.id)}e instanceof d.j9?await f():e instanceof d.Dx&&await g()},DefaultWidget:r.DefaultWidget,VPopup:r.VPopup}}}),c=p;var s=t(332),u=t.n(s),b=t(936),f=t.n(b),g={insert:"head",singleton:!1};u()(f(),g);f().locals;var v=function(e,n,t,l,o,a,i,r){var d,p="function"==typeof e?e.options:e;if(n&&(p.render=n,p.staticRenderFns=t,p._compiled=!0),l&&(p.functional=!0),a&&(p._scopeId="data-v-"+a),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=d):o&&(d=r?function(){o.call(this,(p.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(p.functional){p._injectStyles=d;var c=p.render;p.render=function(e,n){return d.call(n),c(e,n)}}else{var s=p.beforeCreate;p.beforeCreate=s?[].concat(s,d):[d]}return{exports:e,options:p}}(c,l,[],!1,null,null,null);const m=v.exports},332:(e,n,t)=>{"use strict";var l,o=function(){return void 0===l&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -l=Boolean(window&&document&&document.all&&!window.atob)),l},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function r(e){for(var n=-1,t=0;t{function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=()=>[],n.resolve=n,n.id=984,e.exports=n},235:e=>{"use strict";e.exports="在直播区中, 可从功能面板中直接切换勋章和头衔. 默认显示 256 个 (同时也是上限), 可在选项中修改.\n"},986:e=>{"use strict";e.exports=coreApis.settings},605:e=>{"use strict";e.exports=coreApis.utils}},l={};function o(e){var n=l[e];if(void 0!==n)return n.exports;var a=l[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,l){if(1&l&&(t=this(t)),8&l)return t;if("object"==typeof t&&t){if(4&l&&t.__esModule)return t;if(16&l&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var r=2&l&&t;"object"==typeof r&&!~e.indexOf(r);r=n(r))Object.getOwnPropertyNames(r).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>i});const e=coreApis.componentApis.define;var n=o(605),t=o(867);const l=(0,e.defineOptionsMetadata)({autoMatchMedal:{defaultValue:!0,displayName:"自动佩戴当前直播间勋章"},maxBadgeCount:{defaultValue:256,displayName:"最大显示数量",validator:(0,n.getNumberValidator)(1,256)},defaultMedalID:{displayName:"默认勋章ID",hidden:!0,defaultValue:0},grayEffect:{displayName:"显示勋章的未点亮状态",defaultValue:!0}}),i=(0,e.defineComponentMetadata)({name:"badgeHelper",displayName:"直播勋章快速更换",entry:()=>(async()=>{const{getUID:e}=await Promise.resolve().then(o.t.bind(o,605,23));if(!e())return;const{getComponentSettings:n}=await Promise.resolve().then(o.t.bind(o,986,23)),{options:l}=n("badgeHelper");if(!l.autoMatchMedal)return;const a=document.URL.match(/^https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/);if(!a)return;const i=parseInt(a[2]);if(Number.isNaN(i))return void console.warn("roomID not found");const r=await(0,t.KK)();if(!l.defaultMedalID){const e=r.find((e=>e.isActive));e&&(l.defaultMedalID=e.id,console.log(`set defaultMedalID to activeMedal (${e.id})`))}const d=l.defaultMedalID?r.find((e=>e.id===l.defaultMedalID)):r.find((e=>e.isActive)),p=r.find((e=>e.roomID===i));p?(await p.activate(),console.log(`activated matchMedal (${p.id})`)):d&&(await d.activate(),console.log(`no matchMedal, fallback to defaultMedal (${d.id})`))})(),reload:n.none,unload:n.none,tags:[componentsTags.live],widget:{component:()=>Promise.resolve().then(o.bind(o,610)).then((e=>e.default)),condition:()=>Boolean((0,n.getUID)())},options:l,urlInclude:["//live.bilibili.com"],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(984);return{...Object.fromEntries(e.keys().map((n=>[n.match(/index\.(.+)\.md$/)[1],e(n)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,235,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file +l=Boolean(window&&document&&document.all&&!window.atob)),l},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function r(e){for(var n=-1,t=0;t{function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=()=>[],n.resolve=n,n.id=984,e.exports=n},235:e=>{"use strict";e.exports="在直播区中, 可从功能面板中直接切换勋章和头衔. 默认显示 256 个 (同时也是上限), 可在选项中修改.\n"},986:e=>{"use strict";e.exports=coreApis.settings},605:e=>{"use strict";e.exports=coreApis.utils}},l={};function o(e){var n=l[e];if(void 0!==n)return n.exports;var a=l[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,l){if(1&l&&(t=this(t)),8&l)return t;if("object"==typeof t&&t){if(4&l&&t.__esModule)return t;if(16&l&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var r=2&l&&t;"object"==typeof r&&!~e.indexOf(r);r=n(r))Object.getOwnPropertyNames(r).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>i});const e=coreApis.componentApis.define;var n=o(605),t=o(867);const l=(0,e.defineOptionsMetadata)({autoMatchMedal:{defaultValue:!0,displayName:"自动佩戴当前直播间勋章"},maxBadgeCount:{defaultValue:256,displayName:"最大显示数量",validator:(0,n.getNumberValidator)(1,256)},defaultMedalID:{displayName:"默认勋章ID",hidden:!0,defaultValue:0},grayEffect:{displayName:"显示勋章的未点亮状态",defaultValue:!0}}),i=(0,e.defineComponentMetadata)({name:"badgeHelper",displayName:"直播勋章快速更换",entry:()=>(async()=>{const{getUID:e}=await Promise.resolve().then(o.t.bind(o,605,23));if(!e())return;const{getComponentSettings:n}=await Promise.resolve().then(o.t.bind(o,986,23)),{options:l}=n("badgeHelper");if(!l.autoMatchMedal)return;const a=document.URL.match(/^https:\/\/live\.bilibili\.com\/(blanc\/)?([\d]+)/);if(!a)return;const i=parseInt(a[2]);if(Number.isNaN(i))return void console.warn("roomID not found");const r=await(0,t.KK)();if(!l.defaultMedalID){const e=r.find((e=>e.isActive));e&&(l.defaultMedalID=e.id,console.log(`set defaultMedalID to activeMedal (${e.id})`))}const d=l.defaultMedalID?r.find((e=>e.id===l.defaultMedalID)):r.find((e=>e.isActive)),p=r.find((e=>e.roomID===i));p?(await p.activate(),console.log(`activated matchMedal (${p.id})`)):d&&(await d.activate(),console.log(`no matchMedal, fallback to defaultMedal (${d.id})`))})(),reload:n.none,unload:n.none,tags:[componentsTags.live],widget:{component:()=>Promise.resolve().then(o.bind(o,610)).then((e=>e.default)),condition:()=>Boolean((0,n.getUID)())},options:l,urlInclude:["//live.bilibili.com"],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(984);return{...Object.fromEntries(e.keys().map((n=>[n.match(/index\.(.+)\.md$/)[1],e(n)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,235,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/chat-panel-fit.js b/registry/dist/components/live/chat-panel-fit.js index 57918e6e6..538789b29 100644 --- a/registry/dist/components/live/chat-panel-fit.js +++ b/registry/dist/components/live/chat-panel-fit.js @@ -6,7 +6,7 @@ t.i=function(e,n,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(r)for(var i=0;i{"use strict";n.d(t,{W:()=>a,a:()=>i});var r=n(952),o=n(605);const i=190,a=(0,r.defineOptionsMetadata)({customWidth:{hidden:!0,defaultValue:0},maxWidth:{defaultValue:1e3,displayName:"侧边栏最大宽度 (px)",validator:(0,o.getNumberValidator)(i)}})},507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{ref:"draggerElement",staticClass:"chat-panel-fit-dragger",class:{dragging:n.isDragging},style:{transform:`translateX(${-n.movement}px)`},on:{pointerdown:n.startDragging,pointermove:n.handlePointerMove,dblclick:n.resetCustomWidth}},[t("div",{staticClass:"chat-panel-fit-dragger-bar"}),e._v(" "),t("div",{staticClass:"chat-panel-fit-dragger-preview-area",style:{width:`${n.previewWidth}px`}},[t("div",{staticClass:"chat-panel-fit-dragger-preview-area-background"},[e._v("\n "+e._s(n.previewWidth.toFixed(1))+"px\n ")])])])};r._withStripped=!0;const o=globalThis.Vue;var i=n(986),a=n(272);const s=(0,o.defineComponent)({__name:"ChatPanelFitDragger",setup(e){const t=(0,o.reactive)((0,i.getComponentSettings)("liveChatPanelFit").options);(0,o.onBeforeMount)((()=>{0!==t.customWidth&&document.documentElement.style.setProperty("--live-chat-panel-width",`${t.customWidth}px`)}));const n=()=>parseFloat(document.documentElement.style.getPropertyValue("--live-chat-panel-width")),r=(0,o.ref)(),s=(0,o.ref)(0),l=(0,o.ref)(0),d=(0,o.computed)((()=>t.customWidth?t.customWidth+l.value:n())),c=(0,o.ref)(!1);return{__sfc:!0,options:t,getAutoWidth:n,draggerElement:r,startPoint:s,movement:l,previewWidth:d,isDragging:c,resetCustomWidth:()=>{t.customWidth=0,window.dispatchEvent(new CustomEvent("customWidthReset"))},handlePointerMove:e=>{if(!c.value)return;const n=s.value-e.screenX;l.value=lodash.clamp(t.customWidth+n,a.a,t.maxWidth)-t.customWidth},startDragging:e=>{c.value=!0,s.value=e.screenX,0===t.customWidth&&(t.customWidth=n()),r.value.setPointerCapture(e.pointerId),document.documentElement.style.cursor="ew-resize",document.documentElement.classList.add("custom-width-dragging"),document.documentElement.addEventListener("pointerup",(()=>{if(document.documentElement.style.cursor="",document.documentElement.classList.remove("custom-width-dragging"),c.value=!1,s.value=0,!l.value)return;const e=d.value;t.customWidth=e,l.value=0,document.documentElement.style.setProperty("--live-chat-panel-width",`${e}px`)}),{once:!0})}}}}),l=s;var d=n(332),c=n.n(d),u=n(640),p=n.n(u),f={insert:"head",singleton:!1};c()(p(),f);p().locals;var h=function(e,t,n,r,o,i,a,s){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):o&&(l=s?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}(l,r,[],!1,null,null,null);const m=h.exports},332:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&( +var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s{"use strict";n.d(t,{W:()=>a,a:()=>i});var r=n(952),o=n(605);const i=190,a=(0,r.defineOptionsMetadata)({customWidth:{hidden:!0,defaultValue:0},maxWidth:{defaultValue:1e3,displayName:"侧边栏最大宽度 (px)",validator:(0,o.getNumberValidator)(i)}})},507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{ref:"draggerElement",staticClass:"chat-panel-fit-dragger",class:{dragging:n.isDragging},style:{transform:`translateX(${-n.movement}px)`},on:{pointerdown:n.startDragging,pointermove:n.handlePointerMove,dblclick:n.resetCustomWidth}},[t("div",{staticClass:"chat-panel-fit-dragger-bar"}),e._v(" "),t("div",{staticClass:"chat-panel-fit-dragger-preview-area",style:{width:`${n.previewWidth}px`}},[t("div",{staticClass:"chat-panel-fit-dragger-preview-area-background"},[e._v("\n "+e._s(n.previewWidth.toFixed(1))+"px\n ")])])])};r._withStripped=!0;const o=globalThis.Vue;var i=n(986),a=n(272);const s=(0,o.defineComponent)({__name:"ChatPanelFitDragger",setup(e){const t=(0,o.reactive)((0,i.getComponentSettings)("liveChatPanelFit").options);(0,o.onBeforeMount)((()=>{0!==t.customWidth&&document.documentElement.style.setProperty("--live-chat-panel-width",`${t.customWidth}px`)}));const n=()=>parseFloat(document.documentElement.style.getPropertyValue("--live-chat-panel-width")),r=(0,o.ref)(),s=(0,o.ref)(0),l=(0,o.ref)(0),c=(0,o.computed)((()=>t.customWidth?t.customWidth+l.value:n())),d=(0,o.ref)(!1);return{__sfc:!0,options:t,getAutoWidth:n,draggerElement:r,startPoint:s,movement:l,previewWidth:c,isDragging:d,resetCustomWidth:()=>{t.customWidth=0,window.dispatchEvent(new CustomEvent("customWidthReset"))},handlePointerMove:e=>{if(!d.value)return;const n=s.value-e.screenX;l.value=lodash.clamp(t.customWidth+n,a.a,t.maxWidth)-t.customWidth},startDragging:e=>{d.value=!0,s.value=e.screenX,0===t.customWidth&&(t.customWidth=n()),r.value.setPointerCapture(e.pointerId),document.documentElement.style.cursor="ew-resize",document.documentElement.classList.add("custom-width-dragging"),document.documentElement.addEventListener("pointerup",(()=>{if(document.documentElement.style.cursor="",document.documentElement.classList.remove("custom-width-dragging"),d.value=!1,s.value=0,!l.value)return;const e=c.value;t.customWidth=e,l.value=0,document.documentElement.style.setProperty("--live-chat-panel-width",`${e}px`)}),{once:!0})}}}}),l=s;var c=n(332),d=n.n(c),u=n(640),p=n.n(u),f={insert:"head",singleton:!1};d()(p(),f);p().locals;var h=function(e,t,n,r,o,i,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}(l,r,[],!1,null,null,null);const m=h.exports},332:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var r=n(50);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},427:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=427,e.exports=t},513:e=>{"use strict";e.exports="在直播网页全屏时, 自动调整侧边栏的宽度, 使得视频区域的比例和视频源相匹配, 达到无黑边的效果.\n如果在侧边栏的边缘拖动, 可以自定义侧边栏的固定宽度, 双击边缘可以还原到自动宽度.\n\n- `侧边栏最大宽度 (px)`: 限制侧边栏可被拉伸到的最大宽度. (最小宽度固定为 190px, 再小的话布局就要出问题了)\n\n> 注意, 由于有最大宽度和最小宽度的限制, 部分窗口尺寸下仍然无法做到无黑边.\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.define},986:e=>{"use strict";e.exports=coreApis.settings},605:e=>{"use strict";e.exports=coreApis.utils}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>m});var e=o(952),t=o(986);const n=coreApis.spinQuery;var r=o(605);const a=coreApis.utils.log,s=coreApis.utils.urls;var l=o(272);const d="liveChatPanelFit",c=(0,a.useScopedConsole)(d),u=()=>{const{maxWidth:e,customWidth:n}=(0,t.getComponentSettings)(d).options;if(0!==n)return;const r=dq(".live-player-ctnr video");if(!r)return;const o=r.videoWidth,i=r.videoHeight;if(0===o||0===i)return;const{innerWidth:a,innerHeight:s}=window,u=a-o*s/i;c.log({liveChatPanelWidth:u}),document.documentElement.style.setProperty("--live-chat-panel-width",`${lodash.clamp(u,l.a,e)}px`)},p=lodash.debounce(u,200);let f;const h=async()=>{(0,t.addComponentListener)("liveChatPanelFit.targetRatio",u),(0,t.addComponentListener)("liveChatPanelFit.maxWidth",u),window.addEventListener("customWidthReset",u),window.addEventListener("resize",p);if(!await(0,n.sq)((()=>dq(".live-player-ctnr video")),(e=>null!==e&&e.readyState!==HTMLMediaElement.HAVE_NOTHING)))return void c.log("未找到 video 元素");u();const e=await(0,n.select)(".aside-area-toggle-btn");if(!e)return void c.log("未找到侧边栏按钮");const{default:i}=await Promise.resolve().then(o.bind(o,507));f=(0,r.mountVueComponent)(i),e.insertAdjacentElement("afterend",f.$el)},m=(0,e.defineComponentMetadata)({name:d,displayName:"直播间网页全屏自适应",tags:[componentsTags.live,componentsTags.style],urlInclude:[...s.liveUrls],entry:h,reload:h,unload:()=>{(0,t.removeComponentListener)("liveChatPanelFit.targetRatio",u),(0,t.removeComponentListener)("liveChatPanelFit.maxWidth",u),window.removeEventListener("customWidthReset",u),window.removeEventListener("resize",p),document.documentElement.style.removeProperty("--live-chat-panel-width"),f&&(f.$el.remove(),f.$destroy(),f=void 0)},instantStyles:[{name:d,style:()=>Promise.resolve().then(o.t.bind(o,498,23)),important:!0}],options:l.W,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(427);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,513,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var r=n(50);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},427:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=427,e.exports=t},513:e=>{"use strict";e.exports="在直播网页全屏时, 自动调整侧边栏的宽度, 使得视频区域的比例和视频源相匹配, 达到无黑边的效果.\n如果在侧边栏的边缘拖动, 可以自定义侧边栏的固定宽度, 双击边缘可以还原到自动宽度.\n\n- `侧边栏最大宽度 (px)`: 限制侧边栏可被拉伸到的最大宽度. (最小宽度固定为 190px, 再小的话布局就要出问题了)\n\n> 注意, 由于有最大宽度和最小宽度的限制, 部分窗口尺寸下仍然无法做到无黑边.\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.define},986:e=>{"use strict";e.exports=coreApis.settings},605:e=>{"use strict";e.exports=coreApis.utils}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>m});var e=o(952),t=o(986);const n=coreApis.spinQuery;var r=o(605);const a=coreApis.utils.log,s=coreApis.utils.urls;var l=o(272);const c="liveChatPanelFit",d=(0,a.useScopedConsole)(c),u=()=>{const{maxWidth:e,customWidth:n}=(0,t.getComponentSettings)(c).options;if(0!==n)return;const r=dq(".live-player-ctnr video");if(!r)return;const o=r.videoWidth,i=r.videoHeight;if(0===o||0===i)return;const{innerWidth:a,innerHeight:s}=window,u=a-o*s/i;d.log({liveChatPanelWidth:u}),document.documentElement.style.setProperty("--live-chat-panel-width",`${lodash.clamp(u,l.a,e)}px`)},p=lodash.debounce(u,200);let f;const h=async()=>{(0,t.addComponentListener)("liveChatPanelFit.targetRatio",u),(0,t.addComponentListener)("liveChatPanelFit.maxWidth",u),window.addEventListener("customWidthReset",u),window.addEventListener("resize",p);if(!await(0,n.sq)((()=>dq(".live-player-ctnr video")),(e=>null!==e&&e.readyState!==HTMLMediaElement.HAVE_NOTHING)))return void d.log("未找到 video 元素");u();const e=await(0,n.select)(".aside-area-toggle-btn");if(!e)return void d.log("未找到侧边栏按钮");const{default:i}=await Promise.resolve().then(o.bind(o,507));f=(0,r.mountVueComponent)(i),e.insertAdjacentElement("afterend",f.$el)},m=(0,e.defineComponentMetadata)({name:c,displayName:"直播间网页全屏自适应",tags:[componentsTags.live,componentsTags.style],urlInclude:[...s.liveUrls],entry:h,reload:h,unload:()=>{(0,t.removeComponentListener)("liveChatPanelFit.targetRatio",u),(0,t.removeComponentListener)("liveChatPanelFit.maxWidth",u),window.removeEventListener("customWidthReset",u),window.removeEventListener("resize",p),document.documentElement.style.removeProperty("--live-chat-panel-width"),f&&(f.$el.remove(),f.$destroy(),f=void 0)},instantStyles:[{name:c,style:()=>Promise.resolve().then(o.t.bind(o,498,23)),important:!0}],options:l.W,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(427);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,513,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/danmaku-sendbar.js b/registry/dist/components/live/danmaku-sendbar.js index a243c57e5..edfb1bc17 100644 --- a/registry/dist/components/live/danmaku-sendbar.js +++ b/registry/dist/components/live/danmaku-sendbar.js @@ -6,7 +6,7 @@ n.i=function(e,t,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(r)for(var a=0;a{"use strict";t.d(n,{Jd:()=>o,M6:()=>r,xO:()=>a});const r=".control-panel-ctnr .chat-input-ctnr .chat-input",o=".control-panel-ctnr .chat-input-ctnr ~ .bottom-actions .bl-button--primary",a=".left-area"},634:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var r=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("div",{staticClass:"danmaku-send-bar"},[n("input",{attrs:{type:"text",placeholder:"发个弹幕呗~",maxlength:"30"},domProps:{value:e.value},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.send()},input:function(n){return e.updateValue(n.target.value)}}})])};r._withStripped=!0;const o=coreApis.spinQuery;var a=t(605),i=t(254);let l=!1;const s=Vue.extend({data:()=>({originalTextArea:null,sendButton:null,value:""}),async mounted(){const e=await(0,o.select)(i.M6),n=await(0,o.select)(i.Jd);if(!e||!n)throw new Error(`[danmakuSendBar] ref elements not found. originalTextArea = ${null===e} sendButton = ${null===n}`);if(this.originalTextArea=e,this.sendButton=n,this.value=e.value,e.addEventListener("input",this.listenChange),e.addEventListener("change",this.listenChange),!l){const n=Object.getOwnPropertyDescriptors(HTMLTextAreaElement.prototype).value;Object.defineProperty(e,"value",{...n,set(t){n.set?.call(this,t),(0,a.raiseEvent)(e,"input")}}),l=!0}},beforeDestroy(){this.originalTextArea.removeEventListener("input",this.listenChange),this.originalTextArea.removeEventListener("change",this.listenChange)},methods:{updateValue(e){this.originalTextArea.value=e,(0,a.raiseEvent)(this.originalTextArea,"input")},send(){this.sendButton.disabled||(this.value="",this.sendButton.click())},listenChange(e){this.value=e.target.value}}});var d=t(332),u=t.n(d),c=t(82),p=t.n(c),f={insert:"head",singleton:!1};u()(p(),f);p().locals;var v=function(e,n,t,r,o,a,i,l){var s,d="function"==typeof e?e.options:e;if(n&&(d.render=n,d.staticRenderFns=t,d._compiled=!0),r&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=s):o&&(s=l?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(d.functional){d._injectStyles=s;var u=d.render;d.render=function(e,n){return s.call(n),u(e,n)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,s):[s]}return{exports:e,options:d}}(s,r,[],!1,null,null,null);const m=v.exports},332:(e,n,t)=>{"use strict";var r,o=function(){return void 0===r&&( +var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l{"use strict";t.d(n,{Jd:()=>o,M6:()=>r,xO:()=>a});const r=".control-panel-ctnr .chat-input-ctnr .chat-input",o=".control-panel-ctnr .chat-input-ctnr ~ .bottom-actions .bl-button--primary",a=".left-area"},634:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var r=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("div",{staticClass:"danmaku-send-bar"},[n("input",{attrs:{type:"text",placeholder:"发个弹幕呗~",maxlength:"30"},domProps:{value:e.value},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.send()},input:function(n){return e.updateValue(n.target.value)}}})])};r._withStripped=!0;const o=coreApis.spinQuery;var a=t(605),i=t(254);let l=!1;const s=Vue.extend({data:()=>({originalTextArea:null,sendButton:null,value:""}),async mounted(){const e=await(0,o.select)(i.M6),n=await(0,o.select)(i.Jd);if(!e||!n)throw new Error(`[danmakuSendBar] ref elements not found. originalTextArea = ${null===e} sendButton = ${null===n}`);if(this.originalTextArea=e,this.sendButton=n,this.value=e.value,e.addEventListener("input",this.listenChange),e.addEventListener("change",this.listenChange),!l){const n=Object.getOwnPropertyDescriptors(HTMLTextAreaElement.prototype).value;Object.defineProperty(e,"value",{...n,set(t){n.set?.call(this,t),(0,a.raiseEvent)(e,"input")}}),l=!0}},beforeDestroy(){this.originalTextArea.removeEventListener("input",this.listenChange),this.originalTextArea.removeEventListener("change",this.listenChange)},methods:{updateValue(e){this.originalTextArea.value=e,(0,a.raiseEvent)(this.originalTextArea,"input")},send(){this.sendButton.disabled||(this.value="",this.sendButton.click())},listenChange(e){this.value=e.target.value}}});var d=t(332),c=t.n(d),u=t(82),p=t.n(u),f={insert:"head",singleton:!1};c()(p(),f);p().locals;var v=function(e,n,t,r,o,a,i,l){var s,d="function"==typeof e?e.options:e;if(n&&(d.render=n,d.staticRenderFns=t,d._compiled=!0),r&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=s):o&&(s=l?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(d.functional){d._injectStyles=s;var c=d.render;d.render=function(e,n){return s.call(n),c(e,n)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:d}}(s,r,[],!1,null,null,null);const m=v.exports},332:(e,n,t)=>{"use strict";var r,o=function(){return void 0===r&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function l(e){for(var n=-1,t=0;t{"use strict";e.exports=coreApis.utils}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var l=2&r&&t;"object"==typeof l&&!~e.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>l});const e=coreApis.componentApis.live.liveControlBar,n=coreApis.componentApis.define;var t=o(605);const r=coreApis.utils.urls;var i=o(254);const l=(0,n.defineComponentMetadata)({name:"liveDanmakuSendbar",displayName:"直播弹幕发送栏",tags:[componentsTags.live],description:{"zh-CN":"在直播的网页全屏和全屏模式状态下, 在底部显示弹幕栏."},entry:async()=>{if(!(0,t.getUID)())return;let n;(0,e.waitForControlBar)({callback:async e=>{const t=dq(e,i.xO);if(!t)throw new Error("[danmakuSendBar] leftController not found");if(!dq(e,".danmaku-send-bar")){if(!n){const{mountVueComponent:e}=await Promise.resolve().then(o.t.bind(o,605,23)),t=await Promise.resolve().then(o.bind(o,634));n=e(t).$el}t.insertAdjacentElement("afterend",n)}}})},reload:()=>document.body.classList.remove("danmaku-send-bar-unloaded"),unload:()=>document.body.classList.add("danmaku-send-bar-unloaded"),urlInclude:r.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function l(e){for(var n=-1,t=0;t{"use strict";e.exports=coreApis.utils}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var l=2&r&&t;"object"==typeof l&&!~e.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>l});const e=coreApis.componentApis.live.liveControlBar,n=coreApis.componentApis.define;var t=o(605);const r=coreApis.utils.urls;var i=o(254);const l=(0,n.defineComponentMetadata)({name:"liveDanmakuSendbar",displayName:"直播弹幕发送栏",tags:[componentsTags.live],description:{"zh-CN":"在直播的网页全屏和全屏模式状态下, 在底部显示弹幕栏."},entry:async()=>{if(!(0,t.getUID)())return;let n;(0,e.waitForControlBar)({callback:async e=>{const t=dq(e,i.xO);if(!t)throw new Error("[danmakuSendBar] leftController not found");if(!dq(e,".danmaku-send-bar")){if(!n){const{mountVueComponent:e}=await Promise.resolve().then(o.t.bind(o,605,23)),t=await Promise.resolve().then(o.bind(o,634));n=e(t).$el}t.insertAdjacentElement("afterend",n)}}})},reload:()=>document.body.classList.remove("danmaku-send-bar-unloaded"),unload:()=>document.body.classList.add("danmaku-send-bar-unloaded"),urlInclude:r.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/gift-box.js b/registry/dist/components/live/gift-box.js index f94ae99fe..cd6cb6ab7 100644 --- a/registry/dist/components/live/gift-box.js +++ b/registry/dist/components/live/gift-box.js @@ -6,4 +6,4 @@ t.i=function(n,e,r){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var o={};if(r)for(var i=0;i{var r=e(766);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},t={};function e(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return n[r](i,i.exports,e),i.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var r={};return(()=>{"use strict";e.d(r,{component:()=>x});const n=coreApis.componentApis.live.liveControlBar,t=coreApis.componentApis.define,o=coreApis.spinQuery,i=coreApis.style,a=coreApis.utils.urls;var l=e(703),c=e.n(l);const p="player-full-win",f="fullscreen-fix",u="full-win-gift-btn-wrapper",s="liveGiftBox";let d=null,g=null,w=null;function b(){return document.body.classList.contains(p)||document.body.classList.contains(f)}function m(n,t){const e=dq(n,".right-area");if(e){const n=document.createElement("div");n.className=u,n.appendChild(t),e.appendChild(n)}else console.warn("[liveGiftBox] .right-area could not be found in control bar")}function v(n,t){return function(n){function t(n){const t=b(),e=n.oldValue.split(" ");return t===(e.includes(p)||e.includes(f))?null:t}const e=new MutationObserver((e=>{for(const r of e){const e=t(r);null!==e&&n(e)}}));return e?.observe(document.body,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),()=>e.disconnect()}((e=>{e?function(n){const t=dq(".control-area");t&&m(t,n)}(n):function(n,t){t.appendChild(n)}(n,t)}))}async function h(){(0,i.addStyle)(c(),s);const n=await async function(){const n=await(0,o.select)(".z-gift-package",{maxRetry:15,queryInterval:200});return n||console.warn("[liveGiftBox] the parent element of gift button not found"),n}();d=n?.children[0],n&&d&&(g=v(d,n),w=function(n){const t=dq("#live-player");if(!t)return console.warn("[liveGiftBox] live player not found"),null;function e(){dq(".full-win-gift-btn-wrapper .wrap")&&n.click()}return t.addEventListener("mouseleave",e),()=>t.removeEventListener("mouseleave",e)}(d))}const x=(0,t.defineComponentMetadata)({name:s,displayName:"直播全屏包裹",description:{"zh-CN":"在直播的网页全屏(不能是全屏)模式下往控制栏添加包裹按钮."},urlInclude:a.liveUrls,tags:[componentsTags.live],entry:function(){(0,n.waitForControlBar)({callback:function(n){const t=b();d&&t&&m(n,d)}}),h()},reload:h,unload:function(){w?.call(null),w=null,g?.call(null),g=null,d=null,(0,i.removeStyle)(s)},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var l=this[i][0];null!=l&&(o[l]=!0)}for(var a=0;a{var r=e(766);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},t={};function e(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return n[r](i,i.exports,e),i.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var r={};return(()=>{"use strict";e.d(r,{component:()=>x});const n=coreApis.componentApis.live.liveControlBar,t=coreApis.componentApis.define,o=coreApis.spinQuery,i=coreApis.style,l=coreApis.utils.urls;var a=e(703),c=e.n(a);const p="player-full-win",f="fullscreen-fix",u="full-win-gift-btn-wrapper",s="liveGiftBox";let d=null,g=null,b=null;function w(){return document.body.classList.contains(p)||document.body.classList.contains(f)}function m(n,t){const e=dq(n,".right-area");if(e){const n=document.createElement("div");n.className=u,n.appendChild(t),e.appendChild(n)}else console.warn("[liveGiftBox] .right-area could not be found in control bar")}function v(n,t){return function(n){function t(n){const t=w(),e=n.oldValue.split(" ");return t===(e.includes(p)||e.includes(f))?null:t}const e=new MutationObserver((e=>{for(const r of e){const e=t(r);null!==e&&n(e)}}));return e?.observe(document.body,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),()=>e.disconnect()}((e=>{e?function(n){const t=dq(".control-area");t&&m(t,n)}(n):function(n,t){t.appendChild(n)}(n,t)}))}async function h(){(0,i.addStyle)(c(),s);const n=await async function(){const n=await(0,o.select)(".z-gift-package",{maxRetry:15,queryInterval:200});return n||console.warn("[liveGiftBox] the parent element of gift button not found"),n}();d=n?.children[0],n&&d&&(g=v(d,n),b=function(n){const t=dq("#live-player");if(!t)return console.warn("[liveGiftBox] live player not found"),null;function e(){dq(".full-win-gift-btn-wrapper .wrap")&&n.click()}return t.addEventListener("mouseleave",e),()=>t.removeEventListener("mouseleave",e)}(d))}const x=(0,t.defineComponentMetadata)({name:s,displayName:"直播全屏包裹",description:{"zh-CN":"在直播的网页全屏(不能是全屏)模式下往控制栏添加包裹按钮."},urlInclude:l.liveUrls,tags:[componentsTags.live],entry:function(){(0,n.waitForControlBar)({callback:function(n){const t=w();d&&t&&m(n,d)}}),h()},reload:h,unload:function(){b?.call(null),b=null,g?.call(null),g=null,d=null,(0,i.removeStyle)(s)},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/hide-gift-fullscreen.js b/registry/dist/components/live/hide-gift-fullscreen.js index 0dd47de6e..92ed19d04 100644 --- a/registry/dist/components/live/hide-gift-fullscreen.js +++ b/registry/dist/components/live/hide-gift-fullscreen.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{var o=n(968);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var f=2&o&&n;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"hide-fullscreen-gift-bar",displayName:"全屏直播礼物简化",description:"移除全屏观看直播时的底部礼物栏",author:{name:"TimmyOVO",link:"https://github.com/TimmyOVO"},instantStyles:[{name:"hide-fullscreen-gift",style:()=>Promise.resolve().then(r.t.bind(r,430,23))}],entry:none,tags:[componentsTags.live,componentsTags.style],urlInclude:t.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var a=0;a{var o=n(968);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>n[e]));return c.default=()=>n,r.d(i,c),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"hide-fullscreen-gift-bar",displayName:"全屏直播礼物简化",description:"移除全屏观看直播时的底部礼物栏",author:{name:"TimmyOVO",link:"https://github.com/TimmyOVO"},instantStyles:[{name:"hide-fullscreen-gift",style:()=>Promise.resolve().then(r.t.bind(r,430,23))}],entry:none,tags:[componentsTags.live,componentsTags.style],urlInclude:t.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/home-mute.js b/registry/dist/components/live/home-mute.js index 00f96fd18..938e2807b 100644 --- a/registry/dist/components/live/home-mute.js +++ b/registry/dist/components/live/home-mute.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/home-mute"]=t():e["live/home-mute"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery},605:e=>{e.exports=coreApis.utils}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.style,r=/^https:\/\/live\.bilibili\.com\/(index\.html)?$/,a=(0,e.defineComponentMetadata)({name:"liveHomeMute",displayName:"直播首页静音",tags:[componentsTags.live],description:{"zh-CN":"禁止直播首页的推荐直播间自动开始播放."},entry:async e=>{let{metadata:r}=e;const n="hide-home-live";(0,t.addComponentListener)(`${r.name}.hide`,(e=>{e?(0,o.addStyle)(".player-area-ctnr,#player-header { display: none !important }",n):(0,o.removeStyle)(n)}),!0)},options:{hide:{displayName:"隐藏首页直播板块",defaultValue:!1}},urlInclude:[r],plugin:{displayName:"直播首页静音 - 提前执行",description:{"zh-CN":"提前执行代码以尽快静音."},async setup(){const{matchUrlPattern:e}=await Promise.resolve().then(n.t.bind(n,605,23));if(!e(r))return;const{select:t}=await Promise.resolve().then(n.t.bind(n,200,23));t("video").then((e=>{e.muted=!0}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/home-mute"]=t():e["live/home-mute"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery},605:e=>{e.exports=coreApis.utils}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.style,r=/^https:\/\/live\.bilibili\.com\/(index\.html)?$/,a=(0,e.defineComponentMetadata)({name:"liveHomeMute",displayName:"直播首页静音",tags:[componentsTags.live],description:{"zh-CN":"禁止直播首页的推荐直播间自动开始播放."},entry:async e=>{let{metadata:r}=e;const n="hide-home-live";(0,t.addComponentListener)(`${r.name}.hide`,(e=>{e?(0,o.addStyle)(".player-area-ctnr,#player-header { display: none !important }",n):(0,o.removeStyle)(n)}),!0)},options:{hide:{displayName:"隐藏首页直播板块",defaultValue:!1}},urlInclude:[r],plugin:{displayName:"直播首页静音 - 提前执行",description:{"zh-CN":"提前执行代码以尽快静音."},async setup(){const{matchUrlPattern:e}=await Promise.resolve().then(n.t.bind(n,605,23));if(!e(r))return;const{select:t}=await Promise.resolve().then(n.t.bind(n,200,23));t("video").then((e=>{e.muted=!0}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/original.js b/registry/dist/components/live/original.js index ebae8b566..aa54534d9 100644 --- a/registry/dist/components/live/original.js +++ b/registry/dist/components/live/original.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/original"]=t():e["live/original"]=t()}(globalThis,(()=>(()=>{"use strict";var e={2:(e,t,o)=>{o.d(t,{u:()=>n});const n=e=>{const t=e.match(/^https:\/\/live\.bilibili\.com\/([\d]+)/);return t?`https://live.bilibili.com/blanc/${t[1]}`:e}},324:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("a",{attrs:{href:e.href,tabindex:"-1"}},[t("DefaultWidget",{attrs:{name:"返回原版直播间",icon:"mdi-arrow-left-circle-outline"}})],1)};n._withStripped=!0;const i=coreApis.ui;var r=o(2);var a=function(e,t,o,n,i,r,a,s){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=o,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):i&&(l=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:d}}(Vue.extend({components:{DefaultWidget:i.DefaultWidget},data:()=>({href:(0,r.u)(document.URL)})}),n,[],!1,null,null,null);const s=a.exports}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.d(n,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils;var i=o(2);const r=(0,e.defineComponentMetadata)({name:"originalLiveroom",displayName:"返回原版直播间",description:"在直播间中提供返回原版直播间的按钮, 原版直播间将无视活动皮肤, 强制使用标准的直播页面.",tags:[componentsTags.live],entry:e=>{let{settings:o}=e;(0,t.isNotHtml)()||(0,t.isIframe)()||o.options.defaultBack&&window.location.assign((0,i.u)(document.URL))},options:{defaultBack:{displayName:"默认返回原版直播间",defaultValue:!1}},urlInclude:[/^https:\/\/live\.bilibili\.com\/[\d]+/],widget:{component:()=>Promise.resolve().then(o.bind(o,324)).then((e=>e.default)),condition:()=>(0,t.matchUrlPattern)(/^https:\/\/live\.bilibili\.com\/([\d]+)/)},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/original"]=t():e["live/original"]=t()}(globalThis,(()=>(()=>{"use strict";var e={2:(e,t,o)=>{o.d(t,{u:()=>n});const n=e=>{const t=e.match(/^https:\/\/live\.bilibili\.com\/([\d]+)/);return t?`https://live.bilibili.com/blanc/${t[1]}`:e}},324:(e,t,o)=>{o.r(t),o.d(t,{default:()=>a});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("a",{attrs:{href:e.href,tabindex:"-1"}},[t("DefaultWidget",{attrs:{name:"返回原版直播间",icon:"mdi-arrow-left-circle-outline"}})],1)};n._withStripped=!0;const i=coreApis.ui;var r=o(2);var s=function(e,t,o,n,i,r,s,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}(Vue.extend({components:{DefaultWidget:i.DefaultWidget},data:()=>({href:(0,r.u)(document.URL)})}),n,[],!1,null,null,null);const a=s.exports}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.d(n,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils;var i=o(2);const r=(0,e.defineComponentMetadata)({name:"originalLiveroom",displayName:"返回原版直播间",description:"在直播间中提供返回原版直播间的按钮, 原版直播间将无视活动皮肤, 强制使用标准的直播页面.",tags:[componentsTags.live],entry:e=>{let{settings:o}=e;(0,t.isNotHtml)()||(0,t.isIframe)()||o.options.defaultBack&&window.location.assign((0,i.u)(document.URL))},options:{defaultBack:{displayName:"默认返回原版直播间",defaultValue:!1}},urlInclude:[/^https:\/\/live\.bilibili\.com\/[\d]+/],widget:{component:()=>Promise.resolve().then(o.bind(o,324)).then((e=>e.default)),condition:()=>(0,t.matchUrlPattern)(/^https:\/\/live\.bilibili\.com\/([\d]+)/)},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/remove-watermark.js b/registry/dist/components/live/remove-watermark.js index b6058f322..f2ccb329d 100644 --- a/registry/dist/components/live/remove-watermark.js +++ b/registry/dist/components/live/remove-watermark.js @@ -6,4 +6,4 @@ t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(r)for(var i=0;i{var r=o(781);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({...(0,t.toggleStyle)("removeLiveWatermark",(()=>Promise.resolve().then(n.t.bind(n,103,23)))),displayName:"删除直播水印",tags:[componentsTags.live,componentsTags.style],description:{"zh-CN":"删除观看直播时角落的水印."},urlInclude:o.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(n[a]=!0)}for(var c=0;c{var r=o(781);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({...(0,t.toggleStyle)("removeLiveWatermark",(()=>Promise.resolve().then(n.t.bind(n,103,23)))),displayName:"删除直播水印",tags:[componentsTags.live,componentsTags.style],description:{"zh-CN":"删除观看直播时角落的水印."},urlInclude:o.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/showgirl.js b/registry/dist/components/live/showgirl.js index e8c988a4f..dc7dea021 100644 --- a/registry/dist/components/live/showgirl.js +++ b/registry/dist/components/live/showgirl.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/showgirl"]=t():e["live/showgirl"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={356:e=>{e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o="dpi-live-showgirl",n=async()=>{const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23));null===document.getElementById(o)&&e(`\n .haruna-ctnr,\n .avatar-btn\n {\n transform: scale(${1/window.devicePixelRatio}) !important;\n }\n `,o)},a=(0,e.defineComponentMetadata)({name:"dpiLiveShowgirl",displayName:"直播看板娘高 DPI 适配",enabledByDefault:window.devicePixelRatio>1,description:{"zh-CN":"根据屏幕 DPI 缩放直播看板娘的大小, 避免像素锯齿."},tags:[componentsTags.live,componentsTags.style],entry:n,reload:n,unload:()=>{document.getElementById(o)?.remove()},urlInclude:t.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/showgirl"]=t():e["live/showgirl"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={356:e=>{e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>l[e]=()=>o[e]));return l.default=()=>o,r.d(i,l),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>l});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o="dpi-live-showgirl",n=async()=>{const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23));null===document.getElementById(o)&&e(`\n .haruna-ctnr,\n .avatar-btn\n {\n transform: scale(${1/window.devicePixelRatio}) !important;\n }\n `,o)},l=(0,e.defineComponentMetadata)({name:"dpiLiveShowgirl",displayName:"直播看板娘高 DPI 适配",enabledByDefault:window.devicePixelRatio>1,description:{"zh-CN":"根据屏幕 DPI 缩放直播看板娘的大小, 避免像素锯齿."},tags:[componentsTags.live,componentsTags.style],entry:n,reload:n,unload:()=>{document.getElementById(o)?.remove()},urlInclude:t.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/live/side-bar.js b/registry/dist/components/live/side-bar.js index eb030e003..609b935bd 100644 --- a/registry/dist/components/live/side-bar.js +++ b/registry/dist/components/live/side-bar.js @@ -6,4 +6,4 @@ r.i=function(e,t,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(n)for(var a=0;a{var n=t(994);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,r({}),r([]),r(r)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const e=coreApis.componentApis.define,r=coreApis.utils.urls,t=(0,e.defineComponentMetadata)({name:"collapseLiveSideBar",entry:none,instantStyles:[{name:"collapseLiveSideBar",style:()=>Promise.resolve().then(o.t.bind(o,104,23))}],displayName:"自动收起直播侧栏",description:'自动收起直播间右边偏下的侧栏. (上面有个 "关注" 的面板)',tags:[componentsTags.live,componentsTags.style],urlInclude:r.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s{var n=t(994);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};e=e||[null,r({}),r([]),r(r)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(a,i),a},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const e=coreApis.componentApis.define,r=coreApis.utils.urls,t=(0,e.defineComponentMetadata)({name:"collapseLiveSideBar",entry:none,instantStyles:[{name:"collapseLiveSideBar",style:()=>Promise.resolve().then(o.t.bind(o,104,23))}],displayName:"自动收起直播侧栏",description:'自动收起直播间右边偏下的侧栏. (上面有个 "关注" 的面板)',tags:[componentsTags.live,componentsTags.style],urlInclude:r.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/always-show-duration.js b/registry/dist/components/style/always-show-duration.js index 93c3cd5a9..7454c767a 100644 --- a/registry/dist/components/style/always-show-duration.js +++ b/registry/dist/components/style/always-show-duration.js @@ -4,6 +4,6 @@ t.exports=function(t){var e=[];return e.toString=function(){return this.map((fun // eslint-disable-next-line func-names e.i=function(t,o,r){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign -t=[[null,t,""]]);var n={};if(r)for(var a=0;a{var r=o(626);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function n(t){var e=r[t];if(void 0!==e)return e.exports;var a=r[t]={id:t,exports:{}};return o[t](a,a.exports,n),a.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var a=Object.create(null);n.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var c=2&r&&o;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>i[t]=()=>o[t]));return i.default=()=>o,n.d(a,i),a},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.d(a,{component:()=>e});const t=coreApis.componentApis.styledComponent,e=(0,coreApis.componentApis.define.defineComponentMetadata)({...(0,t.toggleStyle)("alwaysShowDuration",(()=>Promise.resolve().then(n.t.bind(n,620,23)))),displayName:"总是显示视频时长",description:{"zh-CN":"使脚本展示的各种视频卡片中的时长无需鼠标经过也能一直显示."},tags:[componentsTags.video,componentsTags.style],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(n[a]=!0)}for(var c=0;c{var r=o(626);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function n(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,exports:{}};return o[t](i,i.exports,n),i.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&r&&o;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>a[t]=()=>o[t]));return a.default=()=>o,n.d(i,a),i},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>e});const t=coreApis.componentApis.styledComponent,e=(0,coreApis.componentApis.define.defineComponentMetadata)({...(0,t.toggleStyle)("alwaysShowDuration",(()=>Promise.resolve().then(n.t.bind(n,620,23)))),displayName:"总是显示视频时长",description:{"zh-CN":"使脚本展示的各种视频卡片中的时长无需鼠标经过也能一直显示."},tags:[componentsTags.video,componentsTags.style],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/auto-hide-sidebar.js b/registry/dist/components/style/auto-hide-sidebar.js index c6b7c72ea..dffcc7f7c 100644 --- a/registry/dist/components/style/auto-hide-sidebar.js +++ b/registry/dist/components/style/auto-hide-sidebar.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(652);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.utils,n=(0,e.defineComponentMetadata)({name:"autoHideSidebar",entry:()=>{(0,t.addComponentListener)("autoHideSidebar.triggerWidth",(e=>{document.documentElement.style.setProperty("--auto-hide-sidebar-width",`${e}px`)}),!0)},displayName:"自动隐藏侧栏",instantStyles:[{name:"autoHideSidebar",style:()=>Promise.resolve().then(r.t.bind(r,429,23)),important:!0}],tags:[componentsTags.style,componentsTags.general],options:{triggerWidth:{defaultValue:8,displayName:"触发区域宽度 (px)",validator:(0,o.getNumberValidator)(1,1e3)}},description:{"zh-CN":"自动隐藏脚本的侧栏 (功能和设置图标). 设置面板停靠在右侧时不建议使用, 因为网页的滚动条会占用右边缘的触发区域."},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var n=o(652);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.utils,n=(0,e.defineComponentMetadata)({name:"autoHideSidebar",entry:()=>{(0,t.addComponentListener)("autoHideSidebar.triggerWidth",(e=>{document.documentElement.style.setProperty("--auto-hide-sidebar-width",`${e}px`)}),!0)},displayName:"自动隐藏侧栏",instantStyles:[{name:"autoHideSidebar",style:()=>Promise.resolve().then(r.t.bind(r,429,23)),important:!0}],tags:[componentsTags.style,componentsTags.general],options:{triggerWidth:{defaultValue:8,displayName:"触发区域宽度 (px)",validator:(0,o.getNumberValidator)(1,1e3)}},description:{"zh-CN":"自动隐藏脚本的侧栏 (功能和设置图标). 设置面板停靠在右侧时不建议使用, 因为网页的滚动条会占用右边缘的触发区域."},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/clear-home.js b/registry/dist/components/style/clear-home.js index 54a8b18e8..22127bc4c 100644 --- a/registry/dist/components/style/clear-home.js +++ b/registry/dist/components/style/clear-home.js @@ -1 +1 @@ -!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["style/clear-home"]=a():e["style/clear-home"]=a()}(globalThis,(()=>(()=>{"use strict";var e={d:(a,l)=>{for(var t in l)e.o(l,t)&&!e.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:l[t]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a)},a={};e.d(a,{component:()=>f});const l=coreApis.componentApis.define,t=coreApis.settings,d=[];let s=!1,i=!0;const o=(0,l.defineOptionsMetadata)({广告:{displayName:"广告",defaultValue:!0},番剧:{displayName:"番剧",defaultValue:!0},电影:{displayName:"电影",defaultValue:!0},国创:{displayName:"国创",defaultValue:!0},电视剧:{displayName:"电视剧",defaultValue:!0},综艺:{displayName:"综艺",defaultValue:!0},纪录片:{displayName:"纪录片",defaultValue:!0},动画:{displayName:"动画",defaultValue:!0},游戏:{displayName:"游戏",defaultValue:!0},鬼畜:{displayName:"鬼畜",defaultValue:!0},音乐:{displayName:"音乐",defaultValue:!0},舞蹈:{displayName:"舞蹈",defaultValue:!0},影视:{displayName:"影视",defaultValue:!0},娱乐:{displayName:"娱乐",defaultValue:!0},知识:{displayName:"知识",defaultValue:!0},科技:{displayName:"科技",defaultValue:!0},资讯:{displayName:"资讯",defaultValue:!0},美食:{displayName:"美食",defaultValue:!0},生活:{displayName:"生活",defaultValue:!0},汽车:{displayName:"汽车",defaultValue:!0},时尚:{displayName:"时尚",defaultValue:!0},运动:{displayName:"运动",defaultValue:!0},动物圈:{displayName:"动物圈",defaultValue:!0},VLOG:{displayName:"VLOG",defaultValue:!0},搞笑:{displayName:"搞笑",defaultValue:!0},单机游戏:{displayName:"单机游戏",defaultValue:!0},虚拟UP主:{displayName:"虚拟UP主",defaultValue:!0},公益:{displayName:"公益",defaultValue:!0},公开课:{displayName:"公开课",defaultValue:!0},专栏:{displayName:"专栏",defaultValue:!0},直播:{displayName:"直播",defaultValue:!0},赛事:{displayName:"赛事",defaultValue:!0},活动:{displayName:"活动",defaultValue:!0},课堂:{displayName:"课堂",defaultValue:!0},社区中心:{displayName:"社区中心",defaultValue:!0},新歌热榜:{displayName:"新歌热榜",defaultValue:!0},漫画:{displayName:"漫画",defaultValue:!0}});function u(e){for(const a of e)if(a.classList)if(a.classList.contains("floor-single-card")){const e=a.querySelector(".badge").textContent;e&&d.includes(e)&&a.remove()}else a.classList.contains("bili-live-card")?s&&a.remove():(a.classList.contains("bili-video-card")||a.classList.contains("feed-card"))&&i&&(a.querySelector(".bili-video-card__info--ad")||a.querySelector(".bili-video-card__info--creative-ad"))&&a.remove()}function n(e){const a=[];for(const l of e){const e=l.target;if(!(e.classList&&e.classList.contains("carousel-transform")||"SPAN"===e.tagName)&&l.addedNodes.length>0)for(const e of l.addedNodes){const l=e;"#text"===l.nodeName||l.classList&&l.classList.contains("bili-watch-later")||a.push(l)}}a.length>0&&u(a)}const f=(0,l.defineComponentMetadata)({name:"clear-home",author:{name:"RieN7",link:"https://github.com/rien7"},tags:[componentsTags.style],displayName:"首页净化",description:"删除首页特定类型的卡片",entry:async e=>{let{metadata:a,settings:l}=e;const o=document.querySelector("main > .feed2 > .recommended-container_floor-aside > .container");if(!o)return;new MutationObserver(n).observe(o,{childList:!0}),Object.keys(l.options).forEach((e=>{(0,t.addComponentListener)(`${a.name}.${e}`,(a=>{if(a){if("广告"===e)return void(i=!0);d.push(e),"直播"===e&&(s=!0)}}),!0)}));u(o.children)},options:o,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return a=a.component})())); \ No newline at end of file +!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["style/clear-home"]=a():e["style/clear-home"]=a()}(globalThis,(()=>(()=>{"use strict";var e={d:(a,l)=>{for(var t in l)e.o(l,t)&&!e.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:l[t]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a)},a={};e.d(a,{component:()=>c});const l=coreApis.componentApis.define,t=coreApis.settings,d=[];let s=!1,i=!0;const o=(0,l.defineOptionsMetadata)({广告:{displayName:"广告",defaultValue:!0},番剧:{displayName:"番剧",defaultValue:!0},电影:{displayName:"电影",defaultValue:!0},国创:{displayName:"国创",defaultValue:!0},电视剧:{displayName:"电视剧",defaultValue:!0},综艺:{displayName:"综艺",defaultValue:!0},纪录片:{displayName:"纪录片",defaultValue:!0},动画:{displayName:"动画",defaultValue:!0},游戏:{displayName:"游戏",defaultValue:!0},鬼畜:{displayName:"鬼畜",defaultValue:!0},音乐:{displayName:"音乐",defaultValue:!0},舞蹈:{displayName:"舞蹈",defaultValue:!0},影视:{displayName:"影视",defaultValue:!0},娱乐:{displayName:"娱乐",defaultValue:!0},知识:{displayName:"知识",defaultValue:!0},科技:{displayName:"科技",defaultValue:!0},资讯:{displayName:"资讯",defaultValue:!0},美食:{displayName:"美食",defaultValue:!0},生活:{displayName:"生活",defaultValue:!0},汽车:{displayName:"汽车",defaultValue:!0},时尚:{displayName:"时尚",defaultValue:!0},运动:{displayName:"运动",defaultValue:!0},动物圈:{displayName:"动物圈",defaultValue:!0},VLOG:{displayName:"VLOG",defaultValue:!0},搞笑:{displayName:"搞笑",defaultValue:!0},单机游戏:{displayName:"单机游戏",defaultValue:!0},虚拟UP主:{displayName:"虚拟UP主",defaultValue:!0},公益:{displayName:"公益",defaultValue:!0},公开课:{displayName:"公开课",defaultValue:!0},专栏:{displayName:"专栏",defaultValue:!0},直播:{displayName:"直播",defaultValue:!0},赛事:{displayName:"赛事",defaultValue:!0},活动:{displayName:"活动",defaultValue:!0},课堂:{displayName:"课堂",defaultValue:!0},社区中心:{displayName:"社区中心",defaultValue:!0},新歌热榜:{displayName:"新歌热榜",defaultValue:!0},漫画:{displayName:"漫画",defaultValue:!0}});function u(e){for(const a of e)if(a.classList)if(a.classList.contains("floor-single-card")){const e=a.querySelector(".badge").textContent;e&&d.includes(e)&&a.remove()}else a.classList.contains("bili-live-card")?s&&a.remove():(a.classList.contains("bili-video-card")||a.classList.contains("feed-card"))&&i&&(a.querySelector(".bili-video-card__info--ad")||a.querySelector(".bili-video-card__info--creative-ad"))&&a.remove()}function n(e){const a=[];for(const l of e){const e=l.target;if(!(e.classList&&e.classList.contains("carousel-transform")||"SPAN"===e.tagName)&&l.addedNodes.length>0)for(const e of l.addedNodes){const l=e;"#text"===l.nodeName||l.classList&&l.classList.contains("bili-watch-later")||a.push(l)}}a.length>0&&u(a)}const c=(0,l.defineComponentMetadata)({name:"clear-home",author:{name:"RieN7",link:"https://github.com/rien7"},tags:[componentsTags.style],displayName:"首页净化",description:"删除首页特定类型的卡片",entry:async e=>{let{metadata:a,settings:l}=e;const o=document.querySelector("main > .feed2 > .recommended-container_floor-aside > .container");if(!o)return;new MutationObserver(n).observe(o,{childList:!0}),Object.keys(l.options).forEach((e=>{(0,t.addComponentListener)(`${a.name}.${e}`,(a=>{if(a){if("广告"===e)return void(i=!0);d.push(e),"直播"===e&&(s=!0)}}),!0)}));u(o.children)},options:o,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/custom-font-family.js b/registry/dist/components/style/custom-font-family.js index 976616afc..c13b847d4 100644 --- a/registry/dist/components/style/custom-font-family.js +++ b/registry/dist/components/style/custom-font-family.js @@ -9,4 +9,4 @@ t=[[null,t,""]]);var i={};if(o)for(var a=0;a{"use strict";n.d(e,{nF:()=>i,nY:()=>o,p_:()=>a});const o="Microsoft Yahei, Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Heiti SC, Malgun Gothic",i=[{camel:"coverOrnament",kebab:"cover-ornament",display:"装扮字体"},{camel:"coverFansMedal",kebab:"cover-fans-medal",display:"粉丝勋章字体"},{camel:"coverDanmaku",kebab:"cover-danmaku",display:"弹幕字体"},{camel:"coverIconFont",kebab:"cover-icon-font",display:"图标字体"},{camel:"coverColumn",kebab:"cover-column",display:"专栏自定义字体"},{camel:"coverScore",kebab:"cover-score",display:"评分字体"}],a={coverOrnament:!1,coverFansMedal:!1,coverDanmaku:!1,coverIconFont:!1,coverColumn:!1,coverScore:!1}},206:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom-font-family-extra-options-entry"},[e("VButton",{on:{mouseover:function(e){return t.loadPanel()},click:function(e){return t.togglePanelDisplay()}}},[t._v("\n 更多选项"),e("VIcon",{attrs:{icon:"right-arrow",size:16}})],1)],1)};o._withStripped=!0;var i=n(309),a=n(648),s=n(605);let r;const c=(0,i.defineComponent)({components:{VIcon:a.VIcon,VButton:a.VButton},methods:{loadPanel:async()=>{Boolean(r)||await(async()=>{const t=await Promise.resolve().then(n.bind(n,411)).then((t=>t.default));r=(0,s.mountVueComponent)(t),document.body.insertAdjacentElement("beforeend",r.$el)})()},togglePanelDisplay:async()=>{r.toggleDisplay()}}});var l=n(332),p=n.n(l),u=n(715),d=n.n(u),f={insert:"head",singleton:!1};p()(d(),f);d().locals;const m=(0,n(499).Z)(c,o,[],!1,null,null,null).exports},411:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>$});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("ExtraOptionsPanel",{ref:"extraOptionsPanel",staticClass:"custom-font-family-extra-options-panel",class:{peek:t.isPeeking},attrs:{"init-data":t.initData},scopedSlots:t._u([{key:"input0",fn:function(){return[e("TextArea",{model:{value:t.inputFontFamily,callback:function(e){t.inputFontFamily=e},expression:"inputFontFamily"}})]},proxy:!0},{key:"input1",fn:function(){return[e("SwitchOptionsMin",{attrs:{options:t.switchOptionsComponentOptions}})]},proxy:!0}])})};o._withStripped=!0;var i=n(309),a=n(648),s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"switch-options-min"},[e("div",{staticClass:"switch-options-min-grid"},t._l(Object.keys(t.options.switches),(function(n){return e(t.options.radio?"RadioButton":"CheckBox",t._b({key:n,tag:"component",class:{dim:!(Number(t.componentOptions[n])^Number(t.isDimAtChecked))},attrs:{checked:t.componentOptions[n]},on:{change:function(e){t.componentOptions[n]=e}}},"component",t.mergedSwitchProps,!1),[t._v("\n "+t._s(t.options.switches[n].displayName)+"\n ")])})),1)])};s._withStripped=!0;var r=n(986);const c=(0,i.defineComponent)({name:"SwitchOptionsMin",components:{CheckBox:a.CheckBox,RadioButton:a.RadioButton},props:{options:{type:Object,required:!0}},data(){const{componentName:t}=this.options;return{componentOptions:(0,r.getComponentSettings)(t).options,isDimAtChecked:(()=>"checked"===this.options.dimAt||void 0===this.options.dimAt||(this.options.dimAt,!1))()}},computed:{mergedSwitchProps(){return{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline",...this.options.switchProps}}},watch:{options(){this.updateColumnsCount()}},mounted(){this.updateColumnsCount()},methods:{updateColumnsCount(){const t=this.$el,e=Math.ceil(Object.keys(this.options.switches).length/12);t.style.setProperty("--columns",e.toString())}}});var l=n(332),p=n.n(l),u=n(278),d=n.n(u),f={insert:"head",singleton:!1};p()(d(),f);d().locals;var m=n(499);const h=(0,m.Z)(c,s,[],!1,null,null,null).exports;var b=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("VPopup",{staticClass:"be-extra-options-panel",attrs:{fixed:"",lazy:!1},model:{value:t.popupOpen,callback:function(e){t.popupOpen=e},expression:"popupOpen"}},[e("div",{staticClass:"be-eop-header"},[e("div",{staticClass:"be-eop-h-title"},[e("VIcon",{staticClass:"be-eop-h-t-icon",attrs:{icon:t.initData.header.title.icon,size:24}}),t._v(" "),e("div",{staticClass:"be-eop-h-t-text"},[t._v(t._s(t.initData.header.title.text))])],1),t._v(" "),e("div",{staticClass:"be-eop-h-actions"},[t._l(t.initData.header.actions,(function(t){return e("div",{key:t.id,staticClass:"be-eop-h-a-action"},[e("VIcon",{ref:`action${t.id}`,refInFor:!0,class:`action-${t.actionClassNameSuffix}`,attrs:{title:t.title,icon:t.icon,size:24}})],1)})),t._v(" "),e("div",{staticClass:"be-eop-h-a-action"},[e("VIcon",{staticClass:"action-close",attrs:{title:"关闭",icon:"mdi-close",size:24},on:{click:function(e){t.popupOpen=!1}}})],1)],2)]),t._v(" "),e("div",{staticClass:"be-eop-separator"}),t._v(" "),e("div",{staticClass:"be-eop-content"},t._l(t.initData.content.options,(function(n){return e("div",{key:n.id,staticClass:"be-eop-c-option"},[e("div",{staticClass:"be-eop-c-o-title"},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"be-eop-c-o-description"},[t._v(t._s(n.description))]),t._v(" "),e("div",{staticClass:"be-eop-c-o-input",class:`input-${n.inputClassNameSuffix}`},[t._t(`input${n.id}`,(function(){return[t._v("\n 选项输入入口默认文字,使用含 v-slot 指令的 template 元素以替换默认内容\n ")]}))],2)])})),0)])};b._withStripped=!0;const y=(0,i.defineComponent)({name:"ExtraOptionsPanel",components:{VPopup:a.VPopup,VIcon:a.VIcon},props:{initData:{type:Object,default:{header:{title:{text:"默认标题",icon:"mdi-format-font"},actions:[{id:0,title:"默认动作 0",icon:"mdi-cog-sync-outline",actionClassNameSuffix:"default-action-0"},{id:1,title:"默认动作 1",icon:"mdi-eye-outline",actionClassNameSuffix:"default-action-1"}]},content:{options:[{id:0,title:"默认选项 0",description:"默认选项 0 的说明",inputClassNameSuffix:"default-option-0"},{id:1,title:"默认选项 1",description:"默认选项 1 的说明",inputClassNameSuffix:"default-option-1"}]}}}},data:()=>({popupOpen:!1})});var v=n(300),x=n.n(v),g={insert:"head",singleton:!1};p()(x(),g);x().locals;const _=(0,m.Z)(y,b,[],!1,null,null,null).exports,C=coreApis.toast;var k=n(605);const O=coreApis.utils.log;var w=n(900);const F={header:{title:{text:"自定义字体",icon:"mdi-format-font"},actions:[{id:0,title:"重置面板中的所有选项为默认值",icon:"mdi-cog-sync-outline",actionClassNameSuffix:"reset"},{id:1,title:"透视",icon:"mdi-eye-outline",actionClassNameSuffix:"peek"}]},content:{options:[{id:0,title:"自定义字体",description:"输入需要设置的字体,不同字体之间必须以英文逗号分隔",inputClassNameSuffix:"input-font-family"},{id:1,title:"覆盖选项",description:"下面的元素使用了特殊字体,启用选项后可在对应的元素上应用组件提供的字体设置",inputClassNameSuffix:"cover-options"}]}},S={name:"customFontFamilyCoverOptions",switches:{},radio:!1,dimAt:"notChecked",switchProps:{checkedIcon:"mdi-checkbox-marked-circle",notCheckedIcon:"mdi-checkbox-blank-circle-outline"},componentName:"customFontFamily",optionDisplayName:"自定义字体覆盖选项"};for(const t of w.nF)S.switches[t.camel]={displayName:t.display,defaultValue:w.p_[t.camel]};const P=(0,O.useScopedConsole)("自定义字体"),N=(0,i.defineComponent)({components:{ExtraOptionsPanel:_,TextArea:a.TextArea,SwitchOptionsMin:h},data:()=>({isPeeking:!1,isMouseOverPeekIcon:!1,initData:F,inputFontFamily:(0,r.getComponentSettings)("customFontFamily").options.fontFamily,switchOptionsComponentOptions:S}),watch:{inputFontFamily:lodash.debounce((t=>{(0,r.getComponentSettings)("customFontFamily").options.fontFamily=t}),1e3),async isMouseOverPeekIcon(t){t?(t&&await(0,k.delay)(200),this.isMouseOverPeekIcon&&(this.isPeeking=!0)):this.isPeeking=!1}},mounted(){this.$refs.extraOptionsPanel.$refs.action0[0].$el.addEventListener("click",this.confirmResetOptions);const t=this.$refs.extraOptionsPanel.$refs.action1[0].$el;t.addEventListener("mouseover",this.setIsMouseOverPeekIconToTrue),t.addEventListener("mouseout",this.setIsMouseOverPeekIconToFalse)},methods:{toggleDisplay(){this.$refs.extraOptionsPanel.popupOpen=!this.$refs.extraOptionsPanel.popupOpen},setIsMouseOverPeekIconToTrue(){this.isMouseOverPeekIcon=!0},setIsMouseOverPeekIconToFalse(){this.isMouseOverPeekIcon=!1},confirmResetOptions(){confirm("确定将面板中的所有选项重置为默认值吗?")&&this.resetOptions()},resetOptions(){(0,r.getComponentSettings)("customFontFamily").options.fontFamily=w.nY,this.inputFontFamily=w.nY;for(const t of w.nF){const e=w.p_[t.camel];(0,r.getComponentSettings)("customFontFamily").options[t.camel]=e}C.Toast.success("更多选项面板中的所有选项已成功被重置为默认值","自定义字体",2e3),P.log("更多选项面板中的所有选项已成功被重置为默认值")}}});var T=n(567),I=n.n(T),M={insert:"head",singleton:!1};p()(I(),M);I().locals;const $=(0,m.Z)(N,o,[],!1,null,null,null).exports},499:(t,e,n)=>{"use strict";function o(t,e,n,o,i,a,s,r){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=r?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var p=l.render;l.render=function(t,e){return c.call(e),p(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}n.d(e,{Z:()=>o})},332:(t,e,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function r(t){for(var e=-1,n=0;n{var o=n(383);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},143:(t,e,n)=>{var o=n(150);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},814:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=814,t.exports=e},697:t=>{"use strict";t.exports="使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。\n\n当组件被启用后,几乎所有的元素会立即应用组件提供的字体设置。\n\n选项说明:\n- `禁用标题标点符号缩进`: 在新版视频页中,推荐视频栏中的视频标题,如果首个字符是特定的标点符号,则文本会缩入左侧。这个选项可以禁用这种样式\n- `更多选项`:\n - `自定义字体`: 设置自定义字体。写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family)、默认设置与设置说明。\n - `覆盖选项`: 相当于一个白名单,使用了特殊字体的元素会被加入其中。默认情况下这些元素不会应用组件提供的字体设置,只有在启用对应的选项后才会应用。"},309:t=>{"use strict";t.exports=globalThis.Vue},986:t=>{"use strict";t.exports=coreApis.settings},648:t=>{"use strict";t.exports=coreApis.ui},605:t=>{"use strict";t.exports=coreApis.utils}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={id:t,exports:{}};return n[t](a,a.exports,i),a.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var s={};t=t||[null,e({}),e([]),e(e)];for(var r=2&o&&n;"object"==typeof r&&!~t.indexOf(r);r=e(r))Object.getOwnPropertyNames(r).forEach((t=>s[t]=()=>n[t]));return s.default=()=>n,i.d(a,s),a},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";i.d(a,{component:()=>u});const t=coreApis.componentApis.define;var e=i(986),n=i(900);const o=document.documentElement,s="custom-font-family",r="customFontFamily",c=[componentsTags.style,componentsTags.general],l={fontFamily:{displayName:"字体",defaultValue:n.nY,hidden:!0},disableTitlePunctuationTextIndent:{displayName:"禁用标题标点符号缩进",defaultValue:!0}};(()=>{for(const t of n.nF)l[t.camel]={displayName:t.display,defaultValue:n.p_[t.camel],hidden:!0}})();const p=[{name:`${s}--style--set-font-family`,style:()=>Promise.resolve().then(i.t.bind(i,143,23)),important:!0},{name:`${s}--style--disable-title-punctuation-text-indent`,style:()=>Promise.resolve().then(i.t.bind(i,180,23)),important:!0}],u=(0,t.defineComponentMetadata)({name:r,displayName:"自定义字体",tags:c,entry:()=>{(0,e.addComponentListener)("customFontFamily.fontFamily",(t=>{t?(o.style.setProperty(`--${s}--options--font-family`,`${t}`),o.setAttribute(`${s}--detect--is-input-empty`,"false")):o.setAttribute(`${s}--detect--is-input-empty`,"true")}),!0),(0,e.addComponentListener)("customFontFamily.disableTitlePunctuationTextIndent",(t=>{o.setAttribute(`${s}--options--disable-title-punctuation-text-indent`,`${t}`)}),!0);for(const t of n.nF)(0,e.addComponentListener)(`customFontFamily.${t.camel}`,(e=>{o.setAttribute(`${s}--options--${t.kebab}`,`${e}`)}),!0)},options:l,extraOptions:()=>Promise.resolve().then(i.bind(i,206)).then((t=>t.default)),instantStyles:p,author:{name:"Tinhone",link:"https://github.com/Tinhone"},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=i(814);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,697,17)).then((t=>t.default))}})()})})(),a=a.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function r(t){for(var e=-1,n=0;n{var o=n(383);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},143:(t,e,n)=>{var o=n(150);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},814:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=814,t.exports=e},697:t=>{"use strict";t.exports="使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。\n\n当组件被启用后,几乎所有的元素会立即应用组件提供的字体设置。\n\n选项说明:\n- `禁用标题标点符号缩进`: 在新版视频页中,推荐视频栏中的视频标题,如果首个字符是特定的标点符号,则文本会缩入左侧。这个选项可以禁用这种样式\n- `更多选项`:\n - `自定义字体`: 设置自定义字体。写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family)、默认设置与设置说明。\n - `覆盖选项`: 相当于一个白名单,使用了特殊字体的元素会被加入其中。默认情况下这些元素不会应用组件提供的字体设置,只有在启用对应的选项后才会应用。"},309:t=>{"use strict";t.exports=globalThis.Vue},986:t=>{"use strict";t.exports=coreApis.settings},648:t=>{"use strict";t.exports=coreApis.ui},605:t=>{"use strict";t.exports=coreApis.utils}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={id:t,exports:{}};return n[t](a,a.exports,i),a.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var s={};t=t||[null,e({}),e([]),e(e)];for(var r=2&o&&n;"object"==typeof r&&!~t.indexOf(r);r=e(r))Object.getOwnPropertyNames(r).forEach((t=>s[t]=()=>n[t]));return s.default=()=>n,i.d(a,s),a},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";i.d(a,{component:()=>u});const t=coreApis.componentApis.define;var e=i(986),n=i(900);const o=document.documentElement,s="custom-font-family",r="customFontFamily",c=[componentsTags.style,componentsTags.general],l={fontFamily:{displayName:"字体",defaultValue:n.nY,hidden:!0},disableTitlePunctuationTextIndent:{displayName:"禁用标题标点符号缩进",defaultValue:!0}};(()=>{for(const t of n.nF)l[t.camel]={displayName:t.display,defaultValue:n.p_[t.camel],hidden:!0}})();const p=[{name:`${s}--style--set-font-family`,style:()=>Promise.resolve().then(i.t.bind(i,143,23)),important:!0},{name:`${s}--style--disable-title-punctuation-text-indent`,style:()=>Promise.resolve().then(i.t.bind(i,180,23)),important:!0}],u=(0,t.defineComponentMetadata)({name:r,displayName:"自定义字体",tags:c,entry:()=>{(0,e.addComponentListener)("customFontFamily.fontFamily",(t=>{t?(o.style.setProperty(`--${s}--options--font-family`,`${t}`),o.setAttribute(`${s}--detect--is-input-empty`,"false")):o.setAttribute(`${s}--detect--is-input-empty`,"true")}),!0),(0,e.addComponentListener)("customFontFamily.disableTitlePunctuationTextIndent",(t=>{o.setAttribute(`${s}--options--disable-title-punctuation-text-indent`,`${t}`)}),!0);for(const t of n.nF)(0,e.addComponentListener)(`customFontFamily.${t.camel}`,(e=>{o.setAttribute(`${s}--options--${t.kebab}`,`${e}`)}),!0)},options:l,extraOptions:()=>Promise.resolve().then(i.bind(i,206)).then((t=>t.default)),instantStyles:p,author:{name:"Tinhone",link:"https://github.com/Tinhone"},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=i(814);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,697,17)).then((t=>t.default))}})()})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/custom-navbar.js b/registry/dist/components/style/custom-navbar.js index bb74d20e8..30337aa22 100644 --- a/registry/dist/components/style/custom-navbar.js +++ b/registry/dist/components/style/custom-navbar.js @@ -27,4 +27,4 @@ function(t){if(F(t)===N)return[];var e=G(t);return[K(t),e,K(e)]}(v)),x=[v].conca }]}),mt=n(9986);function ht(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ft="customNavbar.items",vt="customNavbar.renderedItems";class bt{constructor(t){if(ht(this,"name",void 0),ht(this,"displayName",void 0),ht(this,"content",void 0),ht(this,"flexStyle","0 0 auto"),ht(this,"disabled",!1),ht(this,"href",null),ht(this,"active",!1),ht(this,"clickAction",none),ht(this,"contentMounted",none),ht(this,"notifyCount",0),ht(this,"touch",!1),ht(this,"loginRequired",!1),ht(this,"popupContent",null),ht(this,"popper",null),ht(this,"boundingWidth",0),ht(this,"noPopupPadding",!1),ht(this,"transparentPopup",!1),ht(this,"lazy",!0),ht(this,"hidden",!1),ht(this,"order",0),ht(this,"requestedPopup",void 0),Object.assign(this,t),!this.name)throw new Error("Missing CustomNavbarItem name");if(void 0===this.content)throw new Error("Missing CustomNavbarItem content");(0,mt.addComponentListener)("customNavbar.touch",(e=>{this.touch=!!e&&t.touch}),!0),this.hidden=bt.navbarOptions.hidden.includes(this.name);const e=bt.navbarOptions.order;this.order=e[this.name]||0,this.requestedPopup=!this.lazy}get element(){return dq(`.custom-navbar-item[data-name='${this.name}']`)}toString(){return this.name}usePopper(t,e){this.popper=ut(t,e,{placement:"bottom"})}}ht(bt,"navbarOptions",(0,mt.getComponentSettings)("customNavbar").options)},8936:(t,e,n)=>{"use strict";n.d(e,{I:()=>l});var a=n(9799),i=n(4577),r=n(3414),o=n(5441),s=n(9648);const l=(t,e)=>Vue.extend({components:{VLoading:s.VLoading,VEmpty:s.VEmpty,ScrollTrigger:s.ScrollTrigger},data:()=>({loading:!0,cards:[],hasMorePage:!0}),computed:{sortedCards(){return[...this.cards].sort((0,i.descendingBigIntSort)((t=>t.id)))}},async created(){await this.nextPage();const t=this.sortedCards;t.length>0&&(0,o.setLatestID)(t[0].id)},methods:{async nextPage(){try{const n=this.sortedCards,r=n[n.length-1]?.id??0,o=await(0,a.getFeeds)(t,r);if(console.log(o),0!==o.code)throw this.hasMorePage=!1,new Error(o.message);const s=lodash.get(o,"data.items",[]).map(e);let l=(0,a.applyContentFilter)(n.concat(s).sort((0,i.descendingBigIntSort)((t=>t.id))).filter((t=>!(0,a.isPreOrderedVideo)(t))));if(l.length>0&&this.onCardsUpdate&&(l=this.onCardsUpdate(l)),console.log("nextPage get",l),this.cards=l,0===this.cards.length)return void(this.hasMorePage=!1);this.hasMorePage=0===r||Boolean(lodash.get(o,"data.has_more",!0))}catch(t){(0,r.logError)(t)}finally{this.loading=!1}}}})},7236:(t,e,n)=>{"use strict";n.d(e,{u:()=>i});var a=n(4938);const i=Vue.extend({props:{item:{type:a.kO,required:!0},container:{type:HTMLElement,required:!0}},mounted(){const t=this.item,e=this.container;e&&t?.usePopper(e,this.$el.parentElement)},methods:{popupShow(){this.item?.popper?.update()}}})},4241:(t,e,n)=>{"use strict";n.r(e),n.d(e,{loadNavbarSettings:()=>o,setTriggerElement:()=>r,toggleNavbarSettings:()=>s});var a=n(605);let i;const r=t=>{i&&(i.triggerElement=t)},o=async()=>{if(i)return!1;const t=await Promise.resolve().then(n.bind(n,7783)).then((t=>t.default));return i=(0,a.mountVueComponent)(t),document.body.insertAdjacentElement("beforeend",i.$el),!0},s=async()=>{i||await o(),i?.toggle()}},1761:(t,e,n)=>{"use strict";n.d(e,{N:()=>i,V:()=>o});var a=n(605);let i=function(t){return t.Bangumi="bangumi",t.Cinema="cinema",t}({});const r=(0,a.getUID)(),o={name:"subscriptions",displayName:"订阅",content:"订阅",href:`https://space.bilibili.com/${r}/bangumi`,touch:!0,active:[`https://space.bilibili.com/${r}/bangumi`,`https://space.bilibili.com/${r}/cinema`,`https://space.bilibili.com/${r}/subs`].includes(document.URL.replace(/\?.*$/,"")),loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,3472)).then((t=>t.default))}},9978:(t,e,n)=>{"use strict";n.d(e,{y:()=>a});let a=function(t){return t[t.ToView=1]="ToView",t[t.Viewing=2]="Viewing",t[t.Viewed=3]="Viewed",t}({})},7547:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ct});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom-navbar",class:t.styles,attrs:{role:"navigation"}},[e("div",{staticClass:"left-pad padding"}),t._v(" "),e("div",{staticClass:"custom-navbar-items",attrs:{role:"list"}},t._l(t.items,(function(t){return e("NavbarItem",{key:t.name,attrs:{item:t}})})),1),t._v(" "),e("div",{staticClass:"right-pad padding"})])};a._withStripped=!0;var i=n(9986),r=n(605),o=n(4577),s=n(9153);const l="https://message.bilibili.com/",c={name:"messages",displayName:"消息",content:"消息",href:l,active:document.URL.startsWith(l),loginRequired:!0,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,6755)).then((t=>t.default)),lazy:!1},d="https://www.bilibili.com/v/popular/rank/",p={name:"ranking",displayName:"排行",content:"排行",href:`${d}all`,active:document.URL.startsWith(d),touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,1235)).then((t=>t.default))},u={name:"userInfo",displayName:"个人信息",content:()=>Promise.resolve().then(n.bind(n,1739)).then((t=>t.default)),href:(0,r.getUID)()?"https://space.bilibili.com":null,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,6139)).then((t=>t.default)),lazy:!1,noPopupPadding:!0,boundingWidth:240},m={name:"logo",displayName:"Logo",content:()=>Promise.resolve().then(n.bind(n,9289)).then((t=>t.default)),href:"https://www.bilibili.com/"},h={name:"home",displayName:"主站",content:"主站",href:"https://www.bilibili.com/",touch:!0,boundingWidth:366,popupContent:()=>Promise.resolve().then(n.bind(n,7286)).then((t=>t.default))},f=t=>({...t,name:`${t.iframeName}Iframe`,content:t.displayName,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,1499)).then((t=>t.default)),boundingWidth:t.width,noPopupPadding:!0,transparentPopup:!0}),v=f({src:"https://www.bilibili.com/page-proxy/game-nav.html",href:"https://game.bilibili.com/",width:680,height:260,lazy:!0,displayName:"游戏中心",iframeName:"games"}),b=f({src:"https://live.bilibili.com/blackboard/dropdown-menu.html",href:"https://live.bilibili.com",width:528,height:266,lazy:!0,displayName:"直播",iframeName:"lives"}),g=f({src:"https://manga.bilibili.com/eden/bilibili-nav-panel.html",href:"https://manga.bilibili.com",width:720,height:266,lazy:!0,displayName:"漫画",iframeName:"manga"}),x=new Array(4).fill(0).map(((t,e)=>({name:`blank${e+1}`,displayName:`弹性空白${e+1}`,content:"",disabled:!0,flexStyle:"1 0 auto"}))),y=t=>({...t,content:t.displayName,active:document.URL.startsWith(t.href)}),w=(y({name:"ranking",displayName:"排行",href:"https://www.bilibili.com/v/popular/rank/all"}),y({name:"bangumi",displayName:"番剧",href:"https://www.bilibili.com/anime/"})),_=y({name:"drawing",displayName:"相簿",href:"https://h.bilibili.com"}),C=y({name:"music",displayName:"音频",href:"https://www.bilibili.com/audio/home/"}),k=y({name:"shop",displayName:"会员购",href:"https://show.bilibili.com"}),V=y({name:"match",displayName:"赛事",href:"https://www.bilibili.com/v/game/match/"}),S=y({name:"creations",displayName:"创作中心",href:"https://member.bilibili.com/platform/home"}),P={name:"upload",displayName:"投稿",content:()=>Promise.resolve().then(n.bind(n,7522)).then((t=>t.default)),touch:!0,href:"https://member.bilibili.com/platform/upload/video/frame",popupContent:()=>Promise.resolve().then(n.bind(n,7302)).then((t=>t.default))},I={name:"search",displayName:"搜索",content:()=>Promise.resolve().then(n.bind(n,6297)).then((t=>t.default)),disabled:!0},N={name:"feeds",displayName:"动态",content:"动态",href:"https://t.bilibili.com/",touch:!0,active:"https://t.bilibili.com/"===document.URL.replace(window.location.search,""),contentMounted:async t=>{const{getNotifyCount:e}=await Promise.resolve().then(n.t.bind(n,5441,23));await(async()=>{const n=await e();t.notifyCount=n})()},loginRequired:!0,popupContent:()=>Promise.resolve().then(n.bind(n,1845)).then((t=>t.default)),boundingWidth:300,noPopupPadding:!0};var L=n(1761);const z={name:"watchlater",displayName:"稍后再看",content:"稍后再看",href:"https://www.bilibili.com/watchlater/#/list",touch:!0,active:document.URL.startsWith("https://www.bilibili.com/watchlater/"),loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,2998)).then((t=>t.default))},O=`https://space.bilibili.com/${(0,r.getUID)()}/favlist`,T={name:"favorites",displayName:"收藏",content:"收藏",href:O,touch:!0,active:document.URL.replace(/\?.*$/,"")===O,loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,7476)).then((t=>t.default))},j="https://www.bilibili.com/account/history",D={name:"history",displayName:"历史",content:"历史",href:j,touch:!0,active:document.URL.replace(/\?.*$/,"")===j,loginRequired:!0,boundingWidth:400,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,2828)).then((t=>t.default))},[A,E,$,M]=x;var B=n(4938),U=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{directives:[{name:"show",rawName:"v-show",value:!t.item.hidden,expression:"!item.hidden"}],staticClass:"custom-navbar-item",class:{disabled:t.item.disabled,active:t.item.active,"input-within":t.inputWithin},style:{flex:t.item.flexStyle,order:t.item.order},attrs:{role:"listitem","data-name":t.item.name}},[t.item.href?e("CustomNavbarLink",{staticClass:"main-content",attrs:{"new-tab":t.newTab,href:!t.item.active&&!t.item.touch&&t.item.href},on:{mouseover:function(e){return e.target!==e.currentTarget?null:t.requestPopup()}}},["string"==typeof t.item.content?[t._v("\n "+t._s(t.item.content)+"\n ")]:e(t.item.content,{tag:"component",attrs:{item:t.item}})],2):e("div",{staticClass:"main-content",on:{click:function(e){!t.item.active&&!t.item.touch&&t.item.clickAction&&t.item.clickAction(e)}}},["string"==typeof t.item.content?[t._v("\n "+t._s(t.item.content)+"\n ")]:e(t.item.content,{tag:"component",attrs:{item:t.item}})],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.item.active,expression:"!item.active"}],staticClass:"notify-count"},[t.item.notifyCount>0?[t._v("\n "+t._s(t.item.notifyCount)+"\n ")]:t._e()],2),t._v(" "),e("div",{ref:"popupContainer",staticClass:"popup-container",on:{focusin:function(e){return t.toggleInputWithin(e,!0)},focusout:function(e){return t.toggleInputWithin(e,!1)}}},[t.item.popupContent?e("div",{staticClass:"popup",class:t.popupClasses(t.item)},[t.item.requestedPopup?e(t.item.popupContent,{ref:"popup",tag:"component",attrs:{container:t.$refs.popupContainer,item:t.item}}):t._e()],1):t._e()]),t._v(" "),e("div",{staticClass:"active-bar"})],1)};U._withStripped=!0;var W=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("a",t._g(t._b({attrs:{target:t.newTab?"_blank":null}},"a",t.$attrs,!1),t.$listeners),[t._t("default")],2)};W._withStripped=!0;const F=Vue.extend({props:{newTab:{type:Boolean,default:!0}}});var R=n(6499);const q=(0,R.Z)(F,W,[],!1,null,null,null).exports,H=t=>{const{name:e}=t,n=B.kO.navbarOptions;return e in n.openInNewTabOverrides?n.openInNewTabOverrides[e]:n.openInNewTab},Z=Vue.extend({components:{CustomNavbarLink:q},props:{item:{type:B.kO,required:!0}},data(){return{newTab:H(this.item),cancelListeners:none,inputWithin:!1}},mounted(){const t=this.item;t.contentMounted?.(t);const e=()=>{this.updateLinkOption()};(0,i.addComponentListener)("customNavbar.openInNewTabOverrides",e),(0,i.addComponentListener)("customNavbar.openInNewTab",e),this.cancelListeners=()=>{(0,i.removeComponentListener)("customNavbar.openInNewTabOverrides",e),(0,i.removeComponentListener)("customNavbar.openInNewTab",e)}},beforeDestroy(){this.cancelListeners?.()},methods:{toggleInputWithin(t,e){t.target instanceof HTMLInputElement?this.inputWithin=e:this.inputWithin=!1},updateLinkOption(){this.newTab=H(this.item)},popupClasses:t=>({transparent:t.transparentPopup,"no-padding":t.noPopupPadding,"iframe-container":t.iframeName}),triggerPopupShow:lodash.debounce((function(t){const{popup:e}=this.$refs;if(!e)return;const n=B.kO.navbarOptions.refreshOnPopup&&e.popupRefresh&&"function"==typeof e.popupRefresh;!t&&n&&e.popupRefresh(),e.popupShow&&"function"==typeof e.popupShow&&e.popupShow()}),300),async requestPopup(){const{item:t}=this;if(!t.disabled)return t.requestedPopup?void this.triggerPopupShow(!1):(t.requestedPopup=!0,void this.triggerPopupShow(!0))}}});var J=n(8332),Y=n.n(J),X=n(3016),G=n.n(X),Q={insert:"head",singleton:!1};Y()(G(),Q);G().locals;const K=(0,R.Z)(Z,U,[],!1,null,null,null).exports,tt=coreApis.spinQuery,et=coreApis.utils.urls,[nt]=(0,s.registerAndGetData)(B.rm,[A,m,h,w,p,_,C,v,b,k,V,g,E,I,$,u,c,N,L.V,z,T,D,S,P,M]),[at]=(0,s.registerAndGetData)(B.Je,{items:[]}),it=()=>{const t=Boolean((0,r.getUID)()),e=nt.filter((e=>!(e.loginRequired&&!t))).map((t=>new B.kO(t))).sort((0,o.ascendingSort)((t=>t.order)));return at.items=e,e},rt=Vue.extend({components:{NavbarItem:K},data:()=>({initItems:nt,items:it(),styles:[],height:B.kO.navbarOptions.height}),watch:{initItems(){this.items=it()}},async mounted(){(0,i.addComponentListener)("customNavbar.height",(t=>{document.documentElement.style.setProperty("--navbar-height",`${t}px`)}),!0),await(async t=>{(0,et.matchCurrentPage)(et.mainSiteUrls)&&(0,tt.sq)((()=>dqa(".animated-banner video, .banner-img img, #banner_link, .international-header .bili-banner, .bili-header__banner")),(t=>0!==t.length&&!!t.some((t=>!!t.style.backgroundImage||!!t.src||!!t.querySelector(".animated-banner"))))).then((e=>{0!==e.length&&((0,i.addComponentListener)("customNavbar.transparent",(e=>{(0,i.getComponentSettings)("hideBanner").enabled||t.toggleStyle(e,"transparent")}),!0),(0,i.addComponentListener)("hideBanner",(e=>{(0,i.getComponentSettings)("customNavbar").options.transparent&&t.toggleStyle(!e,"transparent")})))}))})(this)},methods:{toggleStyle(t,e){t&&!this.styles.includes(e)?this.styles.push(e):!t&&this.styles.includes(e)&&this.styles.splice(this.styles.indexOf(e),1)}}});var ot=n(6118),st=n.n(ot),lt={insert:"head",singleton:!1};Y()(st(),lt);st().locals;const ct=(0,R.Z)(rt,a,[],!1,null,null,null).exports},7476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>S});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"favorites-list"},[e("div",{staticClass:"header"},[e("FavoritesFolderSelect",{model:{value:t.folder,callback:function(e){t.folder=e},expression:"folder"}}),t._v(" "),e("div",{staticClass:"search"},[e("TextBox",{attrs:{linear:"",placeholder:"搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),e("a",{staticClass:"operation",attrs:{href:t.playLink,title:"播放全部",target:"_blank"}},[e("VButton",{staticClass:"play-all",attrs:{round:""}},[e("VIcon",{attrs:{icon:"mdi-play",size:18}})],1)],1),t._v(" "),e("a",{staticClass:"operation",attrs:{href:t.moreLink,title:"查看更多",target:"_blank"}},[e("VButton",{staticClass:"more-info",attrs:{round:""}},[e("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)],1),t._v(" "),e("div",{staticClass:"content"},[t.loading&&!t.searching?e("VLoading"):t.loading||t.canLoadMore||0!==t.filteredCards.length?e("transition-group",{staticClass:"cards",attrs:{name:"cards",tag:"div"}},[t._l(t.filteredCards,(function(n){return e("div",{key:n.id,staticClass:"favorite-card"},[e("a",{staticClass:"favorites-cover-container",attrs:{target:"_blank",href:"https://www.bilibili.com/video/"+n.bvid}},[e("DpiImage",{staticClass:"cover",attrs:{src:n.coverUrl,size:{width:130,height:85}}}),t._v(" "),e("div",{staticClass:"floating duration"},[t._v(t._s(n.durationText))]),t._v(" "),e("div",{staticClass:"floating favorite-time"},[t._v(t._s(n.favoriteTime))])],1),t._v(" "),e("a",{staticClass:"title",attrs:{target:"_blank",href:"https://www.bilibili.com/video/"+n.bvid,title:n.title}},[t._v(t._s(n.title))]),t._v(" "),n.upID?e("a",{staticClass:"up",attrs:{target:"_blank",href:"https://space.bilibili.com/"+n.upID,title:n.upName}},[e("DpiImage",{staticClass:"face",attrs:{"placeholder-image":"",src:n.upFaceUrl,size:20}}),t._v(" "),e("div",{staticClass:"name"},[t._v(t._s(n.upName))])],1):e("div",{staticClass:"description"},[t._v("\n "+t._s(n.description)+"\n ")])])})),t._v(" "),t.canLoadMore?e("ScrollTrigger",{key:"scroll-trigger",on:{trigger:function(e){return t.scrollTrigger()}}}):t._e()],2):e("VEmpty")],1)])};a._withStripped=!0;var i=n(9648),r=n(4289),o=n(605),s=n(2375),l=n(3414),c=n(9986);const d={id:0,name:"加载中...",count:0};var p=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("VDropdown",{staticClass:"favorites-folder-select",attrs:{round:"",items:t.folders,"key-mapper":t=>t.id,value:t.folder},on:{change:function(e){return t.change(e)}},scopedSlots:t._u([{key:"item",fn:function({item:e}){return[t._v(" "+t._s(e.name)+" ("+t._s(e.count)+") ")]}}])})};p._withStripped=!0;const u=(0,c.getComponentSettings)("customNavbar").options,m=Vue.extend({components:{VDropdown:i.VDropdown},model:{prop:"folder",event:"change"},props:{folder:{type:Object,required:!0}},data:()=>({folders:[]}),async created(){const t=(0,o.getUID)();if(!t)return;const e=`https://api.bilibili.com/medialist/gateway/base/created?pn=1&ps=100&up_mid=${t}&is_space=0`,n=await(0,s.getJsonWithCredentials)(e);if(0!==n.code)throw new Error(`获取收藏夹列表失败: ${n.message}`);if(this.folders=lodash.get(n,"data.list",[]).map((t=>({id:t.id,name:t.title,count:t.media_count}))),this.folders.length>0&&this.folder.id===d.id){const{lastFavoriteFolder:t}=u,e=this.folders.find((e=>e.id===t));e?this.$emit("change",e):this.$emit("change",this.folders[0])}},methods:{change(t){u.lastFavoriteFolder=t.id,this.$emit("change",t)}}});var h=n(6499);const f=(0,h.Z)(m,p,[],!1,null,null,null).exports;var v=n(7236);const b=(0,c.getComponentSettings)("customNavbar").options,g=t=>!!b.showDeadVideos||9!==t.attr&&1!==t.attr,x=t=>({id:t.id,aid:t.id,bvid:t.bvid,coverUrl:t.cover.replace("http:","https:"),favoriteTimestamp:1e3*t.fav_time,favoriteTime:(0,r.formatDate)(new Date(1e3*t.fav_time)),title:t.title,description:t.intro,duration:t.duration,durationText:(0,r.formatDuration)(t.duration),playCount:t.cnt_info.play,danmakuCount:t.cnt_info.danmaku,upName:t.upper.name,upFaceUrl:t.upper.face.replace("http:","https:"),upID:t.upper.mid});const y=Vue.extend({components:{FavoritesFolderSelect:f,VLoading:i.VLoading,VEmpty:i.VEmpty,VIcon:i.VIcon,VButton:i.VButton,TextBox:i.TextBox,DpiImage:i.DpiImage,ScrollTrigger:i.ScrollTrigger},mixins:[v.u],data:()=>({loading:!0,cards:[],filteredCards:[],page:1,hasMorePage:!0,searchPage:1,hasMoreSearchPage:!0,search:"",folder:d}),computed:{searching(){return""!==this.search},moreLink(){const{id:t}=this.folder;return 0===t?`https://space.bilibili.com/${(0,o.getUID)()}/favlist`:`https://space.bilibili.com/${(0,o.getUID)()}/favlist?fid=${t}`},playLink(){const{id:t}=this.folder;if(0!==t)return`https://www.bilibili.com/medialist/play/ml${t}`},canLoadMore(){return this.searching?this.hasMoreSearchPage:this.hasMorePage}},watch:{folder(){this.changeList()},search(t){""!==t?(t=t.toLowerCase(),this.hasMoreSearchPage=!0,this.searchPage=1,this.filteredCards=this.cards.filter((e=>e.title.toLowerCase().includes(t)||e.upName.toLowerCase().includes(t)))):this.filteredCards=this.cards}},methods:{async getCards(){const t=`https://api.bilibili.com/x/v3/fav/resource/list?media_id=${this.folder.id}&pn=${this.page}&ps=20&keyword=&order=mtime&type=0&tid=0&platform=web`,e=await(0,s.getJsonWithCredentials)(t);if(0!==e.code)throw new Error(`加载收藏夹内容失败: ${e.message}`);return e.data.medias?e.data.medias.filter(g).map(x):[]},async changeList(){if(0!==this.folder.id)try{this.search="",this.cards=[],this.loading=!0,this.searchPage=1,this.hasMoreSearchPage=!0,this.page=1,this.hasMorePage=!0,this.cards=await this.getCards(),this.filteredCards=this.cards}catch(t){(0,l.logError)(t)}finally{this.loading=!1}},async loadNextPage(){try{this.page++;const t=await this.getCards();this.cards.push(...t),this.hasMorePage=0!==t.length||this.cards.lengtht.id));this.filteredCards=i;const r=n.length+a.length===0,o=a.length<20;if(r||o)return void(this.hasMoreSearchPage=!1)}catch(t){console.error(t)}finally{this.loading=!1}}),200),scrollTrigger(){this.searching?this.debounceSearchAllList():this.loadNextPage()}}});var w=n(8332),_=n.n(w),C=n(4987),k=n.n(C),V={insert:"head",singleton:!1};_()(k(),V);k().locals;const S=(0,h.Z)(y,a,[],!1,null,null,null).exports},1845:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"navbar-feeds"},[e("TabControl",{ref:"tabControl",attrs:{tabs:t.tabs,"more-link":"https://t.bilibili.com/"},scopedSlots:t._u([{key:"more-link",fn:function(){return[t._v("\n 所有动态\n "),e("VIcon",{attrs:{icon:"feeds",size:18}})]},proxy:!0}])})],1)};a._withStripped=!0;var i=n(9648),r=n(9799),o=n(5441),s=n(7236);const l=[{name:"video",displayName:"视频",component:()=>Promise.resolve().then(n.bind(n,5931)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=video",count:0},{name:"bangumi",displayName:"番剧",component:()=>Promise.resolve().then(n.bind(n,2480)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=pgc",count:0},{name:"column",displayName:"专栏",component:()=>Promise.resolve().then(n.bind(n,8207)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=article",count:0},{name:"live",displayName:"直播",component:()=>Promise.resolve().then(n.bind(n,6544)).then((t=>t.default)),activeLink:"https://link.bilibili.com/p/center/index#/user-center/follow/1",count:0}],c=Vue.extend({components:{TabControl:i.TabControl,VIcon:i.VIcon},mixins:[s.u],data:()=>({tabs:l}),mounted(){this.refreshNotifyCount()},methods:{popupShow(){this.item.notifyCount=0},async refreshNotifyCount(){const{tabControl:t}=this.$refs;l.forEach((async e=>{if(t.selectedTab===e)return;if("live"===e.name)return;const n=r.feedsCardTypes[e.name];if(!n.apiType)return;const a=await(0,o.getNotifyCount)(n.apiType);e.count=a,console.log(e)}))}}});var d=n(8332),p=n.n(d),u=n(5256),m=n.n(u),h={insert:"head",singleton:!1};p()(m(),h);m().locals;const f=(0,n(6499).Z)(c,a,[],!1,null,null,null).exports},2480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"bangumi-feeds"},[t.loading?e("VLoading"):t.loading||0!==t.cards.length?[e("div",{staticClass:"bangumi-feeds-content"},t._l(t.cards,(function(t){return e("BangumiCard",{key:t.id,attrs:{"is-new":t.new,data:t}})})),1),t._v(" "),t.hasMorePage?e("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:e("VEmpty")],2)};a._withStripped=!0;var i=n(9799),r=n(5441);const o=coreApis.componentApis.feeds.BangumiCard;var s=n.n(o),l=n(8936);const c=Vue.extend({components:{BangumiCard:s()},mixins:[(0,l.I)(i.feedsCardTypes.bangumi,(t=>{const e=lodash.get(t,"modules.module_dynamic.major.pgc"),n=lodash.get(t,"modules.module_author");return{id:t.id_str,title:n.name,coverUrl:n.face,epCoverUrl:e.cover,epTitle:e.title.replace(new RegExp(`^${n.name}:`),""),url:e.jump_url,get new(){return(0,r.isNewID)(this.id)}}}))]});var d=n(8332),p=n.n(d),u=n(442),m=n.n(u),h={insert:"head",singleton:!1};p()(m(),h);m().locals;const f=(0,n(6499).Z)(c,a,[],!1,null,null,null).exports},8207:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"column-feeds"},[t.loading?e("VLoading"):t.loading||0!==t.cards.length?[e("div",{staticClass:"columns-feeds-content"},t._l(t.cards,(function(t){return e("ColumnCard",{key:t.id,attrs:{"is-new":t.new,data:t}})})),1),t._v(" "),t.hasMorePage?e("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:e("VEmpty")],2)};a._withStripped=!0;var i=n(9799),r=n(5441);const o=coreApis.componentApis.feeds.ColumnCard;var s=n.n(o),l=n(8936);const c=Vue.extend({components:{ColumnCard:s()},mixins:[(0,l.I)(i.feedsCardTypes.column,(t=>{const e=lodash.get(t,"modules.module_dynamic.major.article"),n=lodash.get(t,"modules.module_author");return{id:t.id_str,cvID:e.id.toString(),title:e.title,upName:n.name,upFaceUrl:n.face,upID:n.mid,description:e.desc,covers:e.covers,originalCovers:e.covers,get new(){return(0,r.isNewID)(this.id)}}}))]});var d=n(8332),p=n.n(d),u=n(6512),m=n.n(u),h={insert:"head",singleton:!1};p()(m(),h);m().locals;const f=(0,n(6499).Z)(c,a,[],!1,null,null,null).exports},6544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"live-feeds"},[t.loading?e("VLoading"):t.loading||0!==t.cards.length?t._e():e("VEmpty"),t._v(" "),e("transition-group",{staticClass:"live-feeds-content",attrs:{name:"cards",tag:"div"}},t._l(t.cards,(function(n){return e("a",{key:n.id,staticClass:"live-card",attrs:{target:"_blank",href:n.url}},[e("div",{staticClass:"face-container"},[e("DpiImage",{staticClass:"face",attrs:{size:48,src:n.upFaceUrl}})],1),t._v(" "),e("div",{staticClass:"live-info"},[e("div",{staticClass:"live-title",attrs:{title:n.title}},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"live-name",attrs:{title:n.upName}},[t._v(t._s(n.upName))])])])})),0)],1)};a._withStripped=!0;var i=n(9648),r=n(2375);const o=Vue.extend({components:{VLoading:i.VLoading,VEmpty:i.VEmpty,DpiImage:i.DpiImage},data:()=>({loading:!0,rawItems:[],hasMorePage:!0}),computed:{cards(){return this.rawItems.map((t=>({id:t.roomid,title:t.title,upFaceUrl:t.face,upName:t.uname,url:t.link})))}},async created(){const[t]=(0,r.responsiveGetPages)({api:t=>(0,r.getJsonWithCredentials)(`https://api.live.bilibili.com/relation/v1/feed/feed_list?page=${t}&pagesize=24`),getList:t=>lodash.get(t,"data.list",[]),getTotal:t=>lodash.get(t,"data.results",0)});this.rawItems=await t,this.loading=!1}});var s=n(8332),l=n.n(s),c=n(6086),d=n.n(c),p={insert:"head",singleton:!1};l()(d(),p);d().locals;const u=(0,n(6499).Z)(o,a,[],!1,null,null,null).exports},5931:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"video-feeds"},[t.loading?e("VLoading"):t.loading||0!==t.cards.length?[e("div",{staticClass:"video-feeds-content"},[e("transition-group",{staticClass:"left-column",attrs:{name:"cards",tag:"div"}},t._l(t.columnedCards.left,(function(t){return e("VideoCard",{key:t.id,attrs:{orientation:"vertical","is-new":t.new,"show-stats":!1,data:t}})})),1),t._v(" "),e("transition-group",{staticClass:"right-column",attrs:{name:"cards",tag:"div"}},t._l(t.columnedCards.right,(function(t){return e("VideoCard",{key:t.id,attrs:{orientation:"vertical","is-new":t.new,"show-stats":!1,data:t}})})),1)],1),t._v(" "),t.hasMorePage?e("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:e("VEmpty")],2)};a._withStripped=!0;var i=n(4289),r=n(5441),o=n(9799);const s=coreApis.componentApis.feeds.VideoCard;var l=n.n(s),c=n(8936);const d=t=>{const e=Number(new Date),n=new Date(t),a=[n.getHours(),n.getMinutes(),n.getSeconds()].map((t=>t.toString().padStart(2,"0"))).join(":");let i;return i=new Date(e).getFullYear()!==n.getFullYear()?[n.getFullYear(),n.getMonth()+1,n.getDate()]:[n.getMonth()+1,n.getDate()],`${i.map((t=>t.toString().padStart(2,"0"))).join("-")} ${a}`},p=t=>{const e=Number(new Date);if(e-864e5t.toString().padStart(2,"0"))).join("-")}`},u=Vue.extend({components:{VideoCard:l()},mixins:[(0,c.I)(o.feedsCardTypes.video,(t=>{const e=lodash.get(t,"modules.module_dynamic.major.archive"),n=lodash.get(t,"modules.module_author");return{id:t.id_str,aid:parseInt(e.aid),bvid:e.bvid,videoUrl:`https://www.bilibili.com/${e.bvid}`,coverUrl:e.cover,title:e.title,duration:(0,i.parseDuration)(e.duration_text),durationText:(0,i.formatDuration)((0,i.parseDuration)(e.duration_text)),description:e.desc,pubTime:d(1e3*n.pub_ts),pubTimeText:p(1e3*n.pub_ts),upFaceUrl:n.face,upName:n.name,upID:n.mid,watchlater:!0,playCount:(0,i.formatCount)((0,i.parseCount)(e.stat.play)),get new(){return(0,r.isNewID)(this.id)}}}))],computed:{columnedCards(){const{cards:t}=this;return{left:t.filter(((t,e)=>e%2==0)),right:t.filter(((t,e)=>e%2!=0))}}},methods:{onCardsUpdate:t=>(0,o.groupVideoFeeds)(t)}});var m=n(8332),h=n.n(m),f=n(5741),v=n.n(f),b={insert:"head",singleton:!1};h()(v(),b);v().locals;const g=(0,n(6499).Z)(u,a,[],!1,null,"d3e1a0c0",null).exports},2828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>w});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom-navbar-history-list"},[e("div",{staticClass:"header"},[e("div",{staticClass:"header-row"},[e("div",{staticClass:"search"},[e("TextBox",{attrs:{placeholder:"搜索",linear:""},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),e("div",{staticClass:"operations"},[e("div",{staticClass:"operation",on:{click:t.toggleHistoryPause}},[t.paused?e("VButton",{attrs:{title:"继续记录历史",round:""}},[e("VIcon",{attrs:{icon:"mdi-play",size:14}})],1):e("VButton",{attrs:{title:"暂停记录历史",round:""}},[e("VIcon",{attrs:{icon:"mdi-pause",size:14}})],1)],1),t._v(" "),e("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/account/history"}},[e("VButton",{attrs:{title:"查看更多",round:""}},[e("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)])]),t._v(" "),e("div",{staticClass:"header-row"},[e("div",{staticClass:"row-title"},[t._v("过滤:")]),t._v(" "),e("div",{staticClass:"type-filters"},t._l(t.types,(function(n){return e("div",{key:n.name,staticClass:"type-filter"},[e("RadioButton",{class:{checked:n.checked},attrs:{title:(n.checked?"不显示":"显示")+n.displayName,checked:n.checked,disabled:t.loading},on:{change:function(e){return t.toggleTypeFilter(n)}}},[t._v("\n "+t._s(n.displayName)+"\n ")])],1)})),0)])]),t._v(" "),e("div",{staticClass:"content"},[t.loading?e("VLoading"):t.loading||0!==t.groups.length?e("transition-group",{staticClass:"cards",attrs:{name:"cards",tag:"div"}},[t._l(t.groups,(function(n){return e("div",{key:n.name,staticClass:"time-group"},[e("div",{staticClass:"time-group-name"},[t._v("\n "+t._s(n.name)+"\n ")]),t._v(" "),e("transition-group",{staticClass:"time-group-items",attrs:{name:"time-group",tag:"div"}},t._l(n.items,(function(n){return e("div",{key:n.id,staticClass:"time-group-item"},[e("a",{staticClass:"history-cover-container",attrs:{target:"_blank",href:n.url}},[e("DpiImage",{staticClass:"cover",attrs:{src:n.cover,size:{width:160,height:110},"placeholder-image":""}}),t._v(" "),n.progress?e("div",{staticClass:"progress",style:{width:100*n.progress+"%"}}):t._e(),t._v(" "),n.progressText?e("div",{staticClass:"floating progress-number"},[t._v("\n "+t._s(n.progress>=1?"已看完":n.progressText)+"\n ")]):t._e(),t._v(" "),void 0!==n.liveStatus?e("div",{staticClass:"floating duration live-status",class:{on:1===n.liveStatus}},[t._v("\n "+t._s(1===n.liveStatus?"直播中":"未开播")+"\n ")]):t._e(),t._v(" "),n.durationText?e("div",{staticClass:"floating duration"},[t._v(t._s(n.durationText))]):t._e()],1),t._v(" "),e("a",{staticClass:"title",attrs:{target:"_blank",href:n.url,title:n.title}},[t._v(t._s(n.title||n.upName+"的直播间"))]),t._v(" "),e("a",{staticClass:"up",attrs:{target:"_blank",href:"pgc"===n.type?n.url:"https://space.bilibili.com/"+n.upID,title:n.upName}},[n.upFaceUrl?e("DpiImage",{staticClass:"up-face",attrs:{size:18,src:n.upFaceUrl}}):t._e(),t._v(" "),e("div",{staticClass:"up-name"},[t._v(t._s(n.upName))])],1),t._v(" "),n.timeText?e("div",{staticClass:"time",attrs:{title:new Date(n.viewAt).toLocaleString()}},[t._v("\n "+t._s(n.timeText)+"\n ")]):t._e()])})),0)],1)})),t._v(" "),t.canNextPage?e("ScrollTrigger",{key:"scroll-trigger",on:{trigger:function(e){return t.nextPage()}}}):t._e()],2):e("VEmpty")],1)])};a._withStripped=!0;var i=n(2375),r=n(605),o=n(4577),s=n(9648),l=n(7236),c=n(4289);let d=function(t){return t.All="all",t.Video="archive",t.Live="live",t.Article="article",t.Bangumi="pgc",t.Cheese="cheese",t}({});const p=[{name:d.All,displayName:"全部",icon:"",checked:!0,apiType:""},{name:d.Video,displayName:"视频",icon:"mdi-play-circle-outline",checked:!1,apiType:"archive"},{name:d.Bangumi,displayName:"番剧",icon:"mdi-television-classic",checked:!1,apiType:"archive"},{name:d.Live,displayName:"直播",icon:"mdi-video-wireless-outline",checked:!1,apiType:"live"},{name:d.Article,displayName:"专栏",icon:"mdi-newspaper-variant-outline",checked:!1,apiType:"article"}],u=()=>{const t=new Date,e=Number(new Date(t.getFullYear(),t.getMonth(),t.getDate())),n=864e5;return{now:t,today:e,oneDay:n,yesterday:e-n,lastWeek:e-7*n}},m=t=>{const{yesterday:e}=u();return Number(t)>=e?`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`:`${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")} ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},h=t=>{t.history.business===d.Article&&(t.history.cid=t.history.oid);const{epid:e,bvid:n,cid:a,oid:i}=t.history,o=t.progress>0?`t=${t.progress}`:"t=0",s=-1===t.progress?1:t.progress/t.duration,l=t=>t.replace("http:","https:"),p=new Date(1e3*t.view_at),u=t.cover?l(t.cover):t.covers?l(t.covers[0]):"",h={title:t.title,viewAt:1e3*t.view_at,time:p,timeText:m(p),cover:u,covers:t.covers?.map(l)??[],progress:s,progressText:Number.isNaN(s)?null:`${(0,r.fixed)(100*s,1)}%`,duration:t.duration,durationText:t.duration?(0,c.formatDuration)(t.duration):null,upName:t.author_name,upFaceUrl:l(t.author_face),upID:t.author_mid};if(t.history.business===d.Cheese)return{...h,id:i,upName:t.title,title:t.show_title,url:t.uri,type:d.Video};if(e)return{...h,id:e,url:`https://www.bilibili.com/bangumi/play/ep${e}?${o}`,title:t.show_title||t.title,upName:t.title,type:d.Bangumi};if(n)return{...h,id:n,url:`https://www.bilibili.com/video/${n}?p=${t.history.page}&${o}`,type:d.Video};if(a)return{...h,id:a,url:`https://www.bilibili.com/read/cv${a}`,type:d.Article};if(i)return{...h,id:i,url:`https://live.bilibili.com/${i}`,liveStatus:t.live_status,type:d.Live};throw console.error("unknown history item type",t),new Error("未知的历史项目类型")},f=Vue.extend({components:{VButton:s.VButton,VIcon:s.VIcon,RadioButton:s.RadioButton,TextBox:s.TextBox,VLoading:s.VLoading,VEmpty:s.VEmpty,ScrollTrigger:s.ScrollTrigger,DpiImage:s.DpiImage},mixins:[l.u],data:()=>({types:p,search:"",viewTime:0,cards:[],groups:[],loading:!0,hasMorePage:!0,paused:!1}),computed:{canNextPage(){return""===this.search&&!this.loading&&this.hasMorePage}},watch:{search:lodash.debounce((function(){this.reloadHistoryItems()}),200)},async created(){try{await Promise.all([this.nextPage(),this.updateHistoryPauseState()])}finally{this.loading=!1}},methods:{toggleTypeFilter(t){p.forEach((e=>e.checked=e.name===t.name)),this.reloadHistoryItems()},async reloadHistoryItems(){this.cards=[],this.viewTime=0,this.hasMorePage=!0,this.loading=!0;try{await this.nextPage()}finally{this.loading=!1}},filterFunc(t){return!(!p.find((t=>t.name===d.All)).checked&&p.some((e=>e.name===t.type&&!e.checked)))&&!(!t.title.toLowerCase().includes(this.search.toLowerCase())&&!t.upName.toLowerCase().includes(this.search.toLowerCase()))},updateGroups(){this.groups=(t=>{if(0===t.length)return[];const{today:e,yesterday:n,lastWeek:a}=u(),i=lodash.groupBy(t,(t=>t.viewAt>=e?"今天":t.viewAt>=n?"昨天":t.viewAt>=a?"本周":"更早"));return Object.entries(i).map((t=>{let[e,n]=t;return{name:e,items:n}}))})(this.cards.filter(this.filterFunc))},async nextPage(){const t=await(async(t,e)=>{const n=new URLSearchParams;t&&n.set("view_at",Math.round(t/1e3).toString()),n.set("type",e?.apiType??"");const{list:a}=await(0,i.bilibiliApi)((0,i.getJsonWithCredentials)(`https://api.bilibili.com/x/web-interface/history/cursor?${n.toString()}`),"获取历史记录失败");return Array.isArray(a)?a.map(h).filter((t=>null!==t&&(!e||e.name===d.All||t.type===e.name))):[]})(this.viewTime,p.find((t=>t.checked))),e=lodash.uniqBy(this.cards.concat(t).sort((0,o.descendingSort)((t=>t.viewAt))),(t=>t.id));this.cards=e,this.updateGroups(),e.length>0&&(this.viewTime=lodash.last(e).viewAt),this.hasMorePage=0!==t.length,this.hasMorePage&&0===this.groups.length&&await this.nextPage()},async updateHistoryPauseState(){const t=await(0,i.bilibiliApi)((0,i.getJsonWithCredentials)("https://api.bilibili.com/x/v2/history/shadow"));this.paused=!0===t},async toggleHistoryPause(){const t=!this.paused;try{this.paused=t,await(0,i.postTextWithCredentials)("https://api.bilibili.com/x/v2/history/shadow/set",new URLSearchParams({csrf:(0,r.getCsrf)(),switch:t.toString()}).toString())}catch(e){this.paused=!t}}}});var v=n(8332),b=n.n(v),g=n(5177),x=n.n(g),y={insert:"head",singleton:!1};b()(x(),y);x().locals;const w=(0,n(6499).Z)(f,a,[],!1,null,null,null).exports},7286:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"home-popup",attrs:{role:"list"}},t._l(Object.entries(t.categories),(function([n,a]){return e("div",{key:n,staticClass:"category-item",class:{main:null!==a.code},attrs:{role:"listitem"}},[e("a",{attrs:{href:a.link,target:"_blank"}},[e("svg",{attrs:{"aria-hidden":"true"}},[e("use",{attrs:{href:"#header-icon-"+a.icon,"xlink:href":"#header-icon-"+a.icon}})]),t._v(" "),e("div",{staticClass:"name"},[t._v(t._s(n))]),t._v(" "),e("span",{staticClass:"count"},[null!==a.count?[t._v(t._s(a.count))]:t._e()],2)]),t._v(" "),a.subCategories?e("div",{staticClass:"sub-regions-popup popup"},t._l(Object.entries(a.subCategories),(function([n,a]){return e("a",{key:n,staticClass:"sub-region",attrs:{href:a,target:"_blank"}},[t._v(t._s(n))])})),0):t._e()])})),0)};a._withStripped=!0;var i=n(3861),r=n(7236);const o=lodash.cloneDeep(i.categories);Object.values(o).forEach((t=>{t.count=null}));let s=!1;const l=Vue.extend({mixins:[r.u],data:()=>({categories:o}),async created(){if(s)return;s=!0;const{bilibiliApi:t,getJson:e}=await Promise.resolve().then(n.t.bind(n,2375,23)),{addCategoryIcons:a}=await Promise.resolve().then(n.t.bind(n,3861,23));a();const{region_count:i={}}=await t(e("https://api.bilibili.com/x/web-interface/online"),"[自定义顶栏] 分区投稿信息获取失败");Object.values(this.categories).forEach((t=>{t.code&&(Array.isArray(t.code)?t.count=lodash.sum(t.code.map((t=>i[t]))):t.count=i[t.code])}))},mounted(){this.$el.style.maxHeight="inherit",this.$nextTick((()=>{this.$el.style.maxHeight=""}))}});var c=n(8332),d=n.n(c),p=n(7516),u=n.n(p),m={insert:"head",singleton:!1};d()(u(),m);u().locals;const h=(0,n(6499).Z)(l,a,[],!1,null,null,null).exports},1499:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("iframe",{attrs:{src:t.item.src,frameborder:"0",width:t.item.width,height:t.item.height}})};a._withStripped=!0;var i=n(7236),r=n(4938);const o=Vue.extend({name:"IframePopup",mixins:[i.u],props:{item:{type:r.kO,required:!0}}});const s=(0,n(6499).Z)(o,a,[],!1,null,null,null).exports},9289:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom-navbar-logo-container"},[t.seasonLogoUrl?e("div",{staticClass:"custom-navbar-logo season",style:{backgroundImage:`url(${t.seasonLogoUrl})`}}):e("VIcon",{staticClass:"custom-navbar-logo",attrs:{icon:"logo"}})],1)};a._withStripped=!0;var i=n(9986),r=n(2375),o=n(9648);const s=Vue.extend({name:"NavbarLogo",components:{VIcon:o.VIcon},data:()=>({seasonLogoUrl:""}),watch:{seasonLogoUrl(){document.body.classList.toggle("season-logo-enabled",Boolean(this.seasonLogoUrl))}},async created(){(0,i.addComponentListener)("customNavbar.seasonLogo",(async t=>{if(!t)return void(this.seasonLogoUrl="");const e=await(0,r.getJson)("https://api.bilibili.com/x/web-show/page/header?resource_id=1");0===e.code?this.seasonLogoUrl=lodash.get(e,"data.litpic","").replace("http:","https:"):this.seasonLogoUrl=""}),!0)}});var l=n(8332),c=n.n(l),d=n(2470),p=n.n(d),u={insert:"head",singleton:!1};c()(p(),u);p().locals;const m=(0,n(6499).Z)(s,a,[],!1,null,null,null).exports},6755:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"messages-popup",attrs:{role:"list"}},t._l(t.entries,(function(n){return e("div",{key:n.name,staticClass:"message-entry",attrs:{role:"listitem"}},[e("a",{attrs:{"data-prop":n.prop,target:"_blank",href:n.href,"data-count":n.count||null},on:{click:function(e){return t.clearCount(n)}}},[t._v(t._s(n.name))])])})),0)};a._withStripped=!0;var i=n(2375),r=n(7236);const o=[{prop:"reply",href:"https://message.bilibili.com/#/reply",name:"回复我的"},{prop:"at",href:"https://message.bilibili.com/#/at",name:"@我的"},{prop:"like",href:"https://message.bilibili.com/#/love",name:"收到的赞"},{prop:"sys_msg",href:"https://message.bilibili.com/#/system",name:"系统通知"},{prop:"user_msg",href:"https://message.bilibili.com/#/whisper",name:"我的消息"},{href:"https://message.bilibili.com/#/archive",name:"私信存档"},{href:"https://message.bilibili.com/#/config",name:"消息设置"}],s=Vue.extend({name:"MessagesPopup",mixins:[r.u],data:()=>({entries:o.map((t=>(t.count=0,t))),settings:{notify:!0,hideNotFollowedCount:!1,json:{}}}),async created(){await this.fetchSettings(),this.notify()},methods:{popupRefresh(){this.notify()},async fetchSettings(){const t=await(0,i.getJsonWithCredentials)("https://api.vc.bilibili.com/link_setting/v1/link_setting/get?msg_notify=1&show_unfollowed_msg=1");0===t.code&&(this.settings={notify:3!==t.data.msg_notify,hideNotFollowedCount:1===t.data.show_unfollowed_msg,json:t.data})},async notify(){if(!this.settings.notify)return;const[t,e]=await Promise.all([(0,i.getJsonWithCredentials)("https://api.bilibili.com/x/msgfeed/unread"),(0,i.getJsonWithCredentials)("https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread")]);t.data.user_msg=e.data.follow_unread||0,this.settings.hideNotFollowedCount||(t.data.user_msg+=e.data.unfollow_unread||0),this.item.notifyCount=o.reduce(((e,n)=>e+(n.prop?t.data[n.prop]:0)),0),this.item.notifyCount&&(console.log(o),o.forEach((e=>{if(!e.prop)return;const n=t.data[e.prop];console.log(e.prop,e.count,n),n>0&&(e.count=n)})))},clearCount(t){this.item.notifyCount-=t.count,t.count=0}}});var l=n(8332),c=n.n(l),d=n(2511),p=n.n(d),u={insert:"head",singleton:!1};c()(p(),u);p().locals;const m=(0,n(6499).Z)(s,a,[],!1,null,"38cbdbce",null).exports},1235:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"ranking-popup",attrs:{role:"list"}},t._l(t.entries,(function(n){return e("div",{key:n.name,staticClass:"ranking-entry",attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:n.href}},[t._v(t._s(n.name))])])})),0)};a._withStripped=!0;var i=n(7236);const r=[{href:"https://www.bilibili.com/v/popular/all",name:"综合热门"},{href:"https://www.bilibili.com/v/popular/weekly",name:"每周必看"},{href:"https://www.bilibili.com/v/popular/history",name:"入站必刷"},{href:"https://www.bilibili.com/v/popular/rank/all",name:"排行榜"},{href:"https://www.bilibili.com/v/popular/music",name:"全站音乐榜"},{href:"https://www.bilibili.com/v/popular/drama",name:"短剧榜"}],o=Vue.extend({name:"RankingPopup",mixins:[i.u],data:()=>({entries:r})});var s=n(8332),l=n.n(s),c=n(9198),d=n.n(c),p={insert:"head",singleton:!1};l()(d(),p);d().locals;const u=(0,n(6499).Z)(o,a,[],!1,null,"6d9b8319",null).exports},6297:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var a=function(){var t=this._self._c;this._self._setupProxy;return t("div",{staticClass:"custom-navbar-search"},[t("LaunchBar")],1)};a._withStripped=!0;const i=coreApis.componentApis.launchBar.LaunchBar;var r=n.n(i);const o=Vue.extend({components:{LaunchBar:r()}});var s=n(8332),l=n.n(s),c=n(1572),d=n.n(c),p={insert:"head",singleton:!1};l()(d(),p);d().locals;const u=(0,n(6499).Z)(o,a,[],!1,null,null,null).exports},3461:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom-navbar-extra-options"},[t.login?e("VButton",{ref:"button",on:{mouseover:function(e){return t.loadNavbarSettings()},click:function(e){return t.toggleNavbarSettings()}}},[t._v("\n 布局设置"),e("VIcon",{attrs:{icon:"right-arrow",size:16}})],1):t._e()],1)};a._withStripped=!0;var i=n(605),r=n(9648),o=n(4241);const s=Vue.extend({components:{VIcon:r.VIcon,VButton:r.VButton},data:()=>({login:Boolean((0,i.getUID)())}),methods:{async loadNavbarSettings(){if(await(0,o.loadNavbarSettings)()){const t=this.$refs.button.$el;(0,o.setTriggerElement)(t)}},toggleNavbarSettings:o.toggleNavbarSettings}});var l=n(8332),c=n.n(l),d=n(8924),p=n.n(d),u={insert:"head",singleton:!1};c()(p(),u);p().locals;const m=(0,n(6499).Z)(s,a,[],!1,null,null,null).exports},7783:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("VPopup",{ref:"popup",staticClass:"custom-navbar-settings",attrs:{fixed:"",lazy:!1,"trigger-element":t.triggerElement},model:{value:t.open,callback:function(e){t.open=e},expression:"open"}},[e("div",{staticClass:"navbar-settings-header"},[e("VIcon",{staticClass:"title-icon",attrs:{icon:"mdi-sort",size:24}}),t._v(" "),e("div",{staticClass:"title"},[t._v("顶栏布局设置")]),t._v(" "),e("div",{staticClass:"grow"}),t._v(" "),e("div",{staticClass:"close",on:{click:function(e){t.open=!1}}},[e("VIcon",{attrs:{icon:"close",size:18}})],1)],1),t._v(" "),e("div",{staticClass:"navbar-settings-content"},[e("div",{staticClass:"navbar-settings-section"},[e("div",{staticClass:"navbar-settings-section-title"},[t._v("边缘间距")]),t._v(" "),e("div",{staticClass:"navbar-settings-section-description"},[t._v("\n 设定两侧边缘处的间距, 单位为百分比, 100%为整个顶栏的宽度.\n "),e("br"),t._v("空间不足时, 实际呈现的间距会自动缩小.\n ")]),t._v(" "),e("div",{staticClass:"navbar-settings-section-content",on:{mouseover:function(e){return t.peekPadding(!0)},mouseout:function(e){return t.peekPadding(!1)}}},[e("VSlider",{attrs:{min:0,max:40,step:.5},model:{value:t.padding,callback:function(e){t.padding=e},expression:"padding"}}),t._v(" "),e("div",{staticClass:"padding-value"},[t._v(t._s(t.padding.toFixed(1))+"%")])],1)]),t._v(" "),e("div",{staticClass:"navbar-settings-section"},[e("div",{staticClass:"navbar-settings-section-title"},[t._v("元素呈现")]),t._v(" "),e("div",{staticClass:"navbar-settings-section-description"},[t._v("\n 按住并拖动可以调整顺序, 点击眼睛图标可以切换隐藏/显示.\n ")]),t._v(" "),t.loaded?t._e():e("VLoading"),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],ref:"navbarSortList",staticClass:"navbar-settings-section-content navbar-sort-list"},t._l(t.rendered.items,(function(n){return e("div",{key:n.name,staticClass:"navbar-sort-item",class:{"navbar-hidden":n.hidden},attrs:{"data-name":n.name},on:{mouseover:function(e){return t.peekItem(n,!0)},mouseout:function(e){return t.peekItem(n,!1)}}},[e("div",{staticClass:"item-name"},[t._v("\n "+t._s(n.displayName)+"\n ")]),t._v(" "),e("div",{staticClass:"toggle-visible"},[e("VIcon",{attrs:{size:18,icon:n.hidden?"mdi-eye-off-outline":"mdi-eye-outline"},on:{click:function(e){return t.toggleVisible(n)}}})],1)])})),0)],1)])])};a._withStripped=!0;var i=n(9648),r=n(9986),o=n(605);const s=coreApis.runtimeLibrary;var l=n(9153),c=n(4938);const d=t=>{t.forEach(((t,e)=>{t.order!==e&&(t.order=e)}));const e=Object.fromEntries(t.map((t=>[t.name,t.order])));c.kO.navbarOptions.order=e},{navbarOptions:p}=c.kO,[u]=(0,l.getData)(c.Je),m=Vue.extend({components:{VPopup:i.VPopup,VIcon:i.VIcon,VSlider:i.VSlider,VLoading:i.VLoading},props:{triggerElement:{type:HTMLElement,default:null}},data:()=>({open:!1,padding:p.padding,rendered:u,hidden:p.hidden,loaded:!1}),watch:{padding:lodash.debounce((t=>{p.padding=t}),200)},async mounted(){(0,r.addComponentListener)("customNavbar.padding",(t=>{this.padding!==t&&(this.padding=t)}));const t=this.$refs.navbarSortList;var e;(await s.SortableJSLibrary).create(t,{delay:100,forceFallback:!0,onEnd:t=>{this.onSort(t)}}),(e=u.items).every(((t,e)=>t.order===e))||d(e),this.loaded=!0},methods:{toggle(){this.$refs.popup.toggle()},peekPadding(t){(0,o.dqa)(".custom-navbar .padding").forEach((e=>e.classList.toggle("peek",t)))},peekItem(t,e){t.element?.classList.toggle("peek",e)},onSort(t){const e=this.$refs.navbarSortList,n=t.item;console.log(`${n.getAttribute("data-name")} ${t.oldIndex}->${t.newIndex}`);const a=Object.fromEntries([...e.children].map(((t,e)=>[t.getAttribute("data-name"),e])));this.rendered.items=((t,e)=>{const n=lodash.sortBy(t,(t=>e[t.name]));return d(n),n})(u.items,a)},toggleVisible(t){p.hidden.includes(t.name)?(lodash.pull(p.hidden,t.name),t.hidden=!1,console.log("delete",t.name)):(p.hidden.push(t.name),t.hidden=!0,console.log("add",t.name))}}});var h=n(8332),f=n.n(h),v=n(8093),b=n.n(v),g={insert:"head",singleton:!1};f()(b(),g);b().locals;const x=(0,n(6499).Z)(m,a,[],!1,null,null,null).exports},7729:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("SubscriptionsList",{attrs:{type:"bangumi",filter:t.filter}})};a._withStripped=!0;var i=n(664);const r=Vue.extend({components:{SubscriptionsList:i.Z},props:{filter:{type:[Object,null],default:null}}});const o=(0,n(6499).Z)(r,a,[],!1,null,null,null).exports},7767:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("SubscriptionsList",{attrs:{type:"cinema",filter:t.filter}})};a._withStripped=!0;var i=n(664);const r=Vue.extend({components:{SubscriptionsList:i.Z},props:{filter:{type:[Object,null],default:null}}});const o=(0,n(6499).Z)(r,a,[],!1,null,null,null).exports},3472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"navbar-subscriptions"},[e("TabControl",{ref:"tabControl",attrs:{tabs:t.tabs,"more-link":t.moreLink},scopedSlots:t._u([{key:"header-item",fn:function(){return[e("div",{staticClass:"navbar-subscriptions-filter"},[e("VDropdown",{attrs:{round:"",items:t.filterItems},model:{value:t.selectedFilter,callback:function(e){t.selectedFilter=e},expression:"selectedFilter"}})],1)]},proxy:!0}])})],1)};a._withStripped=!0;var i=n(9648),r=n(605),o=n(7236),s=n(1761),l=n(9978);const c=[{name:"all",value:{viewAll:!0,status:l.y.Viewing},displayName:"全部"},{name:"viewing",value:{viewAll:!1,status:l.y.Viewing},displayName:"在看"},{name:"toView",value:{viewAll:!1,status:l.y.ToView},displayName:"想看"},{name:"viewed",value:{viewAll:!1,status:l.y.Viewed},displayName:"看过"}],d=Vue.extend({components:{TabControl:i.TabControl,VDropdown:i.VDropdown},mixins:[o.u],data(){const t=(0,r.getUID)();return{uid:t,filterItems:c,selectedFilter:c[0],moreLink:e=>`https://space.bilibili.com/${t}/${e.name}`,filter:{viewAll:!0,status:l.y.Viewing}}},computed:{tabs(){return[{name:s.N.Bangumi,displayName:"追番",activeLink:`https://space.bilibili.com/${this.uid}/bangumi`,component:()=>Promise.resolve().then(n.bind(n,7729)).then((t=>t.default)),propsData:{filter:this.selectedFilter.value}},{name:s.N.Cinema,displayName:"追剧",activeLink:`https://space.bilibili.com/${this.uid}/cinema`,component:()=>Promise.resolve().then(n.bind(n,7767)).then((t=>t.default)),propsData:{filter:this.selectedFilter.value}}]}}});var p=n(8332),u=n.n(p),m=n(8894),h=n.n(m),f={insert:"head",singleton:!1};u()(h(),f);h().locals;const v=(0,n(6499).Z)(d,a,[],!1,null,null,null).exports},664:(t,e,n)=>{"use strict";n.d(e,{Z:()=>g});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"subscription-list"},[t.loading?e("VLoading"):t.loading||0!==t.cards.length?[e("div",{staticClass:"subscription-content"},t._l(t.cards,(function(n){return e("a",{key:n.id,staticClass:"subscription-card",attrs:{href:n.playUrl,target:"_blank"}},[e("div",{staticClass:"subscriptions-cover-container"},[e("DpiImage",{staticClass:"cover",attrs:{src:n.coverUrl,size:64}})],1),t._v(" "),e("div",{staticClass:"card-info"},[e("h1",{staticClass:"title",attrs:{title:n.title}},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"progress-row"},[n.status?e("div",{staticClass:"status",class:"status-"+n.status},[t._v("\n "+t._s(n.statusText)+"\n ")]):t._e(),t._v(" "),n.progress?e("div",{staticClass:"progress",attrs:{title:n.progress+" | "+n.latest}},[t._v("\n "+t._s(n.progress)+" | "+t._s(n.latest)+"\n ")]):e("div",{staticClass:"progress",attrs:{title:n.latest}},[t._v(t._s(n.latest))]),t._v(" "),e("a",{staticClass:"info",attrs:{href:n.mediaUrl,target:"_blank",title:"详细信息"}},[e("VIcon",{attrs:{icon:"mdi-information-outline",size:16}})],1)])])])})),0),t._v(" "),t.hasMorePage?e("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:e("VEmpty")],2)};a._withStripped=!0;var i=n(605),r=n(3414),o=n(9648),s=n(2375),l=n(1761),c=n(9978);const d=t=>{switch(t){case c.y.ToView:return"想看";case c.y.Viewing:default:return"在看";case c.y.Viewed:return"看过"}},p=(t,e)=>{let n=t.status;n!==c.y.Viewed&&(n=c.y.Viewed-n);let a=e.status;return a!==c.y.Viewed&&(a=c.y.Viewed-a),n-a},u=Vue.extend({components:{DpiImage:o.DpiImage,VLoading:o.VLoading,VEmpty:o.VEmpty,VIcon:o.VIcon,ScrollTrigger:o.ScrollTrigger},props:{filter:{type:[Object,null],default:null},type:{type:String,default:l.N.Bangumi}},data:()=>({loading:!0,hasMorePage:!0,cards:[],page:1}),watch:{filter(){this.cards=[],this.loading=!0,this.page=1,this.nextPage()}},async created(){this.nextPage()},methods:{async nextPage(){try{const t=this.filter,e=t.viewAll?0:t.status,n=new URLSearchParams({type:this.type!==l.N.Bangumi?"2":"1",pn:this.page,ps:"16",vmid:(0,i.getUID)(),follow_status:e.toString()}),a=await(0,s.getJsonWithCredentials)(`https://api.bilibili.com/x/space/bangumi/follow/list?${n}`);if(0!==a.code)return void(0,r.logError)(`加载订阅信息失败: ${a.message}`);const o=lodash.uniqBy(lodash.get(a,"data.list").map((t=>({title:t.title,coverUrl:t.square_cover.replace("http:","https:"),latest:t.new_ep.index_show,progress:t.progress,id:t.season_id,status:t.follow_status,statusText:d(t.follow_status),playUrl:`https://www.bilibili.com/bangumi/play/ss${t.season_id}`,mediaUrl:`https://www.bilibili.com/bangumi/media/md${t.media_id}`}))),(t=>t.id)).sort(p);this.page++,this.cards=this.cards.concat(o),this.hasMorePage=this.cards.length{"use strict";n.r(e),n.d(e,{default:()=>p});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"navbar-upload"},[e("VIcon",{attrs:{icon:"upload",size:18}}),t._v(" "),e("div",{staticClass:"navbar-upload-name"},[t._v("投稿")])],1)};a._withStripped=!0;var i=n(9648);const r=Vue.extend({components:{VIcon:i.VIcon}});var o=n(8332),s=n.n(o),l=n(5518),c=n.n(l),d={insert:"head",singleton:!1};s()(c(),d);c().locals;const p=(0,n(6499).Z)(r,a,[],!1,null,"99a054ea",null).exports},7302:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var a=function(){var t=this;t._self._c,t._self._setupProxy;return t._m(0)};a._withStripped=!0;var i=n(7236);const r=Vue.extend({mixins:[i.u]});var o=n(8332),s=n.n(o),l=n(3637),c=n.n(l),d={insert:"head",singleton:!1};s()(c(),d);c().locals;const p=(0,n(6499).Z)(r,a,[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"upload-popup",attrs:{role:"list"}},[e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/text/apply"}},[t._v("专栏投稿")])]),t._v(" "),e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/audio/frame"}},[t._v("音频投稿")])]),t._v(" "),e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/sticker"}},[t._v("贴纸投稿")])]),t._v(" "),e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/video/frame"}},[t._v("视频投稿")])]),t._v(" "),e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload-manager/article"}},[t._v("投稿管理")])]),t._v(" "),e("div",{attrs:{role:"listitem"}},[e("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/home"}},[t._v("创作中心")])])])}],!1,null,"b43e8cea",null).exports},1739:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"user-face-container"},[e("img",{staticClass:"user-face",attrs:{src:t.faceSrc,srcset:t.faceSrcset}}),t._v(" "),e("img",{staticClass:"user-pendant",attrs:{src:t.pendantSrc,srcset:t.pendantSrcset}})])};a._withStripped=!0;var i=n(3517),r=n(605);const o=coreApis.utils.constants,s="//static.hdslb.com/images/member/noface.gif",l=Vue.extend({name:"UserFace",data:()=>({faceSrc:o.EmptyImageUrl,pendantSrc:o.EmptyImageUrl,faceSrcset:null,pendantSrcset:null}),async created(){const t=await(0,i.getUserInfo)();if(t.isLogin){if(t.face){const e=t.face.replace("http:","https:");if(e.includes(s))this.faceSrc=s;else{const t=68;this.faceSrc=e,this.faceSrcset=(0,r.getDpiSourceSet)(e,t)}}if(t.pendant?.image){const e=t.pendant.image.replace("http:","https:"),n=116;this.pendantSrcset=(0,r.getDpiSourceSet)(e,n,"png")}}else this.faceSrc="https://static.hdslb.com/images/akari.jpg"}});var c=n(8332),d=n.n(c),p=n(3112),u=n.n(p),m={insert:"head",singleton:!1};d()(u(),m);u().locals;const h=(0,n(6499).Z)(l,a,[],!1,null,null,null).exports},6139:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"user-info-panel"},[t.isLogin&&!0===t.userInfo.isLogin?e("div",{staticClass:"logged-in"},[e("a",{staticClass:"name",attrs:{target:"_blank",href:"https://space.bilibili.com/"}},[t._v(t._s(t.userInfo.uname))]),t._v(" "),e("a",{staticClass:"type",attrs:{target:"_blank",href:"https://account.bilibili.com/account/big"}},[t._v(t._s(t.userType))]),t._v(" "),1===t.userInfo.vipStatus&&2===t.userInfo.vipType?e("div",{staticClass:"privileges row"},[e("div",{staticClass:"b-coin",class:{received:t.privileges.bCoin.received},attrs:{title:"有效期限: "+t.privileges.bCoin.expire},on:{click:function(e){return t.privilegeReceive(1)}}},[t._v("\n "+t._s(t.privileges.bCoin.received?"已领取B币":"领取B币")+"\n ")]),t._v(" "),e("div",{staticClass:"coupons",class:{received:t.privileges.coupons.received},attrs:{title:"有效期限: "+t.privileges.coupons.expire},on:{click:function(e){return t.privilegeReceive(2)}}},[t._v("\n "+t._s(t.privileges.coupons.received?"已领取优惠券":"领取优惠券")+"\n ")])]):t._e(),t._v(" "),e("div",{staticClass:"level-info row"},[e("a",{staticClass:"level",attrs:{target:"_blank",title:"等级",href:"https://account.bilibili.com/account/record"}},[t.userInfo.is_senior_member?e("VIcon",{staticClass:"level-icon plus",attrs:{icon:"lv"+t.userInfo.level_info.current_level+"-plus",colored:"",size:30}}):e("VIcon",{staticClass:"level-icon",attrs:{icon:"lv"+t.userInfo.level_info.current_level}})],1),t._v(" "),e("span",{staticClass:"level-progress-label"},[t._v(t._s(t.userInfo.level_info.current_exp)+" / "+t._s(t.userInfo.level_info.next_exp))])]),t._v(" "),e("div",{staticClass:"level-progress separator"},[e("div",{staticClass:"level-progress-thumb",style:t.levelProgressStyle})]),t._v(" "),e("div",{staticClass:"items"},[e("a",{staticClass:"item",attrs:{target:"_blank",title:"手机验证",href:"https://passport.bilibili.com/account/security#/bindphone"}},[e("VIcon",{attrs:{icon:"bind-phone",size:20}}),t._v(" "),t.userInfo.mobile_verified?e("VIcon",{attrs:{icon:"ok",size:18}}):e("VIcon",{attrs:{icon:"cancel",size:18}})],1),t._v(" "),e("a",{staticClass:"item",attrs:{target:"_blank",title:"邮箱验证",href:"https://passport.bilibili.com/account/security#/bindmail"}},[e("VIcon",{attrs:{icon:"bind-email",size:20}}),t._v(" "),t.userInfo.email_verified?e("VIcon",{attrs:{icon:"ok",size:18}}):e("VIcon",{attrs:{icon:"cancel",size:18}})],1),t._v(" "),e("a",{staticClass:"item",attrs:{target:"_blank",href:"https://account.bilibili.com/site/coin",title:"硬币"}},[e("VIcon",{attrs:{icon:"coin-outline",size:20}}),t._v(" "),e("span",[t._v(t._s(t.userInfo.money))])],1),t._v(" "),e("a",{staticClass:"item",attrs:{target:"_blank",href:"https://pay.bilibili.com/bb_balance.html",title:"B币"}},[e("VIcon",{attrs:{icon:"b-coin-outline",size:20}}),t._v(" "),e("span",[t._v(t._s(t.userInfo.wallet.bcoin_balance))])],1)]),t._v(" "),e("div",{staticClass:"separator"}),t._v(" "),e("div",{staticClass:"stats"},[e("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/fans/follow",target:"_blank"}},[e("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.following)))]),t._v("\n 关注\n ")]),t._v(" "),e("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/fans/fans",target:"_blank"}},[e("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.follower)))]),t._v("\n 粉丝\n ")]),t._v(" "),e("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/dynamic",target:"_blank"}},[e("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.dynamic_count)))]),t._v("\n 动态\n ")])]),t._v(" "),e("div",{staticClass:"separator"}),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://account.bilibili.com/account/home"}},[e("VIcon",{attrs:{icon:"profile"}}),t._v("个人中心\n ")],1),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload-manager/article"}},[e("VIcon",{attrs:{icon:"posts"}}),t._v("投稿管理\n ")],1),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://pay.bilibili.com/"}},[e("VIcon",{attrs:{icon:"wallet"}}),t._v("B币钱包\n ")],1),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://link.bilibili.com/p/center/index"}},[e("VIcon",{attrs:{icon:"live-center"}}),t._v("直播中心\n ")],1),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://show.bilibili.com/orderlist"}},[e("VIcon",{attrs:{icon:"order-center"}}),t._v("订单中心\n ")],1),t._v(" "),e("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://www.bilibili.com/v/cheese/mine"}},[e("VIcon",{attrs:{icon:"course"}}),t._v("我的课程\n ")],1),t._v(" "),e("div",{staticClass:"logout grey-button",on:{click:function(e){return t.logout()}}},[t._v("退出登录")])]):t._e(),t._v(" "),t.isLogin?t._e():e("div",{staticClass:"not-logged-in"},[e("h1",{staticClass:"welcome"},[t._v("欢迎来到 bilibili")]),t._v(" "),e("a",{staticClass:"signup grey-button",attrs:{href:"https://passport.bilibili.com/register/phone.html"}},[t._v("注册")]),t._v(" "),e("a",{staticClass:"login theme-button",attrs:{href:"https://passport.bilibili.com/login"}},[t._v("登录")])])])};a._withStripped=!0;var i=n(605),r=n(4289),o=n(3414),s=n(2375),l=n(3517),c=n(7236);const d=Vue.extend({components:{VIcon:coreApis.ui.VIcon},filters:{count:r.formatCount},mixins:[c.u],data:()=>({userInfo:{},stat:{},isLogin:Boolean((0,i.getUID)()),privileges:{bCoin:{received:!1,expire:""},coupons:{received:!1,expire:""}}}),computed:{level(){const t=`lv${this.userInfo.level_info.current_level}`;return this.userInfo.is_senior_member?{icon:`${t}-plus`,colored:!0}:{icon:t}},userType(){if(!this.userInfo.isLogin)return"未登录";if(0===this.userInfo.level_info.current_level)return"注册会员";if(1===this.userInfo.vipStatus){if(1===this.userInfo.vipType)return this.userInfo.vip_theme_type?"小会员":"大会员";if(2===this.userInfo.vipType)return this.userInfo.vip_theme_type?"年度小会员":"年度大会员"}return"正式会员"},levelProgressStyle(){if(!this.userInfo.isLogin)return{};const{current_exp:t,current_min:e,next_exp:n}=this.userInfo.level_info;return{transform:`scaleX(${(t-e)/(n-e)})`}}},async created(){const t=await(0,l.getUserInfo)();this.userInfo=t;const e=await(0,s.getJsonWithCredentials)("https://api.bilibili.com/x/web-interface/nav/stat");if(this.stat=e.data||{},this.isLogin&&2===this.userInfo.vipType){const t=await(0,s.getJsonWithCredentials)("https://api.bilibili.com/x/vip/privilege/my");if(0===t.code){const e=t.data.list.find((t=>1===t.type));this.privileges.bCoin.received=1===e.state,this.privileges.bCoin.expire=new Date(1e3*e.expire_time).toLocaleDateString();const n=t.data.list.find((t=>2===t.type));this.privileges.coupons.received=1===n.state,this.privileges.coupons.expire=new Date(1e3*n.expire_time).toLocaleDateString()}}},methods:{async privilegeReceive(t){const e={1:"bCoin",2:"coupons"};if(this.privileges[e[t]].received)return;this.privileges[e[t]].received=!0;const n=(0,i.getCsrf)(),a=await(await fetch("https://api.bilibili.com/x/vip/privilege/receive",{credentials:"include",headers:{"content-type":"application/x-www-form-urlencoded"},body:`type=${t}&csrf=${n}`,method:"POST"})).json();console.log(a),0===a.code?"bCoin"===e[t]&&(this.userInfo.wallet.bcoin_balance+=5):69801===a.code||(this.privileges[e[t]].received=!1,(0,o.logError)(a.message))},async logout(){const t=await(0,s.postTextWithCredentials)("https://passport.bilibili.com/login/exit/v2",(0,i.formData)({biliCSRF:(0,i.getCsrf)()})),e=lodash.get(JSON.parse(t),"data.redirectUrl","");e&&window.location.assign(e)}}});var p=n(8332),u=n.n(p),m=n(812),h=n.n(m),f={insert:"head",singleton:!1};u()(h(),f);h().locals;const v=(0,n(6499).Z)(d,a,[],!1,null,null,null).exports},2998:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"watchlater-list"},[e("div",{staticClass:"header"},[e("div",{staticClass:"watchlater-list-summary"},[t._v("共 "+t._s(t.filteredCards.length)+" 个")]),t._v(" "),e("div",{staticClass:"search"},[e("TextBox",{attrs:{linear:"",placeholder:"搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),e("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/medialist/play/watchlater"}},[e("VButton",{staticClass:"round-button",attrs:{title:"播放全部",round:""}},[e("VIcon",{attrs:{icon:"mdi-play",size:18}})],1)],1),t._v(" "),e("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/watchlater/#/list"}},[e("VButton",{staticClass:"round-button",attrs:{title:"查看更多",round:""}},[e("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)]),t._v(" "),t.loading?e("VLoading"):t.loading||0!==t.cards.length?e("transition-group",{staticClass:"watchlater-list-content",attrs:{name:"cards",tag:"div"}},t._l(t.filteredCards,(function(n,a){return e("div",{key:n.aid,staticClass:"watchlater-card"},[e("a",{staticClass:"watchlater-cover-container",attrs:{target:"_blank",href:n.href}},[e("DpiImage",{staticClass:"cover",attrs:{src:n.coverUrl,size:{width:130,height:85}}}),t._v(" "),e("div",{staticClass:"floating remove",attrs:{title:"移除"},on:{click:function(e){return e.preventDefault(),t.remove(n.aid,a)}}},[e("VIcon",{attrs:{icon:"mdi-close",size:16}})],1),t._v(" "),e("div",{staticClass:"floating duration"},[t._v(t._s(n.durationText))]),t._v(" "),n.complete?e("div",{staticClass:"floating viewed"},[t._v("已观看")]):t._e()],1),t._v(" "),e("a",{staticClass:"title",attrs:{target:"_blank",href:n.href,title:n.title}},[t._v(t._s(n.title))]),t._v(" "),e("a",{staticClass:"up",attrs:{target:"_blank",href:"https://space.bilibili.com/"+n.upID,title:n.upName}},[e("DpiImage",{staticClass:"face",attrs:{src:n.upFaceUrl,size:20}}),t._v(" "),e("div",{staticClass:"name"},[t._v(t._s(n.upName))])],1)])})),0):e("VEmpty")],1)};a._withStripped=!0;var i=n(9986),r=n(4289);const o=coreApis.componentApis.video.watchlater;var s=n(9648),l=n(7236);const c=Vue.extend({components:{VLoading:s.VLoading,VEmpty:s.VEmpty,TextBox:s.TextBox,VButton:s.VButton,VIcon:s.VIcon,DpiImage:s.DpiImage},mixins:[l.u],data(){const t=(0,i.getComponentSettings)("watchlaterRedirect");return{watchlaterList:o.watchlaterList,loading:!0,cards:[],filteredCards:[],search:"",redirect:t.enabled&&t.options.navbar}},watch:{search(){this.updateFilteredCards()}},async created(){try{await this.updateList()}finally{this.loading=!1}},methods:{toggleWatchlater:o.toggleWatchlater,popupRefresh(){this.updateList()},async updateList(){const t=await(0,o.getWatchlaterList)(!0);if(!t)return void(this.cards=[]);const e=t=>this.redirect?`https://www.bilibili.com/video/${t.bvid}`:`https://www.bilibili.com/medialist/play/watchlater/${t.bvid}`,n=t.map((t=>{const n=(()=>{if(void 0===t.pages||!this.redirect)return e(t);const n=t.pages.map((t=>t.cid)),a=0===t.cid?1:n.indexOf(t.cid)+1;return a<=1?e(t):`${e(t)}?p=${a}`})(),a=Math.round(1e3*t.progress/t.duration)/1e3;return{aid:t.aid,href:n,coverUrl:t.pic.replace("http:","https:"),durationText:(0,r.formatDuration)(t.duration),duration:t.duration,complete:t.progress<0||a>.95,title:t.title,upName:t.owner.name,upFaceUrl:t.owner.face.replace("http:","https:"),upID:t.owner.mid}}));this.cards=n,this.search?this.updateFilteredCards():this.filteredCards=n},async remove(t,e){this.cards.splice(e,1),await this.toggleWatchlater(t)},updateFilteredCards:lodash.debounce((function(){const t=this.search.toLowerCase();this.$el.querySelector(".watchlater-list-content").scrollTo(0,0),this.filteredCards=this.cards.filter((e=>e.title.toLowerCase().includes(t)||e.upName.toLowerCase().includes(t)))}),100)}});var d=n(8332),p=n.n(d),u=n(523),m=n.n(u),h={insert:"head",singleton:!1};p()(m(),h);m().locals;const f=(0,n(6499).Z)(c,a,[],!1,null,null,null).exports},6499:(t,e,n)=>{"use strict";function a(t,e,n,a,i,r,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>a})},8332:(t,e,n)=>{"use strict";var a,i=function(){return void 0===a&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -a=Boolean(window&&document&&document.all&&!window.atob)),a},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n{var a=n(4881);a&&a.__esModule&&(a=a.default),t.exports="string"==typeof a?a:a.toString()},6690:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=6690,t.exports=e},2948:t=>{"use strict";t.exports="使用脚本提供的顶栏替换原版的主站顶栏 (非主站不替换).\n\n启用后还可以在反广告插件 (例如 ABP) 中配置禁止原版顶栏的消息 iframe 以提升性能:\n- *://message.bilibili.com/pages/nav/index_new_pc_sync\n- *://message.bilibili.com/pages/nav/index_new_sync\n\n选项说明:\n- `全局固定`: 将顶栏固定显示, 即使页面向下滚动也仍然可见. (除了一部分有 b 站定制顶栏的页面会忽略此选项)\n- `主题色填充`: 使用通用设置中的主题颜色填充顶栏的背景.\n- `透明填充`: 在首页和主站的部分页面中, 当存在顶部横幅图片时, 顶栏背景将变为透明 + 阴影的样式.\n- `背景模糊`: 启用背景模糊效果, 会使背景颜色变得半透明, 注意这个效果非常非常消耗图形性能, 慎用.\n- `投影`: 在顶栏下方增加一小段投影效果.\n- `使用季节 Logo`: 使用 b 站首页的特殊 Logo 图片替换顶栏的 Logo 图, 通常会对应当前季节, 特殊活动期间可能会有变化导致看不清. (比如搞了个全白的 Logo, 而顶栏正好也是白色的)\n- `触摸模式`: 启用后顶栏的一级入口点击时不进行跳转, 方便触屏使用.\n- `新标签页打开`: 控制顶栏内链接是否在新标签页打开.\n- `自动刷新数据`: 启用后, 部分有弹窗的顶栏入口在鼠标经过时会自动刷新数据.\n- `顶栏高度`: 自定义顶栏的高度 (b 站原版的为 64px)\n- `消息提醒样式`: 自定义顶栏入口的消息提醒样式.\n- `搜索栏宽度`: 自定义搜索栏占顶栏的比例.\n- `链接对齐样式`: 自定义纯链接弹窗内链接文字的对齐样式.\n"},2375:t=>{"use strict";t.exports=coreApis.ajax},9799:t=>{"use strict";t.exports=coreApis.componentApis.feeds.api},5441:t=>{"use strict";t.exports=coreApis.componentApis.feeds.notify},3861:t=>{"use strict";t.exports=coreApis.componentApis.utils.categories.data},9153:t=>{"use strict";t.exports=coreApis.pluginApis.data},9986:t=>{"use strict";t.exports=coreApis.settings},9648:t=>{"use strict";t.exports=coreApis.ui},3517:t=>{"use strict";t.exports=coreApis.userInfo},4289:t=>{"use strict";t.exports=coreApis.utils.formatters},3414:t=>{"use strict";t.exports=coreApis.utils.log},4577:t=>{"use strict";t.exports=coreApis.utils.sort},605:t=>{"use strict";t.exports=coreApis.utils}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&a&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,i.d(r,o),r},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>l});const t=coreApis.componentApis.define;var e=i(9986),n=i(605);let a=function(t){return t.Number="数字",t.Hidden="隐藏",t.Dot="点状",t}({});let o=function(t){return t.Left="左侧对齐",t.Center="居中对齐",t.Right="右侧对齐",t}({});const s=(0,t.defineOptionsMetadata)({hidden:{hidden:!0,defaultValue:["blank1","blank4","drawing","music","gamesIframe","bangumi","match","creations"],displayName:"隐藏的元素"},order:{hidden:!0,defaultValue:{},displayName:"元素顺序"},padding:{hidden:!0,defaultValue:10,displayName:"边缘间距(%)"},globalFixed:{defaultValue:!1,displayName:"全局固定"},fill:{defaultValue:!1,displayName:"主题色填充"},transparent:{defaultValue:!0,displayName:"透明填充"},blur:{defaultValue:!1,displayName:"背景模糊"},shadow:{defaultValue:!0,displayName:"投影"},seasonLogo:{defaultValue:!1,displayName:"使用季节Logo"},touch:{defaultValue:!1,displayName:"触摸模式"},openInNewTab:{defaultValue:!0,displayName:"新标签页打开"},refreshOnPopup:{defaultValue:!0,displayName:"自动刷新数据"},height:{defaultValue:50,validator:(0,n.getNumberValidator)(50,64),displayName:"顶栏高度 (px)"},openInNewTabOverrides:{defaultValue:{logo:!1},displayName:"新标签页打开设置覆盖",hidden:!0},showDeadVideos:{defaultValue:!1,displayName:"显示已失效视频",hidden:!0},notifyStyle:{defaultValue:a.Number,dropdownEnum:a,displayName:"消息提醒样式"},linkPopupContentAlignStyle:{defaultValue:o.Left,dropdownEnum:o,displayName:"链接对齐样式"},searchBarWidth:{defaultValue:15,slider:{min:8,max:64},displayName:"搜索栏宽度 (%)"}}),l=(0,t.defineComponentMetadata)({name:"customNavbar",displayName:"自定义顶栏",entry:async t=>{let{metadata:{name:r}}=t;if((0,n.isIframe)()||(0,n.isNotHtml)())return;(0,e.addComponentListener)(`${r}.padding`,(t=>{document.documentElement.style.setProperty("--navbar-bounds-padding",`${t}%`)}),!0),(0,e.addComponentListener)(`${r}.searchBarWidth`,(t=>{document.documentElement.style.setProperty("--navbar-search-width",`${t}vw`)}),!0);["https://space.bilibili.com","https://www.bilibili.com/read","https://www.bilibili.com/opus","https://www.bilibili.com/account/history"].some((t=>(0,n.matchUrlPattern)(t)))||(0,e.addComponentListener)(`${r}.globalFixed`,(t=>{document.body.classList.toggle("fixed-navbar",t)}),!0),(0,n.matchUrlPattern)("https://www.bilibili.com/account/history")&&document.body.classList.add("history-page");const s=await Promise.resolve().then(i.bind(i,7547)),l=(0,n.mountVueComponent)(s);document.body.insertAdjacentElement("beforeend",l.$el),["fill","shadow","blur"].forEach((t=>{(0,e.addComponentListener)(`${r}.${t}`,(e=>l.toggleStyle(e,t)),!0)})),(()=>{const t={[a.Number]:"number",[a.Hidden]:"hidden",[a.Dot]:"dot"};(0,e.addComponentListener)("customNavbar.notifyStyle",(e=>{document.documentElement.setAttribute("data-navbar-notify-style",t[e])}),!0)})(),(()=>{const t={[o.Left]:"left",[o.Center]:"center",[o.Right]:"right"};(0,e.addComponentListener)("customNavbar.linkPopupContentAlignStyle",(e=>{document.documentElement.setAttribute("data-navbar-link-popup-content-align-style",t[e])}),!0)})()},tags:[componentsTags.style,componentsTags.general],options:s,urlInclude:["//www.bilibili.com","//t.bilibili.com","//search.bilibili.com","//space.bilibili.com","//account.bilibili.com","//pay.bilibili.com","//member.bilibili.com","//big.bilibili.com","//message.bilibili.com","//app.bilibili.com","//passport.bilibili.com","//live.bilibili.com/blackboard/"],urlExclude:["//t.bilibili.com/vote/h5/index/#/result","//t.bilibili.com/lottery/h5/index/#/result","//member.bilibili.com/video/upload","//member.bilibili.com/platform","//space.bilibili.com/ajax/","//www.bilibili.com/h5/comment/","//member.bilibili.com/v2","//game.bilibili.com/"],instantStyles:[{name:"custom-navbar-style",style:()=>Promise.resolve().then(i.t.bind(i,7057,23)),important:!0}],unload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="none"))},reload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="flex"))},extraOptions:()=>Promise.resolve().then(i.bind(i,3461)).then((t=>t.default)),plugin:{displayName:"自定义顶栏 - 功能扩展",setup:t=>{let{addData:e}=t;e("launchBar.actions",(t=>{t.push({name:"navbarSettings",getActions:async()=>[{name:"自定义顶栏设置",description:"Custom Navbar Settings",icon:"mdi-sort",action:async()=>{const{toggleNavbarSettings:t}=await Promise.resolve().then(i.bind(i,4241));t()}}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=i(6690);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,2948,17)).then((t=>t.default))}})()})})(),r=r.component})())); \ No newline at end of file +a=Boolean(window&&document&&document.all&&!window.atob)),a},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n{var a=n(4881);a&&a.__esModule&&(a=a.default),t.exports="string"==typeof a?a:a.toString()},6690:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=6690,t.exports=e},2948:t=>{"use strict";t.exports="使用脚本提供的顶栏替换原版的主站顶栏 (非主站不替换).\n\n启用后还可以在反广告插件 (例如 ABP) 中配置禁止原版顶栏的消息 iframe 以提升性能:\n- *://message.bilibili.com/pages/nav/index_new_pc_sync\n- *://message.bilibili.com/pages/nav/index_new_sync\n\n选项说明:\n- `全局固定`: 将顶栏固定显示, 即使页面向下滚动也仍然可见. (除了一部分有 b 站定制顶栏的页面会忽略此选项)\n- `主题色填充`: 使用通用设置中的主题颜色填充顶栏的背景.\n- `透明填充`: 在首页和主站的部分页面中, 当存在顶部横幅图片时, 顶栏背景将变为透明 + 阴影的样式.\n- `背景模糊`: 启用背景模糊效果, 会使背景颜色变得半透明, 注意这个效果非常非常消耗图形性能, 慎用.\n- `投影`: 在顶栏下方增加一小段投影效果.\n- `使用季节 Logo`: 使用 b 站首页的特殊 Logo 图片替换顶栏的 Logo 图, 通常会对应当前季节, 特殊活动期间可能会有变化导致看不清. (比如搞了个全白的 Logo, 而顶栏正好也是白色的)\n- `触摸模式`: 启用后顶栏的一级入口点击时不进行跳转, 方便触屏使用.\n- `新标签页打开`: 控制顶栏内链接是否在新标签页打开.\n- `自动刷新数据`: 启用后, 部分有弹窗的顶栏入口在鼠标经过时会自动刷新数据.\n- `顶栏高度`: 自定义顶栏的高度 (b 站原版的为 64px)\n- `消息提醒样式`: 自定义顶栏入口的消息提醒样式.\n- `搜索栏宽度`: 自定义搜索栏占顶栏的比例.\n- `链接对齐样式`: 自定义纯链接弹窗内链接文字的对齐样式.\n"},2375:t=>{"use strict";t.exports=coreApis.ajax},9799:t=>{"use strict";t.exports=coreApis.componentApis.feeds.api},5441:t=>{"use strict";t.exports=coreApis.componentApis.feeds.notify},3861:t=>{"use strict";t.exports=coreApis.componentApis.utils.categories.data},9153:t=>{"use strict";t.exports=coreApis.pluginApis.data},9986:t=>{"use strict";t.exports=coreApis.settings},9648:t=>{"use strict";t.exports=coreApis.ui},3517:t=>{"use strict";t.exports=coreApis.userInfo},4289:t=>{"use strict";t.exports=coreApis.utils.formatters},3414:t=>{"use strict";t.exports=coreApis.utils.log},4577:t=>{"use strict";t.exports=coreApis.utils.sort},605:t=>{"use strict";t.exports=coreApis.utils}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&a&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,i.d(r,o),r},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>l});const t=coreApis.componentApis.define;var e=i(9986),n=i(605);let a=function(t){return t.Number="数字",t.Hidden="隐藏",t.Dot="点状",t}({});let o=function(t){return t.Left="左侧对齐",t.Center="居中对齐",t.Right="右侧对齐",t}({});const s=(0,t.defineOptionsMetadata)({hidden:{hidden:!0,defaultValue:["blank1","blank4","drawing","music","gamesIframe","bangumi","match","creations"],displayName:"隐藏的元素"},order:{hidden:!0,defaultValue:{},displayName:"元素顺序"},padding:{hidden:!0,defaultValue:10,displayName:"边缘间距(%)"},globalFixed:{defaultValue:!1,displayName:"全局固定"},fill:{defaultValue:!1,displayName:"主题色填充"},transparent:{defaultValue:!0,displayName:"透明填充"},blur:{defaultValue:!1,displayName:"背景模糊"},shadow:{defaultValue:!0,displayName:"投影"},seasonLogo:{defaultValue:!1,displayName:"使用季节Logo"},touch:{defaultValue:!1,displayName:"触摸模式"},openInNewTab:{defaultValue:!0,displayName:"新标签页打开"},refreshOnPopup:{defaultValue:!0,displayName:"自动刷新数据"},height:{defaultValue:50,validator:(0,n.getNumberValidator)(50,64),displayName:"顶栏高度 (px)"},openInNewTabOverrides:{defaultValue:{logo:!1},displayName:"新标签页打开设置覆盖",hidden:!0},showDeadVideos:{defaultValue:!1,displayName:"显示已失效视频",hidden:!0},notifyStyle:{defaultValue:a.Number,dropdownEnum:a,displayName:"消息提醒样式"},linkPopupContentAlignStyle:{defaultValue:o.Left,dropdownEnum:o,displayName:"链接对齐样式"},searchBarWidth:{defaultValue:15,slider:{min:8,max:64},displayName:"搜索栏宽度 (%)"}}),l=(0,t.defineComponentMetadata)({name:"customNavbar",displayName:"自定义顶栏",entry:async t=>{let{metadata:{name:r}}=t;if((0,n.isIframe)()||(0,n.isNotHtml)())return;(0,e.addComponentListener)(`${r}.padding`,(t=>{document.documentElement.style.setProperty("--navbar-bounds-padding",`${t}%`)}),!0),(0,e.addComponentListener)(`${r}.searchBarWidth`,(t=>{document.documentElement.style.setProperty("--navbar-search-width",`${t}vw`)}),!0);["https://space.bilibili.com","https://www.bilibili.com/read","https://www.bilibili.com/opus","https://www.bilibili.com/account/history"].some((t=>(0,n.matchUrlPattern)(t)))||(0,e.addComponentListener)(`${r}.globalFixed`,(t=>{document.body.classList.toggle("fixed-navbar",t)}),!0),(0,n.matchUrlPattern)("https://www.bilibili.com/account/history")&&document.body.classList.add("history-page");const s=await Promise.resolve().then(i.bind(i,7547)),l=(0,n.mountVueComponent)(s);document.body.insertAdjacentElement("beforeend",l.$el),["fill","shadow","blur"].forEach((t=>{(0,e.addComponentListener)(`${r}.${t}`,(e=>l.toggleStyle(e,t)),!0)})),(()=>{const t={[a.Number]:"number",[a.Hidden]:"hidden",[a.Dot]:"dot"};(0,e.addComponentListener)("customNavbar.notifyStyle",(e=>{document.documentElement.setAttribute("data-navbar-notify-style",t[e])}),!0)})(),(()=>{const t={[o.Left]:"left",[o.Center]:"center",[o.Right]:"right"};(0,e.addComponentListener)("customNavbar.linkPopupContentAlignStyle",(e=>{document.documentElement.setAttribute("data-navbar-link-popup-content-align-style",t[e])}),!0)})()},tags:[componentsTags.style,componentsTags.general],options:s,urlInclude:["//www.bilibili.com","//t.bilibili.com","//search.bilibili.com","//space.bilibili.com","//account.bilibili.com","//pay.bilibili.com","//member.bilibili.com","//big.bilibili.com","//message.bilibili.com","//app.bilibili.com","//passport.bilibili.com","//live.bilibili.com/blackboard/"],urlExclude:["//t.bilibili.com/vote/h5/index/#/result","//t.bilibili.com/lottery/h5/index/#/result","//member.bilibili.com/video/upload","//member.bilibili.com/platform","//space.bilibili.com/ajax/","//www.bilibili.com/h5/comment/","//member.bilibili.com/v2","//game.bilibili.com/"],instantStyles:[{name:"custom-navbar-style",style:()=>Promise.resolve().then(i.t.bind(i,7057,23)),important:!0}],unload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="none"))},reload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="flex"))},extraOptions:()=>Promise.resolve().then(i.bind(i,3461)).then((t=>t.default)),plugin:{displayName:"自定义顶栏 - 功能扩展",setup:t=>{let{addData:e}=t;e("launchBar.actions",(t=>{t.push({name:"navbarSettings",getActions:async()=>[{name:"自定义顶栏设置",description:"Custom Navbar Settings",icon:"mdi-sort",action:async()=>{const{toggleNavbarSettings:t}=await Promise.resolve().then(i.bind(i,4241));t()}}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=i(6690);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,2948,17)).then((t=>t.default))}})()})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/dark-mode.js b/registry/dist/components/style/dark-mode.js index 73252f45e..aa04f0fb1 100644 --- a/registry/dist/components/style/dark-mode.js +++ b/registry/dist/components/style/dark-mode.js @@ -6,4 +6,4 @@ e.i=function(n,t,o){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var a={};if(o)for(var r=0;r{var o=t(789);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},668:(n,e,t)=>{var o=t(778);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},110:n=>{"use strict";n.exports=coreApis.lifeCycle},986:n=>{"use strict";n.exports=coreApis.settings}},o={};function a(n){var e=o[n];if(void 0!==e)return e.exports;var r=o[n]={id:n,exports:{}};return t[n](r,r.exports,a),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,a.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var r=Object.create(null);a.r(r);var i={};n=n||[null,e({}),e([]),e(e)];for(var l=2&o&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>i[n]=()=>t[n]));return i.default=()=>t,a.d(r,i),r},a.d=(n,e)=>{for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),a.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>i});const n=coreApis.componentApis.define,e="#111",t=async()=>{document.body.classList.add("dark"),localStorage.setItem("pbp_theme_v4","b");const n=dq('meta[name="theme-color"]');n?(n.dataset.light=n.content,n.content=e):document.head.insertAdjacentHTML("beforeend",'')},o=async()=>{document.body.classList.remove("dark");const n=dq('meta[name="theme-color"]');n&&(n.dataset.light?n.content=n.dataset.light:n.remove())},i=(0,n.defineComponentMetadata)({name:"darkMode",displayName:"夜间模式",entry:()=>{setTimeout(t,200)},reload:()=>{setTimeout(t,200)},unload:()=>{setTimeout(o,200)},description:"启用夜间模式能更好地适应光线暗的环境, 并会大量应用主题颜色.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"dark-mode",style:()=>Promise.resolve().then(a.t.bind(a,668,23)),important:!1},{name:"dark-mode-important",style:()=>Promise.resolve().then(a.t.bind(a,815,23)),important:!0}],plugin:{displayName:"夜间模式 - 提前注入",description:{"zh-CN":"提前注入夜间模式的 .dark class 以减少一些组件首屏仍然是白色的问题."},async setup(){const{contentLoaded:n}=await Promise.resolve().then(a.t.bind(a,110,23)),{isComponentEnabled:e}=await Promise.resolve().then(a.t.bind(a,986,23));n((()=>{e("darkMode")&&document.body.classList.add("dark")}))}},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var i=this[r][0];null!=i&&(a[i]=!0)}for(var l=0;l{var o=t(789);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},668:(n,e,t)=>{var o=t(778);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},110:n=>{"use strict";n.exports=coreApis.lifeCycle},986:n=>{"use strict";n.exports=coreApis.settings}},o={};function a(n){var e=o[n];if(void 0!==e)return e.exports;var r=o[n]={id:n,exports:{}};return t[n](r,r.exports,a),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,a.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var r=Object.create(null);a.r(r);var i={};n=n||[null,e({}),e([]),e(e)];for(var l=2&o&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>i[n]=()=>t[n]));return i.default=()=>t,a.d(r,i),r},a.d=(n,e)=>{for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),a.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>i});const n=coreApis.componentApis.define,e="#111",t=async()=>{document.body.classList.add("dark"),localStorage.setItem("pbp_theme_v4","b");const n=dq('meta[name="theme-color"]');n?(n.dataset.light=n.content,n.content=e):document.head.insertAdjacentHTML("beforeend",'')},o=async()=>{document.body.classList.remove("dark");const n=dq('meta[name="theme-color"]');n&&(n.dataset.light?n.content=n.dataset.light:n.remove())},i=(0,n.defineComponentMetadata)({name:"darkMode",displayName:"夜间模式",entry:()=>{setTimeout(t,200)},reload:()=>{setTimeout(t,200)},unload:()=>{setTimeout(o,200)},description:"启用夜间模式能更好地适应光线暗的环境, 并会大量应用主题颜色.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"dark-mode",style:()=>Promise.resolve().then(a.t.bind(a,668,23)),important:!1},{name:"dark-mode-important",style:()=>Promise.resolve().then(a.t.bind(a,815,23)),important:!0}],plugin:{displayName:"夜间模式 - 提前注入",description:{"zh-CN":"提前注入夜间模式的 .dark class 以减少一些组件首屏仍然是白色的问题."},async setup(){const{contentLoaded:n}=await Promise.resolve().then(a.t.bind(a,110,23)),{isComponentEnabled:e}=await Promise.resolve().then(a.t.bind(a,986,23));n((()=>{e("darkMode")&&document.body.classList.add("dark")}))}},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/dark-mode/follow-system.js b/registry/dist/components/style/dark-mode/follow-system.js index c69573551..e8d06238a 100644 --- a/registry/dist/components/style/dark-mode/follow-system.js +++ b/registry/dist/components/style/dark-mode/follow-system.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/follow-system"]=t():e["style/dark-mode/follow-system"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={986:e=>{e.exports=coreApis.settings}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={exports:{}};return o[e](l,l.exports,r),l.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var l=Object.create(null);r.r(l);var n={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>n[e]=()=>o[e]));return n.default=()=>o,r.d(l,n),l},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{r.d(l,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.lifeCycle,o=(0,e.defineComponentMetadata)({name:"darkModeFollowSystem",displayName:"夜间模式跟随系统",entry:()=>{unsafeWindow.addEventListener(t.LifeCycleEventTypes.End,(async()=>{const{getComponentSettings:e}=await Promise.resolve().then(r.t.bind(r,986,23)),t=e("darkMode"),o=matchMedia("(prefers-color-scheme: dark)"),i=e=>{e!==t.enabled&&(t.enabled=e)};i(o.matches),o.addEventListener("change",(e=>{i(e.matches)}))}))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],tags:[componentsTags.style,componentsTags.general],description:{"zh-CN":"\n使夜间模式同步系统设置的亮 / 暗主题, 请勿和 `夜间模式计划时段` 一同使用.\n\n> 注:在某些浏览器 (如 `Microsoft Edge`) 中,夜间模式仅会同步浏览器的亮 / 暗主题.\n ".trim()},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/follow-system"]=t():e["style/dark-mode/follow-system"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={986:e=>{e.exports=coreApis.settings}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={exports:{}};return o[e](l,l.exports,r),l.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var l=Object.create(null);r.r(l);var n={};e=e||[null,t({}),t([]),t(t)];for(var c=2&i&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>n[e]=()=>o[e]));return n.default=()=>o,r.d(l,n),l},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{r.d(l,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.lifeCycle,o=(0,e.defineComponentMetadata)({name:"darkModeFollowSystem",displayName:"夜间模式跟随系统",entry:()=>{unsafeWindow.addEventListener(t.LifeCycleEventTypes.End,(async()=>{const{getComponentSettings:e}=await Promise.resolve().then(r.t.bind(r,986,23)),t=e("darkMode"),o=matchMedia("(prefers-color-scheme: dark)"),i=e=>{e!==t.enabled&&(t.enabled=e)};i(o.matches),o.addEventListener("change",(e=>{i(e.matches)}))}))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],tags:[componentsTags.style,componentsTags.general],description:{"zh-CN":"\n使夜间模式同步系统设置的亮 / 暗主题, 请勿和 `夜间模式计划时段` 一同使用.\n\n> 注:在某些浏览器 (如 `Microsoft Edge`) 中,夜间模式仅会同步浏览器的亮 / 暗主题.\n ".trim()},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/dark-mode/schedule.js b/registry/dist/components/style/dark-mode/schedule.js index fa4535990..0cca581d9 100644 --- a/registry/dist/components/style/dark-mode/schedule.js +++ b/registry/dist/components/style/dark-mode/schedule.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/schedule"]=t():e["style/dark-mode/schedule"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>u});const i=coreApis.componentApis.define,r=coreApis.lifeCycle,o=coreApis.settings;function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s{constructor(){n(this,"hour",void 0),n(this,"minute",void 0);for(var e=arguments.length,t=new Array(e),i=0;is.validatePart(e))),this.normalize()}else 2===t.length&&([this.hour,this.minute]=t)}normalize(){for(;this.minute<0;)this.minute+=60,this.hour-=1;for(;this.minute>=60;)this.minute-=60,this.hour+=1;for(;this.hour<0;)this.hour+=24;for(;this.hour>=24;)this.hour-=24}lessThan(e){return this.houre.hour||this.hour===e.hour&&this.minute>e.minute}equals(e){return this.hour===e.hour&&this.minute===e.minute}isInRange(e,t){if(e.equals(t))return!1;let i=this.greaterThan(e)&&this.lessThan(t);e.greaterThan(t)&&(i=this.greaterThan(e)||this.lessThan(t));return i||this.equals(e)}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}`}static validatePart(e){const t=parseInt(e);return!Number.isNaN(t)&&t>=0&&t<=59?t:null}static millisecondsBefore(e){const t=new s,i=(new Date).getSeconds(),r=1e3*(3600*t.hour+60*t.minute+i);let o=1e3*(3600*e.hour+60*e.minute)-r;return(t.greaterThan(e)||t.equals(e)&&0!==i)&&(o+=864e5),o}}const l=(0,i.defineOptionsMetadata)({range:{defaultValue:{start:"18:00",end:"6:00"},displayName:"时间段",validator:e=>{const{start:t,end:i}=e,r=/^(\d{1,2}):(\d{1,2})$/;if(!r.test(t)||!r.test(i))return null;const o=new s(e.start),n=new s(e.end);return{start:o.toString(),end:n.toString()}}}}),a=e=>{const t=new s(e.options.range.start),i=new s(e.options.range.end),r=(new s).isInRange(t,i),n=(0,o.getComponentSettings)("darkMode");n.enabled!==r&&(n.enabled=r);let l=0;l=r?s.millisecondsBefore(i):s.millisecondsBefore(t),0!==l&&setTimeout((()=>a(e)),l)},u=(0,i.defineComponentMetadata)({name:"darkModeSchedule",displayName:"夜间模式计划时段",description:"设置一个使用夜间模式的时间段, 进入 / 离开此时间段时, 会自动开启 / 关闭夜间模式. 结束时间小于起始时间时将视为次日, 如 `18:00` 至 `6:00` 表示晚上 18:00 到次日 6:00. 请勿和 `夜间模式跟随系统` 一同使用.",tags:[componentsTags.style,componentsTags.general],entry:e=>{let{settings:t}=e;return(0,r.fullyLoaded)((()=>a(t)))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],options:l,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/schedule"]=t():e["style/dark-mode/schedule"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>u});const i=coreApis.componentApis.define,r=coreApis.lifeCycle,o=coreApis.settings;function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s{constructor(){n(this,"hour",void 0),n(this,"minute",void 0);for(var e=arguments.length,t=new Array(e),i=0;is.validatePart(e))),this.normalize()}else 2===t.length&&([this.hour,this.minute]=t)}normalize(){for(;this.minute<0;)this.minute+=60,this.hour-=1;for(;this.minute>=60;)this.minute-=60,this.hour+=1;for(;this.hour<0;)this.hour+=24;for(;this.hour>=24;)this.hour-=24}lessThan(e){return this.houre.hour||this.hour===e.hour&&this.minute>e.minute}equals(e){return this.hour===e.hour&&this.minute===e.minute}isInRange(e,t){if(e.equals(t))return!1;let i=this.greaterThan(e)&&this.lessThan(t);e.greaterThan(t)&&(i=this.greaterThan(e)||this.lessThan(t));return i||this.equals(e)}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}`}static validatePart(e){const t=parseInt(e);return!Number.isNaN(t)&&t>=0&&t<=59?t:null}static millisecondsBefore(e){const t=new s,i=(new Date).getSeconds(),r=1e3*(3600*t.hour+60*t.minute+i);let o=1e3*(3600*e.hour+60*e.minute)-r;return(t.greaterThan(e)||t.equals(e)&&0!==i)&&(o+=864e5),o}}const l=(0,i.defineOptionsMetadata)({range:{defaultValue:{start:"18:00",end:"6:00"},displayName:"时间段",validator:e=>{const{start:t,end:i}=e,r=/^(\d{1,2}):(\d{1,2})$/;if(!r.test(t)||!r.test(i))return null;const o=new s(e.start),n=new s(e.end);return{start:o.toString(),end:n.toString()}}}}),a=e=>{const t=new s(e.options.range.start),i=new s(e.options.range.end),r=(new s).isInRange(t,i),n=(0,o.getComponentSettings)("darkMode");n.enabled!==r&&(n.enabled=r);let l=0;l=r?s.millisecondsBefore(i):s.millisecondsBefore(t),0!==l&&setTimeout((()=>a(e)),l)},u=(0,i.defineComponentMetadata)({name:"darkModeSchedule",displayName:"夜间模式计划时段",description:"设置一个使用夜间模式的时间段, 进入 / 离开此时间段时, 会自动开启 / 关闭夜间模式. 结束时间小于起始时间时将视为次日, 如 `18:00` 至 `6:00` 表示晚上 18:00 到次日 6:00. 请勿和 `夜间模式跟随系统` 一同使用.",tags:[componentsTags.style,componentsTags.general],entry:e=>{let{settings:t}=e;return(0,r.fullyLoaded)((()=>a(t)))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],options:l,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/bangumi/reviews.js b/registry/dist/components/style/hide/bangumi/reviews.js index eb98a059f..3be36b9b5 100644 --- a/registry/dist/components/style/hide/bangumi/reviews.js +++ b/registry/dist/components/style/hide/bangumi/reviews.js @@ -6,4 +6,4 @@ t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(r)for(var i=0;i{var r=o(48);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({displayName:"隐藏番剧点评",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiReviews",(()=>Promise.resolve().then(n.t.bind(n,786,23)))),urlInclude:o.bangumiUrls,description:{"zh-CN":"隐藏番剧播放页面里的点评板块."},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(n[c]=!0)}for(var s=0;s{var r=o(48);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,n.d(i,c),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({displayName:"隐藏番剧点评",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiReviews",(()=>Promise.resolve().then(n.t.bind(n,786,23)))),urlInclude:o.bangumiUrls,description:{"zh-CN":"隐藏番剧播放页面里的点评板块."},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/bangumi/sponsors.js b/registry/dist/components/style/hide/bangumi/sponsors.js index f4787ab0c..0751e2595 100644 --- a/registry/dist/components/style/hide/bangumi/sponsors.js +++ b/registry/dist/components/style/hide/bangumi/sponsors.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(634);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({displayName:"隐藏番剧承包",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiSponsors",(()=>Promise.resolve().then(r.t.bind(r,819,23)))),urlInclude:o.bangumiUrls,description:{"zh-CN":"隐藏番剧页面下方的承包榜, 以及右边的承包按钮."},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c{var n=o(634);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({displayName:"隐藏番剧承包",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiSponsors",(()=>Promise.resolve().then(r.t.bind(r,819,23)))),urlInclude:o.bangumiUrls,description:{"zh-CN":"隐藏番剧页面下方的承包榜, 以及右边的承包按钮."},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/banner.js b/registry/dist/components/style/hide/banner.js index 66e80d0ef..94d6ae943 100644 --- a/registry/dist/components/style/hide/banner.js +++ b/registry/dist/components/style/hide/banner.js @@ -6,4 +6,4 @@ e.i=function(n,t,r){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var o={};if(r)for(var i=0;i{var r=t(944);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},r={};function o(n){var e=r[n];if(void 0!==e)return e.exports;var i=r[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var a={};n=n||[null,e({}),e([]),e(e)];for(var l=2&r&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>a[n]=()=>t[n]));return a.default=()=>t,o.d(i,a),i},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>t});const n=coreApis.componentApis.define,e=coreApis.utils.urls,t=(0,n.defineComponentMetadata)({name:"hideBanner",entry:none,displayName:"隐藏顶部横幅",instantStyles:[{name:"hideBanner",style:()=>Promise.resolve().then(o.t.bind(o,701,23))}],tags:[componentsTags.style],description:{"zh-CN":"隐藏首页顶部横幅."},urlInclude:e.mainSiteUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l{var r=t(944);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},r={};function o(n){var e=r[n];if(void 0!==e)return e.exports;var i=r[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var a={};n=n||[null,e({}),e([]),e(e)];for(var l=2&r&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>a[n]=()=>t[n]));return a.default=()=>t,o.d(i,a),i},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>t});const n=coreApis.componentApis.define,e=coreApis.utils.urls,t=(0,n.defineComponentMetadata)({name:"hideBanner",entry:none,displayName:"隐藏顶部横幅",instantStyles:[{name:"hideBanner",style:()=>Promise.resolve().then(o.t.bind(o,701,23))}],tags:[componentsTags.style],description:{"zh-CN":"隐藏首页顶部横幅."},urlInclude:e.mainSiteUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/trending-search.js b/registry/dist/components/style/hide/trending-search.js index 14234611c..d826eb21e 100644 --- a/registry/dist/components/style/hide/trending-search.js +++ b/registry/dist/components/style/hide/trending-search.js @@ -6,4 +6,4 @@ t.i=function(e,n,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(r)for(var i=0;i{var r=n(152);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},909:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=909,e.exports=t},643:e=>{"use strict";e.exports="隐藏搜索栏和搜索页面中的 `bilibili 热搜`. 请注意这只是视觉上的隐藏, 如果不输入任何关键词就点 Enter 或搜索按钮, 仍然会跳转至推荐的热搜词."}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.observer,n=(0,e.defineComponentMetadata)({name:"hideTrendingSearch",displayName:"隐藏热搜",tags:[componentsTags.style],instantStyles:[{name:"hideTrendingSearch",style:()=>Promise.resolve().then(o.t.bind(o,346,23))}],entry:async()=>{(0,t.allMutations)((e=>{e.forEach((e=>{e.target instanceof HTMLInputElement&&e.target.classList.contains("nav-search-input")&&"搜索"!==e.target.placeholder&&(e.target.placeholder="搜索")}))}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(909);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,643,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c{var r=n(152);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},909:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=909,e.exports=t},643:e=>{"use strict";e.exports="隐藏搜索栏和搜索页面中的 `bilibili 热搜`. 请注意这只是视觉上的隐藏, 如果不输入任何关键词就点 Enter 或搜索按钮, 仍然会跳转至推荐的热搜词."}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.observer,n=(0,e.defineComponentMetadata)({name:"hideTrendingSearch",displayName:"隐藏热搜",tags:[componentsTags.style],instantStyles:[{name:"hideTrendingSearch",style:()=>Promise.resolve().then(o.t.bind(o,346,23))}],entry:async()=>{(0,t.allMutations)((e=>{e.forEach((e=>{e.target instanceof HTMLInputElement&&e.target.classList.contains("nav-search-input")&&"搜索"!==e.target.placeholder&&(e.target.placeholder="搜索")}))}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(909);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,643,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/user-card.js b/registry/dist/components/style/hide/user-card.js index 025c6dfaa..bea819860 100644 --- a/registry/dist/components/style/hide/user-card.js +++ b/registry/dist/components/style/hide/user-card.js @@ -6,4 +6,4 @@ t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(r)for(var i=0;i{var r=o(693);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=(0,e.defineComponentMetadata)({displayName:"隐藏用户信息卡片",description:{"zh-CN":"隐藏鼠标指向用户名或用户头像时弹出的浮动用户信息卡片"},author:{name:"WakelessSloth56",link:"https://github.com/WakelessSloth56"},tags:[componentsTags.style],...(0,t.toggleStyle)("hideUserCard",(()=>Promise.resolve().then(n.t.bind(n,879,23)))),commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(n[c]=!0)}for(var s=0;s{var r=o(693);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,n.d(i,c),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=(0,e.defineComponentMetadata)({displayName:"隐藏用户信息卡片",description:{"zh-CN":"隐藏鼠标指向用户名或用户头像时弹出的浮动用户信息卡片"},author:{name:"WakelessSloth56",link:"https://github.com/WakelessSloth56"},tags:[componentsTags.style],...(0,t.toggleStyle)("hideUserCard",(()=>Promise.resolve().then(n.t.bind(n,879,23)))),commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/notes.js b/registry/dist/components/style/hide/video/notes.js index f5d626109..e5ae9b132 100644 --- a/registry/dist/components/style/hide/video/notes.js +++ b/registry/dist/components/style/hide/video/notes.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(448);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},96:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=96,e.exports=t},982:e=>{"use strict";e.exports='隐藏视频页面中的 "记笔记" 按钮.\n'}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideVideoNotes",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,displayName:"隐藏记笔记",tags:[componentsTags.video,componentsTags.style],entry:none,instantStyles:[{name:e,style:()=>Promise.resolve().then(r.t.bind(r,923,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(96);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,982,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c{var n=o(448);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},96:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=96,e.exports=t},982:e=>{"use strict";e.exports='隐藏视频页面中的 "记笔记" 按钮.\n'}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideVideoNotes",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,displayName:"隐藏记笔记",tags:[componentsTags.video,componentsTags.style],entry:none,instantStyles:[{name:e,style:()=>Promise.resolve().then(r.t.bind(r,923,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(96);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,982,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/recommended-live.js b/registry/dist/components/style/hide/video/recommended-live.js index 0477bd0ff..00d57335c 100644 --- a/registry/dist/components/style/hide/video/recommended-live.js +++ b/registry/dist/components/style/hide/video/recommended-live.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(523);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"hideRecommendedLive",entry:none,instantStyles:[{name:"hideRecommendedLive",style:()=>Promise.resolve().then(r.t.bind(r,392,23))}],displayName:"隐藏直播推荐",tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频页面右侧下方的直播推荐."},urlInclude:t.videoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var d=0;d{var n=o(523);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&o;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"hideRecommendedLive",entry:none,instantStyles:[{name:"hideRecommendedLive",style:()=>Promise.resolve().then(r.t.bind(r,392,23))}],displayName:"隐藏直播推荐",tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频页面右侧下方的直播推荐."},urlInclude:t.videoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/related-videos.js b/registry/dist/components/style/hide/video/related-videos.js index c6f359c7c..3bb013db0 100644 --- a/registry/dist/components/style/hide/video/related-videos.js +++ b/registry/dist/components/style/hide/video/related-videos.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{var o=n(525);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},459:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=459,e.exports=t},319:e=>{"use strict";e.exports="隐藏番剧和视频页面右侧的推荐视频列表. 注意: 如果你想关闭 b 站的自动连播 (自动播放下一个推荐视频) 功能, 需要先取消隐藏视频推荐才能看到开关.\n"}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"hideRelatedVideos",displayName:"隐藏视频推荐",entry:none,instantStyles:[{name:"hideRelatedVideos",style:()=>Promise.resolve().then(r.t.bind(r,70,23))}],tags:[componentsTags.style,componentsTags.video],urlInclude:t.videoAndBangumiUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(459);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,319,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var o=n(525);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},459:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=459,e.exports=t},319:e=>{"use strict";e.exports="隐藏番剧和视频页面右侧的推荐视频列表. 注意: 如果你想关闭 b 站的自动连播 (自动播放下一个推荐视频) 功能, 需要先取消隐藏视频推荐才能看到开关.\n"}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"hideRelatedVideos",displayName:"隐藏视频推荐",entry:none,instantStyles:[{name:"hideRelatedVideos",style:()=>Promise.resolve().then(r.t.bind(r,70,23))}],tags:[componentsTags.style,componentsTags.video],urlInclude:t.videoAndBangumiUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(459);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,319,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/report.js b/registry/dist/components/style/hide/video/report.js index 28efd0e5b..01b0bb182 100644 --- a/registry/dist/components/style/hide/video/report.js +++ b/registry/dist/components/style/hide/video/report.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(118);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},211:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=211,e.exports=t},282:e=>{"use strict";e.exports='隐藏视频页面中的 "稿件投诉" 按钮.\n'}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideVideoReport",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,displayName:"隐藏稿件投诉",tags:[componentsTags.video,componentsTags.style],entry:none,instantStyles:[{name:e,style:()=>Promise.resolve().then(r.t.bind(r,111,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(211);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,282,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var c=this[i][0];null!=c&&(r[c]=!0)}for(var a=0;a{var n=o(118);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},211:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=211,e.exports=t},282:e=>{"use strict";e.exports='隐藏视频页面中的 "稿件投诉" 按钮.\n'}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,r.d(i,c),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>t});const e="hideVideoReport",t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:e,displayName:"隐藏稿件投诉",tags:[componentsTags.video,componentsTags.style],entry:none,instantStyles:[{name:e,style:()=>Promise.resolve().then(r.t.bind(r,111,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(211);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,282,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/share.js b/registry/dist/components/style/hide/video/share.js index f74354b27..d4885b07c 100644 --- a/registry/dist/components/style/hide/video/share.js +++ b/registry/dist/components/style/hide/video/share.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(393);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},799:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=799,e.exports=t},9:e=>{"use strict";e.exports="隐藏视频和番剧播放器下方的分享按钮.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"hideVideoShare",displayName:"隐藏视频分享",tags:[componentsTags.style,componentsTags.video],instantStyles:[{name:"hideVideoShare",style:()=>Promise.resolve().then(r.t.bind(r,141,23))}],entry:none,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(799);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,9,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var n=o(393);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},799:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=799,e.exports=t},9:e=>{"use strict";e.exports="隐藏视频和番剧播放器下方的分享按钮.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"hideVideoShare",displayName:"隐藏视频分享",tags:[componentsTags.style,componentsTags.video],instantStyles:[{name:"hideVideoShare",style:()=>Promise.resolve().then(r.t.bind(r,141,23))}],entry:none,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(799);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,9,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/hide/video/top-mask.js b/registry/dist/components/style/hide/video/top-mask.js index 0c5412608..facf9b871 100644 --- a/registry/dist/components/style/hide/video/top-mask.js +++ b/registry/dist/components/style/hide/video/top-mask.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(396);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&n&&o;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o="hideVideoTopMask",n=(0,e.defineComponentMetadata)({name:o,displayName:"隐藏视频标题层",entry:none,instantStyles:[{name:o,style:()=>Promise.resolve().then(r.t.bind(r,292,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频里鼠标经过时出现在右上角的覆盖层."},urlInclude:t.playerUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var p=0;p{var n=o(396);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&n&&o;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o="hideVideoTopMask",n=(0,e.defineComponentMetadata)({name:o,displayName:"隐藏视频标题层",entry:none,instantStyles:[{name:o,style:()=>Promise.resolve().then(r.t.bind(r,292,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频里鼠标经过时出现在右上角的覆盖层."},urlInclude:t.playerUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/home-redesign/fresh.js b/registry/dist/components/style/home-redesign/fresh.js index 92f7a285c..babfc9761 100644 --- a/registry/dist/components/style/home-redesign/fresh.js +++ b/registry/dist/components/style/home-redesign/fresh.js @@ -16,4 +16,4 @@ e=e.slice(1,-1)),t.hash&&( e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},3091:(e,t,n)=>{"use strict";n.d(t,{b:()=>o,o:()=>r});const o={panelWidth:400,panelHeight:604,padding:12,rankItemHeight:110,rankItemMargin:24,rankItemTitleHeight:20,firstCoverHeight:225,firstCoverWidth:350,secondCoverHeight:110,secondCoverWidth:168,thirdCoverHeight:90,thirdCoverWidth:139},r={panelWidth:376,panelHeight:580,padding:0}},5132:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var o=n(9153);const r=[{name:"blackboard",displayName:"活动",component:()=>Promise.resolve().then(n.bind(n,9082)).then((e=>e.default))},{name:"trending",displayName:"热门视频",grow:!0,component:()=>Promise.resolve().then(n.bind(n,3705)).then((e=>e.default))},{name:"feeds",displayName:"动态",grow:!0,component:()=>Promise.resolve().then(n.bind(n,9302)).then((e=>e.default))},{name:"areas",displayName:"栏目",component:()=>Promise.resolve().then(n.bind(n,6093)).then((e=>e.default))},{name:"categories",displayName:"分区",grow:!0,component:()=>Promise.resolve().then(n.bind(n,1532)).then((e=>e.default))}],[a]=(0,o.registerAndGetData)("homeRedesign.fresh.layouts",[...r])},3485:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(9986);const r=(0,o.getComponentSettings)("freshHome").options},3180:(e,t,n)=>{"use strict";n.d(t,{b:()=>i,a:()=>a});const o=coreApis.observer,r=new Map,a=e=>{const{container:t,items:n}=e,a=r.get(t);if(a&&(a.forEach((e=>e.disconnect())),r.delete(t)),0===n.length)return;const i={threshold:[1],root:t},[s]=n,[d]=(0,o.intersectionObserve)([s],i,(e=>e.forEach((e=>{const n=e.isIntersecting&&1===e.intersectionRatio;t.classList.toggle("scroll-top",n)})))),l=[];if(r.set(t,l),l.push(d),n.length>1){const e=n[n.length-1],[r]=(0,o.intersectionObserve)([e],i,(e=>e.forEach((e=>{const n=e.isIntersecting&&1===e.intersectionRatio;t.classList.toggle("scroll-bottom",n)}))));l.push(r)}},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(r.has(e)){r.get(e).forEach((e=>e.disconnect())),r.delete(e)}}))}},6066:(e,t,n)=>{"use strict";n.d(t,{r:()=>d,_:()=>l});var o=n(1952),r=n(605),a=n(9986);let i=function(e){return e.Dark="深色",e.Light="浅色",e}({});const s={[i.Dark]:"dark",[i.Light]:"light"};(0,a.addComponentListener)("freshHome.areaPrimaryTitleColor",(e=>{document.documentElement.setAttribute("fresh-home--options--area-primary-title-color",s[e])}),!0);let d=function(e){return e.Default="default",e.Compact="compact",e}({});const l=(0,o.defineOptionsMetadata)({layoutOptions:{displayName:"版块设置",defaultValue:{blackboard:{linebreak:!1,order:1,hidden:!1},trending:{linebreak:!0,order:2,hidden:!1},feeds:{linebreak:!1,order:3,hidden:!1},areas:{linebreak:!0,order:4,hidden:!1},categories:{linebreak:!1,order:5,hidden:!1}},hidden:!0},personalized:{displayName:"个性化推荐",defaultValue:!1},horizontalWheelScroll:{displayName:"启用横向滚动",defaultValue:!1},areaPrimaryTitleColor:{displayName:"栏目主标题颜色",dropdownEnum:i,defaultValue:i.Dark},maxWidth:{displayName:"最大宽度 (px)",defaultValue:1440,validator:(0,r.getNumberValidator)(1e3,3e3)},rankListMode:{displayName:"",defaultValue:d.Default,hidden:!0}})},5311:(e,t,n)=>{"use strict";n.d(t,{Ov:()=>i,QP:()=>d,kN:()=>s});var o=n(2375),r=n(3485),a=n(6066);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{requestMethod:t=o.getJson}=e;return Vue.extend({props:{api:{type:String,required:!0}},data:()=>({items:[],loading:!0,error:!1}),computed:{loaded(){return!this.loading&&!this.error}},created(){this.reload()},methods:{async reload(){try{this.error=!1,this.loading=!0,this.items=this.parseJson(await t(this.api)).slice(0,this.itemLimit??1/0)}catch(e){console.error(e),this.error=!0}finally{this.loading=!1}}}})},s=e=>Vue.extend({data:()=>({ui:e}),mounted(){const t=this.$el;Object.entries(e).forEach((e=>{let[n,o]=e;const r="number"==typeof o?`${o}px`:o;t.style.setProperty(`--${lodash.kebabCase(n)}`,r)}))}}),d=()=>Vue.extend({data:()=>({rankListMode:r.O.rankListMode}),computed:{isCompactRankList(){return this.rankListMode===a.r.Compact}},methods:{toggleRankListMode(){this.rankListMode===a.r.Compact?this.rankListMode=a.r.Default:this.rankListMode===a.r.Default&&(this.rankListMode=a.r.Compact),r.O.rankListMode=this.rankListMode}}})},4352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-extra-options"},[t("div",{staticClass:"fresh-home-extra-options-title"},[e._v("布局配置")]),e._v(" "),e.loaded?e._e():t("VLoading"),e._v(" "),e.loaded?t("div",{staticClass:"fresh-home-extra-options-tips"},[t("div",{staticClass:"fresh-home-extra-options-tip"},[e._v("\n 按住并拖动可以调整顺序, 打开换行后下一个元素将会另起一行.\n ")]),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legends"},[t("div",{staticClass:"fresh-home-extra-options-legend"},[t("VIcon",{attrs:{icon:"mdi-arrow-expand-horizontal",size:16}}),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend-text"},[e._v("可变宽度")])],1),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend"},[t("VIcon",{attrs:{icon:"mdi-arrow-collapse-horizontal",size:16}}),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend-text"},[e._v("固定宽度")])],1),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend"},[t("VIcon",{attrs:{icon:"mdi-wrap",size:16}}),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend-text"},[e._v("切换换行")])],1),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend"},[t("VIcon",{attrs:{icon:"mdi-eye-outline",size:16}}),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-legend-text"},[e._v("切换显示")])],1)])]):e._e(),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],ref:"sortList",staticClass:"fresh-home-extra-options-sort-list"},e._l(e.sortedItems,(function(n){return t("div",{key:n.layoutItem.name,staticClass:"fresh-home-extra-options-sort-item",class:{"fresh-home-extra-options-sort-item-dimmed":n.layoutSettings.hidden},attrs:{"data-name":n.layoutItem.name}},[n.layoutItem.grow?t("VIcon",{staticClass:"fresh-home-extra-options-sort-item-type",attrs:{title:"可变宽度",icon:"mdi-arrow-expand-horizontal",size:16}}):t("VIcon",{staticClass:"fresh-home-extra-options-sort-item-type",attrs:{icon:"mdi-arrow-collapse-horizontal",title:"固定宽度",size:16}}),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-sort-item-name"},[e._v(e._s(n.layoutItem.displayName))]),e._v(" "),t("div",{staticClass:"fresh-home-extra-options-sort-item-actions"},[t("VButton",{attrs:{type:"transparent",title:"切换换行",icon:""},on:{click:function(t){return e.toggleLinebreak(n.layoutItem)}}},[n.layoutSettings.linebreak?t("VIcon",{attrs:{icon:"mdi-wrap",size:16}}):t("VIcon",{attrs:{icon:"mdi-wrap-disabled",size:16}})],1),e._v(" "),t("VButton",{attrs:{type:"transparent",title:"切换显示",icon:""},on:{click:function(t){return e.toggleVisible(n.layoutItem)}}},[n.layoutSettings.hidden?t("VIcon",{attrs:{icon:"mdi-eye-off-outline",size:16}}):t("VIcon",{attrs:{icon:"mdi-eye-outline",size:16}})],1)],1)],1)})),0)],1)};o._withStripped=!0;const r=coreApis.runtimeLibrary;var a=n(4577),i=n(9648),s=n(5132),d=n(3485);const l=Vue.extend({components:{VLoading:i.VLoading,VIcon:i.VIcon,VButton:i.VButton},data:()=>({loaded:!1,layouts:s.$,sortedItems:[]}),async mounted(){const e=this.$refs.sortList,t=await r.SortableJSLibrary;console.log({list:e}),t.create(e,{delay:100,forceFallback:!0,onEnd:e=>{const t=[...this.sortedItems],[n]=t.splice(e.oldIndex,1);console.log(n.layoutItem.name,`${e.oldIndex} -> ${e.newIndex}`),t.splice(e.newIndex,0,n);const{layoutOptions:o}=d.O;t.forEach(((e,t)=>{o[e.layoutItem.name].order=t+1,e.layoutSettings.order=t+1})),this.sortedItems=t}}),this.sortItems(),this.loaded=!0},methods:{sortItems(){this.sortedItems=this.layouts.map(((e,t)=>({layoutItem:e,layoutSettings:{linebreak:!1,order:t+1,hidden:!1,...d.O.layoutOptions[e.name]}}))).filter((e=>null!==e)).sort((0,a.ascendingSort)((e=>e.layoutSettings.order)))},toggleLinebreak(e){const t=d.O.layoutOptions[e.name];t.linebreak=!t.linebreak,this.sortItems()},toggleVisible(e){const t=d.O.layoutOptions[e.name];t.hidden=!t.hidden,this.sortItems()}}}),h=l;var c=n(8332),m=n.n(c),p=n(3897),f=n.n(p),b={insert:"head",singleton:!1};m()(f(),b);f().locals;const u=(0,n(6499).Z)(h,o,[],!1,null,null,null).exports},8619:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("HomeRedesignBase",[t("div",{staticClass:"fresh-home"},[t("div",{staticClass:"fresh-home-content-layout"},e._l(e.layouts,(function(e){return t("FreshLayoutItem",{key:e.name,attrs:{item:e}})})),1)])])};o._withStripped=!0;var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"home-redesign-base"},[e._t("default")],2)};r._withStripped=!0;const a=(0,globalThis.Vue.defineComponent)({__name:"HomeRedesignBase",setup(e){const t=new URLSearchParams(location.search);if(t.has("bvid")){const e=new URLSearchParams([...t.entries()].filter((e=>{let[t]=e;return"bvid"!==t})));location.replace(`/video/${t.get("bvid")}${e.size>0?`?${e.toString()}`:""}`)}return{__sfc:!0,params:t}}});var i=n(8332),s=n.n(i),d=n(1973),l=n.n(d),h={insert:"head",singleton:!1};s()(l(),h);l().locals;var c=n(6499);const m=(0,c.Z)(a,r,[],!1,null,null,null).exports;var p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-content-layout-item-container",class:{"fresh-home-content-layout-item-hidden":e.options.hidden}},[e.options.hidden?e._e():[t("div",{staticClass:"fresh-home-content-layout-item",class:{grow:e.item.grow},style:{order:e.options.order}},[t(e.item.component,{tag:"component"})],1),e._v(" "),e.options.linebreak?t("div",{staticClass:"fresh-home-content-layout-item linebreak",style:{order:e.options.order}}):e._e()]],2)};p._withStripped=!0;var f=n(3485);const b=Vue.extend({props:{item:{required:!0,type:Object}},data(){return{options:f.O.layoutOptions[this.item.name]??{}}}});var u=n(938),g=n.n(u),v={insert:"head",singleton:!1};s()(g(),v);g().locals;const x=(0,c.Z)(b,p,[],!1,null,null,null).exports;var k=n(5132);const y=Vue.extend({components:{HomeRedesignBase:m,FreshLayoutItem:x},data:()=>({layouts:k.$})});var w=n(1413),A=n.n(w),V={insert:"head",singleton:!1};s()(A(),V);A().locals;const C=(0,c.Z)(y,o,[],!1,null,null,null).exports},8266:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fresh-home-sub-header"},[t("div",{staticClass:"fresh-home-sub-header-dot"}),e._v(" "),e._t("default")],2)};o._withStripped=!0;var r=n(8332),a=n.n(r),i=n(6273),s=n.n(i),d={insert:"head",singleton:!1};a()(s(),d);s().locals;const l=(0,n(6499).Z)({},o,[],!1,null,null,null).exports},2542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-video-list scroll-top scroll-bottom",class:{"not-empty":e.videos.length>0}},[t("div",{ref:"content",staticClass:"fresh-home-video-list-content"},[0===e.videos.length?t("div",{staticClass:"fresh-home-video-list-empty"},[e.loading?t("VLoading"):t("VEmpty")],1):e._l(e.videos,(function(e){return t("VideoCardWrapper",{key:e.id,ref:"cards",refInFor:!0,attrs:{data:e}})}))],2)])};o._withStripped=!0;var r=n(9648),a=n(6831),i=n(9986),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-video-card-wrapper"},[t("VideoCard",e._b({attrs:{orientation:"vertical"}},"VideoCard",e.$attrs,!1))],1)};s._withStripped=!0;const d=coreApis.componentApis.feeds.VideoCard;var l=n.n(d);const h=Vue.extend({components:{VideoCard:l()}});var c=n(8332),m=n.n(c),p=n(4411),f=n.n(p),b={insert:"head",singleton:!1};m()(f(),b);f().locals;var u=n(6499);const g=(0,u.Z)(h,s,[],!1,null,null,null).exports;var v=n(3180);const x=Vue.extend({components:{VEmpty:r.VEmpty,VLoading:r.VLoading,VideoCardWrapper:g},props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!0}},watch:{videos(){this.setupIntersection()},loaded(){this.loaded&&this.setupIntersection()}},beforeDestroy(){(0,v.b)(this.$el)},mounted(){const e=this.$refs.content;let t;(0,i.addComponentListener)("freshHome.horizontalWheelScroll",(n=>{n?t=(0,a.enableHorizontalScroll)(e):t?.()}),!0)},methods:{async setupIntersection(){await this.$nextTick(),(0,v.a)({container:this.$el,items:this.$refs.cards.map((e=>e.$el))})},offsetPage(e){const t=this.$refs.content,n=getComputedStyle(t),o=t.clientWidth,r=parseFloat(n.getPropertyValue("--card-width"))+parseFloat(n.getPropertyValue("--card-padding")),a=Math.trunc(o/r)*r;t.scrollBy(e*a,0)}}});var k=n(6745),y=n.n(k),w={insert:"head",singleton:!1};m()(y(),w);y().locals;const A=(0,u.Z)(x,o,[],!1,null,null,null).exports},6093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-areas"},[e._m(0),e._v(" "),t("div",{staticClass:"fresh-home-areas-content"},[t("a",{staticClass:"fresh-home-areas-content-primary",attrs:{href:e.primary.url,target:"_blank"}},[t("div",{staticClass:"fresh-home-areas-content-primary-image"}),e._v(" "),t("div",{staticClass:"fresh-home-areas-content-primary-title"},[e._v("\n "+e._s(e.primary.title)+"\n ")])]),e._v(" "),t("div",{staticClass:"fresh-home-areas-content-other"},e._l(e.others,(function(n){return t("a",{key:n.title,attrs:{href:n.url,target:"_blank"}},[t("VButton",{attrs:{type:"transparent"}},[t("VIcon",{attrs:{colored:"",icon:n.icon,size:22}}),e._v("\n "+e._s(n.title)+"\n ")],1)],1)})),0)])])};o._withStripped=!0;var r=n(9153),a=n(9648);(0,r.addData)("ui.icons",(e=>{e["live-colored"]='\n \n \n \n \n',e["topic-colored"]='\n \n',e["black-room-colored"]='\n \n \n \n \n \n \n \n \n'}));const i={title:"专栏",url:"https://www.bilibili.com/read/home"},s=[{title:"直播",url:"https://live.bilibili.com/",icon:"live-colored"},{title:"专题",url:"https://www.bilibili.com/blackboard/topic_list.html",icon:"topic-colored"},{title:"小黑屋",url:"https://www.bilibili.com/blackroom/",icon:"black-room-colored"}],d=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon},data:()=>({primary:i,others:s})});var l=n(8332),h=n.n(l),c=n(4937),m=n.n(c),p={insert:"head",singleton:!1};h()(m(),p);m().locals;const f=(0,n(6499).Z)(d,o,[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-header"},[t("div",{staticClass:"fresh-home-header-title"},[e._v("栏目")])])}],!1,null,null,null).exports},9082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-blackboard",on:{mouseenter:e.destroyTimer,mouseleave:e.createTimer}},[t("div",{staticClass:"fresh-home-header"},[t("div",{staticClass:"fresh-home-header-title"},[e._v("活动")]),e._v(" "),t("a",{staticClass:"fresh-home-header-icon-button rotate",attrs:{href:"https://www.bilibili.com/blackboard/x/act_list/",target:"_blank"}},[t("VButton",{attrs:{round:""}},[t("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:20}}),e._v("\n 更多\n ")],1)],1)]),e._v(" "),e._l(e.blackboards,(function(e,n){return t("input",{key:n,staticClass:"fresh-home-blackboard-radio",attrs:{id:"blackboard"+n,type:"radio",name:"blackboard","data-index":n},domProps:{checked:0===n}})})),e._v(" "),t("div",{staticClass:"fresh-home-blackboard-cards"},e._l(e.blackboards,(function(n,o){return t("a",{key:o,staticClass:"fresh-home-blackboard-card",attrs:{target:"_blank",href:n.url,title:n.title}},[t("DpiImage",{staticClass:"fresh-home-blackboard-card-image",attrs:{src:n.imageUrl,alt:n.title,size:{width:500,height:250},intersection:{root:e.cardsContainer}}}),e._v(" "),t("div",{staticClass:"fresh-home-blackboard-card-title",attrs:{title:n.title}},[e._v("\n "+e._s(n.title)+"\n ")])],1)})),0),e._v(" "),t("div",{staticClass:"fresh-home-blackboard-jump-dots"},e._l(e.blackboards,(function(e,n){return t("label",{key:n,attrs:{for:"blackboard"+n}},[t("div",{staticClass:"fresh-home-blackboard-jump-dot"})])})),0)],2)};o._withStripped=!0;var r=n(9648),a=n(2375);const i=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon,DpiImage:r.DpiImage},data:()=>({blackboards:[],timer:0}),computed:{cardsContainer(){return this.$el.querySelector(".fresh-home-blackboard-cards")}},async created(){const e=await(async()=>{const e=4694,{code:t,message:n,data:o}=await(0,a.getJson)("https://api.bilibili.com/x/web-show/res/locs?pf=0&ids=4694");if(0!==t)throw new Error(`获取活动卡片失败: ${n}`);return o[4694].map((t=>({url:t.url,title:t.name,isAd:t.res_id!==e,imageUrl:t.pic})))})();this.blackboards=e.filter((e=>!e.isAd))},mounted(){this.createTimer()},beforeDestroy(){this.destroyTimer()},methods:{createTimer(){if(this.timer)return;const e="fresh-home-blackboard-radio";this.timer=window.setInterval((()=>{if(!document.hasFocus()||this.$el.matches(":hover"))return;const t=parseInt(dq(`.${e}:checked`).getAttribute("data-index"));let n;n=t===this.blackboards.length-1?0:t+1,dq(`.${e}[data-index='${n}']`).checked=!0}),5e3)},destroyTimer(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}}});var s=n(8332),d=n.n(s),l=n(9270),h=n.n(l),c={insert:"head",singleton:!1};d()(h(),c);h().locals;const m=(0,n(6499).Z)(i,o,[],!1,null,null,null).exports},1532:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-categories"},[t("div",{staticClass:"fresh-home-header"},[t("div",{staticClass:"fresh-home-header-title"},[e._v("分区")]),e._v(" "),t("div",{staticClass:"fresh-home-header-center-area"},[t("div",{staticClass:"fresh-home-header-tabs"},[t("div",{ref:"tabs",staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},attrs:{"data-name":n.name},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)])]),e._v(" "),t("div",{staticClass:"fresh-home-header-pagination"},[e.isReordering?t("VButton",{attrs:{icon:"",title:"完成排序"},on:{click:e.toggleReorder}},[t("VIcon",{attrs:{icon:"mdi-check",size:18}})],1):t("VButton",{attrs:{icon:"",title:"排序"},on:{click:e.toggleReorder}},[t("VIcon",{attrs:{icon:"mdi-swap-horizontal",size:18}})],1)],1)]),e._v(" "),t("div",{staticClass:"fresh-home-categories-content"},[t(e.content,{tag:"component",attrs:{region:e.selectedTab}})],1)])};o._withStripped=!0;const r=coreApis.reorder;var a=n(4577),i=n(9648),s=n(3485);const d=coreApis.componentApis.utils.categories.data,l=JSON.parse('["推广","正在直播","动画","番剧","番剧动态","国创","国产原创相关","漫画","音乐","舞蹈","游戏","知识","课堂","科技","运动","汽车","生活","美食","动物圈","鬼畜","时尚","资讯","娱乐","专栏","电影","电视剧","影视","纪录片","特别推荐"]'),h=["推广","正在直播","番剧动态","国产原创相关","漫画","课堂","专栏","特别推荐"],c=Object.fromEntries(Object.entries(d.categories).filter((e=>{let[t]=e;return!h.includes(t)&&!!l.includes(t)}))),m=["番剧","国创"],p=e=>(console.log("getContent",e),m.includes(e)?()=>Promise.resolve().then(n.bind(n,1798)).then((e=>e.default)):()=>Promise.resolve().then(n.bind(n,1960)).then((e=>e.default))),f=Object.entries(c).map((e=>{let[t,n]=e;return{id:n.code,name:t,displayName:t,category:n,href:n.link,order:0}})),b=Vue.extend({components:{VButton:i.VButton,VIcon:i.VIcon},data(){const e=s.O.categoriesOrder??{},t=[...f].sort((0,a.ascendingSort)((t=>e[t.name])));return{tabs:t,isReordering:!1,reorder:null,selectedTab:t[0],content:p(t[0].name)}},mounted(){const e=this.$refs.tabs,t=new r.Reorder(e);t.addEventListener("reorder",(e=>{let{detail:t}=e;const n=Object.fromEntries(t.map((e=>[e.element.getAttribute("data-name"),e.order])));console.log(t,n),s.O.categoriesOrder=n})),this.reorder=t},methods:{toggleReorder(){this.reorder.toggle(),this.isReordering=this.reorder.enabled},selectTab(e){this.isReordering||(this.selectedTab!==e?(this.selectedTab=e,this.content=p(e.name)):window.open(e.href,"_blank"))}}});var u=n(8332),g=n.n(u),v=n(2382),x=n.n(v),k={insert:"head",singleton:!1};g()(x(),k);x().locals;const y=(0,n(6499).Z)(b,o,[],!1,null,null,null).exports},1798:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Q});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-categories-bangumi"},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline"},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline-header"},[t("SubHeader",[e._v(" 时间表 ")])],1),e._v(" "),t("BangumiTimeline",{attrs:{api:e.timelineApi}})],1),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-rank-list"},[t("div",{staticClass:"fresh-home-categories-bangumi-rank-list-header"},[t("a",{attrs:{href:e.rankingsLink,target:"_blank"}},[t("SubHeader",[e._v(" 排行榜 ")])],1),e._v(" "),e.isCompactRankList?t("VButton",{attrs:{icon:"",title:"显示较少项目"},on:{click:e.toggleRankListMode}},[t("VIcon",{attrs:{icon:"mdi-poll",size:16}})],1):t("VButton",{attrs:{icon:"",title:"显示较多项目"},on:{click:e.toggleRankListMode}},[t("VIcon",{attrs:{icon:"mdi-format-list-text",size:16}})],1)],1),e._v(" "),e.isCompactRankList?t("CompactRankList",{attrs:{"parse-json":e.parseJson,api:e.rankingsApi}}):t("RankList",{attrs:{"bangumi-mode":"","parse-json":e.parseJson,api:e.rankingsApi}})],1)])};o._withStripped=!0;var r=n(9648),a=n(9799),i=n(8266),s=n(6127),d=n(855),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-categories-bangumi-timeline-content",class:{loading:e.loading,loaded:e.loaded,scrolled:e.scrolled,empty:0===e.items.length}},[e.loading?t("VLoading"):e._e(),e._v(" "),e.loaded&&0===e.items.length?t("VEmpty"):e._e(),e._v(" "),e._l(e.items,(function(n,o){return t("div",{key:n.date_ts,staticClass:"fresh-home-categories-bangumi-timeline-item animation",class:{today:o===e.todayIndex}},[0===n.episodes.length?t("div",{staticClass:"fresh-home-categories-bangumi-timeline-empty-background"}):e._e(),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-date"},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline-date-icon",class:{today:o===e.todayIndex,["day-of-week-"+n.day_of_week]:!0}}),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-date-number"},[e._v("\n "+e._s(n.date)+"\n ")]),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-date-text"},[e._v("\n "+e._s(e.dayOfWeekText(n))+"\n ")]),e._v(" "),o===e.todayIndex?t("div",{staticClass:"fresh-home-categories-bangumi-timeline-date-today"},[e._v("\n TODAY\n ")]):e._e()]),e._v(" "),n.episodes.length>0?t("VButton",{attrs:{icon:"",type:"transparent",title:"上一页"},on:{click:function(t){return e.offsetPage(n,-1)}}},[t("VIcon",{attrs:{icon:"left-arrow",size:16}})],1):e._e(),e._v(" "),t("div",{ref:"seasonsList",refInFor:!0,staticClass:"fresh-home-categories-bangumi-timeline-seasons-container scroll-top scroll-bottom",class:{"not-empty":n.episodes.length>0},attrs:{"data-date":n.date}},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline-seasons",class:{today:o===e.todayIndex}},[0===n.episodes.length?t("VEmpty"):e._e(),e._v(" "),e._l(n.episodes,(function(n){return t("a",{key:`${n.season_id}-${n.episode_id}-${n.delay_id}`,staticClass:"fresh-home-categories-bangumi-timeline-season",class:{today:o===e.todayIndex,delay:Boolean(n.delay)},attrs:{"data-season":n.season_id,"data-episode":n.episode_id,target:"_blank",href:`https://www.bilibili.com/bangumi/play/ss${n.season_id}`}},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-cover",class:{published:o===e.todayIndex&&e.isPublished(n),today:o===e.todayIndex,follow:n.follow}},[t("DpiImage",{attrs:{src:n.square_cover,size:80}})],1),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-title",class:{today:o===e.todayIndex},attrs:{title:n.title}},[e._v("\n "+e._s(n.title)+"\n ")]),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-episode",attrs:{title:e.getEpisode(n)}},[e._v("\n "+e._s(e.getEpisode(n))+"\n ")]),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-time",class:{published:o===e.todayIndex&&e.isPublished(n),follow:n.follow,today:o===e.todayIndex}},[t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-time-icon"},[n.follow?t("VIcon",{attrs:{icon:"mdi-heart-outline",size:14}}):t("VIcon",{attrs:{icon:e.isPublished(n)?"mdi-clock-check-outline":"mdi-progress-clock",size:14}})],1),e._v(" "),t("div",{staticClass:"fresh-home-categories-bangumi-timeline-season-time-text"},[e._v("\n "+e._s(n.pub_time)+"\n ")])])])}))],2)]),e._v(" "),n.episodes.length>0?t("VButton",{attrs:{icon:"",type:"transparent",title:"下一页"},on:{click:function(t){return e.offsetPage(n,1)}}},[t("VIcon",{attrs:{icon:"right-arrow",size:16}})],1):e._e()],1)}))],2)};l._withStripped=!0;var h=n(9986),c=n(6831),m=n(5311),p=n(3091),f=n(3180),b=n(2375);const u=p.b.panelHeight-2*p.b.padding,g=(()=>{const e=(u-524)/5;return{seasonItemWidth:250,seasonTodayWidth:250,timelineItemHeight:82,timelineTodayHeight:114,timelineViewportItemsHeight:524,timelineItemGap:e,timelineViewportHeight:5*e+524}})(),v=Vue.extend({components:{DpiImage:r.DpiImage,VIcon:r.VIcon,VEmpty:r.VEmpty,VLoading:r.VLoading,VButton:r.VButton},mixins:[(0,m.Ov)({requestMethod:b.getJsonWithCredentials}),(0,m.kN)(g)],data:()=>({observers:[],now:Number(new Date),timer:0,scrolled:!1}),computed:{todayIndex(){return this.items.findIndex((e=>1===e.is_today))},pastWeekItems(){return this.items.slice(0,this.todayIndex+1)},currentWeekItems(){return this.items.slice(this.todayIndex)}},watch:{loaded(){this.loaded&&this.updateScrollPosition()}},mounted(){this.timer=setInterval((()=>{this.now=Number(new Date)}),6e4);const e=this.$el;let t=0;const n=()=>{t++,t>=7&&(e.classList.add("snap"),e.removeEventListener("animationend",n))};e.addEventListener("animationend",n)},beforeDestroy(){this.timer&&clearInterval(this.timer);const e=this.$refs.seasonsList;(0,f.b)(...e)},methods:{parseJson:e=>e.result??[],async updateScrollPosition(){await this.$nextTick();const e=this.$refs.seasonsList;let t;(0,h.addComponentListener)("freshHome.horizontalWheelScroll",(n=>{if(n){const n=e.flatMap((e=>[...e.children])).map((e=>(0,c.enableHorizontalScroll)(e)));t=()=>n.forEach((e=>e()))}else t?.()}),!0);this.$el.scrollTop=5*g.timelineItemHeight+5*g.timelineItemGap;const n=".fresh-home-categories-bangumi-timeline";e.forEach((e=>{(0,f.a)({container:e,items:dqa(e,`${n}-season`)})}));const o=dq(`${n}-seasons.today`);if(!o)return;const r=this.items[this.todayIndex]?.episodes;if(0===r.length)return;const a=[...r].reverse().find((e=>this.isPublished(e)));if(!a)return void(this.scrolled=!0);const i=dq(o,`[data-season="${a.season_id}"]`);i&&(o.scrollLeft=i.offsetLeft,this.scrolled=!0)},getEpisode:e=>e.delay?`${e.delay_reason}: ${e.delay_index}`:e.pub_index,isPublished(e){return!e.delay&&1e3*e.pub_ts<=this.now},dayOfWeekText:e=>`周${["日","一","二","三","四","五","六","日"][e.day_of_week]}`,offsetPage(e,t){const n=this.$refs.seasonsList.find((t=>t.dataset.date===e.date)),o=n.clientWidth,r=Math.trunc(o/g.seasonItemWidth)*g.seasonItemWidth;n.children[0]?.scrollBy(t*r,0)}}});var x=n(8332),k=n.n(x),y=n(2999),w=n.n(y),A={insert:"head",singleton:!1};k()(w(),A);w().locals;var V=n(6499);const C=(0,V.Z)(v,l,[],!1,null,null,null).exports,I={anime:{seasonType:1,rankingName:"bangumi"},guochuang:{seasonType:4,rankingName:"guochan"}},q=Vue.extend({components:{SubHeader:i.Z,BangumiTimeline:C,RankList:s.Z,CompactRankList:d.Z,VButton:r.VButton,VIcon:r.VIcon},mixins:[(0,m.QP)()],props:{region:{type:Object,required:!0}},data(){const{route:e}=this.region.category,{rankingName:t,seasonType:n}=I[e];return{bangumiDataMap:I,route:e,timelineApi:`https://api.bilibili.com/pgc/web/timeline?types=${n}&before=6&after=6`,rankingsApi:`https://api.bilibili.com/pgc/season/rank/web/list?day=3&season_type=${n}`,rankingsLink:`https://www.bilibili.com/v/popular/rank/${t}`}},methods:{parseJson(e){const t=(e.data?.list??[]).map((e=>{const t=e.new_ep?.index_show??e.title;return{id:e.season_id,title:e.title,playCount:e.stat.view,points:e.stat.follow,upHref:e.url,upName:t,dynamic:t,coverUrl:e.new_ep?.cover??e.ss_horizontal_cover,videoHref:e.url}})).slice(0,10);return(0,a.applyContentFilter)(t)}}});var B=n(2077),T=n.n(B),E={insert:"head",singleton:!1};k()(T(),E);T().locals;const Q=(0,V.Z)(q,o,[],!1,null,null,null).exports},855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-compact-rank-list scroll-top scroll-bottom",class:{loading:e.loading,loaded:e.loaded,"not-empty":e.items.length>0}},[e.loaded?e._e():t("div",{staticClass:"fresh-home-compact-rank-list-loading-container"},[e.loading?t("VLoading"):e._e(),e._v(" "),!e.error&&0!==e.items.length||e.loading?e._e():t("div",{staticClass:"fresh-home-compact-rank-list-empty"},[t("VEmpty"),e._v(" "),t("VButton",{staticClass:"fresh-home-compact-rank-list-refresh-button",attrs:{round:""},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh"}}),e._v("\n 刷新\n ")],1)],1)],1),e._v(" "),e.loaded?t("div",{ref:"content",staticClass:"fresh-home-compact-rank-list-content"},e._l(e.items,(function(n,o){return t("a",{key:n.id,ref:"cards",refInFor:!0,staticClass:"compact-rank-list-card",attrs:{href:n.videoHref,target:"_blank"}},[t("div",{staticClass:"compact-rank-list-card-cover"},[t("div",{staticClass:"compact-rank-list-card-rank",class:{"top-three":o<3}},[e._v("\n "+e._s(o+1)+"\n ")]),e._v(" "),t("DpiImage",{attrs:{src:n.coverUrl,size:{width:128,height:80}}})],1),e._v(" "),t("div",{staticClass:"compact-rank-list-card-info"},[t("div",{staticClass:"compact-rank-list-card-title",attrs:{title:n.title}},[e._v(e._s(n.title))]),e._v(" "),t("UpInfo",{attrs:{"up-face-url":n.upFaceUrl,href:n.upHref,"up-name":n.upName},scopedSlots:e._u([{key:"fallback-icon",fn:function(){return[t("VIcon",e._b({},"VIcon",e.upInfoProps,!1))]},proxy:!0}],null,!0)}),e._v(" "),t("div",{staticClass:"compact-rank-list-card-stats"},[t("VIcon",{attrs:{icon:"mdi-fire",size:16}}),e._v("\n "+e._s(e._f("formatCount")(n.points))+"\n "),t("VIcon",{attrs:{icon:"play",size:16}}),e._v("\n "+e._s(e._f("formatCount")(n.playCount))+"\n ")],1)],1)])})),0):e._e()])};o._withStripped=!0;var r=n(1352),a=n.n(r),i=n(4289),s=n(9648),d=n(5311),l=n(3180),h=n(3091);const c=Vue.extend({components:{DpiImage:s.DpiImage,UpInfo:a(),VIcon:s.VIcon,VLoading:s.VLoading,VEmpty:s.VEmpty,VButton:s.VButton},filters:{formatCount:i.formatCount},mixins:[(0,d.Ov)(),(0,d.kN)(h.o)],props:{parseJson:{type:Function,required:!0},bangumiMode:{type:Boolean,default:!1}},computed:{upInfoProps(){return{size:18,icon:this.bangumiMode?"mdi-television-classic":"up-outline",style:{transform:this.bangumiMode?"translateY(-1px)":"none"}}}},watch:{loaded(){this.loaded&&this.setupIntersection()}},beforeDestroy(){(0,l.b)(this.$el)},methods:{async setupIntersection(){await this.$nextTick(),console.log(this.$refs.cards),(0,l.a)({container:this.$el,items:this.$refs.cards})}}});var m=n(8332),p=n.n(m),f=n(576),b=n.n(f),u={insert:"head",singleton:!1};p()(b(),u);b().locals;const g=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},1960:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-categories-default"},[t("div",{staticClass:"fresh-home-categories-default-video-column"},[t("div",{staticClass:"fresh-home-categories-default-video-column-item"},[t("SubHeader",[e._v(" 有新动态 ")]),e._v(" "),t("VideoSlides",{attrs:{api:e.activeVideosApi}})],1),e._v(" "),t("div",{staticClass:"fresh-home-categories-default-video-column-item"},[t("SubHeader",[e._v(" 最新发布 ")]),e._v(" "),t("VideoSlides",{attrs:{api:e.newVideosApi}})],1)]),e._v(" "),t("div",{staticClass:"fresh-home-categories-default-rank-list"},[t("div",{staticClass:"fresh-home-categories-default-rank-list-header"},[t("a",{attrs:{href:e.rankingsLink,target:"_blank"}},[t("SubHeader",[e._v(" 排行榜 ")])],1),e._v(" "),e.isCompactRankList?t("VButton",{attrs:{icon:"",title:"显示较少项目"},on:{click:e.toggleRankListMode}},[t("VIcon",{attrs:{icon:"mdi-poll",size:16}})],1):t("VButton",{attrs:{icon:"",title:"显示较多项目"},on:{click:e.toggleRankListMode}},[t("VIcon",{attrs:{icon:"mdi-format-list-text",size:16}})],1)],1),e._v(" "),e.isCompactRankList?t("CompactRankList",{attrs:{"parse-json":e.parseJson,api:e.rankingsApi}}):t("RankList",{attrs:{"parse-json":e.parseJson,api:e.rankingsApi}})],1)])};o._withStripped=!0;var r=n(9648),a=n(9799),i=n(855),s=n(6127),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-video-slides"},[e.loaded?t("div",{staticClass:"fresh-home-video-slides-covers"},e._l(e.items,(function(n,o){return t("a",{key:n.id,staticClass:"fresh-home-video-slides-cover",attrs:{title:n.title,href:1!==o?"javascript:void(0)":e.url(n.bvid),target:"_blank"},on:{"!click":function(t){1!==o&&e.jumpToCard(t,o)}}},[t("DpiImage",{attrs:{src:n.coverUrl,size:{width:e.ui.mainCoverWidth,height:e.ui.mainCoverHeight}}})],1)})),0):e._e(),e._v(" "),t("div",{staticClass:"cover-placeholder-vertical"}),e._v(" "),e.loaded?e._e():t("div",{staticClass:"fresh-home-video-slides-empty"},[t("div",{staticClass:"empty-placeholder fresh-home-video-slides-main-title",domProps:{textContent:e._s(" ")}}),e._v(" "),t("div",{staticClass:"empty-indicator"},[e.loading?t("VLoading"):e._e(),e._v(" "),e.error?t("div",{staticClass:"empty-indicator-error"},[t("VEmpty"),e._v(" "),t("VButton",{staticClass:"fresh-home-video-slides-refresh-button",attrs:{round:""},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh"}}),e._v("\n 刷新\n ")],1)],1):e._e()],1)]),e._v(" "),e.currentItem&&e.loaded?t("div",{staticClass:"fresh-home-video-slides-row"},[t("div",{staticClass:"fresh-home-video-slides-main-info"},[t("div",{staticClass:"fresh-home-video-slides-row"},[t("div",{staticClass:"cover-placeholder-horizontal"}),e._v(" "),t("div",{staticClass:"fresh-home-video-slides-main-actions"},[t("a",{staticClass:"fresh-home-video-slides-play-button",attrs:{href:e.currentUrl,target:"_blank"}},[t("VButton",{attrs:{type:"primary",round:""}},[t("VIcon",{attrs:{icon:"mdi-play"}}),e._v("\n 播放\n ")],1)],1),e._v(" "),e.watchlaterAdded?t("VButton",{staticClass:"fresh-home-video-slides-watchlater-button",attrs:{icon:"",title:"取消稍后再看"},on:{click:function(t){return e.toggleWatchlater(e.currentItem.aid)}}},[t("VIcon",{attrs:{icon:"mdi-clock-check-outline",size:20}})],1):t("VButton",{staticClass:"fresh-home-video-slides-watchlater-button",attrs:{icon:"",title:"稍后再看"},on:{click:function(t){return e.toggleWatchlater(e.currentItem.aid)}}},[t("VIcon",{attrs:{icon:"mdi-clock-outline",size:20}})],1),e._v(" "),t("a",{staticClass:"fresh-home-video-slides-up-container",attrs:{href:`https://space.bilibili.com/${e.currentItem.upID}`,title:e.currentItem.upName,target:"_blank"}},[t("DpiImage",{attrs:{size:24,src:e.currentItem.upFaceUrl}}),e._v(" "),t("div",{staticClass:"fresh-home-video-slides-up-name"},[e._v("\n "+e._s(e.currentItem.upName)+"\n ")])],1)],1)]),e._v(" "),t("a",{staticClass:"fresh-home-video-slides-main-title",attrs:{title:e.currentItem.title,href:e.currentUrl,target:"_blank"}},[e._v("\n "+e._s(e.currentItem.title)+"\n ")])]),e._v(" "),t("div",{staticClass:"fresh-home-video-slides-main-description"},[t("div",{staticClass:"description-text",domProps:{textContent:e._s(e.currentItem.description)}})]),e._v(" "),t("div",{staticClass:"fresh-home-video-slides-actions"},[t("VButton",{staticClass:"fresh-home-video-slides-refresh-button",attrs:{title:"刷新",icon:""},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh"}})],1),e._v(" "),t("VButton",{staticClass:"fresh-home-video-slides-previous-button",attrs:{title:"上一个",icon:""},on:{click:e.previousCard}},[t("VIcon",{attrs:{icon:"mdi-arrow-left"}})],1),e._v(" "),t("VButton",{staticClass:"fresh-home-video-slides-next-button",attrs:{title:"下一个",icon:""},on:{click:e.nextCard}},[t("VIcon",{attrs:{icon:"mdi-arrow-right",size:36}})],1)],1)]):e._e()])};d._withStripped=!0;const l=coreApis.componentApis.video.watchlater;var h=n(4289),c=n(5311);const m=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon,DpiImage:r.DpiImage,VLoading:r.VLoading,VEmpty:r.VEmpty},mixins:[(0,c.Ov)(),(0,c.kN)({mainCoverHeight:185,mainCoverWidth:287,otherCoverHeight:100,otherCoverWidth:154,mainPaddingX:18,mainPaddingY:20,coverPadding:16})],data:()=>({watchlaterList:l.watchlaterList,itemLimit:10}),computed:{currentItem(){return this.items[1]},currentUrl(){return this.url(this.currentItem.bvid)},watchlaterAdded(){return this.watchlaterList.includes(this.currentItem.aid)}},created(){(0,l.getWatchlaterList)()},methods:{parseJson(e){const t=lodash.get(e,"data.archives",[]).map((e=>({id:e.aid,aid:e.aid,bvid:e.bvid,coverUrl:e.pic,title:e.title,upName:e.owner.name,upFaceUrl:e.owner.face,upID:e.owner.mid,playCount:e.stat.view,danmakuCount:e.stat.danmaku,like:e.stat.like,coins:e.stat.coin,description:e.desc,dynamic:"-"===e.desc?"":e.desc,type:e.tname,duration:e.duration,durationText:(0,h.formatDuration)(e.duration)})));return(0,a.applyContentFilter)(t)},url:e=>`https://www.bilibili.com/video/${e}`,toggleWatchlater:l.toggleWatchlater,nextCard(){this.items.push(this.items.shift())},previousCard(){this.items.unshift(this.items.pop())},jumpToCard(e,t){if(t<=1||t>=this.items.length)return;let n=t-1;const o=()=>{this.nextCard(),n--,n>0&&setTimeout(o)};o(),e.preventDefault()}}});var p=n(8332),f=n.n(p),b=n(7808),u=n.n(b),g={insert:"head",singleton:!1};f()(u(),g);u().locals;var v=n(6499);const x=(0,v.Z)(m,d,[],!1,null,null,null).exports;var k=n(8266);const y=Vue.extend({components:{CompactRankList:i.Z,RankList:s.Z,VideoSlides:x,SubHeader:k.Z,VButton:r.VButton,VIcon:r.VIcon},mixins:[(0,c.QP)()],props:{region:{type:Object,required:!0}},data(){const e=this.region.id;return console.log(this.region.category),{activeVideosApi:`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${e}`,newVideosApi:`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${e}`,rankingsApi:`https://api.bilibili.com/x/web-interface/ranking/region?rid=${e}&day=3&original=0`,rankingsLink:`https://www.bilibili.com/v/popular/rank/${this.region.category.route}`}},methods:{parseJson(e){const t=(lodash.get(e,"data",[])||[]).map((e=>({id:e.aid,title:e.title,playCount:e.play,points:e.pts,upHref:`https://space.bilibili.com/${e.mid}`,upName:e.author,dynamic:e.description,coverUrl:e.pic,videoHref:`https://www.bilibili.com/video/${e.bvid}`}))).slice(0,10);return(0,a.applyContentFilter)(t)}}});var w=n(6398),A=n.n(w),V={insert:"head",singleton:!1};f()(A(),V);A().locals;const C=(0,v.Z)(y,o,[],!1,null,null,null).exports},6127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-rank-list",class:{loading:e.loading,loaded:e.loaded}},[e.loaded?e._e():t("div",{staticClass:"fresh-home-rank-list-loading-container"},[e.loading?t("VLoading"):e._e(),e._v(" "),!e.error&&0!==e.items.length||e.loading?e._e():t("div",{staticClass:"fresh-home-rank-list-empty"},[t("VEmpty"),e._v(" "),t("VButton",{staticClass:"fresh-home-rank-list-refresh-button",attrs:{round:""},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh"}}),e._v("\n 刷新\n ")],1)],1)],1),e._v(" "),e.loaded?[e.firstItem?t("div",{staticClass:"fresh-home-rank-list-first-item animation"},[t("div",{staticClass:"fresh-home-rank-list-rank-item"}),e._v(" "),t("a",{staticClass:"fresh-home-rank-list-rank-item-title",attrs:{target:"_blank",href:e.firstItem.videoHref,title:e.firstItem.title}},[e._v("\n "+e._s(e.firstItem.title)+"\n ")]),e._v(" "),t("a",{staticClass:"fresh-home-rank-list-cover",attrs:{target:"_blank",href:e.firstItem.videoHref}},[t("DpiImage",{attrs:{src:e.firstItem.coverUrl,size:{width:e.ui.firstCoverWidth,height:e.ui.firstCoverHeight}}}),e._v(" "),t("UpInfo",{attrs:{"up-face-url":e.firstItem.upFaceUrl,href:e.firstItem.upHref,"up-name":e.firstItem.upName},scopedSlots:e._u([{key:"fallback-icon",fn:function(){return[t("VIcon",e._b({},"VIcon",e.upInfoProps,!1))]},proxy:!0}],null,!1,4101577376)}),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-stats"},[t("VIcon",{attrs:{icon:"mdi-fire",size:16}}),e._v("\n "+e._s(e._f("formatCount")(e.firstItem.points))+"\n ")],1)],1),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-laser",attrs:{"data-number":"1"}})]):e._e(),e._v(" "),e.secondItem?t("div",{staticClass:"fresh-home-rank-list-second-item animation"},[t("a",{staticClass:"fresh-home-rank-list-rank-item",attrs:{target:"_blank",href:e.secondItem.videoHref}},[t("div",{staticClass:"fresh-home-rank-list-rank-item-title",attrs:{title:e.secondItem.title}},[e._v("\n "+e._s(e.secondItem.title)+"\n ")]),e._v(" "),t("UpInfo",{attrs:{"up-face-url":e.secondItem.upFaceUrl,href:e.secondItem.upHref,"up-name":e.secondItem.upName},scopedSlots:e._u([{key:"fallback-icon",fn:function(){return[t("VIcon",e._b({},"VIcon",e.upInfoProps,!1))]},proxy:!0}],null,!1,4101577376)}),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-stats"},[t("VIcon",{attrs:{icon:"mdi-fire",size:16}}),e._v("\n "+e._s(e._f("formatCount")(e.secondItem.points))+"\n "),t("VIcon",{attrs:{icon:"play",size:16}}),e._v("\n "+e._s(e._f("formatCount")(e.secondItem.playCount))+"\n ")],1)],1),e._v(" "),t("a",{staticClass:"fresh-home-rank-list-cover",attrs:{target:"_blank",href:e.secondItem.videoHref}},[t("DpiImage",{attrs:{src:e.secondItem.coverUrl,size:{width:e.ui.secondCoverWidth,height:e.ui.secondCoverHeight}}})],1),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-laser",attrs:{"data-number":"2"}})]):e._e(),e._v(" "),e.thirdItem?t("div",{staticClass:"fresh-home-rank-list-third-item animation"},[t("a",{staticClass:"fresh-home-rank-list-rank-item",attrs:{target:"_blank",href:e.thirdItem.videoHref}},[t("div",{staticClass:"fresh-home-rank-list-rank-item-title",attrs:{title:e.thirdItem.title}},[e._v("\n "+e._s(e.thirdItem.title)+"\n ")]),e._v(" "),t("UpInfo",{attrs:{"up-face-url":e.thirdItem.upFaceUrl,href:e.thirdItem.upHref,"up-name":e.thirdItem.upName},scopedSlots:e._u([{key:"fallback-icon",fn:function(){return[t("VIcon",e._b({},"VIcon",e.upInfoProps,!1))]},proxy:!0}],null,!1,4101577376)}),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-stats"},[t("VIcon",{attrs:{icon:"mdi-fire",size:16}}),e._v("\n "+e._s(e._f("formatCount")(e.thirdItem.points))+"\n "),t("VIcon",{attrs:{icon:"play",size:16}}),e._v("\n "+e._s(e._f("formatCount")(e.thirdItem.playCount))+"\n ")],1)],1),e._v(" "),t("a",{staticClass:"fresh-home-rank-list-cover",attrs:{target:"_blank",href:e.thirdItem.videoHref}},[t("DpiImage",{attrs:{src:e.thirdItem.coverUrl,size:{width:e.ui.thirdCoverWidth,height:e.ui.thirdCoverHeight}}})],1),e._v(" "),t("div",{staticClass:"fresh-home-rank-list-laser",attrs:{"data-number":"3"}})]):e._e()]:e._e()],2)};o._withStripped=!0;var r=n(1352),a=n.n(r),i=n(4289),s=n(9648),d=n(5311),l=n(3091);const h=Vue.extend({components:{DpiImage:s.DpiImage,UpInfo:a(),VIcon:s.VIcon,VLoading:s.VLoading,VEmpty:s.VEmpty,VButton:s.VButton},filters:{formatCount:i.formatCount},mixins:[(0,d.Ov)(),(0,d.kN)(l.b)],props:{parseJson:{type:Function,required:!0},bangumiMode:{type:Boolean,default:!1}},computed:{firstItem(){return this.items[0]},secondItem(){return this.items[1]},thirdItem(){return this.items[2]},upInfoProps(){return{size:18,icon:this.bangumiMode?"mdi-television-classic":"up-outline",style:{transform:this.bangumiMode?"translateY(-1px)":"none"}}},firstRow(){return this.items.slice(3,6)},secondRow(){return this.items.slice(6,10)}}});var c=n(8332),m=n.n(c),p=n(2315),f=n.n(p),b={insert:"head",singleton:!1};m()(f(),b);f().locals;const u=(0,n(6499).Z)(h,o,[],!1,null,null,null).exports},9302:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-feeds"},[t("div",{staticClass:"fresh-home-header"},[t("div",{staticClass:"fresh-home-header-title"},[e._v("动态")]),e._v(" "),t("div",{staticClass:"fresh-home-header-center-area"},[t("div",{staticClass:"fresh-home-header-tabs"},[t("div",{staticClass:"default-tabs"},e._l(e.tabs,(function(n){return t("div",{key:n.name,staticClass:"default-tab",class:{selected:n===e.selectedTab},on:{click:function(t){return e.selectTab(n)}}},[t("div",{staticClass:"default-tab-name"},[e._v("\n "+e._s(n.displayName)+"\n ")])])})),0)])]),e._v(" "),t("div",{staticClass:"fresh-home-header-pagination"},[t("a",{attrs:{href:"https://www.bilibili.com/video/online.html",target:"_blank",title:"在线列表"}},[t("VButton",{attrs:{icon:""}},[t("VIcon",{attrs:{icon:"mdi-account-group-outline",size:19}})],1)],1),e._v(" "),t("VButton",{attrs:{icon:"",title:"刷新"},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh",size:18}})],1),e._v(" "),t("VButton",{attrs:{icon:"",title:"上一页"},on:{click:function(t){return e.$refs.videoList.offsetPage(-1)}}},[t("VIcon",{attrs:{icon:"left-arrow",size:20}})],1),e._v(" "),t("VButton",{attrs:{icon:"",title:"下一页"},on:{click:function(t){return e.$refs.videoList.offsetPage(1)}}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1),e._v(" "),t("a",{staticClass:"fresh-home-header-icon-button rotate",attrs:{href:"https://t.bilibili.com",target:"_blank"}},[t("VButton",{attrs:{round:""}},[t("VIcon",{attrs:{icon:"feeds",size:20}}),e._v("\n 全部动态\n ")],1)],1)],1)]),e._v(" "),t("div",{staticClass:"fresh-home-feeds-content"},[t("VideoList",{ref:"videoList",attrs:{videos:e.videos,loading:e.loading}})],1)])};o._withStripped=!0;var r=n(9799),a=n(9648),i=n(2542);const s=[{name:"videoFeeds",displayName:"视频",api:r.getVideoFeeds.bind(void 0,"video"),href:"https://t.bilibili.com/?tab=8"},{name:"bangumiFeeds",displayName:"番剧",api:r.getVideoFeeds.bind(void 0,"bangumi"),href:"https://t.bilibili.com/?tab=512"}],d=Vue.extend({components:{VButton:a.VButton,VIcon:a.VIcon,VideoList:i.Z},data:()=>({tabs:s,selectedTab:s[0],videos:[],loading:!0}),created(){this.reload()},methods:{selectTab(e){this.selectedTab!==e?(this.selectedTab=e,this.reload()):window.open(e.href,"_blank")},async reload(){this.loading=!0,this.videos=[],this.videos=await this.selectedTab.api().finally((()=>{this.loading=!1}))}}});var l=n(8332),h=n.n(l),c=n(4294),m=n.n(c),p={insert:"head",singleton:!1};h()(m(),p);m().locals;const f=(0,n(6499).Z)(d,o,[],!1,null,null,null).exports},3705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"fresh-home-trending"},[t("div",{staticClass:"fresh-home-header"},[t("div",{staticClass:"fresh-home-header-title"},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),t("div",{staticClass:"fresh-home-header-pagination"},[t("VButton",{attrs:{icon:"",title:"刷新"},on:{click:e.reload}},[t("VIcon",{attrs:{icon:"mdi-refresh",size:18}})],1),e._v(" "),t("VButton",{attrs:{icon:"",title:"上一页"},on:{click:function(t){return e.$refs.videoList.offsetPage(-1)}}},[t("VIcon",{attrs:{icon:"left-arrow",size:20}})],1),e._v(" "),t("VButton",{attrs:{icon:"",title:"下一页"},on:{click:function(t){return e.$refs.videoList.offsetPage(1)}}},[t("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)],1)]),e._v(" "),t("div",{staticClass:"fresh-home-trending-content"},[t("VideoList",{ref:"videoList",attrs:{videos:e.videos,loading:e.loading}})],1)])};o._withStripped=!0;var r=n(9648),a=n(2542),i=n(3485),s=n(9799),d=n(2375),l=n(605),h=n(4289);const c=Vue.extend({components:{VButton:r.VButton,VIcon:r.VIcon,VideoList:a.Z},data:()=>({videos:[],loading:!0}),computed:{title:()=>i.O.personalized?"推荐":"热门"},created(){this.reload()},methods:{async reload(){this.loading=!0,this.videos=[],this.videos=await(async e=>{const t=Boolean((0,l.getUID)())&&e,n=t?d.getJsonWithCredentials:d.getJson,{code:o,message:r,data:a}=await n("https://api.bilibili.com/x/web-interface/index/top/feed/rcmd");if(0!==o)throw new Error(`获取${t?"推荐":"热门"}视频失败: ${r}`);const i=a.item.map((e=>({id:e.id,aid:e.id,bvid:e.bvid,coverUrl:e.pic.replace("http:","https:"),title:e.title,description:"",dynamic:"",duration:e.duration,durationText:(0,h.formatDuration)(e.duration),timestamp:1e3*e.pubdate,time:new Date(1e3*e.pubdate),upName:e.owner.name,upID:e.owner.mid,upFaceUrl:e.owner.face.replace("http:","https:"),like:(0,h.formatCount)(e.stat.like),playCount:(0,h.formatCount)(e.stat.view),danmakuCount:(0,h.formatCount)(e.stat.danmaku)})));return(0,s.applyContentFilter)(i)})(i.O.personalized).finally((()=>{this.loading=!1}))}}});var m=n(8332),p=n.n(m),f=n(6676),b=n.n(f),u={insert:"head",singleton:!1};p()(b(),u);b().locals;const g=(0,n(6499).Z)(c,o,[],!1,null,null,null).exports},6499:(e,t,n)=>{"use strict";function o(e,t,n,o,r,a,i,s){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):r&&(d=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var h=l.render;l.render=function(e,t){return d.call(t),h(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},8332:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{var o=n(5562);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},4422:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=4422,e.exports=t},2093:e=>{"use strict";e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSMlLiZENS8vNUROQj5CTl9VVV93cXecnNEBCAgICAkICQoKCQ0ODA4NExEQEBETHBQWFBYUHCsbHxsbHxsrJi4lIyUuJkQ1Ly81RE5CPkJOX1VVX3dxd5yc0f/CABEIAlYDjgMBIgACEQEDEQH/xAAcAAADAQEBAQEBAAAAAAAAAAAAAQIDBAUGBwj/2gAIAQEAAAAA/TNKgE0nTBKiKKiLrBNaasaUtko0cpsYSJNsoUJznOutsEiZQ7BhIqJUomS9KbalY6ORoQ2DE1NURDrAb3G0pCkk9CWxMcuRKy1KCc5110GkkiE7YDUlkqYCW9G6qZULTOnIBQmJkPRRDnMe9AKUFCT0EMAYIgstSkTmtdNGCSRCdsBqRuScwVO26qZIm5bEDaAAktZonKtrEhSDaHVOWxDaYZFrQlCnNaa6DCSTMdsBqWxIySKdUXUyROktoApJiHEXWQpy13SnDDy+LPq9f0AdukMAGMzGtHCJnNG+zYCUwPQABNpCiBN26qpSzLQAMaGkOEPnbM+lzycXxfj3zYN+l9z9CqugGmMBQ5VuJ5flvD8/zPG/ZvrW205iB2wTBhIlCkq3VNIxppiHQgaTICcpZe0cHgfnf3q+s+b+c8zPmj6z9ButBgDaJUzkpj5D5DzPW+i9nxPhP3rvpgNRCejEMYCFMqB3VOkLAENFDbJSbgMs4p7Xx+B+W+7+saY6+T8V7Wfy3F9L+kPRlJS3Eix8X5n5zz+bm/Q/sPTIn86/Ut2DBTCq2ADAQpJhO3dMS5UQ2xUNpKaM6nDDOtnnH47p7/6J605cfx/b896vjeD+h/ZN04yzT5fK+a+Z+f7vV9HD774/5f8ARftKxfwn6JuMEJQnowAToSSSzCnV0I4UoGNOqUKUEPPn5sdNp6/gvnvQ3/ROn0ObLLwvDrs+b5f2Td0sPK+F8HxeftxXofPdOf7B9nn8X8d+gfWTfxP3mxQShQnbYxIpiSUwKnV0B5smKZQXWcpKVDx5OadDm+j/ABj6XbL0PrOrfyPd8LwduLf5H9B+iw5vk/hfH9v1fpub4P8ATvf/AAT9p9b4bL9Qry/n/if0f3j4b9C0dApFAXTByimJImEFO6GeUlgwB0RBIs8lz82cZYHv/mn03Dt0/W9c8/pT8zhHV8n630vgeb+O/ZfqWm3m/mP6n6HV8D2fcn5D+t+yfK8PxP6l5vd9HbpuVKkdtgJOgJCcxDq6GePBzSqd1U4N55TlhOM458nL7O3x/s4nf7dex5H0nl8/lN+TyfUcXtR8D+icHn/J8H2+3V8z3/Xa8nw36n0+X8zH559999rZbalQh22Ak6YkhZpDum2eJJyqGaaTlkqiM8sIznkwwn6HL5b1Z6PS7Pp8vK6u+/mOd8HB9Pwepv8AE/Wc3lfnv23oHT8d953bdfL8328vz3P3+X+x9jLpqYmQ0ArXXa55oUoM5TKqm34EmESStELGVOWWOeGWOcHs9Xx/oa6+n9ZfJw9nk9nj9K82OvzPS08/q6vB+C/X9B/Cfpet9fRdR53iafO/deqTdOYyyiDr6N+i2Xa5uZSkRCodUOvm5eKgxLBYSpywwM8spk3+v/KvpezHo+w6PNMuXnjr1+d975O+zSfOPIz/AFU8r5X9C9DW9tZZOU1biKajPPXp6uptgx6mXEpUuMxjdNv5eTNrFDFlOcRnOJnlEBH6L+M/R9Pueb73tRnx8uHocXX8j9r8V9B08fn8XgfH/X/SnX9te13qTkGaROeTe+/T0VTYMGGrXnzKSUIG6bfyY8ZJgNJ58oRE5rLOEvH+V+x+n+N9b6f1fBnX1dsfX8ffw32+F97ucvz3h/B/vXS6L0puc8nnklGTrs6tdLqqbBmWlGlHFghKJlsLHXyKrEM0Z1GUyiJymIheJ8DGv9Cfnx3e19pUXzdXzPq+V4v1fxX0H122k+H854v6qBQyXOWbw5lnzrv7d99dLd02DAZWhzcgKYUsHaL+PRAZ5qLmIJUznMTE+J8Jhfp/vH5vl7/L6PbWGnr+RwfVfJx+idWujlSSilOUsxL4ueMMdPR7unbXS7ptsY4sepHniSiAG2K/jgzU5oaiZJFGSUTOXwfh8Gn0v7n8l8X73q7bXzcOv1fyGP3fuvWnJMxM1PO9+zq6t+P8v9Luw512ej1Zd213VNqYbu2as86UlEpjGKvkJjJwgJZk5ImJUzBz/M8/f3Z/Ve94Hj5Lbu97j+V6fu/Y1LCZzyxzfT09nTrd28fz7yfpc+Tn5u30u30dbp5jrWYK3ZdnHglKmRsYP5DOMiazoVmKCYhRMCjOccOec/U9bfq34vEv3vp98rmlOecaa9XRV66aXd1PyvwX1nn8b7/S9DastjbZ56q6x00srQw40lJMlDJv5bLPNw4piJcKZms0kTkpxislD19L2PU66zjnzprTTTpp3V3ppppVkeL+cfU7YYZ6bdXZ03V3qTpakrYNifOkSJlMsmvnFGIlGj2qIE1maSKLJ33xNZWmuu95YTnhz6+j0b5pPR6Vd6Xjtem2nn/mPs9nlcp39+m/XemtVc2O4OgNKPPzkRKQUKvBRJOcuukzQqeFaaBnSrbbNNu3MZ83Nz7/AEGwTESm9LrStNL0u7MPgvN+h8vino9Xprs32jQ3HFaSbMuzk55lNKWMVeM6zSjMrqtQTV4F6WoJrbfMoyynIw8byZ9X76YJiFFO9Ku9Lsb0s+Z+G+mx48dfS6+h9HVYau829GaFaPDknNBKZSH5VMFOSeugJFrJ6uVSOjaAnDjz5uHx+PXor9HcESoh09LpZbHXq9NDxvzn6jjy547/AEe0226pZrVZl3bDYnhiYBIKkrzqY5Wcs3uSC3k9RLSK6Nc4M8PL8fnwwz03r7L05jzPQmBHPz7bdlT0vp1Zpxfm/tYZzh0+h36PXo1m296Bps0p8GShIQMVcFjCYhVtaSKqDTOi1ppUZrLDw/KgxwvZ/Q/RqEZcvHG2zjbbtDXp0srP4Xj9PjXNfb3dtabaaXq2sqT3C7fHzqVIhjT4qbBZ5t6WxMuWTRpGl1nE5ZeX4+Bjitte/wCxU8nJjemEbbB0dmllbdBS+d+J+l4eZa793V0X0Vs5LqpT2oepjxqVMgUByUDDKHpVMB0IVTarR5zOccnjcKjDDouvu6nHzoz6Flh29C1rp2Nb130fi/nn03Fy469Hb6GuxWt6JuxF6BsT5wlCQUD5LYBnndumA6cuSadXWcqIy8ryVHPhpdfWegoy8+8t8TLbq1ddfTppd2+H829ueLkrt7Neju0LvRqm6h7hpT87NEpJsHy6MaUQa02KmVIjOitKzREx5/jYxz5Gle77yWXFlC6uXDr6u3a70vS6usvguf1/N859fo712dFVT0vN1ZO4tLOXmlJIGM5tQYZ5aW23NBUprN1VuAU583i8cY4Z66dv1qXJGOJpM+lpptd3el3Vz8z8V9bw+bnr6HXtt0b6JaWVNbMFWplxQSSKhvn0Y0RlqOxy2qSDNuqqU1MY+Z5OCwx1q/t3PNhErLqvbW9dLq70u6fjfnn0uHLxbd3o7Vvru4L3lVvmaBsLzlMkiZT59WA8s9adSIbaQs6pukNTGXneTzPn57uvqu4x4n0jlPW9axjTr67u3xfmnu5RzYbeh6L6NNNhVpcOlegtafBkpJQOnz6sTeeejdJJOmSGVtuk2pzy4/K4TmzLfv8AtqZlSJRyHVt2dN3onbj4GerGFl2ej2W+g2RVsWi1Fpb5eVKZQ2659aTHlnpTZA0U5ZlTdNNpZ5c3neVOMRb9D6pKJlOeXi9Tp01sl7b6MPnvjfoObkpdPV6PS71rXOnpWNvUK1M+AmVI2659bAM860GpKlzQzMdXUqks8seXyeTOebaq+1qZmBJO1hp1Vuaaa6h5n579Jxc07vr39Pab11ajSnL1pGzPNUqUBVYa2yTOHqIkoSCni3WjkaUZZY+RwKePVv6vtJiBc/Mba756116rXW9o5fzn3V5+V9um/X07I03Sp2ReqNaOLBKUmW8NapIyVWSIbHCp5jrSoVJTnnl5nkzGCt+97RPFhjpVcu2Xfemmu+hrW+uf59PoebhHo9GvT09hNVVqy4rQNLOblkmUy3jpdKVmWJArBynWQXpUDFERl5vkRGWbr0vpxcvJGT6s8n17dOe+u3Rd3S+X+Q+k4eXl7e/r2OvcVbsS01BFamfAiJTKrDXQJWZTJTbFRKJC9KgaJiMuPyuIjk0e32iOOcuaNdjLXTrvbq0u7un4/wCffS5efydHR3dem2m9xdbttQ6DZrz4JgCqw2tzJm2Cmxg3KIZWlSmExnHP5nmGXLdV9b0rn4dY5tjVLbTu6Lq7u3pxfnHu4Z4cvb2elpq9d9W2oHS0DWlx4qEgqsNrqJIGEqwBtChl3UoGpyzx87yZnmbPovVDydNORPbo6arTS6qdNtNI/Pddcc8X6Hdv0X00Qr0JqnQXoc/JKgCrw1usgkGSXI5bZMtXdSganOc/N8iIxzo9P6VHnYV3CRpekhv0XV6bP5j5P3uPj2V+t1dM7PZy3oya0CtCOCVKC6x0usKJVOQuZYDZCLq4TKUxOPF5PIp5NH0/XomYUy8Y16NNVptvtpdPx/gPouLndv0Ojr3m9XtldXoCA2Fw5zKC6x00Oa6kbSKJSbG4RV1KoZMTHJ5HATwa1X1+wZzx4q9s9rrfYrq30uq4vzf3587Dp69ejfr1jWtbptRGlhqzkwmYZdY62uamUCE6JlsblTV0hjJUZYeX5ZHIVX0fphM5cKy7La0269dL0vRzHwG2vBjpv6Ou+vXvboiLpk7BdmPHMwzSsdLMIa0G1JTUNibUuqBjCc4x83yYXNFV63viI4tqfIurfWtrtzemzXzXyvv+ZHP19/VvXVvUaOwLJ0oNieCYhmlZunEKKttSFqLFJTkdA2ApjHg8jmU8tvr+sQlM5jNNdIUdG+1Ve54/wP0fJxZa93odNa6dFZ1dk6NGgbC4cokq3FKlms6thIxzQiWwGOmApzz5PI4oOPUr7OhTOVCjHLrvsk223b2vj/Off5+fmjs6/TvTatgNKku2C0tcvLAOrlyErKqsSQxWKRtA0qqgRnlz+T56jkbv6bvRE8nJqXoo7q1t7dFu7j896+vg5+b0d+/fXR9Nw6vUAEXZlwQMtqpELF3SCQYMkYDal1YBnlj5nmZzz52/b9yTPhueOtdNsr7NtA6NdHVfL/M+zx5zW/p9HUVpru22wQk9iPNkbpzaSc5GlIJAGOWCHUy6pg4yx8/ysIzwd9v1KOPm0MZz07Lk6ttLvToofl/n30vBitq9Hfs6dnVOmMQJGnPhlLp0TYInKqaZINMaARQobtscRjxeXwpcWlV9mGHARpWFV12uhdg9dOhnL+d/Q+Zgt/T7d99NLKbbACMc5DNGjHFsTnKhg0AhiYJ0TFFOgmMubzPNS4qK+q7EvMWHacjd9dm2vUq033rP867uzl532dnTtpd0U2wywzmhomTZDi2hrIbaABMENzTcQym21OWPm+TEYSX7nso4clGkuJ79ma69W16XS+T+d+i5+ZdPb0666W22Y45stiQTJsMy0GCzEUAANIBjbmAbbZOeXD42Oc4Uel9KnhhxVn06Yzp17Wa9ul6VZ43599Xly59Pb1ba6XWeOOeulAMlMSnVsx0YVOYNpDAYkMKHMoKY2s8uPyOWY4ta0+zl4Y5Yyttud9W3brd3el0+H81+jObLfs7NrecFOrtDBQwam23joN1EIpCTKQEsFdOJQFNhGfL5XDnHHbv63oI4RYYbdXXpd6XdXpd28/zjs3wnp6t9KqqAq3IwMbABlPKnTcSikkDaaaEi6cykDdCmMPL8zOOYp/Q+qzy3r0oV1d3d3d3d1Pg8dN09NXQAqokpqctQEm7MLdU85Y0kh0E0gSd1KkAKCZy83x84yzder9CNIlA3pWlaVd3WGXLm0Om7bQCpklOYKGSqLMKq6eM0ICWUCaARdKUgAHKjz/GxieS31/WjEkhFXWl3UxlzHWIQ2ymgApANzlbGlNlnPVXTzkGIQNgSqBulIkCbJUcnj8aniqr+w1YhISd05mNKuc+xIkG2wQqEwBmGjYpKLfM7unECbQhjaSTZTakEkNimefx+CsuaKf03fTQkSkXdBVtR1QkgHTTQJOxIayuglNujndaU4lJgJNtyJFFMSASQNKcfK80yxyb9n2qqVCWlt3TE25nqzRIDpgghXQgrNUwlOijmd3dREtoJbG1KHSqiUDUlKUjPz/NjLPz+jr7vUodlGlDpoGKDpiUCHTQClXQhvKiklNUqfKaaXUxDaBAykpKCm4TGSVBITngXny69gN0yh0i0htLOt5lAh00ApWjEOsbTEk6KOM010qJihAgbEQ6Y2QmxpMUoUy3GHYyXTG5bRRLGRF7KUJNtghStKSKIpAEFNnNnrrrUTIIaYDRDpjZMtjECSElZg+pJNjTQA0A1MaaKUANtASlpSRUqhJkjoOfO9dqhTLcgwGlJoDBSygSYgQqiNrSBgAAIACY10mUAUA0SimBUjBDhjZhlW21RMjJYxDSk0qWEpsEUJDCb5r3EIYJoAYk2RnvSgYhtoCUOxOoGNITBzHNe29RCQDbSAUzq2BINyJsABHN06JIAGIBMJKc57tJJoGxomSqabljEhUJn/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oACAECEAAAANAACkAAAAAAAACiAAAAAAAACseTHTv1AAAACUAABfP5O3Hx9vd6gEQ1YAAAIolSXHzb9Hj83l2+r2MyW6c+iwAAikBAyeb5t9+dfMv0PdJLu2uc6AABKMkpEmc3yeGe29fN5fX9PTEa3bOV6ACKAZSVGZJLw+dPrePHOer1dbnemqZaCEFoDEQkkGb8vq1m8/b264z6FCEALLSUc0iRKk59OPk9W+PPfr76TUpJnGOmtAqNEU5SBBGLvHl49PT230ASvJqdN2ikaRRxlgCCrrSoQVXmq9LVEKWKxAKDVCZJFqq44rpqqIUqVkShRakxwx60S1VY8/Sb3RUFCs0ihSpOWOefVqQtpZ5ek10pRChUAUFTPLOM9ushbVPNpd2qIUKlIoCpOeM89+iItqnLnp0tKQUoAALGOeeV9SE0qs+fbeqspChQABYnLPKejQltU8u2t0ohQoAAE54557dBLap56u7VEKFVAAWJnljHTsRatOWK6WlIKKqAAsM8s8r6UKtVnhpvVFIUUsAAE5Y5vRYVap5tzWtBUKKAAAnPHPPfYLVPPV3oohRQAADHPHPp2ItpXLFu9FEFKsAABnlnlfSJaqs+fbeqVApaSkAFScs8XpoLSzzba3SiFVSAABOeOee+0LaV561ugCqpAAAY588dOyKq05ZXegLUVSAAAzyxz33JVUuONdNVVBKVAAATjON9FCqWee3prQACkACwHLHKd9gtFjQAAVAAAOfPGOvWwW2ypQAAWAAsBjnjG+1LaAAABSAAAmJne1AAAACkACwCFAAAAAKgAAAAAAAAFIAAAAAAAAP/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQIDBAX/2gAIAQMQAAAA0LAAlFiwEVZCkFlLAAArNCoACyFEVKqAEoFy6+rePPyCAAhQRVgAApPT383o93Px+RCFqyZChCqgoFFs39Lj8zt9Lvj5vGNJJLvmIoCUqJq0lK0139z5msfVnm8UbxnDN3eZFAilg1aSra09XseCcvT6uXm4Z3jfPOY6TCKAlLBtoUttej2z5Hr32cvT4Oc43MzGrgLEBVg6W2LRXae/zM6nXHf5nSeVEVRlAClR1WhR09/DPo8eOvS+v5XmusIVrWueIgBQOwoKvpzyvp6Z49+HhhUkk9cYxlAFAdaoFFlkaxnUSZSR6ZZzkgBQOikWAypNayhIkTtuMZkAKBuKgJWS61115FplIm++LjMQAoLZSAiLvrdXzZqpJEvpxc4kAFBRYgEXXW6vLlaSSI9OTGUAKANZAIt6a1rHBVZkR23liSAFAFhLFQu+l3PNVSSI13zcZkAKASwsKg3vW3DNESJfRm5xIAUCFgFQa6a1eXOiJEenKYkAKCCypUqDWul1jjSySE66MSQAoQFhRBddLucASImu+LnMgBQQssFQLemtuEVGUR6caziQAoQFihBXTerywCSI9GbM5gAtiKixYqBd71rHFakiR10YmQBRFQAAut63POokRN9ssSQApBUAANdNbecCSI9OWcyAFIFllEAXprd45BIieiXOJACiCkWKiwu97uONCRE7WzGUBSxChCyxUXXTWs8LYSImu8c5EChBUoIKi3rdvPLUiRL6I5yCFAgUgsUldbu8cURENEAASpQJSFit71rnyUSFgASgIoAQob6XWeJCBKAIoCUEUgsq7aziBKJQBFCVFCUgFLAipRKAJSVNSLKCAsURZQCUAigEUlSxZRFIoASgCWKP/8QAJRAAAQQCAgIDAQEBAQAAAAAAAQACAxEEEhATBSAwQFAUBhVg/9oACAEBAAECAfnP0APyB+yfiCPoPxzyPyx9Mex9B/6c+h5PI+8UPkH7p9CeDwPQnsc9+YfJf9Nvk2ZX0z8pe1365+A+oHDpJXzeYa4YfXoQJIs6DyP1bsm5cibz7v8ATv8A9LJ5j+rxEn7Z+Ack5nkNsXAmxQsnCnxyws1BwvINd9G9ty/K81JnNhhjjwW+NzfCeNxoYvzL4u79L9LVk3d2Dbz5HOaMMMUjIxWSxzYonY+Rja4WbfwXZN7WXTZ8nnZfPny9Ruw/GxYirgMH5l+l83d3d3dkk3sHbbOknmL2nHjhcgAq6WoFk2RAvGZVet3dumk8lL/oJPPuyofEjxbcnDZJiZPjP5/G+UR58m0fmWrvi+bu7u7RJJdsDe2M3y2SwGKOSKQStfIp3MjDWgsjdPFC6GTkkuny5v8AQSeQehj/AMjWTYx84/Nj8Vl+P8KwJ7JYsvF8Z5AqgvIIflWVau1aBV83d3sXOddhxeZC9qgYE9uLEMgB75DIqjbsRkMevESlzpX5mT5qfzwgZBF4uLxeTkMjxMEt8rg4TF59nhMzieFZMODncQIflnm1d3d3zaJ22L7ROznRLzj2tcimlqizeglpecpMTk5QKVnin5srpchkjfCYgxdNp53mBgft59vgUE5nRhzqshur24uT5DN8bh/kngo8WrHARV3d3ZdZdd2XF5Pjx59Y6fwwkxYgZuoWZJlw5IwoFmtw15UMijZPD4IFPTn583iowba7zR8M2wcvExpGvWQxTxR5viYB+jYN2XKwbR4u0XFxPHjV59YhehwBBJHO+IIZEbBJkvTBnjFHljE8O2lTnFSLOfhQlvHmXwMQIU+K3A/vf5eTK/jn8ViZUb/ku7vYIM6xH16EfUPqFfJKtWUTZJKPOCf9C3HTuGpqx5JIVKAXB0iaIhlrx7PKvic1++THjzlSvx2xMLAx4woxH1hgbqOCJYjA0ZfhsTG9rsnbbawwQiEN5HLx9G7u+L9Lsniy4lHgo+kTvNRwukQAAMcXW6NOBL3NaoGyu8VHkOjYFdyNZnZ8vjImNqfJqGACgK9KLa5u7vbbZCEYwhr4nfSvg8X7lXfyYjnxtOM+aC8d9IhyeYYdXF5LmAiGLqfjujcJ4XnDP9XTB4QNqqr0sm1d7E7bWGCER/QP0btHk+gRVngfHPmzZn+fzfOYkEj24WXNiFth0csyhxXiWRkc78WHPnADAwxmLIEjMJscOtUB62TwTtdl2yEbWfKXA8Dl/wBgcWifY++bI7hjvHZmZhxTPixfJMk6P5ugJ8smTDDkSUSsCJDgifGyfHeP8F73d2Tdkk2XmQOagh9IcyfRP0j7FZrJONcPOiky8WGZoMTM1vlT5N0zIAn5W0TJZmNhiQ+SybuyQtXqyjw1NTeAh8oPq4fUv5TweapzZsZ7kGYORBlZniGyQ5wy9w45JzHyRQqadqxMb4bvbbcuTYRjCARqZeQMRogoJqHHc0+97B61A9j9G1d+1fCfV7H+O/5jMHULH8q4SeCf40wGJuPF4sYk3kiY48bD5u7vbYv33CEYhDPZ6zosJ6KK2/pY5sAgHpfZtQjRdvWnI5k+geD9I+x9CjzHmjzP/cb5f/oSZBjZjxeOjjtA3e22xdfUIQzgfAVlNxEXGbrbjsa1DjYTtfoGLYmuu9tqA4HMn0CKqqpVVa6666666a66adenX19fV0mDo/n/AJTi/wAv8f8ACPGx4DcRkCu7c9r9uzbXqDPlvfIUiYqKK3E7ZGxtiDuy2sEYIfYGq3sD1P0aqqqqqqqqqq1oN11111106xF1GPr0006+sMDUSXbbFxTYBjCL5ewOaAwNU7fINgc9z53NMDUycPEQiDu0rXS91rpe9+x+eqqq1qqAoiqqtdaqtdda11oAAitaqldlxcXmbGcIa+rbznRYTyO7u644Wu72uDNNuxjusN22Wmu2/I5ePoVSqqQ4qqquKqqpVVUFVVVK7tOMmQ59Yjvp7b7AaublNxC+PqdPIGMbD2iZCLXYvWlbbrTXYHgcv+eq4qqqqHpVcHkClVUgFXBRRRcZHzufVIJrvlvcypsYbe91pkteAv5g3vXS2FkgmQjrsa7XUAu2rQN9j9ekPhPJQ4pAV6lSOMhJ5CHGI7goM9bdMMlCEM7BIEIwL2VSsz2wkxfzPk/oBZCGiZsoQjoybVoB6XyOT9gfCRweQqHJ5KKkRCpwdwOMF3s6V2TuyERCYZAQhAEjZAA0DbdFudHiPkLoTF2dzGsgaO7ctDEDzfZeunI5f+eUVI17eCighxju5fI13SzH7DOukR97ZQ3QDcODdFvsVktw09xRg172TMjEQcZitaB7L1DFutQOBy/9F4eFRCHIQPD3Gcu/n0MjJmpsQP8ARv1iO+zagyuMkFAmVzOi/wCkGNoZsZVprZctdbLkB6n9Eh4cEeCEOMV3BTyZa/n1OQ55jbAHGXYRdY95hnCEunL3RMhD3TNd0hm/YtNN91pqHbj0HLh8g9z92RrwiCH8DjDdyXGd0mn8wH9DnsjbCPjes6PFfr37dDMcP7mIRBnZuFoGbb0GVtfI5k+Ue54H2inB44Kchzju5MVGcu6hE5wn4HxlZLcPhzn5QcIWMbP2tQjou3oMovaddPUcv+Ue7vulPDuQhyEDxI1sJe6cEwGIDgfJkNWvUZTNrCyjMJa6q37AOtb7AIuDvU/Uch9wqRPFe2M7h6EQh+AK+0ShrWeswzRERAWumbkaxwBne2ShFXZtqGLda63yOXfTch9wp4dyU/0w3fEXvyu7QY7WemxeDRb5GPGc+N0FCXuETYU2UP1Ea7A4AMvcItrkcyD6TvvOTgQnJ6HOM74ZohiMj9Nuy2jVb2W5TcIyJ0Zxq/pbM2JkS7diwMC7EG63uiwDgcv+mfvFOEno3kH5C/vD9BHfaRqGXveQ1XZh6N25DZWRtj27UW6k7LSt9kB+u5SjgeuO73dJ/Rt1tiae8JrBHt2LUNvaRZwjMrnrpZG0xzsd1tjLu1GOt+xBi2seg5f9I/dPBT0eXemG7l0zsjcxCDf+ly6OruMoXWGb9gWganLyMeM58jpwz+dsYlGQF1a79gWi32QYt75HMn0j9c/AU9O4cpfTFdy8GQzoY7Yu7+ioo9OxsqDA31KymYRcnzOmIjgbGJjKAIwzcPc2q3ugz1HLh+QfhcJGo8Dlp5liMZm7g0Y+hnEpHQ0drZPgyAFqU+cyhrccNE3aAIgNt60r0LgfY/GPun4XKQIoesLuJQMejkd5Z0V3iRjGwtZ72phliNfzoytkDWYwb2h+vUG+l7rRb8jl/wCQfhKf6OHOI7kxdCOR2CPoDEOAedt0GhqcvIsx3GL+dz/6GvDeqy9juL7L0Ddt6DfQcv8AyD8JT07gqX0xTzIekY1cXfPYJL0Ddw9aDjKZhF7OnoBM4foI2nusDUkyLStyq05HJ+Y/aPwlPT+CnocxH4jMZK62x9hkQaGgemQ1icdTBG3tGUx7YhFfbsG6XuFqG/Efxz8T08HkekTvV8hkDegM7+wLpoP3Aa31mGWmGQatgbEJDOD167dqDA0el7IDkcv/AEXJyPLxzin1JdMZC2OOhNuA2LX2vcryLYHPmdJXQ1na2cpkQaPUv2oMJDvQcv8AlP4hTk/gqT0xHevSGUpI+gDkc32XrrsTlswnPe/JMgY2EITGQDrA33CDCt0G1sSORyfhH5BTk8IpyHMLve+KQ47DMJdQxb3rW04iRD3yT79TYGMEolXXW21Bt7XrReD7O+Q/iFOUnIQ9Gn1rlz+8O6xCXdm7WCO91qpVlJqdGZjPvoMcM7hJXWi+9dL2QbXoOX/Mfw3B4VJ3pin1dO+dCHr3fKHBnVv2g6BuwetHLyTIHOa5jpP6Wu62MA7Q/WkX2GhvwDl/55RRT05WVJ6YjuSGwambtKEAg7f6ATG2PbtWobttWuYzAdIzo0a+OdrgwQg9u2oZ8g5PzHkfgFPD+HJ6HFwHmUuidAUckT6HH6u7uCEWnZutFveuQ2FOTohAIxI3KjcGNjA+hZkPzH8R6k5CHIQPEji/r/mts5dqMbr7jI1CEM7BIhGt1KzIDU4mIQNhaggh85O+30D+I9PFII+mO7kTvRh6yjldoY/GDe4y0Il2bABnDh5FkLiiigmpvA+Qv7b+mfwjw5PB5kQ5xHcul7yelsAe7I7NOkIzduoiA9s2PBeiiggggh8FmXsVfVP4R4KencOT0OcZ3Lh2nIIGP0bf0lzYzC13buwe+S2AglHgIIexf2l6qvoj2P4hT0/g8N5YeXxiP+jur+YY+5ybiYIQ34ZxkBhKPDUEEFe+6qviP6pTlIiih6wnhwbj6iX+jX+cQgfK4eRZGSVq1gAVVVV8h/VKcpAUeH+mI7kxtxuj6RUqEetVVAV9AfrFPTkUVL6Yrvq33GYn0qvongfrFPD+DwOYnfS37S8ocVxX1T+w9Sct9WH5dt9lXFf+TcpEeXjnGd8F3xVVXqPtFD9hyeDwVJ6Yh5va1VVVV8A+05D9gp7XM1IIag0Y8UHFVVVVfGUPtH9ojXXXQsYyqqqpVXzD/wAtSKoD64+yUPlKHA/NPAH2B9k/MUOR+Y7gfZH2T8zuQh+YU37Q/HdyPzh9ofj/AP/EAEkQAAEDAgMEBggDBgQEBQUAAAEAAhEDIRIxQQQgUWEQIjJxgZETMEBCUFKhsQUjYBQzctHh8CRDYsE0c4LxBhVTVZJwgIOisv/aAAgBAQADPwH9ZX9un9KT/wDXu/qQLlT2RKjtOAWztzfKo/KmfIqJN7Ki/J6nL4A1vacB3oOuCD+iL4WCXfZUqLfSV6g/vgn1Ors7PEqrVDvSEl0xBVRgJLShl/ZUaozqnWubaDSVWpuzVOpZ9itR7TQoialVre8r8Op/5hd3BbLpRefEKexSA8ZVer7zx3GE+5zn5jKx7IDz/Q7qhLWGGjN38lS2MeipDFV4cO9Vtoq4qjsRTAMRHWK9DWZUAtIlAppIe20p1IwfNHK0ITICuD7oaQsGR809nVdcJtRuNht7LGZWzUTgpzVqcGr8R2icVUUG/K27ls0y4OqO4vd/JPP7nZWj+Fi213ac1ip/5ry/wCoPYTszcFQaaFN2ra20nyBBLvDRU6TGsptDWjID9DF7vRt/6im7K0UaX7wj/wCIRdMkknMrrsB0XW8FiaQrNUteEKmyzqFZNLZKovyMKow2scsXJGSWiYvJyTqTr5cEHAPbkfXgLZaPbrMb4rZh2Gvd9Puq2jWN+q/EXCxwN+bCtorM9JXqvFPn2n9w0VHFgDxSZqQCT4rYXjENoNXuMLZqXYotG6Nm/wDEDOFZh+uf2/Q0DnombDspqOu4/VxT6ri4nE55JJVyM4N7I1KkDNEjC6z29Nnlf4Y9yJpFy/IT/dJQf1KgTqZxNy0Kc3Wba/dT+WVB9VTGbx5rZKczUnuuqI7FJx77La39jCxbXtJjHUqHg3+i26p7jaY5rYqf/E7ZPIGF+B7L+7phzu6T9U78V2l1eqPyaZhrNJTKmYTB7shV9md6Si42803afyqtqv8A/W7H4h+FVNfSlv6G9JVLtG/dGvtLmDsUrDv1TsxPMq4JCdTeH8FT2lgc09YJ7LVB4prrgo4CBqgygR4L/DkckfQFGzQnN7Xmg8ejejSfqjSqzK9LRa/eo0RNSoGjmqc4NmouqFfitTOsyiOVynP/AHm21neMKm7JtR3imNEuY9o/jVF5w061adJhyrbLD62zB9PiLeaLKYZQ2ZlNbbtLoxvPIf0X4jW/yHd7rLadkwelaIdkQZQb+HUI96XHxPQHBejfyTqb/S0++y/aGYH/AL0fXcDvxD8Kp6+lLvIfob9j/D31YuGF3ijxmfuhTpgkXITibrDpZOeZpPiE9giuzxCb26R8EMEo1KzaQybmsNI9yIZcWV3L3SFhf9kKtLFFwrTqsTCwqEAqbGkk2WBstYP+owtpfamVVqux7Q5znfKq5GFlMManu7b/ACWzU7kT3qhs7LAWW1fidbhTGfAKhsw6jb6uOaa5pa4SDov2PaCGdhwln8lszdnpmgxoYWzboe7YmOAsypJ7ohD9npU3ZYyzxNx0h7SpbhKfs9RtalYT5FN2qnweMx0/tP43VqDsbPTwf9TvjmXqcdVjeJCw7LSp/O+/c26BrNbZT3BY5+iI6rvBVKTw9ipVWxUEFDtUXQUSy4ghyFKP/UqFY3Bnmg2io0V1Le66lpCwvcCFgrgL0e0Ob4+aJVSpQqtZ2sNu9VQZqNeP4p/3XpqlSoR2IA7ymhNbp0cE7bdqDBlMD+apUaYZTFgh0B2y03/LU+6P7D/+R3Q17XNcJa4QQv8Ay7bnUan7ivYP+x8EajCx/wC8ZZ38+nA+Uxwc14ljxdVth2mQcsjxCZtFPG3PUcF+z08FO9Z9mNC/ZNmDCZe44nni4/Db+zlTtLFNfZWn5HH7L84iZELqqwV4dlxRaI8kX0w7EFX2fszHBCo0HXUKdoe/5clAk5lF9QU2otaCHX1RpnCVdqhxCivyUbSzvX+IpnjTHQ0BU69J9Ko2WkQjRqbbs7u01w/l0wvR0XcTZRif/wBPTBX+CP8AE37rDsFHnLvM9NHa6JpVRbQ8CquybQ2htDg2q21OqezUbwKxDKDwPRiatE3aKJYbObdpTtjf1HdbKE1/+Lqvx13f/py/QI3f8S3xR/atn/5TvujjeHCF1FxURZDAe5VaQ6oJaqdTv4FAHEPFAOeXZAynkWFzkEKQLnG6FQWylYqjisu9fmuQxiV/i2wF+dS/5asOn9m/FqNb3K49G7+LRHLousddrNG3KwbOwa5nxRVx0F7aFBvae9CnSYwZNaBuUdqp+jrMxD7dy/Etl/4XaRUYMmVdO4r8SYPzfwx55scCqv8A7dtP/wAVt7z+XsLm83rbdo/4jaMLflYqI2eaDLtFx8wTtnqtcy4Ni3im1GBzcj7ETonLmmpvBBQfhsbTTV9kqfxBD03goDlcq3ipbCY5gbqFSOdk9muJqkxxQpDERLjkE+u65tqsLMLUMa63cpcSprqdqU7Y4fK1oVugobRRdTJjgeB4r9opS61an1azefHuKsoklemrl3zOhdXoCY1pc6wAujt23O2sj8qnan6nEE8Ko09lPq1cVEtAcbg6dybs1BtJpJjU8T63gqh0TtXJqaNPimCox3Ar0uwYx/lkP/2Kw1G9XPVXPMLEGHlCIlqyVN7Q5pVQayOadpYqSCUXSSYGqkAN7P3WHvRjEsLCdTZZlTXJhTUe9GpXqv4vKdhUdLw8VqJAqgRycPlKZU6hGCpqwqKJHzLrfwj7qB0bPs7S6rUDQtq/FnAAGlsnHV6ZRY2mxsNGQ9UEPVuOQVQ8lxcqY91Aert8OZtOxmm64LS1yfRcaTu3TfB/mhUpA6oBxpu1yRIDxmM1ecjCp/OWOTz74Kfy81yTndXyTKYgGXI1Djd2QsTp0XpH8hkhSpK5ubr9m2Fx95w+/R+U1A6I6J4RTanaHiqwqFg/MDeK/EKdPEzYsQdftL8YNm/hsd7wvxyvZ1WjRH+nrFbPTf6SqXVqnF6j2MnJPK4lMGnxylSsOs5VqmsDgF6OsaLsnZK7dqaLdmp/sV6N4ByK1Ca7qPzQd1mJzbOaiBmVldybliPioFs0XHE/JT1RZoU/l09dVgEnRFzuS9NWbbqtzWKoKYyZ91icG8SgAAgh0AWUU3v0CxVyNXOQa0Dh7ISuJTeHroUjev8ACbosYANUZVk5jg5pghUtu2XC+9ocCquy1fR+6T1HckOy7jaVJxMTmDBWvGqo1hYgqkfdVH5VS+VUvSYeGSptF3J9V2CmE2i2XXcnPJa1VCfRDMlN2HZgB+8d/cqViqY9G/fd9JcZraKlMsa/NV6O1srVi3Cy4g5n2IDoJ9ot8Dz35ph3ylQVK1NgjslUOZJ4rZfxTZYN58wVW2WphqCR7rtCnU9ZH2VKsJyKrUz1SQtqYInEqutNVTkxVawHVyVR/aKpUBOq9If9Kc9wY2SUzY6Xpaxl5T6zy9//AGRc4NAuUKVMNHshOif8pUZ9B9lB3pB+FBwIORTsWErBZt+aLkVtGzVQ6jPMLZtupejqtF/dKr0Zfs/5jPl95YTAlvJOAvktmdm2Ctk+YrZs8RVFmV042AiRZTmJ71W2h3UbA46LZ9gZfrVD5lPrvxvPcOCK9EMTu2fp7A52QKqFcXKn3pg90dBwlPAY+cnBYh6imJvkpAPqIQ8VMWT1IuUBv3PwprwpmCv9YCoNzumizRCw3BVRlqgxBfhu39oNxccnKDio1vB39FtjD+6nmFVGdN3kqlvyj5FbQcqTvKFtLoxkN+q2Sh1qz5PNQMOztjmnOMkyeJTnnC1slNpdZ13/AG9a52QT9bJuplMHu79ljp1GrFSb3K3SBmUbYWSMULan6Ye/RG2OoSqQEYd5qcYICqHVc03NAI6NT7rnv3+IlbVTyqHxVYdqm0oa0SmO/wAtE5AKs8fvI7k4mSVUdk0lE3qGOQTKTYYI9UTkE88kNSmjT1lysFSrT4P+6DWFxyCeXOa1mRVd/afA4JjTOZ5oNyG4JiU3miT2Snm5d5INvKYOCtITiLBHigmoJxGSdGajet7YfYSij0FFFErmo1KCpt0QG7n0k5BPOi4lAaeuHFBSJXo9u/jb9lI3GgxKZDovEfVVnNBYPeyPBViADU/qmNMzdUwJkKcWEEkBP0HmiIkpgzTM7ITCenaoFNCCcYhOm+9b4aOgcN0dA33HIKqTlHeuLvJUxp64X45Jx91P1KCHDolpWH0VTg5S0LC0ngur1BN4VZzpDoEJpguOkKnTyF48Uxxht7Sq78qeHvTyQS7WUySeJnzVNpt/cITACeQItZSBJTAmtXBPRM3TU0IJ5037n4ywaptZ5blaVTGiAy9nCxUqjViptPJAqleE53ZYe9PqNbiPem0ziLiqNLgF1Guwm9u5VXOacJARxTiOaZMkZprVwEovFwpETZAJkZqRLVUXEoBATyXAb9/gNz7KAmiQLp7jn0YK9M8befsgGqsOafwTozQTYWfMLDUqU+Dl6QC5CosvA7ymSAOKqE9UnJVHNcHuz+iYDJueapUxAjuCBa1zQTJhbQ4aCyOrym2n6prUZIDU88leZTAmhG0BOJlcSggp3rfFAjonOcZKuemMtFia13ET69uEumwXygqoSRaJR942TAmBcAnHRHUoKy9Htv8AE37IlljdD3iSqNLq681eMJnFC2kudhsi98ucYgeapNh2g4qnYDXRE9lhVV3JcXEpvBNiUTonnVcSmhACU46J/FAlAb9viUdE9HWXW3JoNHy23K5IJqagx99+mPeRPZbJW0O4NWWJyY1AHCM045N8U8i9kb4imhALknp3FdVyg0qnB33Vgq5/zLKmDe6pMxXCHpMAaSbKv6QaNlZguJBEKm29u8ppsM9E5wsz3ZVR2EzbNNTAhojaAnmLoIDdA37/AAi/qc92+51nt4332NzKbYNuqz3PaBEGE4AguscwqY0nvTJaG3ngi7sMJVZ15jJfM4lNzhAuhOOTbJ5zQxEpoQlcAno6lTRqhYqbTyVWYZCe+C5+mipAlxCotOIcNE84cDVWc/E610PecSqTeAhM0OieWjC3MJxdOJNE801uincCCdoE45lN37/FuruYazD4ee5hIEGSqxcDFlUfBe89ypsmR/2VJvDwXVlo1i62lxGQGqJbhe+byqTOtA71TGRlVHRDfFVjEuhDHiTG5QEBI4R9U85NT7SUNTKaEFyTirnmsONnyuITgyWi6rvFuqvneSqNMi1yqbdVULrNtMXVXH2+qDkqYNznzVJvCwlAC2aceyiddIQTUNLp50RMSU0JoQTyjqVG9b4tnuQsQDuI6QwS42RJGATr3qs95aOqIBRd26ipNwtPOAUyCW3uPqnP9yLKvUaHYsOSAxSZxR9FSZawTFUc2zYTjHWjKU0cymN1CzjSE4jK6cSb2QQ6bSvR7Y7/AFCfJdWeSL5DGnJVntIdAv8ARAHrPKptfEXKZ7slVsRAynM8EQBijEmyqbOAQjq3zhVJsiYlyaE0KDknmETmUE0K+Sejqd63xa6h25NEcrbha0kDJVJgNnu5qqXNOQtITJlznG+qpUwYH9VTGUnuCqOaw0xrcKq5x/MIF1THeqTRaIQiWic1VJs2E49p+fBM4eolpUPpP5x5rqpjbKo8dUEGfoqj2jG5MaZJJMyqVMGIkaBEFoDZVZ+Lqx8qxEkuKZ5JoCPy8PJVDpCtcpqaFwCeYUm5TM4TVwCfO/f4rksty72+O4Mk0TGQE2VQkhjPFV39pwHcgHtdjuDKp0wYgIQDhJmY8FVdAwwDZVLFzrh0/wBFTGk+sssVKoFiY08k2ZhAugNKruyZ4pxzdmLqkOapUxFgus0AZqvyX+o5ymACyZGamYEqpwhcSmhNCOgTjKjVNEK8QnTl8Ysd2W7mGqw+G40k53vCpMdECYlNEReYjxVd0YWRdVXdp+qpMaZy5qi2MhhJTHOgT6/PmFhLmfK4joptPddNGTSq7o0CJ7TzmqTb8LcclS8kXA4GmxGYVbuurgl10yUAJUiwVQq1zNkwXsgpTr3XP1Nvi1o3ZAPHpc6IdHFNbxKp0xAGWgQGQJtKqug4dcuUJ7px1EySSJJQGQ9fZej2x4+YSsbIVJglUgOXcnOb1W3VbQxzXo5JfKpgiQLm33VMaoumGlVCBeDqhMk3smtsmzCJyaqhzMLK6aE1OJgBO1PQB5IEx8c6yhx3MVFvK3SS04TdOOLG7MKmNFGXqQE20QesAfFPdky1lXObgFBBnSN6WlYatGpzjzUtUEyZz+qogTZMDXRmE53ZpmFtD8yAOCggueSVTBDsimQYzTnNloVU5mENTdMbwTU85BPOZQhNas4GqcQUTqmhNG/c/FbhXB3O23x9VCa3MgKm0WuchzMSqruwyeaqvAl8WvHFM15/VNaIA3W8UEToncVqpo1OIuPBS0HkqhfIfATSbm3BUqfAJkxKqukMp8lUc1kuuAE3Dhd1rzdMboE11mm8KoQOqnX700JoQ/vmnkZRZOm5TUAuSegU0fGr9Mt3Iqt529V6RsTBmQU3ECTOczrKYyzWjdA1QTzECE+boIBBO4IkXKz5hFoLPlMJ+HqJ783e9buVP3jKo0xk0JujSqjy5rWgEcVV1qayQmN+n0VNnALKBIVQtENUnwTQmiy5KpdGZJTQhojwunoFRvW+LWhW6YKkT6xgzcm2jNVnRDI70ceIutwTGi6Y3ghwKccuBRMyU1NHQ4qwXo9rePmEo4TGarE5W/2TndtyphsG95uqTOErg3j9FVL2gsgHVVXCXPI4+CaJ1nNMbayHuqreOKJPaQmUGqZhPJ4LiU1t01OvZOJzUfHLlQ47mKk3lb1DGwCUNAVWc0w3CU92LE6xaLc1TGipzAiULhoJgqsWj+9VUM43apoTGq1gnriU1BckXByw1aL+cFSE4NlolbQT1QANE4xjf7sH+apNVMGBAKxOtloq7tPNOd2n2TAmtQ0EqoZ0RM9ZWum5K+SeULJoVrJx0TtTv3+K3CuNyz2+O4wG85xkmgAi8mFtDsmRbNFxBc7QWVIaeapNFo8OSuQ1kqq/s2bF5VQlsv6sXVJgmFTE6a98o4oAJ4qqQO5HV0pg0TRquAT1ldDospov/wBN/JSwdyYzNE9hhKqOa4P1Wcu7wqYg68SqTLfZTOBpKrOLThiCgTJKbA5Jg1CvYKoeS4lMamp0mAnHVc00LgnTYfGr9Fl1dyKo523GQXO8fBUG5wI0hE4cFMnEJlbQ9h6obMf1RtiqEqmwR91SbYR4Jx7NMlV3kHIJ7ScTpVJrbiwH2TQDrHBEmMOqqk8ArXdKbw38+YUDD8pjyTYxFNbhtYp2FhY3tGFtJjRdRzXumVSaBYKmIg+SvDWyqjw6bT/JZ4nSmN0TRPIInIJzu5TmmtQTictE45lAept8WlngrdMOB57jakYlTBxEX4lU2xdOdUhoMTBstpdMnCrnG/FaPNURNhZMBAB1hVcUYP7BVd2G+GW+RUkEulU2C2iaFiPZPqbLBtdVvGHIPbBVJgvCbeBPBVpGFuirOiXRxQN3OkqnTZJ0GapiwTobDbkKoSZtZDUpgyhCDCccmp052lCUN0BTv3+K5qCRuYqTT0vNNwYetohYucZ5FUWdW1r3VO2ZnJVHdmn5qqSbjPPlwQh+NxM5qiL2TIGdxMKo+S0fLH+6rCJdb7oTJMlMbkPVS0rDtFF/HqqWqmOJKos+UIdcAXH1VY5N8VVfhOOLCUzUyVTZwTYJvYwnEGG+aeYJhNmUBkN0cUE8q100IZb9/iVunrDuUP3Oq5vA7lY51ITCBivCps4BAdXCcV7Ku7s07cVVdON1iIITT2iSmCIG6ekcVyun9y5oDosvynH5TPkpaETULsRzsqQ0nvVIXtKbga4NJngq5d2VWLu3abJhJc4qlSB0UZXROY6QENE85CFOZQCAXAJy5oD26/tl+js7sVe8blaYYPFVHZvjuTRNyZ4+aEzHSOK5I9LB7yu6BlCqngLI6uTQm8VOSeVzPTOIcQjhwn3THki6CDdOvieTKpMHWTW2a3XREOiBr9FXeLMiUXEHJMsOATLQRwQ4GeCfaBZPI6x0Q1TWoCU86QuJTWoKYhOtJTfZb/B7KW94VunC9h57/JHoA5KmNfJEtGFuf81WkgGBe6mMRlU26eaYNUcNhx+ieXEC0I2kygNN6y9HtdVvHrJ2Hq5qu4Ol0cFIAc8mDKYzqgqk05iU33Wkqs546sNTjixuzbCaDOqaCBqSuSqH3YTtTomBBcAnkeK4oDT1d/itu5QSNzFTYeW8Wk9XKPqnPZ1G8Qqxm8Sf9k33iSqbbtamajQEeKfiwhmuarObeAULYiSqbTMXglNRmwsqnGLKNd6WlYNoov49VWTiLE56KuZDnaKHYi9U2/1VJgzHhzV4a2TMKudAE93aemA4kxvBcBKfdZyZtCAQG4AuCefjt119yaZHA7zAZJCtZvH6FPgQL4gLqu6JdqMlgm8qm0aWVORebp+jbqqRnFzK4kmxHmmjTfCCcV+U4/KZUtCwGMJVZxsyLKs9rmu4odWSbBUGCLcL8kwCRe8IOIAadFULurlCIzKbA5IboCfwTjmUEApTzy37fFrbnXI4jeZLibygMh0l5EOLbHJU5uJTW5QuSO6IlN0T5sidUE0I8FIcOIXUAOYt5JrBLkPdBKqOZLG9bgVtB9+EIOJ0yZVOk3lKp4ZHCYCOIADW5VbipNymsACbMSnfKn3uhrJTRmhoneCOpTQE0J02R1+N2UtVumKjDz9QFyR47rAYJTRIPFPd2W6Sqhzem2nTJNbHkgnHkicyggpbKwbVWZzxeaaQJ0uqTe8KCQ0ZKqYhumaqucTjhC0k2AVJgyATMM931Tj2WFVTyXFxTQhBPBOOTU85mFYSmiyzTzyXFAIBE6b9/itlmOe5iaDxG8NxjRJcITSHFoJhbSRZufHRPdhl5yEpgFz5prbpoAgaxCqRIanRDimpoQ0T3LiU0LE0rBtNJ/GylqotHWCpBDMfZVXkdQgSqxw9aM5IQt1jKpgEQL5pmhlOOTSnEQf7KGpJTQJQCdAgaI8UEAjaOCeVzQ+N36LlQ/cmlHA7otdUhbFeU+cLWGQVXc35Ti+idfG+QZkKkwQdTqqTciERgLRIK2h2KBE5Sne864NlTGd+9U7d6Fw26qOsRpmi7M+SCaFM2Tj0CIX5Zd8hlS0IOBByVEQCAqbOHghiiP8AuqnpIw9WVVdnUhNaQZ4/VMZhHOAgHYU45NTzElWMoC6gwnnRGZJTfWW+J36LhZHcu4bkrslzpIAjwVGTYKnBIORhVi1uFubZ7ltLuAC6pDnTJlUW6eaptFo8FPZbKrujqRBQdhOWqaAFTbwVlVdpCJiSmtQFkYsE45lBYg8cQvywDpbyTnZOhAtbjziFSMawITCbRKxvgZLaCOynw3rdYCP6pszdM7Vr6pul08xATzmUACPYLfE79FlLdyKrfLcqAtDGzxVUlxFSJTHGTyVKmPEKkMjKJP7swtoJPXiViw4jIuqQuWhUmixHgpEtZN4Ve/NG8uz071TBCpwrdUJ/HRcSgM0AnrirL0e01mc5808s6kSqx/zIQa4GVTYZhUm6jwQ0bJuquK46sqoe0/yTYA4IDIewhcPi9lp0wVIB6SBKrmzW+KrOzqQqebnEnyVCnnCaXObwMKviMXuRktoeBJDboTLnkqk25A8VTbr5JxaCwf2FVIMgDgrQXGE0IA4Rmicmp5PBXumoaIldQrBtVN3zCFZVy4CIVY51FYhziZVMHsoDIexAaoI/Gc1DzuTSHK25jOFucqtjtlf+irPjHU8E0mXXy+ipsvZMBtcQqx7LAtodBc+L5LE/FjOaosLWx3JuKBy+qcbNaZ4qodY4eK4uJTRc8gmhF0wE85mEOmyhgd8jpUtHsjQuATjr8c6wV27nab47jWEjAbZ+KDg7CCSBKruaC0AHmnlrw6obme5MAjRbOyYLRCYGyL2VZ12s18wtpMS7wCGLFJzlUmmLCyaMridE53ZYqs9q0riSUOG/ia9vEKaQnP8Al7AAmpxROZ+O36eruRVbztuMzdCpThBvyTj2KZI8ltDjayqEgvqzeVS4ZFU2A3H/AHTPdBKrmzRbiqxAxPi2ipmS5UrwQmW4J5mG5f7KpN/U4NorM/1T5q3rGjVcAnnX9CS3chwPPca+J0VJmTVStfPgi4S1pi6rvcMTQAi6Mb++NVSaOyqbTEhAE9UraMZgWnyVUdo+CZabwITRkPVS0rBtjHfMIVvUDocidf0PmocdyaTDy6ZaRMIYsRJJVCno0Ki2GN4pzuxTlbU7UC8o+9UKZa2QhD11l1Wu+V4Vuko9B9iv8auusNyWOHA7lYz1rSITBqSqVurl7GIuqbp6socP0lEHmrbkVI4j2YDMpnenHKyJz9pt8blYmeCt04ajTz9jbxXAJ5R/TFjyKudzExp5euC5J29f9Lw481DtyaUcD6so+qv7Vb43foyWu5dw5bg6T6+/6VuijwWJqOspxyBVU6J7HAkjoPw6/wAbCCCaNOjX9Y3Vv/sjt8Qv+grfrL//xAApEAEAAgIBBAIDAAMBAQEBAAABABEhMRAgQVFhcYEwkaGxwdFA8OHx/9oACAEBAAE/ENMDHD+A5OPfhjCHDwR1Fl89yHTcvl5NwnaP4Hpvg6Hioxnfgdb1H43rIQ5OlxBO0YR/Aw4MOGHLHgo74GCx1XLly5cegjGH4mPB+E8j8L0H43h6ahDk4eUhJhnaMOXpeCMeGPJjwdAgrm5cWX+Ahww/Gw4OHpYzvCEPw9+CH4rjwnF9JycPPeMNRh1HQRjDkMuMw5XBB03w8HF9TGH4npCPS8d+B+F5IfjeXklcHJw89+CO4dNQ4rgjGEegTU6RvhlwRQA7srs+2iKLF9S1yPTcFdQXVBQCpXUQQWhjDk5PxPAjwMYweFl4ly8wBQPYIUCPI2fgY8EIfgOp10XwcnS74NTv1bgdBweXipdEyZcIxLSpUVHjP8i8fJiLCavV+BKlRej/ANRct4Jg+JTOrfxiIUhKM5zaCRVF85YxeGjt8NwwOw7gFRDwNpzWSVVWq5WLLPJB4Hjvxf4Lix3BiwYQiDAsUC/URGrkhNe4Tmn80VDv1QjJUvuSK5MYEHrYzvwQ/AfkOTpd8u4ReL5Xpd9I4WO+CLDwy1gKL/EGC0Y7feV/KrLxWdHolSTlhQVcort+5jtLPpg36QQy4EJkuGWRVYKj2QQCYusP1Fq56Mdjfd9xkstyP+oesLg/FcuXFi0xY1gJWCLAPLiOewjORwb72T6mTm78H6jDGPcT+sr0L3S/oJ/IlBAuEsOJ0pk8w1UfRtgNTrQIfgZ34IdB+J4eg/BfFy+Fy48i5ZLi8FzLgty4wMYpjLJO0DiuWsWHY8HtlL/6HkffgjdzMiqr7hOre7mFKxpCcMJFEfiIW9y4SwuWHWP7OzUCXIClj10Ly7RN8KZAPReWoRL3aVBUWUHhhzcvpHS46y8Vgn1jlDX52q/uMr+3LJweXQ+rjb36cvcmB7la1f5RNsFmu9QmWY81b+2U6iuKiEFVvyb/AK4zqvh5P/BXDyfgWXiXwGXLi8Lly+DwOXIwwSPCyyMBuVuK9FpoeVmcxUHeVt/kCfVdpRV8Jlnwy/4G31RohM4DJklWPDFXuMbm93HtGRo31cU3sQItYrM2cRYFwHEapfkm4Oy2LXwxsEvg4WMM5xrtxNG/kQFF6Ff8i9e/mygL0Wy4nMZKPmArW+7zMneNkEIsMbun3AVw0YM157zLI8ncj9aRwJSUFrxBERgEMKAYcV1PBwfjTqZXQQ6Vl4ixyl8CFlwgeLjwOU7+dkWopM93iCR2l7Lnebblg5xntTMSXqe8xyD4Alt5olq5hXQXVevmUo/3DFSydjCaTKN8qPudwCUhDu7jDPEW4rWahuGO0Ocl6Yov4B3g1A1i4Hfgpl6lweAyJ/OiiHB7j0KsbSp96pjv24oOEm1ZUyPGKB/W49Za85fRIONqisx63vnf5FUhjm0kdlVKLfiPuw+VIYikSM5WeooNC/BTDJwHPap3mUFBuEZn9FDWH4Gd+T8I8PQ8PJwQ6V3wUc5fAi+FxEisVF9y4pcw4s3mks3wMMUynbFLZY1qx5eiJA72Vxa3+2EGMT1LAQllYqo+Dlf55jm3rRcIersI/HaMjTAA7dfLMjoXFCnahOzrKuMtfYIC3E0krg1teSUHGQuClV43LqbICpcwfLKM4lgEXhkuM5xYVLH92Kv29od8aGIjeztAFdecoyaQojim5l/8Wyv2e4UPiKlFiMMQ3/X5gFygjLfmOSXrh+tKS4sX/EMKlWTG2TJAEEsiNOunb7Ttcf8A+5LlxObU724B+Bnfk6D8jxXJCHTe534KXmWMpLxxeAhZERZcvMyizOImO8xRi778LWe2E8Avq4ebocPBOZQy0malLDox8ECVeDA8Ss13lMTyv0wp8jMRK7p4yNQQVBZL9V2GOX2plUKz2mJcrhG58QLF5xVMp02Qzyh7/rESjoWpUDVgfgRPcexGsf0lqA6oH4gzxp6MQdn0Q7NDxqLSLARoXcf5gnh/f2y1DGd9BfrGKu2zDMIFdhxhHCMWyahXam/mcwCvV58fado2JbnTHBAB/wBnsgLLy7Tw3gGO+pXBf3zbMhWTgh0vDL5Pwn4GPQcHBDhblxRRe5bzBxDkSMfICo5S9VcWlXExmL4FxlUA7xu0dNb1bFYsH2lEDcoaBX7m2v3ACi8LEw7eIshwF+0FjXmgj13dyyMBmjD0MbdMGh70TN15FmdRInpSH2jtMmSY2dyn7lr7TO6Ii/lYsf8A+3P/AJ4pYaCy3BmHAWXr2TdT77q4WYJUqO48b7lxzQB/rBIBY4W2Q0fP8oa9v9ZmHGserI78xBfJpfP4WRBvYQ1BSFlqNyWl9nw+mIWzKnI+mWudhvXr4nJ0PDwcH4Diut5OTg5e8xqMVVxNRhfC2AYsupZLY0mHctLjslxyjFwBwJe4zM/hjXu/4CUcrNN3iIU+yDYoGSlVGsmMowbHpGvqCBdQMzocCFIpKZc6cPiIdZeVYK7Fr9EojzX6hjG4Kw8s+HyWYAEP7KA8D+rLU4i+IDWr9XehFrSMajbFWUz/AIGDJFI+7KElolRaRmggQd6A/AQaOJxoG2zyvK7MErw1n0GFEsbFsyBN9wtR3uBBAlZmeK1nefJ8k1rO1VfXvxHmssQ1wdLxcslkpASsrKRamxPYIecU9PCe2SwOtj0kHoVzBy5izZiy8S8RfMSS8uNS4kGd0vFx9IoGY4cVBFSdkvM76h++pKPG/wBbFVTa1SUBekY0ebFTArVlGMyMJEDQVJCbooI09r5qYK4Wfg4jgNR/INAHaCXfMfHmZAuEnxlfxAN75jBHQUynd03bBJf+LcwxZZ3ngWL6TkthkEWnKHidpi6io7QstvNf02wwEF7RTTKgFFPYI8svJ7sIMEoODnzgqWEGpIi1qFQVTOYzXTtgJBddjkWEZcGXLIw8V9uQbgLO8T5xFaD4gd2zQE62YeiuWP4mGW0UMKblhWY1NS+BxM7I+cRMly4MxIHaI3HfBo3w7IyiLFAdLKcrRvh/0MshuFGNENJZoheds+SIIZVx4Yl+pSVHsimxiCk+IQjdrvkYYJkGyXh7F/olYq8e8CLW5EVYuh8RGsw0haO5O2zOaXcuAwYla3NPi6Ii/tloIVUc47Pf36WLKy38nw9z3AKc4QW/b+sUHxEzxoI7fggQEbXiYUi0HAcUgIlZIUyojgBcEuPCcbDLIrSPxOzHyYWLn4Jr7PvMAYA/Acm3HqeTk5OFBLl2xS4jxF1mXBLllQYkzezgmZXFxcY2rGIx3wlyp9ROzKc5lFJiu8OGDKKnurrH7GYKnAqL3QrXhgY3JgtH6SgHkDsypZNQO74i4chqFSlHZ/2akffj4mv+T5gGpQj0Hj9me+VRCw2US95haWgfM0lRLK2XO4mxKOSA7Q3emTRPhjgOWVtPshLx/FwqB9qhG4h+DEpvq+w+oYArEJOAgOFi1qHFYvg14ZeJIjBZtAPmF3fqag/eYUYIfkOHUFKdb0nJwQZMsubbh34yBgstlspUfuMJb8TNTZlYJiJvhjnUee2p+og/2yzGdBjU9lqQF6heDFUdzZGKjVWhe8vVp7nZhVspgw0200w1tgNjFpu9sokdktTOs8PMokRYNW0DrwY/7Leh2Al3FFUG6auE78/uGKMgH3KzYAOArUPNEfCQkjDlmokX+cEF5oEDCapKGpUDgZceAtwriRxPfgZuCuYj/wCoUQhCEPwGqpXH9lA11BXzj0MZng5OntCLmLncOHE2jXAdSzEpiVO0NSsZZWG2HcZuPeNsyk/iNnTfPoiWUra5aMVj7IiMTPMWDc8/t7JcSQKLavcTuIdtkJBTCsApbHaMCgr1iCSeyXsglpweYlSzbDwaIkqtDGn3GjEMfPeLs3ldrLN6MfKVNJUsJbsqB8BFxqIWMa6dQjTkeAcj3eOwYtYIxliwTXgQ4IQ/BRd10bcjB8dL1nJCZVG0Jbf1Kg4ZhikUl3czzhZbmMKzFcURg4MtjUODFHcfhgKoO0UFp5mI/mw0JBKgF4+0RobLWRXybavbCcInc0wc0GkY7S0q5UQlIbVdwzwFjFRA1R3SHl3i6nPD8RSCMh/i2L/ABtfBHey6DQ7BFxLUTNtRl8rthwOUlROSEZpMvEl4A0J+I1f64nWj7lVxwBlVweoodAcH4VEHk5oUOp6TkhKs4al+o9ktlyuKMS4tzcdSrlYZmUwMKglKXKincYB+wqXIa0wmnY2/Pois2qveMctEEBF+lmR8M/5SZGd3YH+5nNBbQ39+GC8Gl+Sd8yrpqWKIJKZALgo1bDCgur3mG+Ar8kNWB8RN50MH/wAUR5kaDQ8EsQpVZjPBrw4IdCyyXKyspCEEp1A2L6m2A+WN/wAyG2PyZq/1Qo0TR7qHl5j8MrWPGGImyOo4OosDmqQy6uARpLPwIpbtCNyD8JYo81M3sEuAsX9vQa5FF0PD+A40TCKZn6RhWJwJmWVMrU3lZYg4nadvmMsjpiEWZEuFZjduYzODOhltDUPMHolC3fuVaArtEoQI7Iee89yVi+uND7Iyib7Ff2LKp1lRuW3hm/aJwerc5l3FO+KSg/sAxDy2gYEOy/1L2r1c/wAEXuVzkWDVJ2ISV/y+EvMGXDhONhHAyytyx+URtN/E1ghCEIcC4wt2QjLd7QgENRv0mF+iF95snoBuUlEOb2wMR9qJKDAVGJNJTwIcUNs8beQlDyQj+xljICAbTKC4DuLVLdjLXILmuU9YUXydT1uocUJgndPPP3MwO3BLvhuVDvGJVzyzEtNR9cVO91C/2XUUqaGZuoIkwbFuVow8ZTFQCO01H2zCqxJSH0lyC+WKV9ZNcX2SuUf1+ZpFgJN5iRhh957YLpGG0glzOzVmHIhCEIcCyfakSt3k+Mou+C2XxVAbwh3i7EzaMy+B83sVLvALFHiEpFFtod2pTwJ8BkmvBaX8MFg7LpwxM8VhlgD2RNMhYfEXD/OvuXiNDCekmXKrM+y4ONN0XiYQd+ZYTBlWvd87ci7+Hres5GW1z4xmwymfGHHe8S+J5CY9p8ZqxcU5i8wm3Mv3FbgouXzFqZihY+6CLmW8s8tl8V8y9L0YDv5j2RTWGgImO8ZoMRLipmU8wbTMNinzCmbYmVA4hyb4IQhCEGV9k9Dm6hrIlNZho8f0ilaWVEBQQXPSZQR3L4nar2qZFl7KrrjMeEUVe3sthtpb8WswaDefiVFgCFVcva+7C4UOwibvxEO5xv0QRRyLvzFE33gtgHzLNojQU1L8JPU3ESFS6UV46jaPXVUY9RwnFxY1JiGODBnCQQPFlHDE1EvB3lDKSsfSfGOWoSwbwGWQLcQ71oHxE8QwkJ2gJg4R4O0SNaZ+Jb8XlVPN/EaW77zDGAjO3BwQhwQhEqA0WnsitCN5Zax1nHzDAKtEDoQAlH9RkHbv4ccABEWl0bgqWcHlq/h7VF2lo/DUyqqNo2CMLUYtQy6naSrFFhnJj1sh3C2K3HlHlgtR9JqmX2C/qJglsr7MWbMNibh2BuJDxdY7RKJdaaZaqgpBzFlnV4gRkv5lHYRuo3CprroNcmgj0vWa4YIdptxYYBwsSHFc9cGDCWZaOaS8LyniJj4T4wi0DTw4NcBBFYCBmCMuMqjwtw3P07xX2Cr3mV+77zAlADl7xeg1BzCEIcEIQhDhBuVaUjd+pqH35gDOqiRTrwbCNcqPyojhCi0zW8P8ixZcWvnEAq68e9QFKxKDKjzKtW221hKRh22LIfMpoLQW92OFYawe9TOr7RBaZm4ZlgxtsgSbLv7gQQVLLkrt5gYNg5HxLO9gKqms+QT2GDZfUqt5Ikeb/AchmaRmuCvHELIUYTQ41ndEVxXE2hSASUlYIjkMIIQyTSMNE3jCpcEtiuSlKwIR7kX+IehjqMc3yQeSEIS47wlLQuLASpiYx8agBliXYVUG4Lq79fDkhGSDeO8oC9CXBuiNV0BNP7YqgET/ADMl5FV4TOO619tzJmOoCDfre4IEL/0UiEWU3Xu77zKiKG/SJjPvHuBQqMqt7VqbbNjMVQM0LHvJaPIufEAqKJmZWA9vWZTdJgvEO+Ep5WeTty9D1HDBSVKjxJqJZWoclMS+GkogdoMSoHfgYDhpGAxwVGK5GKoBthTcFgyy5qqIQFtQMEur2Vn1mABoP2/CQhBxxTzEqR2JmKmdkzViDmNC2i3uTLLQAfRUsTHnMdxMZlbyMKWhDbDDTDrXaZrt/aLIqRhhj+E7EULls38qicf8BTUXBBrOt4SXwF3D2bK1URQoEbYp83HKy1gHjdzbqzD9XmoGJQ+mZbxB/CoEGGJj2e2PmWpYswkBI7m+8zbRsP5Ozn3PDHohiGeae0ExgZ+Y2Cs0Z1m0cMfx3GE7QlRlRJpKggQJUTkiYgqBAeAneGETgIDEeXnmViZLFc7PhI4+RLYgsgZIdxlL5tTW6h3gFU9YTtLjHilyhsfWZicpjxV4cQT1YRUttXdabgTgCqbcVEQLywei47WBceA5gzm2vVf9jFXZxNcGIGMlXUvaCxctrRUO9J4O8czsj8YSyViNS47qe4ZIrdLiEpsFsMsQphl9x415BVUQQTBT0x8YG/Zb8/MaX2rwWriS0bBdXV1CyEwHZ+EhrFURKfDC7g8twB3YuLlvN/VR7Qw3PPbNAUdLuIdGnJpHDy/hqBKxKlSpXDK4EqVKlSoFSsTRAgQWwJUEYDECByeDxDbCFx8QnR6YaDfeEtZKqVL7A/WHqWUVOWgMtrURmpfHYpf4xCMKn15lioaC8fD2hmbPMFaLEvQavMoc53cHcmFQbwfFtzFWn/ZBKBd2sqAxSj57yzbE4YuXA8EF5MEqiVU3hX6lna5lrsBcq3Z6jk7BT5MkPyQZQBRLtilUlEgEVrariNcitGmaIrv02tl+qahgiul9vg9MBSuVv0n/ACUtaHf6Jjc7kYx6X1BblFz2XZK0oGvMNs3Sm+80ANKAQzjoS2zKm4rfYazP9JIBvPWNB8nKcP4QhwQiRMTvHfAQ5TioEDESFcEDgm2HLw8BNjElYjjRDDYZmGeWcsLb44PBX+tFFkTlXhE/pDQI7+n1WGJIFb9GWD6jqoG08k3qd1WqMKvH+cTtGdS/D5LhYg7DDd3KCknd2jVPgHzUJK5c0TFy9F6kDVm3teMlSvB4POYuyLkPlUpMA+e0bQQG4YrFKS8DDBXdqXXDlLQENB7JZvv6TZCVixKxG7Y/yWt+s7f2VNOAFzMyrVeD1A2OteGauBC51PIVqXhVTh8u39jKAMhrRM032Yw1lmsqEc+yJGxm7FzOK5vz3YIsStfrE96NQr7Yi3AywDObKzLFqipiKGW1lEHt2BAFHO3Ju3Q/grgJU7dDGVmBAgc1KlQIalSpUqdpWYSqhy8MSJLTjTPAZQ07ENWe4d54xLITd2QxtA/vhmGTygxSwF0GCTginkzfsYutnAUf3cvUO7uLbZVwqTRZbwxsBrO3V1dTfy5CfuGWqLdq9JQdov8A2dgtXR5pqAWc2N9oOTVVXwUkrth3XvLGQaz5xFXSNv0Wn9QVSoTDMxZbE7u35YeA5wvBlwdj+2ErYLS1Svo5CncdRmFfrBbIV81ASm7dXlgRQXwYigTsBi3j2XM1VrUmWzYJvst1ACFJjVdriL3SfYS3alVi/qJ7RguvJCved79yrsxHosiYSCjqs5JUS8ZntLxWZmBRVaiiC2qSWqoDHeGVs6jaOl/CSuAlSokSBAgc1K6AlVEh1HLwkSJLiVyllQYldxslh7g6ndCVfu3gwCUlkF2oWtaiqFYRtSA/7DCSCbd9yLLdBbUCx5HG2me8MMhLCGQJRTuVdX7liaFWEvUWzaPcKqNMQyTVDWMhdfctAQNW99ahT8zLdVBFW1wBohCEIcfS45/a74iwS/d2LZXuo7TOImGBEBtUNbsmAsMnvFk1L7jMiKDvY+IwykNjb7iwFd6c05qYSloD1gqK6JReDyYqNtFsqzNr/cvUB5g2lzbnvmA5r7Y08kU4S7mBFF7jYVgRg1t8RDQ5txLO1h2UF9GnNDOivxDpYOCErprjtwyuXfJy8sSMsmaPBue5guEow1KvMAfXDxZUmDMYrs6fD18TWUTIaRLxG/Q+F6r/ADmUEhHyuUwEq4gOtoN5VKYv8nO4Iwcw8BtLKza9+yqlQoAhCEIQhCHAuH7qZPkyQzHYZkU295mIuvp7jNejOxWPvxLquInyqrg5Zh59RRYDsfFwC9aivgZbulovrBdTMrRcB2tuEgKHFwEIK7VDcqRJLAxMqzxC/XeIN+sS6r5vMZElzNt4+YMwyuIgyN1LlWHXGRj0P4R01yHRUTg6GHLuHBwR5SJwugtxKWOIbGBtPEyBmcM3PCi2++h+cEK2FCpgBNrGUN3KqGhI0mmZa0r3Pb3DMqcqM48S9d4Wrw4f7GbKADVLuGLll3UqBngQuEIQYQhxoy9NQd3ANEfYNLHu5ZWWNoC0t7pH129fWpRstpdvwEzAa0qqSu1QWXNyBtyQO7TIi04c1jxqZzIbIGmi+6wWCy6xLquuP6RCigMSw9gMCYfJgTDeai1aSv7LHRYZgLFSyi7rp25N/H/yhwwJXHZh0EeXXB0EYcsYcSi46YsqbPBqXD4eBipPWf1AP0BjxW6437FVUWu0RKXGSoWJgAGQuUWdFg7MzmKe1Wtm/DMoWyqNRNNFN+KqF0B8ELgZ4DDtDggwhDm4MTsAJ+sMRdUuskVUWNDeTc7VtgC1wLnSlnp/5LlAybtsvFRVkmVqu25mIWLF2uk8jx2FlVxhpe6Qu+x4d4JlKWrFpARgHYYUA5YIpoNgC3jZZNC6L+mV2AiDiWIMNMu39HFh5s/qUh46hYkTfD+IIdJzESHNzT0vScHBHoY9IqgU/ZEYCVC57gnkCaKYZkm2AClZsSU2TRWVYAKFBBYzRDvCCw4O4hHMY4J1XEq1iiL97/jAMhhwS+LIk+YMIQ4pHqMVq7+IrISHCBHT3S1CpbbGxiGDtbEwau8C50U9lOzEApiN6tIfAC278w3Sl0V4iOi2Gf8AMNd+H+GEbR8oA0IjkbWXHGV3JkYc9pgnJjfqXuoiPQEuoKbxGhdIL3nO2alh0acmuZ6zgh0VxrwODl5vgjy8H4WPCyGXmWZmK/UEQzucd47A5eErodRQWoT+1jFGd1AYwAMVJ87qt4jnTuAdjhPSbJduy2rutr/naVZhQfRqEIQhcEABM3BsdzLd0+IZk2xABl+7KGVpDE1oAjIdS1oZyysnazb2I0nsu+26llDCpZZsAOe53x3SZ1q2e0A7obA826jZkLZHEqzKi7INsZtfevEWyq+3LM+Av+xwVeQRjErtL8yubzxBdr+W436NINe4m0EpE6wfLNiEHBRfuCJY9XQ8seHoOCHXISpXL0j0Op3hydTGMEXMcUbndj3Dk6K3NW/aPDwmZrjZMyhLAAcjDtT2mVkZ9QYCCq+iobhCWFEXU9i/qeMXdfTUr9yJR2xV4lt3m2/5UGowRBoFg+pSEBapBBO/6jLyC1jTgpLOyIEpE4txdzMYEo2A+r3/AMhiDELZ8y/dVgF0uLCGIW2Bv9GFF1RRj3giMmaxrerIpalu77RLnA0T7sjl5WJAUOggXTzVfcuwKq2lltZspIAcb3crHBQuiWFCw7QtuiIWwABo525Fvl5eg4IdN8yHQ9N5l8Eeg5ehjGDgAMS9RG5h+Kpo9cXGBNjf6ggDuDwxjKmJfGbhCI4CDVFpr4zVywVO8WiwFr0ZbbIBa+ipmFitzKgiSps0+intAQvuoQMXXmeYXDBovNTsgIizs3C9OAfrEtZhTF5lQZ224tQsBaf5iGcSfYYWQ+M2sFu27ohsjLMQjMMIGqVmBbXQFu9TDsPUWCi5O3nP7qKk0q1L4ixsHiAqubuGXUx98l0zSD7riFy+KiHf9RuBeUzQuUN3yQ5SlOHl6Dgh1MqHOOH8LqOHkhw9DGMSGW3Upiz/AGJVH3cO0IXc3LNl9cPDcqVwoDb/ACN6Kyh7qCSgcX4bljDBp2GVIOYOWl9t1BF8WiN6Kg15Kx/YqWhptSte3klaTb7I2qKuVZQ2EUhdUuZqFVblg0MmoLteKzAe5LuncBSViIf5/dKmZMAmJZ6LZ2ju4jyCwHduyNI3nz4bh+oaD4mGNofZSFahbkVZLzY2sCW4F96X6gpRvseLr/cs3KGpg5L7TIF6gQGXzKFsYLlEAojNIF4lILoqA5jK1Eqc2rqGt34uC9h8dGnJq/noek4IcvDyOl4Ok4bjyQ4el4MMO4EXxHLcceyyGm1fIyz2DoVIVLG1Cwv0OXRZGwFipeU9+I+miy2FLuUK2rurhlgMmH214mSh5Su4f7hxUQAFO0SYVaAdnGoIJ+3K/wAhvOzT4EhMGKUPUZbhpbrPeDb4UvwrM0qbqiFt6ywbobx8QSFwBGBVrbfBtTATOH5yl98hmM3q6qWWQxcB5vRe2KlFdA5DWqYopYAE8FS8GKHS9fEGpQa+6jVA21eai2mlfkvtcABpBWZQ7XqXQO5yzAaISqqxNwWHziI53XiNJbKJumSsQBFSkEFKCIvC4+EdcYH8JwcHDw8DpIwvoInN4jyQ6yRicDazCLmh8UwbeGDdc0PsHoDFKoy1WRCEzC20TFzCTodle5YyjQ+HRlcVwVnVe2eBi3L1TM9KAemWqxO4ih+kvtL0ohKvYxlzH9lSrQaZecRYRwqnpAtu4pqvMCgpY5N+o1RkK389oM0+8whCHGQwmrqDq3K/uqV1RogqshfwRFlUA4yQGzRQQDT5lCA19VXiYcwKLlVBtDuC2sxLuVDfamDFwrpezRP9x6CWA+KzMgAnwIOItVuf5cSRQyqJp8v7KS0EQv1X9gxSC1X5g5sPUITLdXcoNHTtzYzoeg5IcvDGHQwjDfLD8B0DoYxiTLAOAJ6j/iR4XPMNRynQf1LEE085UaBKPcSkwz8FTODS0J5upWUT5gxGkJXJ/wA8TMJZZnbaDrWq2+ywripQdrav9xCGimPNH+G4wBZL3A2ROGjkc4iim7ZdtpM4zQFUXZS/6lwUFYdwhCDDgeLwzxwqfeGIo2WMqCkNXmoMeA1Tvi4hLSmPNg3LmoQoYppI4Kuh6l2IyhBlCjVaoN/EFe1C1kE2R5RaojpNNQFWubO2YfYA4l2CoWeNXMCyF72CF5bbgFYMS+VAW8QT3V1BvXnqYaR0PQcD0HhjDi+GHN8MI8vQQ6zEjwcTE8rlPv6ZR4ZuXiEJ8RU/JjmtgjKKaytTuLcxKGiDsHxcHQUSAHKeIbfWH2ElZkKdr0qAwFJdxdQqEbmlyxJSyYpmlqWlgKCbLoMQr0w93YuDs8FoVqazIQl+WDBYQozK2F7eKR6niuy+8xFXkqFC0HliWhBFhnxq3gj9Bt1artDEV2BinN1+5YtqAuUTRfLu/lgdamkXdlkfs5VGFjB6QlOM5gDs5Vr5hYAV0Yid2Mb+4IgC3Ue1RC1F3X9xoVLr71Muw3VdCxyaDy9JwQ5eGPNSokN9LDoeK4IQ6zGMLBlERY7h+xfyVD5mzm653D7jHgOqVFptZULVJnwtyzy/I5Y8hbg809y4FOGTdj41AxnIPfiK1uX4JiTgoducwcRSw2k8AsH0IfLCiU0Ig8g3L+NS3oITNpzZKJqCOmG1HRGSP2uGwcJHyQBGxJdVXyXVRNs+3VrqJhvApeYLp0NImzzcWtQ2HkzuWAKhZdGCv9wYYNW1+odCqWt96sg5aYuFwjuIR7Jf/wC1Ev7DFVclH7l173caXvxLOFZauQy5lF3a9xPFBEE6oxceXoODcIcLCPJw8EJ0MJfL0EPwGMZrCw1D7mCvcGB7jDuc4zzH6zO/N2Snu9kVW/qoWc7bazcBoC3K1FhdsQ3GGk/yD6H9gX3WAHYI74+sy2xQYd7VGDUBaNJq4Miz6+7gutHfMpL+WIToMMF0Q8kgqJhhlNNDd4j+1QmhCd8VFgmA12puB9BVD0pkxLQSAHCi4zFVVzlVVSntVdrSRfqpvu7shhs4A/X/ACUjQukKTJTILd1L2vYFVyRwDmmO0vrJaN+oI6x2IwKtLuW2gg0zsoZ17/UR738RISadwdWiZFpy3ADBztybEjwx5IcEOLigeHg6Dh6jhJXJ+E8JwEOYwv6Q5zyfcVhuCZ4tVwGO3liMcFsHwvvEfYPiULm35mFVP4hOb4vC5bANsvaqS8DdRZd4iTpQ/ZKRrdBeWoj0+DMQ17cb7aS0SmmN4l5OiFAQA3WWEOcRj8HUfeGAubOQ8xpA2vhFtCbSjtWrV3dbjfNzxlYodPZ7lwZr8063ElZm1/km7clu6ytzDBgY/crmk5xX1n+w0xgb+MkRffpiGxmjNxMbSu8z3uLIEjhMH1AoWVz/AGaIfiYaUekhwQ4YtsOg63pvhjybh+A8MeVaeIdvkkHyEuwlwnkSl/WOWXMwJLFjnKKsRZblscVjctKM3d0YS5FA8uNUw6o2bMrDvBYHnsjYX2X1KBtlsG6KxBFKHlxkphig9g0ZYtq+4f4/7LVe/wCDbcVS6B5uhlhbNy4MLhxSvUNLqy+8kuMI1KF9yLmBgQxHvflikppcfJUyyXgLVxA0gg+0U2tzwyNTT97n47wJmTODwwuG7u/cwMi9e7lHfCJpW8PqolrMS+IM0QBR0OwkT2XC69DFFVy9GnJycvJDk4YkGX0X0EOWHJxUeCHD+BjBhIdw0w2S8vf+pQHskNQzNT/7AvklbjBQC4zHA3X+tRF4tYDdjNN9g6qBQNNb9FQIGoKz2CUAVgWGC4Z7WzhwFNQeJa2VtMAb7sPG0MilwfAwuHzCEJRtjRZnNQ7ACVhMn+rDp+ISJHtXeZBDaFXR0s0jcHu9q2013ZfpsO15yBjg4USRwTCbOzDfw0r9OSIDpVous5d/MptDWi81UoMV9dFhlQlnfaCVX3njPxA53BzH6goAx5idzrRfJ6DghwwcjB5qPBB4eDou+Hg/DUYxIcQtsFNzvO19wNHwwYcUe2frouMWKbby4IGBgXVERMDMeIF7ZmM2hd+5jgH+4xBxhMPgQPKsBWDglWSyrmLZ1r3FrHFYuWhaYLqAAOazmUjVVczQtDbMPG80v5wgxKPM0Vr8drzDGyLwVcwqL7/niGBKH2IGXQi17hnlpdxQXFv0p8DG3iXV/XiJZWlWj2VABgWg9soFF3UFUJCLU1U7p8kpUDNRHAX4itaMv8MVOgHR5j/+CIwYx/SYPLlZ5FkeHkhyYPDw8HQ8nDGGuk/JfDGawzNHZDcC49XHgw4DtlL+5W+cRly0nsv4zM4p/c+AlO6sPRwIohE8xUDZSvMp680W9u8HaDOiDDl9He52gFpCWhYCELDCt/OBh6iBh9RApPlQHxCMbFFKgOgPeGWmWqVImKZK+DT/ALI7EdehrEStyD9NwFoOLf8Asx1UDA7RY2N0uNQNqH1DRc2M3qCDCz6fFxLSZ7wqPsBMdmkFuBi4XxLqoWaqMwFaQxgJ7BjjdTqYafDyQ4IwYPJ4IP4jl/BcHrY8DiHETMfFx6JpqKnxR34IY/YeWJGmbMX88VGgVcRYBalvTDBn8BTnxcVUlrNENYY3JkIDhTbityns+4zSrUPecRui5UdkykWFEsuy2mLYUxVdqbhG21xt8R+65qDKBUggJRmHdZCnsQgyDxhX87JWp0ksQpe3OWJLdYsa3eMRAC1m10osx7lBNqdNOKZg15BHbsxZZgmX+/shjI1eYfGDXuI0bNNweQBB+A3Cw2g/qVSBij/UsDvL12fowdb3gOy/mJ8JdYPMbqLG0rvBKUVKQDQdKxydMY8kIQ4qEeRCEP8Ax1yPVUSPJJpwCvdmA+QniGYHiUvcxHl9ywWGdRHA4KM58QzWZjYg/wCxxFXTdTV/KMySD5JiUQPK0zA9Bqij3oxKb8+jf1LINR6MR4KqFekqmA7ugbVmtsQu07a76uXIFBcCalop5iLXgxA+1/MLZgqv7GVMKxKx3RAXaqwEAMyghkf1YD/JCrtGYpY80P7/ANwbYEspdn1ACW9k0lqblNkwL6gBv2wa3ibfjZ72uEoCrR3nNS8Qr2rvu/1UHFcp+oXxiHb2ZgSxZm71MbgHmVILnYU+ZRJfUF2v5/C+RbjHk5Oh4Z34PyvL0vBD8AYYKlhUkD8DOzB1C8TJ+4P6jzmDplNiUoVXbK7rRtvNLnvMrBpeQuKa6vDaHJBfV79kvfHKdjrCwwUtZtXFK6rKdh3cSibs4ukG2rq6/wBMU2S8PLuDjbXl+P8AkC4QHj18RAkP9FXX8jRp9tU4lT7dd4FreMy8rEart/kMiiUmexDXMPFdhk+cJWr4RuiwVTupq0DAuzMrjCUrzUIarCD3v/4jyjajnFasjrqpbu7/AMoUJSU2vhuB7NB9o48vhMs4Z3/uDFxrr1GBkagBL/Gs8sFcXg4OTq0/9B5OpiQcBoxzNnkLgsrxcyqZhF9vC/1O3NOAtrwEUgFv14qLTWwJ2alkoA2d7VwsohE6A3WcXH1KHZlpLuYTQi/g8eMSiHBve0dQ/uGbRHjP/EG6kKnwXC2jVlt7eKiMqg2G9PcLwFurgm4iXQRaVFbCU6qlm77MLtq+pVX0tj7XxFFomeVMX1ieAGP4g5AXNy4NntZkTS/7KlA+VhxRDWnkuIwllK8GT9ka8Nm+xXadvd/SCdmiHbbcPoCEPz1FrPAiXbHk6D8AhL/8Jyzv+BjEhgpvjswOP1MRXZqKcPJenH1AL7g80MLkHvQu4ijovM3RF1/EJVWlLvKwM1FAAt1ktuBgTMXGas+mUIUGBTFCJDAsuh4oe3uOSlu4UbjOYcN+gubdq+9vXmK9Gz0qCn1gnbrbu2YQ2oNFw0uujfuF4umP6QFLslhzVkwd0xnbM7jfeeJ1fyZI7NeIVbKuzWdjOxXxArSh8Ukv1F9t6lagD0RxPAIQ/Jtoe0LF4t74Xhg8HJ0nM5r8R0PBDh6b5eEjBZLo0iUM2FbphoPcue+Dtmez25MLQdzZWx+yB7cPGr7oM6apQWXsfqO4lfC1YykqheX4I4o9wbu6qpZ1rc5R8eJTRUKNYb7Syp3ZPBVYlYN1VszKz1m9i9EPVMipgSOsKbLmhm/hmW3sJnT6jaUWtnnxFADZ3rtAwqzVwI/SmBeaIUaOLlG7qM/UOF4FgbgLlIcCEPw90v4in/bHcUqV1JDpIdOvU9FfhYcHDO/TfSYMTZDTESXXsKhpvdTSHGL4h0YsCFAaVWeZUahKNkUyrs+WIXSDCZfSJ3akW/MsCFBrbf8AmZNBSVi6xi4lKdHC1ZY77kQqtstK+YW07o7EKhd/gQIcYD4WQE3IO2FigXPuoRV5jMGqC1tgwhDhyQWjDxC6MPzhweCjji4DCHS7CEBq2OoBLzI8K6b4eGEOg6TrPB+O4dD+G+DDBllbRtmOfFMNqvmZBwSrdg8iW6tKt8XcoqeyhFLLWIirlgYWrH0uvCxq9AAMWS9zfJV6i6qBt70qLYdx69d4u5rWqCYgphUqNoLy3rt/yE7UC34NOZUK8lDHhpg098XfdVUKrldi73CEIQ5sBiN6KfibOhuPXAhwcbKH/wDRPCPiBeVthBFdTrpYENdQ5Os8H4jg6H8TE4DMOeCMKC/FR0V4anvhS+wZdl+edz5WQfAVaG3zi401vhQL3K5+ugKpVEGpN7OcmYrSuDsWLJVPCst7bgZQuq93DG7NHzaZ/UxebgpgRFTRVdqd4lI2wHbGf+w0BA1AC6N5hCEIcHKvDTr5MksPTHcUWIFtiewxbVEe8mEEVAgfgcNdDrg6Dg6Hk6Tg/CvBy/iYwQ8NGbTse4lPzmDgvgqfTB+TlyrEoYHMizsDjX6l+hj27veKIyoAO7mNC63duiLCgYF2N+DZUHpf5Lu8V3hQZYF+CWFAFhCEIQhCEIQ4uZEBmWRk3wIuiD9oH1FDgOA4CKlcBD8GX4xL6XfJy9JvqroIcP4nkLuWdoaOB/YkNN5xNkNS0mQe4ffQCUaAaxedeoha+gy9ieDtWdBwQhCEIcEIQ4YSgIaQLd3UDoSviV8Q4XiEVKlSpXJy9WT+E1wcHQ8V+Ij+E4fw3ywQYYEuDM+qEBn4YUnNx/8AQ63g5IQhwQhCESWBE8Db1NEIyKViSokrkqBmH43cOVLgdLx2hDg4IcvAy/xPRfNcHDw9Zy8oUsdwUSJ9kZwML8z0GI/iOCEIQlhEIf8A9Mts18QLKrBmBjgkqMV0nD+HfBwk3qGulh0nBDl47fjYdRwcP5XiMjUTitEKQ/fBC57RHU8M7cENSw2yr3LdoX71KXaw0lQIwEBj/wAA8X+Da9Z1EIcvRf4CPScHB1P4WasFzBgYgUvD/ECzycENzYMscD1088LUryhJzKlSpUYLiscPDDoOt4OvDqHoIckIcvRX4CV0nB/4WDExTCKlxXhgx6MJninzbfqXrl8kodot0Rvtm2YScBBAcVKlQ4eDtHlg9B1vB1rR0r5OTgYQhyx/CcEXl4I8HL1nT34HAimPhjClRtOyZKFjeJhLU7QPllFwS2ZR9odPCKlQIHQnFct+GPQ8EOpjCHXlAdLMw6xhDlj+A/GQ4ep/AkFjdqHinrmZRLhKtQ7w4vAZS3CocAQJXBw9THmx6z8J1OBhl/AcnDBhCHDHg/CR6B63o7/jYkIrhlSoZCSpUqVxUrqPwLHov5ng6SawflE2YcDl/Gfkeg/KEwIkzwMRJUqVy9YfgY9F/Ix5Ok4nWsOCPGvAhwY8PFfjeDcPyrxXUnBFkIGYMx4eD8tdDHm8P5X8BMmHUcHBHtyFQ5H8PboOkhHk4em+l6K4YTNMF5h/4mX0MZr1v5Dp7dSY4Nx3w8MvkHgcMeg5PwMIfnuPWtE3DR+I/C9LGa8vQ830sY8HS9Bw8sI9H//EADMRAAEDAgQEBAQFBQAAAAAAAAEAAhEDEBIhMDEEIEFQIjJAURNhcaEUM3CBkUJSorHB/9oACAECAQE/AP0CfUYwSSncXmQAvxTj1CbxJ6gFMqtd3SrVw5BMaKtQ4thH3TaRp1SAJaVVoDxObkcOKPpug45Qm1PdUq2cOP0OjIUouUOKwfNAQj2AlSpVR+Fsp7wDBXDmHGPN7e4TKjHneHDod08gB87Npn7p9IsDD/cyVKpvVF+JsTmOTEFjCxEqCdygBYiUCWqZtO3r5UqVK4h3iA6AImSSmkYhimPkgS4AtcKgH7PCqvDyATDciVXaH43gwGNgfWw3XCv8Q+aJUkoglBikbAIQOVw6oGPVTyypUolSU3zBcT53mbEqiyg8Nh5ZUVYPDmh0TO//AFS2qxtJmTBm9xXE06LWh1PqRCG6oZVR9VIxG5KFgUDeFsg6NOVPopU8g3C4pviP0RsMZpND6QcIyIT5PhMiDlKe6QBswbD3TnEwT0TRJaFwoxVQfqUHTUcsRQciU3ZQgFHIWyg0c8qeUa8qeaQqgx0w7qE5uFxHRfBL2Y6ecbtTK+AYSz+CQhWa7IiP3Ra5zyxrZd7+wT6bWQNwP8ijLQSdyuGZgpF53dsqbcyVhCLYCbmYQaBzypUqVKnRGrOgdrMdB+Sr0RuPKU1z6TpBTeKY78ykCV8fhAPyvshxRAIYwZlB+El7/E/p7BUaRquxu2TjJAGw2TWwLEAoMA0C4BF6xE9UOw4c1mmmBG4TqDHTh/hO4d7f6T/tfCdPl+ybQqnZpCZwrW5vP7BGTAAgJjIzPLNpU8hydceri0KFChQsJUFQUMSBcoJWBAAKbSpUqeeoIchYIaY0IUKFChQoUKFChQoUKFA5SViExOrVGSbtcaY9LHLKLwE57igYIOq8SE247ISiUUbMMtGoVs647IUbOtSORGrUEOQsOyus61Mw7VqjJN2uOyGxsDBGq8SE247IUbHezDLRq7OuOyFOFnWpnIjVqCHXCHZHWdan5tWqMk3awQ7IUUbAwRqvEhNuOyusbNMgauzrjsrrOtT21amTrhDsjrOtT31aoyTcxYIdkKKO1mmCNV4lqYbBDshRsbAyBqFbONx2Qp1nb2pnLVqZOuOyus61M5katUIbWCGhHrDY7GzMiNV4kFMRQQ5IUevKO/INQrZ1gD7IAqFHY3WdvZhlurAUDs7rOtT6jQhR2x1nDKzPNeCoUKO3kLCixfC+aFNoUd3H6Jf/xAA1EQABAwIEAwcCAwkAAAAAAAABAAIRAxASITAxBEFQEyAiMkBRYXGBFDORI0JSYGJwoaLC/9oACAEDAQE/AP7AGzKbnnIJvCCBLl+FZ7J3Ct5SE+g9me418lPQ4VKjignZVnmkwBu5BKdV7Wm0nzNkKjxLpY12YnDP12ToAkotB23VWjMuaIPMaMKAhCloWL4CJJQ9dChQotTp43x9ymMJEhcUCWiR4ffmCnU3sHu08xsmAksjd1Qf4TawqF4/hfCIBRE/VV2YHAgZG4CiVhK25KQsSBJKBhFoIUR0GFChBq4ZvhLvcoDJOBLXARPynANJDmmmT92FUmYASBLswFQJZgZEl7pK5p20+y4lkscmskAp4wkJgBzci72Cz5ohEZWO9mnkiJ9QO9ChAXhHYrh/ymZIWrPrMLpYH01RLC1xbMRtzHwgHUnmo/N+zWrhqlZxLXjYGUdj9FU/Jn+lBhHD0nIhAckAiZd9EAnjIqERYKZ2BRBPqjYd8iQVwzvAB8whY4BVJZVLTOYKZA8Qg+8JjYJdu87n2TGhoMc050BxXEHDQI+FUpBnCUm8wAi0JzOYQMCbSibG4cQsRnuRbJSp9Wyk53wEz9lVLDs7ZAy1dt2b8FTL2dyT6GM4g/8AUAo0XNzGf0CDmNYHvdDfb3KZUdUJO3/IQh5AHlanDt+IZTGzc3Lj6sNY33MrtU2oHGIVRo3Uk6MdBpxjbNq7A8bwRsqNacnZOHJPayo2HiQjwb250qxhfh+MJzf/ALI8KDhL3nJdmXgMYMLOZ5lVHim0U2CXbALhqQosJcfEc3FcTW7WqXcthYOIMhGo52+gASg1QE7oEptaRmYKlm5dKfDjIEEc02u9vm/UJlak794T+ixMjzlOqUW7kFGu95ik37lUabKcvc6X8yVxHFYwWM8vM+/di2SlSVJsM2qbO9XPfkKQpCIaeQWGmvAF2xGyc97tygFChQLT36ZkXPpJUqVNpUqVKlSpUqUSVKlSpsAoMSsSxFTpUinb3PpZUqdIlTYIBBpTWgI5iNVhhydc+tPfbcWeIcdQLdtz0QKbC1TkdWmZajYo9EabCzx4dWkc4T8j0dpsLHVYYcnXPRBYIWcIcdXdtz0QJpsLVNxq0823PRW2FnjLVpHNO3QRR6IEDc5g6rDBTkLHore4dzq7tueitsLPGerTzbco9EbYWftq0jmiM7FHogsLESDqsMOCfc9ECHcIgnV3aLnoosLP31WZtuUeiCwtUGQ1aRzTt7FHogQQs7Np1WGHBPQRR6IEPQBbtFiQj0VthZ/m1I6SLCz+XVW2Fn7d2VPTwViQejU+EXk9YP8ALI9QdU+k/9k="},5873:e=>{"use strict";e.exports="使用重新设计的清爽风格首页替换原本的首页.\n\n请注意:\n- 此功能与 `极简首页` 互斥, 请勿同时使用.\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\n\n选项说明:\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频.\n- 启用横向滚动: 在可以横向滚动的列表中, 使鼠标滚轮可以做出横向滚动的效果, 请注意这会禁用卡片的边缘吸附效果.\n"},2375:e=>{"use strict";e.exports=coreApis.ajax},1952:e=>{"use strict";e.exports=coreApis.componentApis.define},1352:e=>{"use strict";e.exports=coreApis.componentApis.feeds.UpInfo},9799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},6831:e=>{"use strict";e.exports=coreApis.horizontalScroll},9153:e=>{"use strict";e.exports=coreApis.pluginApis.data},9986:e=>{"use strict";e.exports=coreApis.settings},9648:e=>{"use strict";e.exports=coreApis.ui},4289:e=>{"use strict";e.exports=coreApis.utils.formatters},4577:e=>{"use strict";e.exports=coreApis.utils.sort},605:e=>{"use strict";e.exports=coreApis.utils}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={id:e,exports:{}};return n[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>s});var e=r(1952);const t=coreApis.lifeCycle;var n=r(9986),o=r(605);var i=r(6066);const s=(0,e.defineComponentMetadata)({name:"freshHome",displayName:"清爽首页",urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],tags:[componentsTags.style],entry:()=>{(0,n.addComponentListener)("freshHome.maxWidth",(e=>{document.documentElement.style.setProperty("--home-max-width-override",`${e}px`)}),!0),(0,t.contentLoaded)((async()=>{const e=await Promise.resolve().then(r.bind(r,8619)),t=(0,o.mountVueComponent)(e);document.body.appendChild(t.$el)}))},options:i._,extraOptions:()=>Promise.resolve().then(r.bind(r,4352)),unload:()=>document.body.classList.add("home-redesign-off"),reload:()=>document.body.classList.remove("home-redesign-off"),instantStyles:[{name:"fresh-home-hide-original",style:()=>Promise.resolve().then(r.t.bind(r,2603,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(4422);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,5873,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{var o=n(5562);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},4422:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=4422,e.exports=t},2093:e=>{"use strict";e.exports="data:image/jpeg;base64,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"},5873:e=>{"use strict";e.exports="使用重新设计的清爽风格首页替换原本的首页.\n\n请注意:\n- 此功能与 `极简首页` 互斥, 请勿同时使用.\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\n\n选项说明:\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频.\n- 启用横向滚动: 在可以横向滚动的列表中, 使鼠标滚轮可以做出横向滚动的效果, 请注意这会禁用卡片的边缘吸附效果.\n"},2375:e=>{"use strict";e.exports=coreApis.ajax},1952:e=>{"use strict";e.exports=coreApis.componentApis.define},1352:e=>{"use strict";e.exports=coreApis.componentApis.feeds.UpInfo},9799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},6831:e=>{"use strict";e.exports=coreApis.horizontalScroll},9153:e=>{"use strict";e.exports=coreApis.pluginApis.data},9986:e=>{"use strict";e.exports=coreApis.settings},9648:e=>{"use strict";e.exports=coreApis.ui},4289:e=>{"use strict";e.exports=coreApis.utils.formatters},4577:e=>{"use strict";e.exports=coreApis.utils.sort},605:e=>{"use strict";e.exports=coreApis.utils}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={id:e,exports:{}};return n[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>s});var e=r(1952);const t=coreApis.lifeCycle;var n=r(9986),o=r(605);var i=r(6066);const s=(0,e.defineComponentMetadata)({name:"freshHome",displayName:"清爽首页",urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],tags:[componentsTags.style],entry:()=>{(0,n.addComponentListener)("freshHome.maxWidth",(e=>{document.documentElement.style.setProperty("--home-max-width-override",`${e}px`)}),!0),(0,t.contentLoaded)((async()=>{const e=await Promise.resolve().then(r.bind(r,8619)),t=(0,o.mountVueComponent)(e);document.body.appendChild(t.$el)}))},options:i._,extraOptions:()=>Promise.resolve().then(r.bind(r,4352)),unload:()=>document.body.classList.add("home-redesign-off"),reload:()=>document.body.classList.remove("home-redesign-off"),instantStyles:[{name:"fresh-home-hide-original",style:()=>Promise.resolve().then(r.t.bind(r,2603,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(4422);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,5873,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/home-redesign/minimal.js b/registry/dist/components/style/home-redesign/minimal.js index 122b96988..58c572d32 100644 --- a/registry/dist/components/style/home-redesign/minimal.js +++ b/registry/dist/components/style/home-redesign/minimal.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var i={};if(o)for(var r=0;r{"use strict";n.d(t,{t:()=>i});var o=n(986);const i=(0,o.getComponentSettings)("minimalHome").options},678:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});let o=function(e){return e.Feeds="动态",e.Trending="热门 / 推荐",e}({})},298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("HomeRedesignBase",[t("div",{staticClass:"minimal-home"},[t("TabControl",{staticClass:"minimal-home-tabs",attrs:{"default-tab":e.defaultTab,tabs:e.tabs}})],1)])};o._withStripped=!0;var i=n(986),r=n(648),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"home-redesign-base"},[e._t("default")],2)};a._withStripped=!0;const s=(0,globalThis.Vue.defineComponent)({__name:"HomeRedesignBase",setup(e){const t=new URLSearchParams(location.search);if(t.has("bvid")){const e=new URLSearchParams([...t.entries()].filter((e=>{let[t]=e;return"bvid"!==t})));location.replace(`/video/${t.get("bvid")}${e.size>0?`?${e.toString()}`:""}`)}return{__sfc:!0,params:t}}});var d=n(332),l=n.n(d),c=n(172),m=n.n(c),u={insert:"head",singleton:!1};l()(m(),u);m().locals;var p=n(499);const h=(0,p.Z)(s,a,[],!1,null,null,null).exports;var f=n(112),g=n(678);const v=[{name:g.F.Feeds,displayName:"动态",component:()=>Promise.resolve().then(n.bind(n,53)).then((e=>e.default)),activeLink:"https://t.bilibili.com/?tab=video"},{name:g.F.Trending,displayName:f.t.personalized?"推荐":"热门",component:()=>Promise.resolve().then(n.bind(n,527)).then((e=>e.default)),activeLink:"https://www.bilibili.com/v/popular/all"}],b=Vue.extend({components:{HomeRedesignBase:h,TabControl:r.TabControl},data:()=>({tabs:v,defaultTab:f.t.defaultTab}),mounted(){const e="--minimal-home-column-count-override";(0,i.addComponentListener)("minimalHome.columnCount",(t=>{t>0?this.$el.style.setProperty(e,t.toString()):this.$el.style.removeProperty(e)}),!0)}});var y=n(408),x=n.n(y),_={insert:"head",singleton:!1};l()(x(),_);x().locals;const w=(0,p.Z)(b,o,[],!1,null,null,null).exports},879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"minimal-home-operations"},[t("VButton",{staticClass:"minimal-home-operations-refresh",attrs:{round:"",icon:"",title:"刷新"},on:{click:function(t){e.backToTop(),e.$emit("refresh")}}},[t("VIcon",{attrs:{icon:"mdi-refresh",size:e.size}})],1),e._v(" "),t("VButton",{staticClass:"minimal-home-operations-top",attrs:{round:"",icon:"",title:"返回顶部"},on:{click:e.backToTop}},[t("VIcon",{attrs:{icon:"mdi-arrow-up",size:e.size}})],1)],1)};o._withStripped=!0;var i=n(648);const r=Vue.extend({components:{VButton:i.VButton,VIcon:i.VIcon},data:()=>({size:28}),methods:{backToTop(){window.scrollTo(0,0)}}});var a=n(332),s=n.n(a),d=n(833),l=n.n(d),c={insert:"head",singleton:!1};s()(l(),c);l().locals;const m=(0,n(499).Z)(r,o,[],!1,null,null,null).exports},53:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"minimal-home-tab",class:{loading:e.loading,loaded:e.loaded,error:e.error}},[t("div",{staticClass:"minimal-home-tab-cards"},e._l(e.cards,(function(e){return t("VideoCard",{key:e.id,attrs:{data:e}})})),1),e._v(" "),e.loading||0!==e.cards.length?e._e():t("VEmpty"),e._v(" "),e.error?e._e():t("ScrollTrigger",{ref:"scrollTrigger",attrs:{"detect-viewport":""},on:{trigger:e.loadCards}}),e._v(" "),e.cards.length>0?t("MinimalHomeOperations",{on:{refresh:e.refresh}}):e._e()],1)};o._withStripped=!0;var i=n(799),r=n(783),a=n.n(r),s=n(414),d=n(577),l=n(648),c=n(879);const m=Vue.extend({components:{ScrollTrigger:l.ScrollTrigger,VEmpty:l.VEmpty,VideoCard:a(),MinimalHomeOperations:c.Z},data:()=>({loading:!0,cards:[],error:!1}),computed:{loaded(){return!this.loading&&!this.error},lastID(){if(!this.cards.length)return null;return[...this.cards].sort((0,d.ascendingStringSort)((e=>e.id)))[0].id}},methods:{async loadCards(){try{this.error=!1,this.loading=!0,this.$refs.scrollTrigger.setLoadState("loading"),this.cards=lodash.uniqBy([...this.cards,...await(0,i.getVideoFeeds)("video",this.lastID)],(e=>e.id))}catch(e){(0,s.logError)(e),this.error=!0,this.$refs.scrollTrigger.setLoadState("error")}finally{this.loading=!1,this.loaded&&this.$refs.scrollTrigger.setLoadState("loaded")}},async refresh(){this.cards=[],this.$refs.scrollTrigger.resetIsFirstLoad()}}});const u=(0,n(499).Z)(m,o,[],!1,null,null,null).exports},527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"minimal-home-tab",class:{loading:e.loading,loaded:e.loaded,error:e.error}},[t("div",{staticClass:"minimal-home-tab-cards"},e._l(e.cards,(function(e){return t("VideoCard",{key:e.id,attrs:{data:e}})})),1),e._v(" "),e.loading||0!==e.cards.length?e._e():t("VEmpty"),e._v(" "),e.loading&&0===e.cards.length?t("VLoading"):e._e(),e._v(" "),e.cards.length>0?t("MinimalHomeOperations",{on:{refresh:e.loadCards}}):e._e()],1)};o._withStripped=!0;var i=n(783),r=n.n(i),a=n(414),s=n(577),d=n(648),l=n(799);const c=coreApis.ajax;var m=n(605);const u=coreApis.utils.formatters;var p=n(879),h=n(112);const f=Vue.extend({components:{VLoading:d.VLoading,VEmpty:d.VEmpty,VideoCard:r(),MinimalHomeOperations:p.Z},data:()=>({loading:!0,cards:[],error:!1}),computed:{loaded(){return!this.loading&&!this.error},lastID(){if(!this.cards.length)return null;return[...this.cards].sort((0,s.ascendingStringSort)((e=>e.id)))[0].id}},async mounted(){this.loadCards()},methods:{async loadCards(){try{this.cards=[],this.error=!1,this.loading=!0,this.cards=await(async e=>{const t=Boolean((0,m.getUID)())&&e,n=t?c.getJsonWithCredentials:c.getJson,{code:o,message:i,data:r}=await n("https://api.bilibili.com/x/web-interface/index/top/feed/rcmd");if(0!==o)throw new Error(`获取${t?"推荐":"热门"}视频失败: ${i}`);const a=r.item.map((e=>({id:e.id,aid:e.id,bvid:e.bvid,coverUrl:e.pic.replace("http:","https:"),title:e.title,description:"",dynamic:"",duration:e.duration,durationText:(0,u.formatDuration)(e.duration),timestamp:1e3*e.pubdate,time:new Date(1e3*e.pubdate),upName:e.owner.name,upID:e.owner.mid,upFaceUrl:e.owner.face.replace("http:","https:"),like:(0,u.formatCount)(e.stat.like),playCount:(0,u.formatCount)(e.stat.view),danmakuCount:(0,u.formatCount)(e.stat.danmaku)})));return(0,l.applyContentFilter)(a)})(h.t.personalized)}catch(e){(0,a.logError)(e),this.error=!0}finally{this.loading=!1}}}});const g=(0,n(499).Z)(f,o,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,a,s){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):i&&(d=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,d):[d]}return{exports:e,options:l}}n.d(t,{Z:()=>o})},332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var o=n(652);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},96:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=96,e.exports=t},431:e=>{"use strict";e.exports="使用重新设计的极简首页替换原本的首页.\n\n请注意:\n- 此功能与 `清爽首页` 互斥, 请勿同时使用.\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\n\n选项说明:\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频\n- 自定义列数: 为 `0` 时根据视图宽度推断, 大于 `0` 的值将作为固定的列数"},783:e=>{"use strict";e.exports=coreApis.componentApis.feeds.VideoCard},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},986:e=>{"use strict";e.exports=coreApis.settings},648:e=>{"use strict";e.exports=coreApis.ui},414:e=>{"use strict";e.exports=coreApis.utils.log},577:e=>{"use strict";e.exports=coreApis.utils.sort},605:e=>{"use strict";e.exports=coreApis.utils}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>d});const e=coreApis.componentApis.define,t=coreApis.lifeCycle;var n=i(986),o=i(605);var a=i(678);const s=(0,e.defineOptionsMetadata)({personalized:{displayName:"个性化推荐",defaultValue:!1},columnCount:{displayName:"自定义列数",defaultValue:0,validator:(0,o.getNumberValidator)(0,10)},defaultTab:{displayName:"默认标签页",defaultValue:a.F.Feeds,dropdownEnum:a.F}}),d=(0,e.defineComponentMetadata)({name:"minimalHome",displayName:"极简首页",urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],tags:[componentsTags.style],entry:()=>{(0,n.addComponentListener)("minimalHome.columnCount",(e=>{document.documentElement.style.setProperty("--home-column-count-override",e.toString())}),!0),(0,t.contentLoaded)((async()=>{const e=await Promise.resolve().then(i.bind(i,298)),t=(0,o.mountVueComponent)(e);document.body.appendChild(t.$el)}))},options:s,unload:()=>document.body.classList.add("home-redesign-off"),reload:()=>document.body.classList.remove("home-redesign-off"),instantStyles:[{name:"minimal-home-hide-original",style:()=>Promise.resolve().then(i.t.bind(i,369,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=i(96);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,431,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var o=n(652);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},96:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=96,e.exports=t},431:e=>{"use strict";e.exports="使用重新设计的极简首页替换原本的首页.\n\n请注意:\n- 此功能与 `清爽首页` 互斥, 请勿同时使用.\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\n\n选项说明:\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频\n- 自定义列数: 为 `0` 时根据视图宽度推断, 大于 `0` 的值将作为固定的列数"},783:e=>{"use strict";e.exports=coreApis.componentApis.feeds.VideoCard},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api},986:e=>{"use strict";e.exports=coreApis.settings},648:e=>{"use strict";e.exports=coreApis.ui},414:e=>{"use strict";e.exports=coreApis.utils.log},577:e=>{"use strict";e.exports=coreApis.utils.sort},605:e=>{"use strict";e.exports=coreApis.utils}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>d});const e=coreApis.componentApis.define,t=coreApis.lifeCycle;var n=i(986),o=i(605);var a=i(678);const s=(0,e.defineOptionsMetadata)({personalized:{displayName:"个性化推荐",defaultValue:!1},columnCount:{displayName:"自定义列数",defaultValue:0,validator:(0,o.getNumberValidator)(0,10)},defaultTab:{displayName:"默认标签页",defaultValue:a.F.Feeds,dropdownEnum:a.F}}),d=(0,e.defineComponentMetadata)({name:"minimalHome",displayName:"极简首页",urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],tags:[componentsTags.style],entry:()=>{(0,n.addComponentListener)("minimalHome.columnCount",(e=>{document.documentElement.style.setProperty("--home-column-count-override",e.toString())}),!0),(0,t.contentLoaded)((async()=>{const e=await Promise.resolve().then(i.bind(i,298)),t=(0,o.mountVueComponent)(e);document.body.appendChild(t.$el)}))},options:s,unload:()=>document.body.classList.add("home-redesign-off"),reload:()=>document.body.classList.remove("home-redesign-off"),instantStyles:[{name:"minimal-home-hide-original",style:()=>Promise.resolve().then(i.t.bind(i,369,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=i(96);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,431,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/player-on-top-new.js b/registry/dist/components/style/player-on-top-new.js index 4fc2ff9fc..aa0a06c13 100644 --- a/registry/dist/components/style/player-on-top-new.js +++ b/registry/dist/components/style/player-on-top-new.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-on-top-new"]=t():e["style/player-on-top-new"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>s});const n=coreApis.componentApis.define,o=coreApis.settings,i=coreApis.utils,r=coreApis.utils.urls;function a(){const e=window.innerHeight,t=Math.max(document.body&&document.body.clientWidth||window.innerWidth,1100),n=innerWidth>1680?411:350,o=parseInt(String(16*(e-(window.innerWidth>1690?318:308))/9)),i=t-112-n,r=i1680?56:46)}px`}async function p(e){let{settings:{options:t},metadata:n}=e;await(0,i.playerReady)();const r=document.querySelector("#viewbox_report"),p=document.querySelector("#playerWrap");!function(e,t){const n=e.parentElement;n&&(n.removeChild(e),n.insertBefore(e,t.nextSibling))}(r,p),p.style.marginTop=`${t.marginTop}px`,(0,o.addComponentListener)(`${n.name}.marginTop`,(e=>{p.style.marginTop=`${e}px`})),function(){const e=document.querySelector(".up-panel-container"),t=document.querySelector("#danmukuBox");let n="normal";window.addEventListener("playerModeChange",(o=>{const{mode:i}=o.detail;n=i,"wide"===i?(t.style.marginTop="0px",e.style.marginTop=a()):e.style.marginTop="0px"})),window.addEventListener("resize",(()=>{"wide"===n&&(e.style.marginTop=a())}))}()}const s=(0,n.defineComponentMetadata)({name:"playerOnTopNew",author:[{name:"RieN7",link:"https://github.com/rien7"},{name:"ZiuChen",link:"https://github.com/ZiuChen"},{name:"LockRim",link:"https://github.com/LockRim"}],tags:[componentsTags.style,componentsTags.video],options:{marginTop:{displayName:"顶部留白 (px)",defaultValue:20,validator:(0,i.getNumberValidator)(0,1/0)}},urlInclude:r.videoUrls,displayName:"播放器置顶(新)",description:"原来的播放器置顶插件,现在已经不可用了,这是一个新的版本,可以在视频页面中将播放器放在页面最上方.",entry:p,reload:()=>p({settings:(0,o.getComponentSettings)("playerOnTopNew"),metadata:s}),commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-on-top-new"]=t():e["style/player-on-top-new"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>s});const n=coreApis.componentApis.define,o=coreApis.settings,i=coreApis.utils,r=coreApis.utils.urls;function a(){const e=window.innerHeight,t=Math.max(document.body&&document.body.clientWidth||window.innerWidth,1100),n=innerWidth>1680?411:350,o=parseInt(String(16*(e-(window.innerWidth>1690?318:308))/9)),i=t-112-n,r=i1680?56:46)}px`}async function p(e){let{settings:{options:t},metadata:n}=e;await(0,i.playerReady)();const r=document.querySelector("#viewbox_report"),p=document.querySelector("#playerWrap");!function(e,t){const n=e.parentElement;n&&(n.removeChild(e),n.insertBefore(e,t.nextSibling))}(r,p),p.style.marginTop=`${t.marginTop}px`,(0,o.addComponentListener)(`${n.name}.marginTop`,(e=>{p.style.marginTop=`${e}px`})),function(){const e=document.querySelector(".up-panel-container"),t=document.querySelector("#danmukuBox");let n="normal";window.addEventListener("playerModeChange",(o=>{const{mode:i}=o.detail;n=i,"wide"===i?(t.style.marginTop="0px",e.style.marginTop=a()):e.style.marginTop="0px"})),window.addEventListener("resize",(()=>{"wide"===n&&(e.style.marginTop=a())}))}()}const s=(0,n.defineComponentMetadata)({name:"playerOnTopNew",author:[{name:"RieN7",link:"https://github.com/rien7"},{name:"ZiuChen",link:"https://github.com/ZiuChen"},{name:"LockRim",link:"https://github.com/LockRim"}],tags:[componentsTags.style,componentsTags.video],options:{marginTop:{displayName:"顶部留白 (px)",defaultValue:20,validator:(0,i.getNumberValidator)(0,1/0)}},urlInclude:r.videoUrls,displayName:"播放器置顶(新)",description:"原来的播放器置顶插件,现在已经不可用了,这是一个新的版本,可以在视频页面中将播放器放在页面最上方.",entry:p,reload:()=>p({settings:(0,o.getComponentSettings)("playerOnTopNew"),metadata:s}),commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/player-on-top.js b/registry/dist/components/style/player-on-top.js index ea1e05586..f7179f848 100644 --- a/registry/dist/components/style/player-on-top.js +++ b/registry/dist/components/style/player-on-top.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var a=0;a{var o=n(749);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={id:e,exports:{}};return n[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var p=2&o&&n;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"playerOnTop",displayName:"播放器置顶",description:{"zh-CN":"在视频页面中将播放器放在页面最上方."},instantStyles:[{name:"playerOnTop",style:()=>Promise.resolve().then(r.t.bind(r,0,23))}],tags:[componentsTags.style,componentsTags.video],entry:none,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var i=this[a][0];null!=i&&(r[i]=!0)}for(var p=0;p{var o=n(749);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={id:e,exports:{}};return n[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var p=2&o&&n;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"playerOnTop",displayName:"播放器置顶",description:{"zh-CN":"在视频页面中将播放器放在页面最上方."},instantStyles:[{name:"playerOnTop",style:()=>Promise.resolve().then(r.t.bind(r,0,23))}],tags:[componentsTags.style,componentsTags.video],entry:none,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/player-shadow.js b/registry/dist/components/style/player-shadow.js index 203857a2c..0f7d976c5 100644 --- a/registry/dist/components/style/player-shadow.js +++ b/registry/dist/components/style/player-shadow.js @@ -6,4 +6,4 @@ t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(r)for(var i=0;i{var r=o(807);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&r&&o;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"playerShadow",displayName:"播放器投影",entry:none,instantStyles:[{name:"playerShadow",style:()=>Promise.resolve().then(n.t.bind(n,263,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"为播放器添加主题色投影."},urlInclude:t.allVideoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(n[a]=!0)}for(var p=0;p{var r=o(807);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&r&&o;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"playerShadow",displayName:"播放器投影",entry:none,instantStyles:[{name:"playerShadow",style:()=>Promise.resolve().then(n.t.bind(n,263,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"为播放器添加主题色投影."},urlInclude:t.allVideoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/scrollbar.js b/registry/dist/components/style/scrollbar.js index dfe81dde7..362c762ab 100644 --- a/registry/dist/components/style/scrollbar.js +++ b/registry/dist/components/style/scrollbar.js @@ -6,4 +6,4 @@ e.i=function(t,r,n){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign t=[[null,t,""]]);var o={};if(n)for(var a=0;a{var n=r(592);n&&n.__esModule&&(n=n.default),t.exports="string"==typeof n?n:n.toString()}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,exports:{}};return r[t](a,a.exports,o),a.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var l=2&n&&r;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>i[t]=()=>r[t]));return i.default=()=>r,o.d(a,i),a},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"elegantScrollbar",entry:none,displayName:"使用细滚动条",description:"使用浏览器的滚动条风格替代系统的滚动条, 不过 macOS 系统滚动条比浏览器做得好一些, 因此不建议 macOS 使用此功能.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"elegant-scrollbar",style:()=>Promise.resolve().then(o.t.bind(o,984,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var c=this[a][0];null!=c&&(o[c]=!0)}for(var i=0;i{var n=r(592);n&&n.__esModule&&(n=n.default),t.exports="string"==typeof n?n:n.toString()}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,exports:{}};return r[t](a,a.exports,o),a.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var c={};t=t||[null,e({}),e([]),e(e)];for(var i=2&n&&r;"object"==typeof i&&!~t.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach((t=>c[t]=()=>r[t]));return c.default=()=>r,o.d(a,c),a},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"elegantScrollbar",entry:none,displayName:"使用细滚动条",description:"使用浏览器的滚动条风格替代系统的滚动条, 不过 macOS 系统滚动条比浏览器做得好一些, 因此不建议 macOS 使用此功能.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"elegant-scrollbar",style:()=>Promise.resolve().then(o.t.bind(o,984,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/sidebar-offset.js b/registry/dist/components/style/sidebar-offset.js index bf38f27ba..0d0ad6f74 100644 --- a/registry/dist/components/style/sidebar-offset.js +++ b/registry/dist/components/style/sidebar-offset.js @@ -4,6 +4,6 @@ e.exports=function(e){var t=[];return t.toString=function(){return this.map((fun // eslint-disable-next-line func-names t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign -e=[[null,e,""]]);var n={};if(r)for(var a=0;a{var r=o(547);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return o[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,n.d(a,i),a},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.d(a,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.utils,r=(0,e.defineComponentMetadata)({name:"sidebarOffset",displayName:"侧栏垂直偏移",tags:[componentsTags.style],instantStyles:[{name:"sidebarOffset",style:()=>Promise.resolve().then(n.t.bind(n,625,23))}],description:{"zh-CN":"给脚本的侧栏设置垂直偏移量, 范围为 -35% ~ 40%"},entry:e=>{let{metadata:o}=e;(0,t.addComponentListener)(`${o.name}.offset`,(e=>{document.documentElement.style.setProperty("--be-sidebar-offset",`${e}%`)}),!0)},options:{offset:{displayName:"偏移量 (%)",defaultValue:0,validator:(0,o.getNumberValidator)(-35,40)}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(n[s]=!0)}for(var a=0;a{var r=o(547);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,n.d(i,s),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.settings,o=coreApis.utils,r=(0,e.defineComponentMetadata)({name:"sidebarOffset",displayName:"侧栏垂直偏移",tags:[componentsTags.style],instantStyles:[{name:"sidebarOffset",style:()=>Promise.resolve().then(n.t.bind(n,625,23))}],description:{"zh-CN":"给脚本的侧栏设置垂直偏移量, 范围为 -35% ~ 40%"},entry:e=>{let{metadata:o}=e;(0,t.addComponentListener)(`${o.name}.offset`,(e=>{document.documentElement.style.setProperty("--be-sidebar-offset",`${e}%`)}),!0)},options:{offset:{displayName:"偏移量 (%)",defaultValue:0,validator:(0,o.getNumberValidator)(-35,40)}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/simplify/comments.js b/registry/dist/components/style/simplify/comments.js index 700757e39..534f59f8d 100644 --- a/registry/dist/components/style/simplify/comments.js +++ b/registry/dist/components/style/simplify/comments.js @@ -6,4 +6,4 @@ t.i=function(n,e,i){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var o={};if(i)for(var m=0;m{var i=e(499);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},957:(n,t,e)=>{var i=e(923);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},807:n=>{function t(n){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=807,n.exports=t},849:n=>{"use strict";n.exports="去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\n\n> 配置项仅对新版评论区有效\n\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\n- `头像框`: 隐藏头像框.\n- `回复换行`:\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\n- `小喇叭横幅`: 隐藏评论区顶部的小喇叭横幅\n"},986:n=>{"use strict";n.exports=coreApis.settings}},i={};function o(n){var t=i[n];if(void 0!==t)return t.exports;var m=i[n]={id:n,exports:{}};return e[n](m,m.exports,o),m.exports}t=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var m=Object.create(null);o.r(m);var a={};n=n||[null,t({}),t([]),t(t)];for(var r=2&i&&e;"object"==typeof r&&!~n.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((n=>a[n]=()=>e[n]));return a.default=()=>e,o.d(m,a),m},o.d=(n,t)=>{for(var e in t)o.o(t,e)&&!o.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},o.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var m={};return(()=>{"use strict";o.d(m,{component:()=>t});const n="simplifyComments",t=(0,coreApis.componentApis.switchOptions.wrapSwitchOptions)({name:"simplifyOptions",switchProps:{checkedIcon:"mdi-checkbox-marked-circle",notCheckedIcon:"mdi-checkbox-blank-circle-outline"},dimAt:!1,switches:{userLevel:{defaultValue:!0,displayName:"用户等级"},decorateAndTime:{defaultValue:!0,displayName:"装扮 & 时间"},userPendent:{defaultValue:!1,displayName:"头像框"},subReplyNewLine:{defaultValue:!0,displayName:"回复换行"},replyEditor:{defaultValue:!0,displayName:"编辑框"},fansMedal:{defaultValue:!1,displayName:"粉丝勋章"},eventBanner:{defaultValue:!0,displayName:"小喇叭横幅"}}})({name:n,displayName:"简化评论区",entry:async n=>{let{metadata:t}=n;const{addComponentListener:e}=await Promise.resolve().then(o.t.bind(o,986,23));e(t.name,(n=>{document.body.classList.toggle("simplify-comment",n)}),!0)},instantStyles:[{name:n,style:()=>Promise.resolve().then(o.t.bind(o,957,23))},{name:n,style:()=>Promise.resolve().then(o.t.bind(o,582,23))}],tags:[componentsTags.style],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const n=o(807);return{...Object.fromEntries(n.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],n(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,849,17)).then((n=>n.default))}})()})})(),m=m.component})())); \ No newline at end of file +var a=this[m][0];null!=a&&(o[a]=!0)}for(var r=0;r{var i=e(499);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},957:(n,t,e)=>{var i=e(923);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},807:n=>{function t(n){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=807,n.exports=t},849:n=>{"use strict";n.exports="去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\n\n> 配置项仅对新版评论区有效\n\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\n- `头像框`: 隐藏头像框.\n- `回复换行`:\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\n- `小喇叭横幅`: 隐藏评论区顶部的小喇叭横幅\n"},986:n=>{"use strict";n.exports=coreApis.settings}},i={};function o(n){var t=i[n];if(void 0!==t)return t.exports;var m=i[n]={id:n,exports:{}};return e[n](m,m.exports,o),m.exports}t=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,o.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var m=Object.create(null);o.r(m);var a={};n=n||[null,t({}),t([]),t(t)];for(var r=2&i&&e;"object"==typeof r&&!~n.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((n=>a[n]=()=>e[n]));return a.default=()=>e,o.d(m,a),m},o.d=(n,t)=>{for(var e in t)o.o(t,e)&&!o.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},o.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var m={};return(()=>{"use strict";o.d(m,{component:()=>t});const n="simplifyComments",t=(0,coreApis.componentApis.switchOptions.wrapSwitchOptions)({name:"simplifyOptions",switchProps:{checkedIcon:"mdi-checkbox-marked-circle",notCheckedIcon:"mdi-checkbox-blank-circle-outline"},dimAt:!1,switches:{userLevel:{defaultValue:!0,displayName:"用户等级"},decorateAndTime:{defaultValue:!0,displayName:"装扮 & 时间"},userPendent:{defaultValue:!1,displayName:"头像框"},subReplyNewLine:{defaultValue:!0,displayName:"回复换行"},replyEditor:{defaultValue:!0,displayName:"编辑框"},fansMedal:{defaultValue:!1,displayName:"粉丝勋章"},eventBanner:{defaultValue:!0,displayName:"小喇叭横幅"}}})({name:n,displayName:"简化评论区",entry:async n=>{let{metadata:t}=n;const{addComponentListener:e}=await Promise.resolve().then(o.t.bind(o,986,23));e(t.name,(n=>{document.body.classList.toggle("simplify-comment",n)}),!0)},instantStyles:[{name:n,style:()=>Promise.resolve().then(o.t.bind(o,957,23))},{name:n,style:()=>Promise.resolve().then(o.t.bind(o,582,23))}],tags:[componentsTags.style],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const n=o(807);return{...Object.fromEntries(n.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],n(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,849,17)).then((n=>n.default))}})()})})(),m=m.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/simplify/home.js b/registry/dist/components/style/simplify/home.js index 134b92028..590185dce 100644 --- a/registry/dist/components/style/simplify/home.js +++ b/registry/dist/components/style/simplify/home.js @@ -6,4 +6,4 @@ t.i=function(e,i,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(n)for(var r=0;r{var n=i(891);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,exports:{}};return i[e](r,r.exports,o),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(r,a),r},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>d});const e=coreApis.componentApis.switchOptions,t=coreApis.settings,i=coreApis.spinQuery,n=coreApis.style,a=coreApis.utils,s=coreApis.utils.log,l=coreApis.utils.urls,p=(0,e.defineSwitchMetadata)({name:"simplifyOptions",switches:{categories:{defaultValue:!1,displayName:"分区栏"},trends:{defaultValue:!1,displayName:"活动/热门视频"},online:{defaultValue:!1,displayName:"在线列表(旧)"},"ext-box":{defaultValue:!1,displayName:"电竞赛事(旧)"},special:{defaultValue:!1,displayName:"特别推荐(旧)"},contact:{defaultValue:!1,displayName:"联系方式"},elevator:{defaultValue:!1,displayName:"右侧分区导航(旧)"}}}),c=(0,s.useScopedConsole)("简化首页"),d=(0,e.wrapSwitchOptions)(p)({name:"simplifyHome",displayName:"简化首页",description:"隐藏原版首页不需要的元素 / 分区.",instantStyles:[{name:"simplifyHome",style:()=>Promise.resolve().then(o.t.bind(o,411,23))}],urlInclude:l.mainSiteUrls,tags:[componentsTags.style],entry:async e=>{let{metadata:o}=e;const r=(0,a.matchUrlPattern)("https://www.bilibili.com/");if(!r)return;c.log("isHome",r);const{options:s}=(0,t.getComponentSettings)(o.name),l="-1"===(0,a.getCookieValue)("i-wanna-go-back"),d=await(async()=>{if(!l){const e=await(0,i.sq)((()=>dqa(".proxy-box > div")),(e=>e.length>0||!r));return Object.fromEntries(e.map((e=>[e.id.replace(/^bili_/,""),{displayName:e.querySelector("header .name")?.textContent?.trim()??"未知分区",defaultValue:!1}])))}const e=["推广"],t=await(0,i.sq)((()=>dqa(".bili-grid .the-world")),(e=>e.length>3||!r));c.log(t);const n=t?.filter((t=>!e.includes(t.id))).map((e=>{const t=(e=>{let t=e;for(;t.parentElement;){if(t.classList.contains("bili-grid"))return t;t=t.parentElement}return null})(e),i=e.id;return t?(t.dataset.area=i,[i,{displayName:i,defaultValue:!1}]):null})).filter((e=>null!==e))??[];return Object.fromEntries(n)})(),m={};Object.entries(d).forEach((e=>{let[i,{displayName:n,defaultValue:r}]=e;const a={defaultValue:r,displayName:n},l=`switch-${i}`;void 0===s[l]&&(s[l]=r);const c=`switch-${i}`;(0,t.addComponentListener)(`${o.name}.${c}`,(e=>{document.body.classList.toggle(`${o.name}-${c}`,e)}),!0),p.switches[i]=a,m[i]=a})),s.simplifyOptions.switches=m;const y=Object.keys(d).map((e=>`\n body.simplifyHome-switch-${e} .bili-layout .bili-grid[data-area="${e}"],\n body.simplifyHome-switch-${e} .storey-box .proxy-box #bili_${e} {\n display: none !important;\n }\n `.trim())).join("\n");(0,n.addStyle)(y,"simplify-home-generated")},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s{var n=i(891);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,exports:{}};return i[e](r,r.exports,o),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(r,a),r},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>d});const e=coreApis.componentApis.switchOptions,t=coreApis.settings,i=coreApis.spinQuery,n=coreApis.style,a=coreApis.utils,s=coreApis.utils.log,l=coreApis.utils.urls,p=(0,e.defineSwitchMetadata)({name:"simplifyOptions",switches:{categories:{defaultValue:!1,displayName:"分区栏"},trends:{defaultValue:!1,displayName:"活动/热门视频"},online:{defaultValue:!1,displayName:"在线列表(旧)"},"ext-box":{defaultValue:!1,displayName:"电竞赛事(旧)"},special:{defaultValue:!1,displayName:"特别推荐(旧)"},contact:{defaultValue:!1,displayName:"联系方式"},elevator:{defaultValue:!1,displayName:"右侧分区导航(旧)"}}}),c=(0,s.useScopedConsole)("简化首页"),d=(0,e.wrapSwitchOptions)(p)({name:"simplifyHome",displayName:"简化首页",description:"隐藏原版首页不需要的元素 / 分区.",instantStyles:[{name:"simplifyHome",style:()=>Promise.resolve().then(o.t.bind(o,411,23))}],urlInclude:l.mainSiteUrls,tags:[componentsTags.style],entry:async e=>{let{metadata:o}=e;const r=(0,a.matchUrlPattern)("https://www.bilibili.com/");if(!r)return;c.log("isHome",r);const{options:s}=(0,t.getComponentSettings)(o.name),l="-1"===(0,a.getCookieValue)("i-wanna-go-back"),d=await(async()=>{if(!l){const e=await(0,i.sq)((()=>dqa(".proxy-box > div")),(e=>e.length>0||!r));return Object.fromEntries(e.map((e=>[e.id.replace(/^bili_/,""),{displayName:e.querySelector("header .name")?.textContent?.trim()??"未知分区",defaultValue:!1}])))}const e=["推广"],t=await(0,i.sq)((()=>dqa(".bili-grid .the-world")),(e=>e.length>3||!r));c.log(t);const n=t?.filter((t=>!e.includes(t.id))).map((e=>{const t=(e=>{let t=e;for(;t.parentElement;){if(t.classList.contains("bili-grid"))return t;t=t.parentElement}return null})(e),i=e.id;return t?(t.dataset.area=i,[i,{displayName:i,defaultValue:!1}]):null})).filter((e=>null!==e))??[];return Object.fromEntries(n)})(),m={};Object.entries(d).forEach((e=>{let[i,{displayName:n,defaultValue:r}]=e;const a={defaultValue:r,displayName:n},l=`switch-${i}`;void 0===s[l]&&(s[l]=r);const c=`switch-${i}`;(0,t.addComponentListener)(`${o.name}.${c}`,(e=>{document.body.classList.toggle(`${o.name}-${c}`,e)}),!0),p.switches[i]=a,m[i]=a})),s.simplifyOptions.switches=m;const y=Object.keys(d).map((e=>`\n body.simplifyHome-switch-${e} .bili-layout .bili-grid[data-area="${e}"],\n body.simplifyHome-switch-${e} .storey-box .proxy-box #bili_${e} {\n display: none !important;\n }\n `.trim())).join("\n");(0,n.addStyle)(y,"simplify-home-generated")},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/simplify/live.js b/registry/dist/components/style/simplify/live.js index 5a42d00e9..f2480159f 100644 --- a/registry/dist/components/style/simplify/live.js +++ b/registry/dist/components/style/simplify/live.js @@ -6,4 +6,4 @@ t.i=function(i,e,n){"string"==typeof i&&( // eslint-disable-next-line no-param-reassign i=[[null,i,""]]);var o={};if(n)for(var a=0;a{"use strict";e.r(t),e.d(t,{setupSkinSimplify:()=>a});const n=coreApis.settings,o=coreApis.spinQuery,a=async()=>{(0,n.addComponentListener)("simplifyLiveroom.switch-skin",(async i=>{const t=await(0,o.select)("#skin-css");t&&(t.media=i?"none":"all")}),!0)}},31:(i,t,e)=>{var n=e(442);n&&n.__esModule&&(n=n.default),i.exports="string"==typeof n?n:n.toString()}},n={};function o(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,exports:{}};return e[i](a,a.exports,o),a.exports}t=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,o.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var r={};i=i||[null,t({}),t([]),t(t)];for(var s=2&n&&e;"object"==typeof s&&!~i.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((i=>r[i]=()=>e[i]));return r.default=()=>e,o.d(a,r),a},o.d=(i,t)=>{for(var e in t)o.o(t,e)&&!o.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:t[e]})},o.o=(i,t)=>Object.prototype.hasOwnProperty.call(i,t),o.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>n});const i=coreApis.componentApis.switchOptions,t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls,n=(0,i.wrapSwitchOptions)({name:"simplifyOptions",switches:{vip:{defaultValue:!0,displayName:"老爷图标"},enterPrompt:{defaultValue:!0,displayName:"入场通知"},wealthMedal:{defaultValue:!0,displayName:"荣耀等级勋章"},fansMedal:{defaultValue:!0,displayName:"粉丝勋章"},title:{defaultValue:!0,displayName:"活动头衔"},guard:{defaultValue:!0,displayName:"舰长图标"},systemMessage:{defaultValue:!0,displayName:"全区广播"},welcomeMessage:{defaultValue:!0,displayName:"欢迎信息"},giftMessage:{defaultValue:!0,displayName:"礼物弹幕"},emoticons:{defaultValue:!0,displayName:"表情特效"},guardPurchase:{defaultValue:!0,displayName:"上舰提示"},giftPanel:{defaultValue:!0,displayName:"付费礼物"},headerPanel:{defaultValue:!1,displayName:"标题栏活动"},userEffect:{defaultValue:!0,displayName:"入场特效"},kanban:{defaultValue:!0,displayName:"看板娘"},eventsBanner:{defaultValue:!1,displayName:"活动横幅"},rankList:{defaultValue:!1,displayName:"排行榜"},popup:{defaultValue:!1,displayName:"抽奖提示"},pk:{defaultValue:!1,displayName:"PK浮窗"},topRank:{defaultValue:!1,displayName:"高能榜提示"},skin:{defaultValue:!1,displayName:"房间皮肤"}}})({name:"simplifyLiveroom",displayName:"简化直播间",entry:(0,t.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,31,23))),(async()=>{const{setupSkinSimplify:i}=await Promise.resolve().then(o.bind(o,193));i()})),description:{"zh-CN":"隐藏直播间中各种不需要的内容."},tags:[componentsTags.live,componentsTags.style],urlInclude:e.liveUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var r=this[a][0];null!=r&&(o[r]=!0)}for(var s=0;s{"use strict";e.r(t),e.d(t,{setupSkinSimplify:()=>a});const n=coreApis.settings,o=coreApis.spinQuery,a=async()=>{(0,n.addComponentListener)("simplifyLiveroom.switch-skin",(async i=>{const t=await(0,o.select)("#skin-css");t&&(t.media=i?"none":"all")}),!0)}},31:(i,t,e)=>{var n=e(442);n&&n.__esModule&&(n=n.default),i.exports="string"==typeof n?n:n.toString()}},n={};function o(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,exports:{}};return e[i](a,a.exports,o),a.exports}t=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,o.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var r={};i=i||[null,t({}),t([]),t(t)];for(var s=2&n&&e;"object"==typeof s&&!~i.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((i=>r[i]=()=>e[i]));return r.default=()=>e,o.d(a,r),a},o.d=(i,t)=>{for(var e in t)o.o(t,e)&&!o.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:t[e]})},o.o=(i,t)=>Object.prototype.hasOwnProperty.call(i,t),o.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>n});const i=coreApis.componentApis.switchOptions,t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls,n=(0,i.wrapSwitchOptions)({name:"simplifyOptions",switches:{vip:{defaultValue:!0,displayName:"老爷图标"},enterPrompt:{defaultValue:!0,displayName:"入场通知"},wealthMedal:{defaultValue:!0,displayName:"荣耀等级勋章"},fansMedal:{defaultValue:!0,displayName:"粉丝勋章"},title:{defaultValue:!0,displayName:"活动头衔"},guard:{defaultValue:!0,displayName:"舰长图标"},systemMessage:{defaultValue:!0,displayName:"全区广播"},welcomeMessage:{defaultValue:!0,displayName:"欢迎信息"},giftMessage:{defaultValue:!0,displayName:"礼物弹幕"},emoticons:{defaultValue:!0,displayName:"表情特效"},guardPurchase:{defaultValue:!0,displayName:"上舰提示"},giftPanel:{defaultValue:!0,displayName:"付费礼物"},headerPanel:{defaultValue:!1,displayName:"标题栏活动"},userEffect:{defaultValue:!0,displayName:"入场特效"},kanban:{defaultValue:!0,displayName:"看板娘"},eventsBanner:{defaultValue:!1,displayName:"活动横幅"},rankList:{defaultValue:!1,displayName:"排行榜"},popup:{defaultValue:!1,displayName:"抽奖提示"},pk:{defaultValue:!1,displayName:"PK浮窗"},topRank:{defaultValue:!1,displayName:"高能榜提示"},skin:{defaultValue:!1,displayName:"房间皮肤"}}})({name:"simplifyLiveroom",displayName:"简化直播间",entry:(0,t.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,31,23))),(async()=>{const{setupSkinSimplify:i}=await Promise.resolve().then(o.bind(o,193));i()})),description:{"zh-CN":"隐藏直播间中各种不需要的内容."},tags:[componentsTags.live,componentsTags.style],urlInclude:e.liveUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/special-danmaku.js b/registry/dist/components/style/special-danmaku.js index ef29db812..da0c30d3c 100644 --- a/registry/dist/components/style/special-danmaku.js +++ b/registry/dist/components/style/special-danmaku.js @@ -6,4 +6,4 @@ e.i=function(t,n,a){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign t=[[null,t,""]]);var i={};if(a)for(var o=0;o{var a=n(234);a&&a.__esModule&&(a=a.default),t.exports="string"==typeof a?a:a.toString()},177:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=177,t.exports=e},496:t=>{"use strict";t.exports="移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.\n"}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={id:t,exports:{}};return n[t](o,o.exports,i),o.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var d={};t=t||[null,e({}),e([]),e(e)];for(var l=2&a&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>d[t]=()=>n[t]));return d.default=()=>n,i.d(o,d),o},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";i.d(o,{component:()=>p});const t=coreApis.componentApis.define,e=coreApis.utils.urls,n=coreApis.settings,a=coreApis.localStorage;var d=function(t){return t[t.Heavy=0]="Heavy",t[t.Stroke=1]="Stroke",t[t.Shadow=2]="Shadow",t}(d||{});const l={[d.Heavy]:"1px 0 1px #000000,0 1px 1px #000000,0 -1px 1px #000000,-1px 0 1px #000000",[d.Stroke]:"0px 0px 1px #000000,0 0 1px #000000,0 0 1px #000000",[d.Shadow]:"1px 1px 2px #000000,0 0 1px #000000"},r=(0,t.defineOptionsMetadata)({highlight:{displayName:"禁用高赞弹幕",defaultValue:!0},up:{displayName:"禁用UP主弹幕",defaultValue:!0},upSlogan:{displayName:"禁用带货弹幕",defaultValue:!0},vip:{displayName:"禁用大会员弹幕",defaultValue:!0}}),s="disableSpecialDanmaku",p=(0,t.defineComponentMetadata)({name:s,entry:t=>{let{metadata:e,settings:i}=t;Object.keys(i.options).forEach((t=>{(0,n.addComponentListener)(`${e.name}.${t}`,(e=>{document.body.classList.toggle(`disable-${t}-danmaku-style`,e)}),!0)})),(()=>{const t="bpx_player_profile",e=t=>{const e=lodash.get(t,"dmSetting.fontborder");document.documentElement.style.setProperty("--danmaku-text-shadow",l[e])};e(JSON.parse(localStorage.getItem(t))),(0,a.watchLocalStorage)(((n,a)=>{n===t&&e(JSON.parse(a))}))})()},displayName:"禁用特殊弹幕样式",tags:[componentsTags.style],instantStyles:[{name:s,style:()=>Promise.resolve().then(i.t.bind(i,228,23))}],urlInclude:e.playerUrls,options:r,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=i(177);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,496,17)).then((t=>t.default))}})()})})(),o=o.component})())); \ No newline at end of file +var d=this[o][0];null!=d&&(i[d]=!0)}for(var l=0;l{var a=n(234);a&&a.__esModule&&(a=a.default),t.exports="string"==typeof a?a:a.toString()},177:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=177,t.exports=e},496:t=>{"use strict";t.exports="移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.\n"}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={id:t,exports:{}};return n[t](o,o.exports,i),o.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var d={};t=t||[null,e({}),e([]),e(e)];for(var l=2&a&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>d[t]=()=>n[t]));return d.default=()=>n,i.d(o,d),o},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";i.d(o,{component:()=>p});const t=coreApis.componentApis.define,e=coreApis.utils.urls,n=coreApis.settings,a=coreApis.localStorage;var d=function(t){return t[t.Heavy=0]="Heavy",t[t.Stroke=1]="Stroke",t[t.Shadow=2]="Shadow",t}(d||{});const l={[d.Heavy]:"1px 0 1px #000000,0 1px 1px #000000,0 -1px 1px #000000,-1px 0 1px #000000",[d.Stroke]:"0px 0px 1px #000000,0 0 1px #000000,0 0 1px #000000",[d.Shadow]:"1px 1px 2px #000000,0 0 1px #000000"},r=(0,t.defineOptionsMetadata)({highlight:{displayName:"禁用高赞弹幕",defaultValue:!0},up:{displayName:"禁用UP主弹幕",defaultValue:!0},upSlogan:{displayName:"禁用带货弹幕",defaultValue:!0},vip:{displayName:"禁用大会员弹幕",defaultValue:!0}}),s="disableSpecialDanmaku",p=(0,t.defineComponentMetadata)({name:s,entry:t=>{let{metadata:e,settings:i}=t;Object.keys(i.options).forEach((t=>{(0,n.addComponentListener)(`${e.name}.${t}`,(e=>{document.body.classList.toggle(`disable-${t}-danmaku-style`,e)}),!0)})),(()=>{const t="bpx_player_profile",e=t=>{const e=lodash.get(t,"dmSetting.fontborder");document.documentElement.style.setProperty("--danmaku-text-shadow",l[e])};e(JSON.parse(localStorage.getItem(t))),(0,a.watchLocalStorage)(((n,a)=>{n===t&&e(JSON.parse(a))}))})()},displayName:"禁用特殊弹幕样式",tags:[componentsTags.style],instantStyles:[{name:s,style:()=>Promise.resolve().then(i.t.bind(i,228,23))}],urlInclude:e.playerUrls,options:r,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=i(177);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,496,17)).then((t=>t.default))}})()})})(),o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/style/v1-panel.js b/registry/dist/components/style/v1-panel.js index 388eba88f..67e0438cf 100644 --- a/registry/dist/components/style/v1-panel.js +++ b/registry/dist/components/style/v1-panel.js @@ -4,6 +4,6 @@ t.exports=function(t){var n=[];return n.toString=function(){return this.map((fun // eslint-disable-next-line func-names n.i=function(t,e,r){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign -t=[[null,t,""]]);var o={};if(r)for(var a=0;a{var r=e(845);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={id:t,exports:{}};return e[t](a,a.exports,o),a.exports}n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,o.d(a,i),a},o.d=(t,n)=>{for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"v1PanelStyle",displayName:"v1 风格设置面板",tags:[componentsTags.style],entry:none,description:{"zh-CN":"使用 v1 风格的设置面板样式"},instantStyles:[{name:"v1PanelStyle",style:()=>Promise.resolve().then(o.t.bind(o,225,23))}],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s{var r=e(845);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={id:t,exports:{}};return e[t](i,i.exports,o),i.exports}n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);o.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,o.d(i,a),i},o.d=(t,n)=>{for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"v1PanelStyle",displayName:"v1 风格设置面板",tags:[componentsTags.style],entry:none,description:{"zh-CN":"使用 v1 风格的设置面板样式"},instantStyles:[{name:"v1PanelStyle",style:()=>Promise.resolve().then(o.t.bind(o,225,23))}],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/touch/combo-like.js b/registry/dist/components/touch/combo-like.js index 3ce1196da..c1c5a1702 100644 --- a/registry/dist/components/touch/combo-like.js +++ b/registry/dist/components/touch/combo-like.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/combo-like"]=t():e["touch/combo-like"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"touchComboLike",displayName:"三连触摸支持",tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,entry:async()=>{const{select:e}=await Promise.resolve().then(r.t.bind(r,200,23)),t=await e(":is(.ops, .video-toolbar-v1) span.like");if(!t)return;t.style.userSelect="none";const o=(e,o)=>{const n=new CustomEvent(e,o);t.dispatchEvent(n)};let n=!0;t.addEventListener("touchstart",(e=>{e.preventDefault(),n=!0,setTimeout((()=>n=!1),200),o("mousedown",e)})),t.addEventListener("touchend",(e=>{e.preventDefault(),o("mouseup",e),n&&o("click",e)}))},description:{"zh-CN":"为视频页面中的三连操作 (长按点赞) 启用触摸支持."},urlInclude:t.videoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/combo-like"]=t():e["touch/combo-like"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(c,i),c},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{r.d(c,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineComponentMetadata)({name:"touchComboLike",displayName:"三连触摸支持",tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,entry:async()=>{const{select:e}=await Promise.resolve().then(r.t.bind(r,200,23)),t=await e(":is(.ops, .video-toolbar-v1) span.like");if(!t)return;t.style.userSelect="none";const o=(e,o)=>{const n=new CustomEvent(e,o);t.dispatchEvent(n)};let n=!0;t.addEventListener("touchstart",(e=>{e.preventDefault(),n=!0,setTimeout((()=>n=!1),200),o("mousedown",e)})),t.addEventListener("touchend",(e=>{e.preventDefault(),o("mouseup",e),n&&o("click",e)}))},description:{"zh-CN":"为视频页面中的三连操作 (长按点赞) 启用触摸支持."},urlInclude:t.videoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),c=c.component})())); \ No newline at end of file diff --git a/registry/dist/components/touch/double-click-control.js b/registry/dist/components/touch/double-click-control.js index 3052f69fe..7986a235d 100644 --- a/registry/dist/components/touch/double-click-control.js +++ b/registry/dist/components/touch/double-click-control.js @@ -6,4 +6,4 @@ o.i=function(i,l,e){"string"==typeof i&&( // eslint-disable-next-line no-param-reassign i=[[null,i,""]]);var t={};if(e)for(var r=0;r{var e=l(804);e&&e.__esModule&&(e=e.default),i.exports="string"==typeof e?e:e.toString()},605:i=>{"use strict";i.exports=coreApis.utils}},e={};function t(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return l[i](r,r.exports,t),r.exports}t.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return t.d(o,{a:o}),o},o=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,t.t=function(l,e){if(1&e&&(l=this(l)),8&e)return l;if("object"==typeof l&&l){if(4&e&&l.__esModule)return l;if(16&e&&"function"==typeof l.then)return l}var r=Object.create(null);t.r(r);var n={};i=i||[null,o({}),o([]),o(o)];for(var a=2&e&&l;"object"==typeof a&&!~i.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach((i=>n[i]=()=>l[i]));return n.default=()=>l,t.d(r,n),r},t.d=(i,o)=>{for(var l in o)t.o(o,l)&&!t.o(i,l)&&Object.defineProperty(i,l,{enumerable:!0,get:o[l]})},t.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),t.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};return(()=>{"use strict";t.d(r,{component:()=>p});const i=coreApis.componentApis.define,o=coreApis.componentApis.video.playerAgent,l=coreApis.observer,e=coreApis.style,n=coreApis.utils.urls;var a=t(304),b=t.n(a);const p=(0,i.defineComponentMetadata)({name:"doubleClickControl",displayName:"启用双击控制",description:{"zh-CN":"将视频播放器的操作方式更改为: 单击显示 / 隐藏控制栏, 双击播放 / 暂停. 请注意不能和 `双击全屏` 一同使用."},tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,urlInclude:n.playerUrls,entry:async()=>{(0,e.addStyle)(b());const i="disable-original-hover";(0,l.videoChange)((async()=>{const l=await o.playerAgent.query.playerArea();if(l.classList.contains(i))return;l.classList.add(i);const e=o.playerAgent.query.video.container.sync(),{DoubleClickEvent:r}=await Promise.resolve().then(t.t.bind(t,605,23)),n=new r((()=>o.playerAgent.togglePlay()),!0);n.singleClickHandler=()=>{l.classList.toggle("touch-video-control-show")},n.bind(e)}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var n=this[r][0];null!=n&&(t[n]=!0)}for(var a=0;a{var e=l(804);e&&e.__esModule&&(e=e.default),i.exports="string"==typeof e?e:e.toString()},605:i=>{"use strict";i.exports=coreApis.utils}},e={};function t(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return l[i](r,r.exports,t),r.exports}t.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return t.d(o,{a:o}),o},o=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,t.t=function(l,e){if(1&e&&(l=this(l)),8&e)return l;if("object"==typeof l&&l){if(4&e&&l.__esModule)return l;if(16&e&&"function"==typeof l.then)return l}var r=Object.create(null);t.r(r);var n={};i=i||[null,o({}),o([]),o(o)];for(var a=2&e&&l;"object"==typeof a&&!~i.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach((i=>n[i]=()=>l[i]));return n.default=()=>l,t.d(r,n),r},t.d=(i,o)=>{for(var l in o)t.o(o,l)&&!t.o(i,l)&&Object.defineProperty(i,l,{enumerable:!0,get:o[l]})},t.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),t.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};return(()=>{"use strict";t.d(r,{component:()=>p});const i=coreApis.componentApis.define,o=coreApis.componentApis.video.playerAgent,l=coreApis.observer,e=coreApis.style,n=coreApis.utils.urls;var a=t(304),b=t.n(a);const p=(0,i.defineComponentMetadata)({name:"doubleClickControl",displayName:"启用双击控制",description:{"zh-CN":"将视频播放器的操作方式更改为: 单击显示 / 隐藏控制栏, 双击播放 / 暂停. 请注意不能和 `双击全屏` 一同使用."},tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,urlInclude:n.playerUrls,entry:async()=>{(0,e.addStyle)(b());const i="disable-original-hover";(0,l.videoChange)((async()=>{const l=await o.playerAgent.query.playerArea();if(l.classList.contains(i))return;l.classList.add(i);const e=o.playerAgent.query.video.container.sync(),{DoubleClickEvent:r}=await Promise.resolve().then(t.t.bind(t,605,23)),n=new r((()=>o.playerAgent.togglePlay()),!0);n.singleClickHandler=()=>{l.classList.toggle("touch-video-control-show")},n.bind(e)}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/touch/mini-player.js b/registry/dist/components/touch/mini-player.js index 0eeebee5b..8f57c8e8b 100644 --- a/registry/dist/components/touch/mini-player.js +++ b/registry/dist/components/touch/mini-player.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var i={};if(o)for(var r=0;r{"use strict";n.r(t),n.d(t,{touchLiveMiniPlayer:()=>i});var o=n(200);const i=async e=>{const t=await(0,o.select)(".live-player-ctnr");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:i,disableTouchMove:r}=await Promise.resolve().then(n.bind(n,58));e?i(t,{minMoveDistance:10}):r(t)}},58:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disableTouchMove:()=>s,enableTouchMove:()=>c});const o=coreApis.settings,i=(e,t)=>new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0,view:unsafeWindow,detail:1}),r=[],a={passive:!1,capture:!0},c=(e,t)=>{if(r.some((t=>t.element===e)))return;let n,c,s;const l=lodash.get(t,"minMoveDistance",(0,o.getComponentSettings)("touchMiniPlayer").options.touchMoveDistance),u=e=>{if(e.touches.length<1)return;const t=e.touches[0];n={x:t.clientX,y:t.clientY},e.target.dispatchEvent(i("mousedown",t))};e.addEventListener("touchstart",u,a);const d=e=>{if(1!==e.touches.length)return;const t=e.touches[0],o={x:t.clientX,y:t.clientY};((e,t,n)=>Math.abs(e.x-t.x)**2+Math.abs(e.y-t.y)**2>=n*n)(n,o,l)?(e.target.dispatchEvent(i("mousemove",t)),s=!0,e.cancelable&&e.preventDefault()):s=!1,c=t};e.addEventListener("touchmove",d,a);const p=e=>{s&&(e.target.dispatchEvent(i("mouseup",c)),e.cancelable&&e.preventDefault(),s=!1)};e.addEventListener("touchend",p,a),e.addEventListener("touchcancel",p,a),r.push({element:e,touchstart:u,touchmove:d,touchend:p})},s=e=>{const t=r.findIndex((t=>t.element===e));if(-1===t)return;const n=r[t];["touchstart","touchmove","touchend"].forEach((t=>{e.removeEventListener(t,n[t],a)})),e.removeEventListener("touchcancel",n.touchend,a),r.splice(t,1)}},882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{touchVideoMiniPlayer:()=>c});var o=n(200);const i=coreApis.style;var r=n(570),a=n.n(r);const c=async e=>{const t=await(0,o.select)("#bilibili-player");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:r,disableTouchMove:c}=await Promise.resolve().then(n.bind(n,58)),s="touch-mini-player";e?((0,i.addStyle)(a(),s),r(t)):((0,i.removeStyle)(s),c(t))}},570:(e,t,n)=>{var o=n(151);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},200:e=>{"use strict";e.exports=coreApis.spinQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils.urls,i=async e=>{if(document.URL.startsWith("https://live.bilibili.com")){const{touchLiveMiniPlayer:t}=await Promise.resolve().then(n.bind(n,66));await t(e)}else{const{touchVideoMiniPlayer:t}=await Promise.resolve().then(n.bind(n,882));await t(e)}},r=(0,e.defineComponentMetadata)({name:"touchMiniPlayer",displayName:"迷你播放器触摸拖动",description:{"zh-CN":"使迷你播放器的拖动条可以触摸拖动."},enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],urlInclude:[...t.videoAndBangumiUrls,...t.liveUrls],entry:()=>i(!0),reload:()=>i(!0),unload:()=>i(!1),options:{touchMoveDistance:{displayName:"拖动触发最小距离",defaultValue:10,hidden:!0}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file +var a=this[r][0];null!=a&&(i[a]=!0)}for(var c=0;c{"use strict";n.r(t),n.d(t,{touchLiveMiniPlayer:()=>i});var o=n(200);const i=async e=>{const t=await(0,o.select)(".live-player-ctnr");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:i,disableTouchMove:r}=await Promise.resolve().then(n.bind(n,58));e?i(t,{minMoveDistance:10}):r(t)}},58:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disableTouchMove:()=>s,enableTouchMove:()=>c});const o=coreApis.settings,i=(e,t)=>new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0,view:unsafeWindow,detail:1}),r=[],a={passive:!1,capture:!0},c=(e,t)=>{if(r.some((t=>t.element===e)))return;let n,c,s;const l=lodash.get(t,"minMoveDistance",(0,o.getComponentSettings)("touchMiniPlayer").options.touchMoveDistance),u=e=>{if(e.touches.length<1)return;const t=e.touches[0];n={x:t.clientX,y:t.clientY},e.target.dispatchEvent(i("mousedown",t))};e.addEventListener("touchstart",u,a);const d=e=>{if(1!==e.touches.length)return;const t=e.touches[0],o={x:t.clientX,y:t.clientY};((e,t,n)=>Math.abs(e.x-t.x)**2+Math.abs(e.y-t.y)**2>=n*n)(n,o,l)?(e.target.dispatchEvent(i("mousemove",t)),s=!0,e.cancelable&&e.preventDefault()):s=!1,c=t};e.addEventListener("touchmove",d,a);const p=e=>{s&&(e.target.dispatchEvent(i("mouseup",c)),e.cancelable&&e.preventDefault(),s=!1)};e.addEventListener("touchend",p,a),e.addEventListener("touchcancel",p,a),r.push({element:e,touchstart:u,touchmove:d,touchend:p})},s=e=>{const t=r.findIndex((t=>t.element===e));if(-1===t)return;const n=r[t];["touchstart","touchmove","touchend"].forEach((t=>{e.removeEventListener(t,n[t],a)})),e.removeEventListener("touchcancel",n.touchend,a),r.splice(t,1)}},882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{touchVideoMiniPlayer:()=>c});var o=n(200);const i=coreApis.style;var r=n(570),a=n.n(r);const c=async e=>{const t=await(0,o.select)("#bilibili-player");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:r,disableTouchMove:c}=await Promise.resolve().then(n.bind(n,58)),s="touch-mini-player";e?((0,i.addStyle)(a(),s),r(t)):((0,i.removeStyle)(s),c(t))}},570:(e,t,n)=>{var o=n(151);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},200:e=>{"use strict";e.exports=coreApis.spinQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils.urls,i=async e=>{if(document.URL.startsWith("https://live.bilibili.com")){const{touchLiveMiniPlayer:t}=await Promise.resolve().then(n.bind(n,66));await t(e)}else{const{touchVideoMiniPlayer:t}=await Promise.resolve().then(n.bind(n,882));await t(e)}},r=(0,e.defineComponentMetadata)({name:"touchMiniPlayer",displayName:"迷你播放器触摸拖动",description:{"zh-CN":"使迷你播放器的拖动条可以触摸拖动."},enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],urlInclude:[...t.videoAndBangumiUrls,...t.liveUrls],entry:()=>i(!0),reload:()=>i(!0),unload:()=>i(!1),options:{touchMoveDistance:{displayName:"拖动触发最小距离",defaultValue:10,hidden:!0}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/touch/player-control.js b/registry/dist/components/touch/player-control.js index 984d5df58..0a011bbaa 100644 --- a/registry/dist/components/touch/player-control.js +++ b/registry/dist/components/touch/player-control.js @@ -6,4 +6,4 @@ e.i=function(l,r,i){"string"==typeof l&&( // eslint-disable-next-line no-param-reassign l=[[null,l,""]]);var o={};if(i)for(var t=0;t{var i=r(838);i&&i.__esModule&&(i=i.default),l.exports="string"==typeof i?i:i.toString()}},i={};function o(l){var e=i[l];if(void 0!==e)return e.exports;var t=i[l]={id:l,exports:{}};return r[l](t,t.exports,o),t.exports}e=Object.getPrototypeOf?l=>Object.getPrototypeOf(l):l=>l.__proto__,o.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"==typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"==typeof r.then)return r}var t=Object.create(null);o.r(t);var a={};l=l||[null,e({}),e([]),e(e)];for(var p=2&i&&r;"object"==typeof p&&!~l.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((l=>a[l]=()=>r[l]));return a.default=()=>r,o.d(t,a),t},o.d=(l,e)=>{for(var r in e)o.o(e,r)&&!o.o(l,r)&&Object.defineProperty(l,r,{enumerable:!0,get:e[r]})},o.o=(l,e)=>Object.prototype.hasOwnProperty.call(l,e),o.r=l=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var t={};return(()=>{"use strict";o.d(t,{component:()=>a});const l=coreApis.componentApis.define,e=coreApis.utils.urls,r="touch-player-control",i=async()=>{document.body.classList.add(r)},a=(0,l.defineComponentMetadata)({name:"touchPlayerControl",displayName:"控制栏触摸优化",description:{"zh-CN":"增大播放器控制栏里按钮的间距, 方便触屏使用."},tags:[componentsTags.touch,componentsTags.style],enabledByDefault:navigator.maxTouchPoints>0,urlInclude:e.playerUrls,instantStyles:[{name:r,style:()=>Promise.resolve().then(o.t.bind(o,859,23))}],entry:i,reload:i,unload:()=>{document.body.classList.remove(r)},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),t=t.component})())); \ No newline at end of file +var a=this[t][0];null!=a&&(o[a]=!0)}for(var p=0;p{var i=r(838);i&&i.__esModule&&(i=i.default),l.exports="string"==typeof i?i:i.toString()}},i={};function o(l){var e=i[l];if(void 0!==e)return e.exports;var t=i[l]={id:l,exports:{}};return r[l](t,t.exports,o),t.exports}e=Object.getPrototypeOf?l=>Object.getPrototypeOf(l):l=>l.__proto__,o.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"==typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"==typeof r.then)return r}var t=Object.create(null);o.r(t);var a={};l=l||[null,e({}),e([]),e(e)];for(var p=2&i&&r;"object"==typeof p&&!~l.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((l=>a[l]=()=>r[l]));return a.default=()=>r,o.d(t,a),t},o.d=(l,e)=>{for(var r in e)o.o(e,r)&&!o.o(l,r)&&Object.defineProperty(l,r,{enumerable:!0,get:e[r]})},o.o=(l,e)=>Object.prototype.hasOwnProperty.call(l,e),o.r=l=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var t={};return(()=>{"use strict";o.d(t,{component:()=>a});const l=coreApis.componentApis.define,e=coreApis.utils.urls,r="touch-player-control",i=async()=>{document.body.classList.add(r)},a=(0,l.defineComponentMetadata)({name:"touchPlayerControl",displayName:"控制栏触摸优化",description:{"zh-CN":"增大播放器控制栏里按钮的间距, 方便触屏使用."},tags:[componentsTags.touch,componentsTags.style],enabledByDefault:navigator.maxTouchPoints>0,urlInclude:e.playerUrls,instantStyles:[{name:r,style:()=>Promise.resolve().then(o.t.bind(o,859,23))}],entry:i,reload:i,unload:()=>{document.body.classList.remove(r)},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/touch/player-gestures.js b/registry/dist/components/touch/player-gestures.js index 29519a3f7..01a2c33f7 100644 --- a/registry/dist/components/touch/player-gestures.js +++ b/registry/dist/components/touch/player-gestures.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var i={};if(n)for(var r=0;r{"use strict";s.r(t),s.d(t,{setBrightness:()=>n});const n=(e,t)=>{let s=t;s<0&&(s=0),e.style.filter=`brightness(${s})`}},519:(e,t,s)=>{"use strict";s.d(t,{q:()=>n});let n=function(e){return e.Fast="高速",e.Medium="中速",e.Slow="低速",e}({})},108:(e,t,s)=>{"use strict";s.r(t),s.d(t,{setProgress:()=>n});const n=(e,t)=>{let s=t;s>e.duration?s=e.duration:s<0&&(s=0),unsafeWindow.player.seek(s,e.paused)}},460:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SwipeAction:()=>a,Swiper:()=>l});const n=coreApis.settings;var i=s(519);function r(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const o=(e,t)=>{const s=(e=>{let t=0,s=0,n=e;for(;n&&!Number.isNaN(n.offsetLeft)&&!Number.isNaN(n.offsetTop);)t+=n.offsetLeft-n.scrollLeft,s+=n.offsetTop-n.scrollTop,n=n.offsetParent;return{x:t,y:s}})(t);return{x:(e.touches[0].pageX-s.x)/t.clientWidth,y:(e.touches[0].pageY-s.y)/t.clientHeight,width:t.clientWidth,height:t.clientHeight}};class a extends EventTarget{constructor(e){super(),this.element=e,r(this,"minSwipeDistance",(0,n.getComponentSettings)("touchPlayerGestures").options.swiperDistance),r(this,"startPosition",null),r(this,"lastAction",null),e.addEventListener("touchstart",(()=>{this.dispatchEvent(new CustomEvent("start"))})),e.addEventListener("touchend",(()=>{this.dispatchEvent(new CustomEvent("end",{detail:this.lastAction})),this.lastAction=null}))}startAction(e,t,s){if("vertical"===e)if(this.startPosition.x<.5){const e=Math.round(200*(t-this.minSwipeDistance)/(1.5*s.height))/100;this.dispatchEvent(new CustomEvent("brightness",{detail:e})),this.lastAction={type:"brightness",brightness:e}}else{const e=Math.round(200*(t-this.minSwipeDistance)/(1.5*s.height))/100;this.dispatchEvent(new CustomEvent("volume",{detail:e})),this.lastAction={type:"volume",volume:e}}else if("horizontal"===e)if(s.y<1/3&&(s.x<.1||s.x>.9))this.dispatchEvent(new CustomEvent("cancel")),this.lastAction=null;else{let e=0;e=this.startPosition.y<1/3?.05:this.startPosition.y>=1/3&&this.startPosition.y<=2/3?.2:1;const s={.05:i.q.Slow,.2:i.q.Medium,1:i.q.Fast};if(t>0){const n=(t-this.minSwipeDistance)*e;this.dispatchEvent(new CustomEvent("progress",{detail:{mode:s[e],progress:n}})),this.lastAction={type:"progress",seconds:n}}else{const n=(t+this.minSwipeDistance)*e;this.dispatchEvent(new CustomEvent("progress",{detail:{mode:s[e],progress:n}})),this.lastAction={type:"progress",seconds:n}}}}}class l{constructor(e){r(this,"onTouchStart",null),r(this,"onTouchEnd",null),r(this,"direction",null),r(this,"action",void 0),r(this,"xDown",void 0),r(this,"yDown",void 0),this.action=new a(e),e.addEventListener("touchstart",(t=>{this.xDown=t.touches[0].clientX,this.yDown=t.touches[0].clientY,this.onTouchStart?.(t),this.action.startPosition=o(t,e)})),e.addEventListener("touchmove",(t=>{if(!this.xDown||!this.yDown||!t.cancelable)return;const s=t.touches[0].clientX,n=t.touches[0].clientY,i=o(t,e),r=this.xDown-s,a=this.yDown-n;this.direction?"vertical"===this.direction?this.action.startAction(this.direction,a,i):"horizontal"===this.direction&&this.action.startAction(this.direction,-r,i):this.direction=Math.abs(r)>Math.abs(a)?"horizontal":"vertical",t.preventDefault()}),{passive:!1}),e.addEventListener("touchend",(e=>{this.xDown=null,this.yDown=null,this.direction=null,this.onTouchEnd?.(e),this.action.startPosition=null}))}}},904:(e,t,s)=>{"use strict";s.r(t),s.d(t,{setVolume:()=>i,syncVolumeUI:()=>n});const n=e=>{unsafeWindow.player?.volume(e)},i=async(e,t)=>{let s=t;s>1?s=1:s<0&&(s=0),e.volume=s}},454:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"gesture-preview",class:{opened:e.opened}},[t("div",{staticClass:"gesture-preview-content"},[t("div",{staticClass:"brightness"},[t("ProgressRing",{attrs:{size:100,progress:100*e.preview.brightness}}),e._v(" "),t("div",{staticClass:"label"},[t("div",{staticClass:"name"},[e._v("亮度")]),e._v(" "),t("div",{staticClass:"value"},[e._v("\n "+e._s(e._f("percent")(e.preview.brightness))+"\n ")])])],1),e._v(" "),t("div",{staticClass:"progress"},[t("div",{staticClass:"videoshot",style:e.videoshotStyle}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.preview.progress,expression:"preview.progress !== null"}],staticClass:"preview"},[e.progressNaN?e._e():t("div",{staticClass:"diff"},[e._v("\n "+e._s(e._f("progressDiff")(e.preview.progress-e.store.progress))+"\n ")]),e._v(" "),t("div",{staticClass:"seek-mode"},[e._v("\n "+e._s(e.progressNaN?"取消调整":e.preview.seekMode)+"\n ")])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:null===e.preview.progress,expression:"preview.progress === null"}],staticClass:"name"},[e._v("进度")]),e._v(" "),t("div",{staticClass:"progress-label"},[e._v("\n "+e._s(e._f("progress")(e.progressValid?e.preview.progress:e.store.progress))+"\n ")])]),e._v(" "),t("div",{staticClass:"volume"},[t("ProgressRing",{attrs:{size:100,progress:100*e.preview.volume}}),e._v(" "),t("div",{staticClass:"label"},[t("div",{staticClass:"name"},[e._v("音量")]),e._v(" "),t("div",{staticClass:"value"},[e._v("\n "+e._s(e._f("percent")(e.preview.volume))+"\n ")])])],1)]),e._v(" "),t("div",{staticClass:"progress-bar"},[t("ProgressBar",{attrs:{progress:e.progressValid?e.preview.progress:e.store.progress,max:e.video.duration}})],1)])};n._withStripped=!0;const i=coreApis.ui;var r=s(605);const o=coreApis.utils.formatters;var a=s(519);function l(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class c{constructor(){l(this,"aid",unsafeWindow.aid),l(this,"cid",unsafeWindow.cid),l(this,"viewWidth",120),l(this,"viewHeight",70),l(this,"cidData",null),l(this,"blocked",!1),l(this,"workingPromise",null)}async getVideoshot(e){if(!this.aid||!this.cid||this.blocked)return null;if(this.workingPromise)return this.workingPromise;const{getJson:t}=await Promise.resolve().then(s.t.bind(s,375,23));if(!this.cidData){this.workingPromise=t(`https://api.bilibili.com/x/player/videoshot?aid=${this.aid}&cid=${this.cid}&index=1`);const s=await this.workingPromise;return this.workingPromise=null,-412===s.code?(this.blocked=!0,null):(this.cidData=s.data,this.getVideoshot(e))}const n=this.cidData,i=n.index;let r=1;for(let t=i.length-1;t>0;t--)if(e>=i[t]){r=t;break}const o=n.image;if(null===o)return null;const a=n.img_x_len??10,l=n.img_y_len??10,c=a*this.viewWidth,u=l*this.viewHeight,p=this.viewWidth,d=this.viewHeight,h=-(r-1)%100%a*p,v=-Math.floor((r-1)%100/l)*d;return{backgroundImage:`url(${o[Math.floor(r/100)]})`,backgroundPosition:`${h}px ${v}px`,backgroundSize:`${c}px ${u}px`}}}var u=s(904);const p=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=e+t;return i>s?s:i(0,o.formatDuration)(e,1),progressDiff:e=>`${e>0?"+":"-"}${(e=>{e=Math.abs(e);const t=Math.floor(e/3600),s=Math.floor((e-3600*t)/60),n=e-3600*t-60*s;let i=`${(0,r.fixed)(n)}秒`;return s>0&&(i=`${s}分${i}`),t>0&&(i=`${t}时${i}`),i})(e)}`},data(){const e={progress:0,brightness:1,volume:.66};return{opened:!1,video:dq("video"),videoshot:new c,videoshotStyle:{},store:e,preview:{...e,progress:null,seekMode:a.q.Fast}}},computed:{progressNaN(){return Number.isNaN(this.preview.progress)},progressNull(){return null===this.preview.progress},progressValid(){return!this.progressNaN&&!this.progressNull}},methods:{sync(){const e=dq("video");this.video=e,this.store.volume=e.volume,this.store.progress=e.currentTime,this.store.brightness=(()=>{if(e.style.filter){const t=e.style.filter.match(/brightness\((.+)\)/);return t?parseFloat(t[1]):1}return 1})(),this.preview={...this.preview,...this.store,progress:null}},startPreview(e){let{brightness:t,volume:s,progress:n}=e;if(this.opened=!0,void 0!==n){this.preview.progress=p(this.store.progress,n,this.video.duration);this.videoshot.getVideoshot(this.preview.progress).then((e=>{this.videoshotStyle=e}))}else void 0!==t?this.preview.brightness=p(this.store.brightness,t,1/0):void 0!==s&&(this.preview.volume=p(this.store.volume,s)),this.apply({brightness:t,volume:s})},cancelPreview(){this.preview.progress=NaN},endPreview(){unsafeWindow.touchGestureDebug||(this.opened=!1),this.store.volume!==this.preview.volume&&(0,u.syncVolumeUI)(this.preview.volume),Number.isNaN(this.preview.progress)?this.preview.progress=null:this.store.progress!==this.preview.progress&&null!==this.preview.progress&&this.apply({progress:this.preview.progress})},async apply(e){let{brightness:t,volume:n,progress:i}=e;const r=this.video;if(r)if(void 0!==t){const{setBrightness:e}=await Promise.resolve().then(s.bind(s,144));e(r,this.preview.brightness)}else if(void 0!==n){const{setVolume:e}=await Promise.resolve().then(s.bind(s,904));e(r,this.preview.volume)}else if(void 0!==i){const{setProgress:e}=await Promise.resolve().then(s.bind(s,108));e(r,i)}}}}),h=d;var v=s(332),f=s.n(v),g=s(347),m=s.n(g),w={insert:"head",singleton:!1};f()(m(),w);m().locals;var b=function(e,t,s,n,i,r,o,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=s,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}(h,n,[],!1,null,null,null);const y=b.exports},332:(e,t,s)=>{"use strict";var n,i=function(){return void 0===n&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var s=document.querySelector(t);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}e[t]=s}return e[t]}}(),o=[];function a(e){for(var t=-1,s=0;s{"use strict";e.exports=coreApis.ajax},391:e=>{"use strict";e.exports=coreApis.observer},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,exports:{}};return s[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(s,n){if(1&n&&(s=this(s)),8&n)return s;if("object"==typeof s&&s){if(4&n&&s.__esModule)return s;if(16&n&&"function"==typeof s.then)return s}var r=Object.create(null);i.r(r);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&s;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>s[e]));return o.default=()=>s,i.d(r,o),r},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,s=coreApis.componentApis.video.playerAgent,n=(0,e.defineComponentMetadata)({name:"touchPlayerGestures",displayName:"播放器触摸手势",enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],description:{"zh-CN":"为播放器启用触摸手势支持:\n- 左右滑动可调整进度\n- 上下滑动可调整音量\n- 进度调整可在左上角和右上角取消\n- 进度调整时在不同位置滑动, 可以使用3档不同的灵敏度."},entry:async()=>{const{videoChange:e}=await Promise.resolve().then(i.t.bind(i,391,23));e((async()=>{if(!await s.playerAgent.query.video.element())return;let e;if(!dq(".gesture-preview")){const t=await Promise.resolve().then(i.bind(i,454)),{mountVueComponent:n}=await Promise.resolve().then(i.t.bind(i,605,23));e=n(t),s.playerAgent.query.video.subtitle.sync()?.insertAdjacentElement("beforebegin",e.$el)}const{Swiper:t}=await Promise.resolve().then(i.bind(i,460)),n=new t(s.playerAgent.query.video.container.sync());n.action.addEventListener("start",(()=>{e.sync()})),n.action.addEventListener("cancel",(()=>{e.cancelPreview()})),n.action.addEventListener("end",(()=>{e.endPreview()})),["volume","brightness"].forEach((t=>{n.action.addEventListener(t,(s=>{e.startPreview({[t]:s.detail})}))})),n.action.addEventListener("progress",(t=>{const{progress:s,mode:n}=t.detail;e.preview.seekMode=n,e.startPreview({progress:s})}))}))},urlInclude:t.playerUrls,options:{swiperDistance:{displayName:"手势触发最小距离",defaultValue:10,hidden:!0}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var s=document.querySelector(t);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}e[t]=s}return e[t]}}(),o=[];function a(e){for(var t=-1,s=0;s{"use strict";e.exports=coreApis.ajax},391:e=>{"use strict";e.exports=coreApis.observer},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,exports:{}};return s[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(s,n){if(1&n&&(s=this(s)),8&n)return s;if("object"==typeof s&&s){if(4&n&&s.__esModule)return s;if(16&n&&"function"==typeof s.then)return s}var r=Object.create(null);i.r(r);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&s;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>s[e]));return o.default=()=>s,i.d(r,o),r},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,s=coreApis.componentApis.video.playerAgent,n=(0,e.defineComponentMetadata)({name:"touchPlayerGestures",displayName:"播放器触摸手势",enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],description:{"zh-CN":"为播放器启用触摸手势支持:\n- 左右滑动可调整进度\n- 上下滑动可调整音量\n- 进度调整可在左上角和右上角取消\n- 进度调整时在不同位置滑动, 可以使用3档不同的灵敏度."},entry:async()=>{const{videoChange:e}=await Promise.resolve().then(i.t.bind(i,391,23));e((async()=>{if(!await s.playerAgent.query.video.element())return;let e;if(!dq(".gesture-preview")){const t=await Promise.resolve().then(i.bind(i,454)),{mountVueComponent:n}=await Promise.resolve().then(i.t.bind(i,605,23));e=n(t),s.playerAgent.query.video.subtitle.sync()?.insertAdjacentElement("beforebegin",e.$el)}const{Swiper:t}=await Promise.resolve().then(i.bind(i,460)),n=new t(s.playerAgent.query.video.container.sync());n.action.addEventListener("start",(()=>{e.sync()})),n.action.addEventListener("cancel",(()=>{e.cancelPreview()})),n.action.addEventListener("end",(()=>{e.endPreview()})),["volume","brightness"].forEach((t=>{n.action.addEventListener(t,(s=>{e.startPreview({[t]:s.detail})}))})),n.action.addEventListener("progress",(t=>{const{progress:s,mode:n}=t.detail;e.preview.seekMode=n,e.startPreview({progress:s})}))}))},urlInclude:t.playerUrls,options:{swiperDistance:{displayName:"手势触发最小距离",defaultValue:10,hidden:!0}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/album-time-show.js b/registry/dist/components/utils/album-time-show.js index 5df3998b4..a95225a01 100644 --- a/registry/dist/components/utils/album-time-show.js +++ b/registry/dist/components/utils/album-time-show.js @@ -8,4 +8,4 @@ t=[[null,t,""]]);var r={};if(n)for(var a=0;a{var n=o(25);n&&n.__esModule&&(n=n.default),t.exports="string"==typeof n?n:n.toString()},356:t=>{"use strict";t.exports=coreApis.style}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,exports:{}};return o[t](a,a.exports,r),a.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var c=2&n&&o;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>i[t]=()=>o[t]));return i.default=()=>o,r.d(a,i),a},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>c});const t=coreApis.componentApis.define,e=coreApis.observer,o=coreApis.spinQuery;let n,i;const c=(0,t.defineComponentMetadata)({name:"albumPubTimeShow",author:{name:"Light_Quanta",link:"https://github.com/LightQuanta"},displayName:"相簿发布时间显示",tags:[componentsTags.utils],urlInclude:[/^https:\/\/space\.bilibili\.com/],entry:async()=>{const t=await(0,o.select)(".s-space");(0,e.childList)(t,(async()=>{document.URL.match(/^https:\/\/space\.bilibili\.com\/\d+\/album/)&&(n=await(0,o.select)(".album-list__content"),(async t=>{const[o]=(0,e.attributesSubtree)(t,(()=>{n.querySelectorAll(".album-card").forEach((t=>{const e=t.querySelector(".album-pub-time"),o=t.__vue__.item.ctime; // eslint-disable-next-line no-underscore-dangle -void 0!==o&&(null!==e?e.innerHTML=new Date(1e3*o).toLocaleString():t.insertAdjacentHTML("beforeend",`
${new Date(1e3*o).toLocaleString()}
`))}))}));i?.disconnect(),i=o;const{addImportantStyle:a}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:c}=await Promise.resolve().then(r.t.bind(r,460,23));a(c,"album-pub-time-style")})(n))}))},description:{"zh-CN":"在相簿界面显示相簿的发布时间"},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +void 0!==o&&(null!==e?e.innerHTML=new Date(1e3*o).toLocaleString():t.insertAdjacentHTML("beforeend",`
${new Date(1e3*o).toLocaleString()}
`))}))}));i?.disconnect(),i=o;const{addImportantStyle:a}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:c}=await Promise.resolve().then(r.t.bind(r,460,23));a(c,"album-pub-time-style")})(n))}))},description:{"zh-CN":"在相簿界面显示相簿的发布时间"},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/auto-like.js b/registry/dist/components/utils/auto-like.js index adf6912cb..7cff56b8a 100644 --- a/registry/dist/components/utils/auto-like.js +++ b/registry/dist/components/utils/auto-like.js @@ -13,4 +13,4 @@ this.list.push(this.name),this.name=""},toggleVisible(t){ this.list.splice(this.list.indexOf(t),1)}}});var l=n(332),a=n.n(l),r=n(749),c=n.n(r),d={insert:"head",singleton:!1};a()(c(),d);c().locals;const u=(0,n(499).Z)(o,i,[],!1,null,null,null).exports},773:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("VButton",{staticClass:"manual-like",attrs:{round:""},on:{click:t.like}},[e("div",{class:{like:t.isLike},attrs:{id:"text"}},[t._v("正在点赞: "+t._s(t.curLikeCnt)+" / "+t._s(t.totalLikeCnt))]),t._v(" "),e("VIcon",{directives:[{name:"show",rawName:"v-show",value:!t.isLike,expression:"!isLike"}],attrs:{colored:"",icon:"like",size:20}})],1)};i._withStripped=!0;var s=n(648);const o=Vue.extend({components:{VButton:s.VButton,VIcon:s.VIcon},props:{list:{type:Array,default:null}},data:()=>({isClick:!1,isLike:!1,totalLikeCnt:0,curLikeCnt:0,feedsLikeQueue:[]}),methods:{like(){if(this.isClick)return;this.isClick=!0;const t=Array.from(document.getElementsByClassName("bili-dyn-title__text")).reduce(((t,e)=>{if(this.list.includes(e.textContent.trim()))return t;const n=e.closest(".bili-dyn-item__main").querySelector(".bili-dyn-action.like");return n&&!n.classList.contains("active")&&t.push(n),t}),[]);this.feedsLikeQueue.push(...t),this.totalLikeCnt=this.feedsLikeQueue.length,this.curLikeCnt=0,this.isLike=!0;const e=window.setInterval((()=>{if(0===this.feedsLikeQueue.length)return this.isLike=!1,this.isClick=!1,void clearInterval(e);this.feedsLikeQueue.shift()?.click(),this.curLikeCnt++}),1200)}}});var l=n(332),a=n.n(l),r=n(588),c=n.n(r),d={insert:"head",singleton:!1};a()(c(),d);c().locals;const u=(0,n(499).Z)(o,i,[],!1,null,null,null).exports},139:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var i=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("div",{staticClass:"custom-black-list-extra-options"},[e("VButton",{ref:"button",on:{mouseover:t.setBlackListProps,click:t.toggleBlackList}},[t._v("\n 黑名单\n "),e("VIcon",{attrs:{icon:"right-arrow",size:16}})],1)],1)])};i._withStripped=!0;var s=n(648),o=n(454);const l=Vue.extend({components:{VIcon:s.VIcon,VButton:s.VButton},data:()=>({isFirstLoad:!1}),methods:{toggle(){this.$refs.popup.toggle()},async setBlackListProps(){if(!this.isFirstLoad&&(this.isFirstLoad=await(0,o.J9)(),this.isFirstLoad)){const t=this.$refs.button.$el;(0,o.sz)(t)}},toggleBlackList:o.h4}});var a=n(332),r=n.n(a),c=n(682),d=n.n(c),u={insert:"head",singleton:!1};r()(d(),u);d().locals;const p=(0,n(499).Z)(l,i,[],!1,null,null,null).exports},499:(t,e,n)=>{"use strict";function i(t,e,n,i,s,o,l,a){var r,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),l?(r=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=r):s&&(r=a?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),r)if(c.functional){c._injectStyles=r;var d=c.render;c.render=function(t,e){return r.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,r):[r]}return{exports:t,options:c}}n.d(e,{Z:()=>i})},332:(t,e,n)=>{"use strict";var i,s=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),l=[];function a(t){for(var e=-1,n=0;n{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=945,t.exports=e},185:t=>{"use strict";t.exports="进入视频 / 查看动态时, 自动点赞\\\n无法触发未加载动态的点赞,当启用手动对动态点赞后可手动触发,启用后不会触发动态自动点赞\\\n安装快捷键扩展后可以点击【l】键或【L】键触发\\\n还可以添加动态点赞的黑名单\\\n"},153:t=>{"use strict";t.exports=coreApis.pluginApis.data},200:t=>{"use strict";t.exports=coreApis.spinQuery},648:t=>{"use strict";t.exports=coreApis.ui},605:t=>{"use strict";t.exports=coreApis.utils}},i={};function s(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={id:t,exports:{}};return n[t](o,o.exports,s),o.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var o=Object.create(null);s.r(o);var l={};t=t||[null,e({}),e([]),e(e)];for(var a=2&i&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>l[t]=()=>n[t]));return l.default=()=>n,s.d(o,l),o},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";s.d(o,{component:()=>d});const t=coreApis.componentApis.define;var e=s(200),n=s(605);const i=coreApis.utils.urls,l=coreApis.componentApis.feeds.api;var a=s(454),r=s(153);const c=[],d=(0,t.defineComponentMetadata)({name:"autoLike",displayName:"自动点赞",tags:[componentsTags.utils,componentsTags.feeds,componentsTags.video],urlInclude:[...i.videoAndBangumiUrls,...i.feedsUrls],author:{name:"CrazyboyQCD",link:"https://github.com/CrazyboyQCD"},options:{video:{defaultValue:!0,displayName:"对视频点赞"},feed:{defaultValue:!0,displayName:"对动态点赞"},manualFeed:{defaultValue:!0,displayName:"手动对动态点赞"},users:{displayName:"黑名单",defaultValue:[],hidden:!0}},extraOptions:()=>Promise.resolve().then(s.bind(s,139)).then((t=>t.default)),entry:async t=>{let{settings:{options:s}}=t;if(s.video&&i.videoAndBangumiUrls.some((t=>(0,n.matchUrlPattern)(t)))){await(0,n.playerReady)();const t=await(0,e.select)(".video-like");if(!t||t.classList.contains("on"))return;t.click()}if(s.feed&&i.feedsUrls.some((t=>(0,n.matchUrlPattern)(t)))){const t={users:s.users};if((0,r.registerData)(a.qt,t),s.manualFeed)(0,a.Ts)();else{window.setInterval((()=>{if(0===c.length)return;c.shift()?.click()}),1e3);const t=(0,r.getData)(a.qt);(0,l.forEachFeedsCard)({added:e=>{if(t.includes(e.username))return;const n=dq(e.element,".bili-dyn-action.like");n&&!n.classList.contains("active")&&c.push(n)}})}}},plugin:{displayName:"点赞 - 手动",setup:t=>{let{addData:e}=t;e("keymap.actions",(t=>{t.manuallike={displayName:"手动触发对动态点赞",run:t=>{const{clickElement:e}=t;return e(".manual-like",t)}}})),e("keymap.presets",(t=>{t.manuallike="l L"}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=s(945);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(s.t.bind(s,185,17)).then((t=>t.default))}})()})})(),o=o.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),l=[];function a(t){for(var e=-1,n=0;n{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=945,t.exports=e},185:t=>{"use strict";t.exports="进入视频 / 查看动态时, 自动点赞\\\n无法触发未加载动态的点赞,当启用手动对动态点赞后可手动触发,启用后不会触发动态自动点赞\\\n安装快捷键扩展后可以点击【l】键或【L】键触发\\\n还可以添加动态点赞的黑名单\\\n"},153:t=>{"use strict";t.exports=coreApis.pluginApis.data},200:t=>{"use strict";t.exports=coreApis.spinQuery},648:t=>{"use strict";t.exports=coreApis.ui},605:t=>{"use strict";t.exports=coreApis.utils}},i={};function s(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={id:t,exports:{}};return n[t](o,o.exports,s),o.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var o=Object.create(null);s.r(o);var l={};t=t||[null,e({}),e([]),e(e)];for(var a=2&i&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>l[t]=()=>n[t]));return l.default=()=>n,s.d(o,l),o},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";s.d(o,{component:()=>d});const t=coreApis.componentApis.define;var e=s(200),n=s(605);const i=coreApis.utils.urls,l=coreApis.componentApis.feeds.api;var a=s(454),r=s(153);const c=[],d=(0,t.defineComponentMetadata)({name:"autoLike",displayName:"自动点赞",tags:[componentsTags.utils,componentsTags.feeds,componentsTags.video],urlInclude:[...i.videoAndBangumiUrls,...i.feedsUrls],author:{name:"CrazyboyQCD",link:"https://github.com/CrazyboyQCD"},options:{video:{defaultValue:!0,displayName:"对视频点赞"},feed:{defaultValue:!0,displayName:"对动态点赞"},manualFeed:{defaultValue:!0,displayName:"手动对动态点赞"},users:{displayName:"黑名单",defaultValue:[],hidden:!0}},extraOptions:()=>Promise.resolve().then(s.bind(s,139)).then((t=>t.default)),entry:async t=>{let{settings:{options:s}}=t;if(s.video&&i.videoAndBangumiUrls.some((t=>(0,n.matchUrlPattern)(t)))){await(0,n.playerReady)();const t=await(0,e.select)(".video-like");if(!t||t.classList.contains("on"))return;t.click()}if(s.feed&&i.feedsUrls.some((t=>(0,n.matchUrlPattern)(t)))){const t={users:s.users};if((0,r.registerData)(a.qt,t),s.manualFeed)(0,a.Ts)();else{window.setInterval((()=>{if(0===c.length)return;c.shift()?.click()}),1e3);const t=(0,r.getData)(a.qt);(0,l.forEachFeedsCard)({added:e=>{if(t.includes(e.username))return;const n=dq(e.element,".bili-dyn-action.like");n&&!n.classList.contains("active")&&c.push(n)}})}}},plugin:{displayName:"点赞 - 手动",setup:t=>{let{addData:e}=t;e("keymap.actions",(t=>{t.manuallike={displayName:"手动触发对动态点赞",run:t=>{const{clickElement:e}=t;return e(".manual-like",t)}}})),e("keymap.presets",(t=>{t.manuallike="l L"}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=s(945);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(s.t.bind(s,185,17)).then((t=>t.default))}})()})})(),o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/black-list.js b/registry/dist/components/utils/black-list.js index 84911a861..991e35194 100644 --- a/registry/dist/components/utils/black-list.js +++ b/registry/dist/components/utils/black-list.js @@ -15,4 +15,4 @@ this.list=lodash.uniq(this.list),this.name=""},toggleVisible(t){ this.list.splice(this.list.indexOf(t),1)}}});var a=n(332),l=n.n(a),c=n(74),r=n.n(c),u={insert:"head",singleton:!1};l()(r(),u);r().locals;const d=(0,n(499).Z)(o,s,[],!1,null,null,null).exports},626:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("div",{staticClass:"custom-black-list-extra-options"},[t.login?e("VButton",{ref:"button",on:{mouseover:function(e){return t.loadNameBlackListSettings()},click:function(e){return t.toggleNameSettings()}}},[t._v("\n 精确匹配列表"),e("VIcon",{attrs:{icon:"right-arrow",size:16}})],1):t._e()],1),t._v(" "),e("div",{staticClass:"custom-black-list-extra-options"},[t.login?e("VButton",{ref:"button",on:{mouseover:function(e){return t.loadRegexBlackListSettings()},click:function(e){return t.toggleRegexSettings()}}},[t._v("\n 正则匹配列表"),e("VIcon",{attrs:{icon:"right-arrow",size:16}})],1):t._e()],1)])};s._withStripped=!0;const i=coreApis.utils;var o=n(648);const a=coreApis.settings;var l=n(153),c=n(321);let r,u;const d=(0,a.getComponentSettings)("blackList").options,p=async()=>{if(r)return!1;const t=await Promise.resolve().then(n.bind(n,769)).then((t=>t.default));return r=(0,i.mountVueComponent)(t),document.body.insertAdjacentElement("beforeend",r.$el),!0},g=async()=>{if(u)return!1;const t=await Promise.resolve().then(n.bind(n,769)).then((t=>t.default));return u=(0,i.mountVueComponent)(t),document.body.insertAdjacentElement("beforeend",u.$el),!0},b=Vue.extend({components:{VIcon:o.VIcon,VButton:o.VButton},data:()=>({login:Boolean((0,i.getUID)())}),methods:{async loadNameBlackListSettings(){if(await p()){(t=>{if(!r)return;r.triggerElement=t;const e=(0,l.getData)(c.q);r.list=lodash.cloneDeep(e[0].up),r.save=t=>{(0,l.addData)(c.q,(e=>{e.up=t})),d.up=t},r.titleName="精确匹配"})(this.$refs.button.$el)}},toggleNameSettings:async()=>{r||await p(),r?.toggle()},async loadRegexBlackListSettings(){if(await g()){(t=>{if(!u)return;u.triggerElement=t;const e=(0,l.getData)(c.q);u.list=lodash.cloneDeep(e[0].upRegex),u.save=t=>{(0,l.addData)(c.q,(e=>{e.upRegex=t})),d.upRegex=t},u.titleName="正则匹配"})(this.$refs.button.$el)}},toggleRegexSettings:async()=>{u||await g(),u?.toggle()}}});var f=n(332),m=n.n(f),v=n(502),k=n.n(v),h={insert:"head",singleton:!1};m()(k(),h);k().locals;const x=(0,n(499).Z)(b,s,[],!1,null,null,null).exports},499:(t,e,n)=>{"use strict";function s(t,e,n,s,i,o,a,l){var c,r="function"==typeof t?t.options:t;if(e&&(r.render=e,r.staticRenderFns=n,r._compiled=!0),s&&(r.functional=!0),o&&(r._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},r._ssrRegister=c):i&&(c=l?function(){i.call(this,(r.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(r.functional){r._injectStyles=c;var u=r.render;r.render=function(t,e){return c.call(e),u(t,e)}}else{var d=r.beforeCreate;r.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:r}}n.d(e,{Z:()=>s})},332:(t,e,n)=>{"use strict";var s,i=function(){return void 0===s&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -s=Boolean(window&&document&&document.all&&!window.atob)),s},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function l(t){for(var e=-1,n=0;n{"use strict";t.exports=coreApis.pluginApis.data},648:t=>{"use strict";t.exports=coreApis.ui}},e={};function n(s){var i=e[s];if(void 0!==i)return i.exports;var o=e[s]={id:s,exports:{}};return t[s](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.d(s,{component:()=>c});const t=coreApis.componentApis.define,e=coreApis.observer,i=coreApis.spinQuery,o=coreApis.utils.urls;var a=n(153),l=n(321);const c=(0,t.defineComponentMetadata)({name:"blackList",entry:async t=>{let{settings:{options:n}}=t;const s={up:n.up,upRegex:n.upRegex};(0,a.registerData)(l.q,s);const o=await(0,i.selectAll)(".feed2");(0,e.allMutationsOn)(o,(async()=>{const t=await(0,i.selectAll)(".bili-video-card");if(!t)return;const e=(0,a.getData)(l.q),n=e[0].upRegex.map((t=>new RegExp(t)));t.forEach((t=>{const s=t.querySelector(".bili-video-card__info--author"),i=t.querySelector(".bili-video-card__info--tit > a");if(null!=s){const o=s.innerHTML;if(-1!==e[0].up.indexOf(o)){t.querySelector(".v-img.bili-video-card__cover").innerHTML="",s.innerHTML="",i.innerHTML=""}else for(const e in n)if(n[e].test(o)){t.querySelector(".v-img.bili-video-card__cover").innerHTML="",s.innerHTML="",i.innerHTML="";break}}}))}))},extraOptions:()=>Promise.resolve().then(n.bind(n,626)).then((t=>t.default)),options:{up:{displayName:"up主名称",defaultValue:[],hidden:!0},upRegex:{displayName:"正则匹配up主名称",defaultValue:[],hidden:!0}},displayName:"屏蔽黑名单up主",tags:[componentsTags.utils],description:{"zh-CN":"屏蔽黑名单up主, 根据up主的名称进行匹配,支持精确匹配和正则匹配. 请注意只能在首页中使用或调整设置."},author:{name:"snowraincloud",link:"https://github.com/snowraincloud"},urlInclude:o.mainSiteUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),s=s.component})())); \ No newline at end of file +s=Boolean(window&&document&&document.all&&!window.atob)),s},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function l(t){for(var e=-1,n=0;n{"use strict";t.exports=coreApis.pluginApis.data},648:t=>{"use strict";t.exports=coreApis.ui}},e={};function n(s){var i=e[s];if(void 0!==i)return i.exports;var o=e[s]={id:s,exports:{}};return t[s](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.d(s,{component:()=>c});const t=coreApis.componentApis.define,e=coreApis.observer,i=coreApis.spinQuery,o=coreApis.utils.urls;var a=n(153),l=n(321);const c=(0,t.defineComponentMetadata)({name:"blackList",entry:async t=>{let{settings:{options:n}}=t;const s={up:n.up,upRegex:n.upRegex};(0,a.registerData)(l.q,s);const o=await(0,i.selectAll)(".feed2");(0,e.allMutationsOn)(o,(async()=>{const t=await(0,i.selectAll)(".bili-video-card");if(!t)return;const e=(0,a.getData)(l.q),n=e[0].upRegex.map((t=>new RegExp(t)));t.forEach((t=>{const s=t.querySelector(".bili-video-card__info--author"),i=t.querySelector(".bili-video-card__info--tit > a");if(null!=s){const o=s.innerHTML;if(-1!==e[0].up.indexOf(o)){t.querySelector(".v-img.bili-video-card__cover").innerHTML="",s.innerHTML="",i.innerHTML=""}else for(const e in n)if(n[e].test(o)){t.querySelector(".v-img.bili-video-card__cover").innerHTML="",s.innerHTML="",i.innerHTML="";break}}}))}))},extraOptions:()=>Promise.resolve().then(n.bind(n,626)).then((t=>t.default)),options:{up:{displayName:"up主名称",defaultValue:[],hidden:!0},upRegex:{displayName:"正则匹配up主名称",defaultValue:[],hidden:!0}},displayName:"屏蔽黑名单up主",tags:[componentsTags.utils],description:{"zh-CN":"屏蔽黑名单up主, 根据up主的名称进行匹配,支持精确匹配和正则匹配. 请注意只能在首页中使用或调整设置."},author:{name:"snowraincloud",link:"https://github.com/snowraincloud"},urlInclude:o.mainSiteUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),s=s.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/change-update-urls.js b/registry/dist/components/utils/change-update-urls.js index 9b00f4674..8edd194f5 100644 --- a/registry/dist/components/utils/change-update-urls.js +++ b/registry/dist/components/utils/change-update-urls.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/change-update-urls"]=t():e["utils/change-update-urls"]=t()}(globalThis,(()=>(()=>{"use strict";var e={198:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{name:"替换更新链接",icon:"mdi-file-replace-outline",disabled:e.busy},on:{click:function(t){return e.replaceBranch()}}})};n._withStripped=!0;const r=coreApis.settings,i=coreApis.toast,s=coreApis.utils.log,a=coreApis.ui;var l=function(e,t,o,n,r,i,s,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({busy:!1}),methods:{async replaceBranch(){const e=window.prompt("输入希望替换成的分支名称");if(e){this.busy=!0;try{const{options:t}=(0,r.getComponentSettings)("autoUpdate");Object.values(t.urls).forEach((t=>{Object.values(t).forEach((t=>{const o=/^(https:\/\/github\.com\/.+\/Bilibili-Evolved\/raw\/)(.+?)(\/)/;if(o.test(t.url))return void(t.url=t.url.replace(o,`$1${e}$3`));const n=/^(https:\/\/raw\.githubusercontent\.com\/.+\/Bilibili-Evolved\/)(.+?)(\/)/;if(n.test(t.url))return void(t.url=t.url.replace(n,`$1${e}$3`));const r=/^(https:\/\/cdn\.jsdelivr\.net\/gh\/.+\/Bilibili-Evolved@)(.+?)(\/)/;r.test(t.url)?t.url=t.url.replace(r,`$1${e}$3`):console.log("skip record",t)}))})),i.Toast.info("替换完成","替换更新链接",3e3)}catch(e){(0,s.logError)(e)}finally{this.busy=!1}}}}}),n,[],!1,null,null,null);const c=l.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.d(n,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"changeUpdateUrls",displayName:"更新链接替换",description:"批量更换已安装功能的更新链接的分支, 对本地安装的功能无效.",entry:none,tags:[componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,198)).then((e=>e.default))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/change-update-urls"]=t():e["utils/change-update-urls"]=t()}(globalThis,(()=>(()=>{"use strict";var e={198:(e,t,o)=>{o.r(t),o.d(t,{default:()=>a});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{name:"替换更新链接",icon:"mdi-file-replace-outline",disabled:e.busy},on:{click:function(t){return e.replaceBranch()}}})};n._withStripped=!0;const r=coreApis.settings,i=coreApis.toast,s=coreApis.utils.log,c=coreApis.ui;var l=function(e,t,o,n,r,i,s,c){var l,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=o,a._compiled=!0),n&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=l):r&&(l=c?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(e,t){return l.call(t),u(e,t)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:a}}(Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({busy:!1}),methods:{async replaceBranch(){const e=window.prompt("输入希望替换成的分支名称");if(e){this.busy=!0;try{const{options:t}=(0,r.getComponentSettings)("autoUpdate");Object.values(t.urls).forEach((t=>{Object.values(t).forEach((t=>{const o=/^(https:\/\/github\.com\/.+\/Bilibili-Evolved\/raw\/)(.+?)(\/)/;if(o.test(t.url))return void(t.url=t.url.replace(o,`$1${e}$3`));const n=/^(https:\/\/raw\.githubusercontent\.com\/.+\/Bilibili-Evolved\/)(.+?)(\/)/;if(n.test(t.url))return void(t.url=t.url.replace(n,`$1${e}$3`));const r=/^(https:\/\/cdn\.jsdelivr\.net\/gh\/.+\/Bilibili-Evolved@)(.+?)(\/)/;r.test(t.url)?t.url=t.url.replace(r,`$1${e}$3`):console.log("skip record",t)}))})),i.Toast.info("替换完成","替换更新链接",3e3)}catch(e){(0,s.logError)(e)}finally{this.busy=!1}}}}}),n,[],!1,null,null,null);const a=l.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.d(n,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"changeUpdateUrls",displayName:"更新链接替换",description:"批量更换已安装功能的更新链接的分支, 对本地安装的功能无效.",entry:none,tags:[componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,198)).then((e=>e.default))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/check-in-center.js b/registry/dist/components/utils/check-in-center.js index 092a3d040..68f5adb0f 100644 --- a/registry/dist/components/utils/check-in-center.js +++ b/registry/dist/components/utils/check-in-center.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/check-in-center"]=t():e["utils/check-in-center"]=t()}(globalThis,(()=>(()=>{"use strict";var e={717:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"multiple-widgets"},e._l(e.items,(function(n){return t("DefaultWidget",{key:n.name,attrs:{disabled:n.disabled,"data-name":n.name,name:n.displayName,icon:n.icon},on:{click:function(t){return e.runItemAction(n,t)}}})})),1)};o._withStripped=!0;const i=coreApis.ui,s=coreApis.ajax,a=coreApis.toast;var r=n(605);const c=coreApis.pluginApis.data,d=[{name:"seeds-to-coins",displayName:"瓜子换硬币",icon:"mdi-seed-outline",action:async()=>{const e=await(0,s.postTextWithCredentials)("https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",(0,r.formData)({csrf:(0,r.getCsrf)(),csrf_token:(0,r.getCsrf)()})),t=JSON.parse(e);0!==t.code?a.Toast.info(t.message,"瓜子换硬币",3e3):a.Toast.success(`${t.message}\n剩余银瓜子:${t.data.silver}`,"瓜子换硬币",3e3)}},{name:"live-check-in",displayName:"直播间签到",icon:"mdi-calendar-check",action:async()=>{const e=await(0,s.getJsonWithCredentials)("https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign");if(0!==e.code)a.Toast.info(e.message,"直播间签到",3e3);else{const{text:t,specialText:n,allDays:o,hadSignDays:i}=e.data,s=`签到成功, 获得了${t} ${n}\n本月进度: ${i} / ${o}`;a.Toast.success(s,"直播间签到",3e3)}}}],[l]=(0,c.registerAndGetData)("checkInCenter.items",d);var p=function(e,t,n,o,i,s,a,r){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),s&&(d._scopeId="data-v-"+s),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):i&&(c=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:d}}(Vue.extend({components:{DefaultWidget:i.DefaultWidget},data:()=>({items:l}),methods:{async runItemAction(e,t){try{this.$set(e,"disabled",!0);const n=this.$el.querySelector(`[data-name='${e.name}']`);await e.action(n,t)}finally{e.disabled=!1}}}}),o,[],!1,null,null,null);const f=p.exports},605:e=>{e.exports=coreApis.utils}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.d(o,{component:()=>i});const e=coreApis.componentApis.define;var t=n(605);const i=(0,e.defineComponentMetadata)({name:"checkInCenter",displayName:"签到助手",description:{"zh-CN":"在功能面板中提供一些可以每日进行的操作."},tags:[componentsTags.utils],entry:none,widget:{component:()=>Promise.resolve().then(n.bind(n,717)).then((e=>e.default)),condition:()=>Boolean((0,t.getUID)())},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/check-in-center"]=t():e["utils/check-in-center"]=t()}(globalThis,(()=>(()=>{"use strict";var e={717:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"multiple-widgets"},e._l(e.items,(function(n){return t("DefaultWidget",{key:n.name,attrs:{disabled:n.disabled,"data-name":n.name,name:n.displayName,icon:n.icon},on:{click:function(t){return e.runItemAction(n,t)}}})})),1)};o._withStripped=!0;const i=coreApis.ui,s=coreApis.ajax,a=coreApis.toast;var r=n(605);const c=coreApis.pluginApis.data,d=[{name:"seeds-to-coins",displayName:"瓜子换硬币",icon:"mdi-seed-outline",action:async()=>{const e=await(0,s.postTextWithCredentials)("https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",(0,r.formData)({csrf:(0,r.getCsrf)(),csrf_token:(0,r.getCsrf)()})),t=JSON.parse(e);0!==t.code?a.Toast.info(t.message,"瓜子换硬币",3e3):a.Toast.success(`${t.message}\n剩余银瓜子:${t.data.silver}`,"瓜子换硬币",3e3)}},{name:"live-check-in",displayName:"直播间签到",icon:"mdi-calendar-check",action:async()=>{const e=await(0,s.getJsonWithCredentials)("https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign");if(0!==e.code)a.Toast.info(e.message,"直播间签到",3e3);else{const{text:t,specialText:n,allDays:o,hadSignDays:i}=e.data,s=`签到成功, 获得了${t} ${n}\n本月进度: ${i} / ${o}`;a.Toast.success(s,"直播间签到",3e3)}}}],[l]=(0,c.registerAndGetData)("checkInCenter.items",d);var p=function(e,t,n,o,i,s,a,r){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),s&&(d._scopeId="data-v-"+s),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):i&&(c=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:d}}(Vue.extend({components:{DefaultWidget:i.DefaultWidget},data:()=>({items:l}),methods:{async runItemAction(e,t){try{this.$set(e,"disabled",!0);const n=this.$el.querySelector(`[data-name='${e.name}']`);await e.action(n,t)}finally{e.disabled=!1}}}}),o,[],!1,null,null,null);const f=p.exports},605:e=>{e.exports=coreApis.utils}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.d(o,{component:()=>i});const e=coreApis.componentApis.define;var t=n(605);const i=(0,e.defineComponentMetadata)({name:"checkInCenter",displayName:"签到助手",description:{"zh-CN":"在功能面板中提供一些可以每日进行的操作."},tags:[componentsTags.utils],entry:none,widget:{component:()=>Promise.resolve().then(n.bind(n,717)).then((e=>e.default)),condition:()=>Boolean((0,t.getUID)())},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/column-unlock.js b/registry/dist/components/utils/column-unlock.js index e65181be7..8f03f0a09 100644 --- a/registry/dist/components/utils/column-unlock.js +++ b/registry/dist/components/utils/column-unlock.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/column-unlock"]=t():e["utils/column-unlock"]=t()}(globalThis,(()=>(()=>{var e,t,o={280:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=280,e.exports=t},780:e=>{"use strict";e.exports="(原名: 专栏文字选择, 现在专栏已经不限制选中文字了)\n\n避免专栏的文字复制后在最后带上出处信息, 更贴近原生的复制行为.\n"},356:e=>{"use strict";e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(c,i),c},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";r.d(c,{component:()=>a});const e=coreApis.componentApis.define;let t=!1,o=!0;const n="column-unlock",i=async()=>{o=!0;const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23));e(".article-holder { user-select: text !important }",n),t||(t=!0,document.addEventListener("copy",(e=>{o&&e.stopImmediatePropagation()}),{capture:!0}))},a=(0,e.defineComponentMetadata)({name:"columnUnlock",displayName:"专栏复制优化",entry:i,reload:i,unload:async()=>{document.getElementById(n)?.remove(),o=!1},tags:[componentsTags.utils],urlInclude:["//www.bilibili.com/read/"],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(280);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,780,17)).then((e=>e.default))}})()})})(),c=c.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/column-unlock"]=t():e["utils/column-unlock"]=t()}(globalThis,(()=>(()=>{var e,t,o={280:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=280,e.exports=t},780:e=>{"use strict";e.exports="(原名: 专栏文字选择, 现在专栏已经不限制选中文字了)\n\n避免专栏的文字复制后在最后带上出处信息, 更贴近原生的复制行为.\n"},356:e=>{"use strict";e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(c,i),c},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";r.d(c,{component:()=>s});const e=coreApis.componentApis.define;let t=!1,o=!0;const n="column-unlock",i=async()=>{o=!0;const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,356,23));e(".article-holder { user-select: text !important }",n),t||(t=!0,document.addEventListener("copy",(e=>{o&&e.stopImmediatePropagation()}),{capture:!0}))},s=(0,e.defineComponentMetadata)({name:"columnUnlock",displayName:"专栏复制优化",entry:i,reload:i,unload:async()=>{document.getElementById(n)?.remove(),o=!1},tags:[componentsTags.utils],urlInclude:["//www.bilibili.com/read/"],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(280);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,780,17)).then((e=>e.default))}})()})})(),c=c.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/comments/copy-link.js b/registry/dist/components/utils/comments/copy-link.js index b59f2ef36..4bcd2a7ef 100644 --- a/registry/dist/components/utils/comments/copy-link.js +++ b/registry/dist/components/utils/comments/copy-link.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/comments/copy-link"]=t():e["utils/comments/copy-link"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={206:e=>{e.exports=coreApis.componentApis.utils.commentApis}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({name:"copyCommentsLink",displayName:"复制评论链接",description:{"zh-CN":"开启后, 可在每条评论的菜单中选择复制链接."},entry:async()=>{const{forEachCommentItem:e,addMenuItem:r}=await Promise.resolve().then(n.t.bind(n,206,23));e({added:e=>{const n=e=>{e.forEach((e=>{r(e,{className:"copy-link",text:"复制链接",action:async()=>{const r=(e=>{if(document.URL.match(/\/\/t\.bilibili\.com\/(\d+)/))return"";if(o.feedsUrls.every((e=>!(0,t.matchUrlPattern)(e))))return"";let r=e;for(;null!==r&&r!==document.body;){if(r.hasAttribute("data-did"))return`https://t.bilibili.com/${r.getAttribute("data-did")}`;r=r.parentElement}return""})(e.element)||document.URL.replace(location.hash,"");await navigator.clipboard.writeText(`${r}#reply${e.id}`)}})}))};n([e,...e.replies]),e.addEventListener("repliesUpdate",(e=>n(e.detail)))}})},tags:[componentsTags.utils],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/comments/copy-link"]=t():e["utils/comments/copy-link"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={206:e=>{e.exports=coreApis.componentApis.utils.commentApis}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>c[e]=()=>o[e]));return c.default=()=>o,n.d(i,c),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils,o=coreApis.utils.urls,r=(0,e.defineComponentMetadata)({name:"copyCommentsLink",displayName:"复制评论链接",description:{"zh-CN":"开启后, 可在每条评论的菜单中选择复制链接."},entry:async()=>{const{forEachCommentItem:e,addMenuItem:r}=await Promise.resolve().then(n.t.bind(n,206,23));e({added:e=>{const n=e=>{e.forEach((e=>{r(e,{className:"copy-link",text:"复制链接",action:async()=>{const r=(e=>{if(document.URL.match(/\/\/t\.bilibili\.com\/(\d+)/))return"";if(o.feedsUrls.every((e=>!(0,t.matchUrlPattern)(e))))return"";let r=e;for(;null!==r&&r!==document.body;){if(r.hasAttribute("data-did"))return`https://t.bilibili.com/${r.getAttribute("data-did")}`;r=r.parentElement}return""})(e.element)||document.URL.replace(location.hash,"");await navigator.clipboard.writeText(`${r}#reply${e.id}`)}})}))};n([e,...e.replies]),e.addEventListener("repliesUpdate",(e=>n(e.detail)))}})},tags:[componentsTags.utils],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/comments/disable-search-link.js b/registry/dist/components/utils/comments/disable-search-link.js index e2280569f..407f0a908 100644 --- a/registry/dist/components/utils/comments/disable-search-link.js +++ b/registry/dist/components/utils/comments/disable-search-link.js @@ -6,4 +6,4 @@ t.i=function(e,o,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=o(941);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},59:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=59,e.exports=t},629:e=>{"use strict";e.exports="禁用评论区的搜索词链接."}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.componentApis.utils.commentApis,o=coreApis.utils,n="disableCommentsSearchLink";let s=!1;const a=(0,e.defineComponentMetadata)({name:n,displayName:"禁用评论区搜索词",instantStyles:[{name:n,style:()=>Promise.resolve().then(r.t.bind(r,722,23)),important:!0}],tags:[componentsTags.utils,componentsTags.style],entry:async()=>{s=!0,(0,t.forEachCommentArea)((e=>{(0,o.preventEvent)(e.element,"click",(e=>{if(!(e.target instanceof HTMLElement&&s))return!1;const t=e.target;return!![".jump-link.search-word",".icon.search-word"].some((e=>t.matches(e)))}))}))},reload:()=>{s=!0},unload:()=>{s=!1},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(59);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,629,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c{var n=o(941);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},59:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=59,e.exports=t},629:e=>{"use strict";e.exports="禁用评论区的搜索词链接."}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>c});const e=coreApis.componentApis.define,t=coreApis.componentApis.utils.commentApis,o=coreApis.utils,n="disableCommentsSearchLink";let s=!1;const c=(0,e.defineComponentMetadata)({name:n,displayName:"禁用评论区搜索词",instantStyles:[{name:n,style:()=>Promise.resolve().then(r.t.bind(r,722,23)),important:!0}],tags:[componentsTags.utils,componentsTags.style],entry:async()=>{s=!0,(0,t.forEachCommentArea)((e=>{(0,o.preventEvent)(e.element,"click",(e=>{if(!(e.target instanceof HTMLElement&&s))return!1;const t=e.target;return!![".jump-link.search-word",".icon.search-word"].some((e=>t.matches(e)))}))}))},reload:()=>{s=!0},unload:()=>{s=!1},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(59);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,629,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/dev-client.js b/registry/dist/components/utils/dev-client.js index be68e2ab9..2c5be0552 100644 --- a/registry/dist/components/utils/dev-client.js +++ b/registry/dist/components/utils/dev-client.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var o={};if(s)for(var i=0;i{"use strict";n.r(t),n.d(t,{DevClient:()=>m,DevClientEvents:()=>f,devClient:()=>b});const s=coreApis.utils.log,o=coreApis.componentApis.component,i=coreApis.style;var r=n(911),a=n(529);const c=coreApis.ajax,d=coreApis.pluginApis.plugin;var l=n(391);function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.Ub)(),v=(0,s.useScopedConsole)("DevClient"),h=(e,t)=>{const{data:n}=e;try{const e=JSON.parse(n);v.log("接收信息",e),t(e)}catch(e){v.error("无效信息",n)}};let f=function(e){return e.CoreUpdate="coreUpdate",e.ItemUpdate="itemUpdate",e.SessionsUpdate="sessionsUpdate",e.ServerChange="serverChange",e.ServerConnected="serverConnected",e.ServerDisconnected="serverDisconnected",e}({});class m extends EventTarget{constructor(){super(...arguments),u(this,"socket",void 0),u(this,"sessions",[])}addEventListener(e,t,n){super.addEventListener(e,t,n)}removeEventListener(e,t,n){super.removeEventListener(e,t,n)}createSocket(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((t=>{this.closeSocket();const n=()=>{this.closeSocket()};this.socket=new WebSocket(`ws://localhost:${p.port}`),this.socket.addEventListener("error",(()=>{v.warn("未能连接到 DevServer"),e&&l.Toast.error("连接失败, 请确保 DevServer 已启动, 并检查连接配置.","DevClient",2e3),this.closeSocket(),t(!1)})),this.socket.addEventListener("close",(()=>{v.log("已断开 DevServer 连接"),window.removeEventListener("unload",n)})),this.socket.addEventListener("open",(()=>{v.log("已连接到 DevServer"),this.dispatchEvent(new CustomEvent(f.ServerChange,{detail:!0})),this.dispatchEvent(new CustomEvent(f.ServerConnected)),t(!0)})),this.socket.addEventListener("message",(e=>{h(e,(e=>{switch(e.type){default:break;case"start":this.sessions=e.sessions,this.dispatchEvent(new CustomEvent(f.SessionsUpdate,{detail:this.sessions}));break;case"stop":this.closeSocket();break;case"coreUpdate":this.handleCoreUpdate();break;case"itemUpdate":{const{path:t}=e;this.handleItemUpdate(t);break}}}))})),window.addEventListener("unload",n)}))}closeSocket(){this.socket&&(this.socket.close(),this.socket=null,this.sessions=[],this.dispatchEvent(new CustomEvent(f.SessionsUpdate,{detail:this.sessions})),this.dispatchEvent(new CustomEvent(f.ServerChange,{detail:!1})),this.dispatchEvent(new CustomEvent(f.ServerDisconnected)))}get isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleCoreUpdate(){this.dispatchEvent(new CustomEvent(f.CoreUpdate)),p.coreRefreshMethod===a.v.AlwaysRefresh&&(v.log("本体已更新, 刷新页面..."),location.reload())}async handleItemUpdate(e){this.dispatchEvent(new CustomEvent(f.ItemUpdate,{detail:e}));const t=`http://localhost:${p.port}${e}`,s=Object.entries(r.Db.urls.components).find((t=>{let[,{url:n}]=t;return n.endsWith(e)}));if(s){const[e]=s,r=o.componentsMap[e];if(!r)return;const d=await(0,c.monkey)({url:t}),{installFeatureFromCode:l}=await Promise.resolve().then(n.t.bind(n,890,23)),{metadata:u}=await l(d,t),h=u,f=r.instantStyles??[],m=h.instantStyles??[],b=()=>{v.log(`组件 [${h.displayName}] 已更新`)},y=()=>{v.log(`组件 [${h.displayName}] 已更新, 刷新页面...`),location.reload()},g=()=>(f.length>0||m.length>0)&&((0,i.loadInstantStyle)(h),f.forEach((e=>{(0,i.removeStyle)(e.name)})),r.instantStyles=m,!0);switch(p.registryReloadMethod){default:case a._.Disabled:p.registryRefreshMethod===a.v.DoNotRefresh?b():y();break;case a._.Enabled:g()?b():y()}return}const l=Object.entries(r.Db.urls.plugins).find((t=>{let[,{url:n}]=t;return n.endsWith(e)}));if(l){const[e]=l,t=d.plugins.find((t=>t.name===e));if(!t)return;const{displayName:n}=t;p.registryRefreshMethod!==a.v.DoNotRefresh?(v.log(`插件 [${n}] 已更新, 刷新页面...`),location.reload()):v.log(`插件 [${n}] 已更新`)}}async querySessions(){return new Promise((e=>{this.socket?.addEventListener("message",(t=>{h(t,(t=>{"querySessionsResponse"===t.type&&(this.sessions=t.sessions,this.dispatchEvent(new CustomEvent(f.SessionsUpdate,{detail:t.sessions})),e(t.sessions))}))}),{once:!0}),this.socket?.send(JSON.stringify({type:"querySessions"}))}))}async startDebug(e){return await(0,c.monkey)({url:e}),this.querySessions()}async stopDebug(e){const t={type:"itemStop",path:e};return this.socket?.send(JSON.stringify(t)),this.querySessions()}}const b=new m},911:(e,t,n)=>{"use strict";n.d(t,{Db:()=>a,j4:()=>d,Ub:()=>c});var s=n(952);const o=coreApis.settings;var i=n(605),r=n(529);const{options:a}=(0,o.getComponentSettings)("autoUpdate"),c=()=>(0,o.getComponentSettings)("devClient").options,d=(0,s.defineOptionsMetadata)({port:{defaultValue:23333,displayName:"端口",validator:(0,i.getNumberValidator)(1024,65535)},autoConnect:{defaultValue:!0,displayName:"自动连接"},coreRefreshMethod:{defaultValue:r.v.AlwaysRefresh,displayName:"本体刷新策略",dropdownEnum:r.v},registryRefreshMethod:{defaultValue:r.v.AlwaysRefresh,displayName:"功能刷新策略",dropdownEnum:r.v},registryReloadMethod:{defaultValue:r._.Enabled,displayName:"功能热重载策略",dropdownEnum:r._},devRecords:{defaultValue:{},displayName:"调试模式临时存储",hidden:!0}})},529:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,v:()=>o});let s=function(e){return e.Enabled="开启热重载",e.Disabled="关闭热重载",e}({}),o=function(e){return e.AlwaysRefresh="总是刷新",e.DoNotRefresh="不刷新",e}({})},365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isConnected,expression:"isConnected"}]},[e.canStartDebug?t("div",{staticClass:"component-action dev-client-action",on:{click:e.startDebug}},[e.busy?t("VIcon",{attrs:{icon:"mdi-network-outline",size:16}}):t("VIcon",{attrs:{icon:"mdi-play-network-outline",size:16}}),e._v("\n "+e._s(e.busy?"启动中":"开始调试")+"\n ")],1):e._e(),e._v(" "),e.canStopDebug?t("div",{staticClass:"component-action dev-client-action",on:{click:e.stopDebug}},[e.busy?t("VIcon",{attrs:{icon:"mdi-network-outline",size:16}}):t("VIcon",{attrs:{icon:"mdi-minus-network-outline",size:16}}),e._v("\n "+e._s(e.busy?"停止中":"停止调试")+"\n ")],1):e._e()])};s._withStripped=!0;var o=n(391),i=n(648),r=n(793),a=n(911);const c=(0,a.Ub)(),d=e=>{if(!e)return null;if(e.match(new RegExp(`localhost:${c.port}\\/registry\\/components\\/(.+)$`)))return e;const t=e.match(/localhost:(\d+?)\/components\/(.+)$/);if(t)return`http://localhost:${c.port}/registry/dist/components/${t[2]}`;const n=e.match(/\/registry\/dist\/components\/(.+)$/);return n?`http://localhost:${c.port}/registry/dist/components/${n[1]}`:null},l=(0,a.Ub)(),u=Vue.extend({components:{VIcon:i.VIcon},props:{item:{type:Object,required:!0},component:{type:Object,required:!0}},data:()=>({busy:!1,autoUpdateComponents:a.Db.urls.components,sessions:[],isConnected:!1}),computed:{autoUpdateRecord(){const e=this.component;return this.autoUpdateComponents[e.name]},componentUpdateUrl(){return this.autoUpdateRecord?.url},isDebugging(){return this.componentUpdateUrl&&this.sessions.some((e=>{const{pathname:t}=new URL(this.componentUpdateUrl);return e===t}))},canStartDebug(){return!this.isDebugging&&null!==d(this.componentUpdateUrl)},canStopDebug(){return Boolean(this.isDebugging&&this.componentUpdateUrl)}},async created(){const{devClient:e}=await Promise.resolve().then(n.bind(n,793));this.sessions=e.sessions,this.isConnected=e.isConnected,e.addEventListener(r.DevClientEvents.ServerChange,this.handleServerChange),e.addEventListener(r.DevClientEvents.SessionsUpdate,this.handleSessionsUpdate)},async beforeDestroy(){const{devClient:e}=await Promise.resolve().then(n.bind(n,793));e.removeEventListener(r.DevClientEvents.SessionsUpdate,this.handleSessionsUpdate)},methods:{handleSessionsUpdate(e){this.sessions=e.detail},handleServerChange(e){this.isConnected=e.detail},async handleClick(e){if(!this.busy)try{this.busy=!0,await e()}finally{this.busy=!1}},async startDebug(){await this.handleClick((async()=>{const{devClient:e}=await Promise.resolve().then(n.bind(n,793)),t=this.component,s=d(this.componentUpdateUrl);this.autoUpdateRecord.url!==s&&(l.devRecords[t.name]={name:t.name,originalUrl:this.componentUpdateUrl},this.autoUpdateRecord.url=s);const i=o.Toast.info("启动调试中...","DevClient");try{await e.startDebug(this.autoUpdateRecord.url)}catch(e){console.error(e)}finally{i.close()}}))},async stopDebug(){await this.handleClick((async()=>{const{devClient:e}=await Promise.resolve().then(n.bind(n,793)),t=this.component,{pathname:s}=new URL(this.componentUpdateUrl);e.isConnected&&await e.stopDebug(s),l.devRecords[t.name]&&(this.autoUpdateRecord.url=l.devRecords[t.name].originalUrl,delete l.devRecords[t.name])}))}}});const p=(0,n(499).Z)(u,s,[],!1,null,null,null).exports},14:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"be-dev-client"},[t("div",{staticClass:"title"},[e._v("DevClient")]),e._v(" "),t("div",{staticClass:"connection-status"},[e.isConnected?[t("div",{staticClass:"status-dot connected"}),e._v(" "),t("div",{staticClass:"status-text"},[e._v("已连接")]),e._v(" "),t("AsyncButton",{attrs:{title:"断开连接"},on:{click:e.disconnect}},[t("VIcon",{attrs:{icon:"mdi-stop",size:14}}),e._v("\n 断开连接\n ")],1)]:[t("div",{staticClass:"status-dot disconnected"}),e._v(" "),t("div",{staticClass:"status-text"},[e._v("未连接")]),e._v(" "),t("AsyncButton",{attrs:{title:"连接"},on:{click:e.connect}},[t("VIcon",{attrs:{icon:"mdi-play",size:14}}),e._v("\n 连接\n ")],1)]],2)])};s._withStripped=!0;var o=n(648),i=n(793);const r=Vue.extend({components:{AsyncButton:o.AsyncButton,VIcon:o.VIcon},data:()=>({client:null,isConnected:!1}),async created(){const{devClient:e}=await Promise.resolve().then(n.bind(n,793));this.client=e,this.updateConnectionStatus(),e.addEventListener(i.DevClientEvents.ServerChange,this.updateConnectionStatus)},beforeDestroy(){this.client.removeEventListener(i.DevClientEvents.ServerChange,this.updateConnectionStatus)},methods:{async connect(){return this.client.createSocket(!0)},disconnect(){this.client.closeSocket()},updateConnectionStatus(){this.isConnected=this.client.isConnected}}});var a=n(332),c=n.n(a),d=n(832),l=n.n(d),u={insert:"head",singleton:!1};c()(l(),u);l().locals;const p=(0,n(499).Z)(r,s,[],!1,null,"b4ec1a08",null).exports},499:(e,t,n)=>{"use strict";function s(e,t,n,s,o,i,r,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),s&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=c):o&&(c=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}n.d(t,{Z:()=>s})},332:(e,t,n)=>{"use strict";var s,o=function(){return void 0===s&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -s=Boolean(window&&document&&document.all&&!window.atob)),s},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=456,e.exports=t},626:e=>{"use strict";e.exports="本地开发工具, 提供自动更新功能和样式热重载的能力, 需要与 DevServer 配合使用. (DevServer 的使用方式见 [CONTRIBUTING.md](https://github.com/the1812/Bilibili-Evolved/blob/preview/CONTRIBUTING.md))\n\n`自动连接` 开启时, 每次进入网页都会自动尝试连接到 DevServer, 如果关闭则需要手动操作连接.\n\n`刷新策略` 决定了收到本体或者功能更新的消息时是否刷新:\n - **总是刷新**: 收到更新时立即刷新页面\n - 不刷新: 收到更新时不刷新页面\n\n`热重载策略` 决定了是否开启热重载功能, 只要成功触发热重载, 就不刷新页面:\n - **开启热重载**: 功能带有 `instantStyles` 时, 热重载 `instantStyles` 中的样式\n - 关闭热重载: 收到更新时按 `刷新策略` 执行\n\n> 目前就这两个选项, 将来可能会支持对 `entry` 的热重载\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.define},890:e=>{"use strict";e.exports=coreApis.installFeature},391:e=>{"use strict";e.exports=coreApis.toast},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var r={};e=e||[null,t({}),t([]),t(t)];for(var a=2&s&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(i,r),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>s});var e=o(952),t=o(605),n=o(911);const s=(0,e.defineComponentMetadata)({name:"devClient",displayName:"DevClient",tags:[componentsTags.utils],entry:async e=>{let{settings:{options:s}}=e;if((0,t.isIframe)())return;const{devClient:i,DevClientEvents:r}=await Promise.resolve().then(o.bind(o,793));i.addEventListener(r.ServerConnected,(()=>{i.addEventListener(r.SessionsUpdate,(()=>{Object.entries(s.devRecords).forEach((e=>{let[,{name:t,originalUrl:o}]=e;const r=n.Db.urls.components[t];if(!r)return;const a=r.url;i.sessions.find((e=>a.endsWith(e)))||(r.url=o,console.log("cleanUpDevRecords",t,a,o,r),delete s.devRecords[t])}))}),{once:!0})})),s.autoConnect&&i.createSocket()},options:n.j4,widget:{component:()=>Promise.resolve().then(o.bind(o,14)).then((e=>e.default))},plugin:{setup:async e=>{let{addData:s}=e;(0,t.isIframe)()||(s("settingsPanel.componentActions",(e=>{e.push((e=>{if(!n.Db.urls.components[e.name])return;return{name:"devClient",component:()=>Promise.resolve().then(o.bind(o,365))}}))})),s("launchBar.actions",(e=>{e.push({name:"devClientActions",getActions:async()=>{const{devClient:e}=await Promise.resolve().then(o.bind(o,793)),t=[];return e.isConnected?t.push({name:"断开 DevServer 连接",description:"Disconnect from DevServer",icon:"mdi-stop-circle-outline",action:()=>e.closeSocket()}):t.push({name:"连接 DevServer",description:"Connect to DevServer",icon:"mdi-play-circle-outline",action:async()=>{await e.createSocket(!0)}}),t}})})))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(456);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,626,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +s=Boolean(window&&document&&document.all&&!window.atob)),s},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=456,e.exports=t},626:e=>{"use strict";e.exports="本地开发工具, 提供自动更新功能和样式热重载的能力, 需要与 DevServer 配合使用. (DevServer 的使用方式见 [CONTRIBUTING.md](https://github.com/the1812/Bilibili-Evolved/blob/preview/CONTRIBUTING.md))\n\n`自动连接` 开启时, 每次进入网页都会自动尝试连接到 DevServer, 如果关闭则需要手动操作连接.\n\n`刷新策略` 决定了收到本体或者功能更新的消息时是否刷新:\n - **总是刷新**: 收到更新时立即刷新页面\n - 不刷新: 收到更新时不刷新页面\n\n`热重载策略` 决定了是否开启热重载功能, 只要成功触发热重载, 就不刷新页面:\n - **开启热重载**: 功能带有 `instantStyles` 时, 热重载 `instantStyles` 中的样式\n - 关闭热重载: 收到更新时按 `刷新策略` 执行\n\n> 目前就这两个选项, 将来可能会支持对 `entry` 的热重载\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.define},890:e=>{"use strict";e.exports=coreApis.installFeature},391:e=>{"use strict";e.exports=coreApis.toast},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var r={};e=e||[null,t({}),t([]),t(t)];for(var a=2&s&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(i,r),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>s});var e=o(952),t=o(605),n=o(911);const s=(0,e.defineComponentMetadata)({name:"devClient",displayName:"DevClient",tags:[componentsTags.utils],entry:async e=>{let{settings:{options:s}}=e;if((0,t.isIframe)())return;const{devClient:i,DevClientEvents:r}=await Promise.resolve().then(o.bind(o,793));i.addEventListener(r.ServerConnected,(()=>{i.addEventListener(r.SessionsUpdate,(()=>{Object.entries(s.devRecords).forEach((e=>{let[,{name:t,originalUrl:o}]=e;const r=n.Db.urls.components[t];if(!r)return;const a=r.url;i.sessions.find((e=>a.endsWith(e)))||(r.url=o,console.log("cleanUpDevRecords",t,a,o,r),delete s.devRecords[t])}))}),{once:!0})})),s.autoConnect&&i.createSocket()},options:n.j4,widget:{component:()=>Promise.resolve().then(o.bind(o,14)).then((e=>e.default))},plugin:{setup:async e=>{let{addData:s}=e;(0,t.isIframe)()||(s("settingsPanel.componentActions",(e=>{e.push((e=>{if(!n.Db.urls.components[e.name])return;return{name:"devClient",component:()=>Promise.resolve().then(o.bind(o,365))}}))})),s("launchBar.actions",(e=>{e.push({name:"devClientActions",getActions:async()=>{const{devClient:e}=await Promise.resolve().then(o.bind(o,793)),t=[];return e.isConnected?t.push({name:"断开 DevServer 连接",description:"Disconnect from DevServer",icon:"mdi-stop-circle-outline",action:()=>e.closeSocket()}):t.push({name:"连接 DevServer",description:"Connect to DevServer",icon:"mdi-play-circle-outline",action:async()=>{await e.createSocket(!0)}}),t}})})))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(456);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,626,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/download-audio.js b/registry/dist/components/utils/download-audio.js index 8a7d998d1..24100a50c 100644 --- a/registry/dist/components/utils/download-audio.js +++ b/registry/dist/components/utils/download-audio.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/download-audio"]=t():e["utils/download-audio"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={397:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{disabled:e.disabled||e.downloading,name:e.progress||"下载音频",icon:"mdi-download"},on:{click:function(t){return e.download()}}})};n._withStripped=!0;const r=coreApis.spinQuery,i=coreApis.observer,s=coreApis.download,a=coreApis.ui;function d(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class l{constructor(){d(this,"progress",null),d(this,"sid",void 0)}async getDownloadUrl(){const{getJsonWithCredentials:e}=await Promise.resolve().then(o.t.bind(o,375,23)),{Toast:t}=await Promise.resolve().then(o.t.bind(o,391,23)),n=`https://www.bilibili.com/audio/music-service-c/web/url?sid=${this.sid}&privilege=2&quality=2`,r=await e(n);return 0!==r.code?(t.error("获取下载链接失败, 请确保当前账号有下载权限.","下载音频",1e4),null):r.data.cdns.shift()}async download(){const e=await this.getDownloadUrl();return new Promise(((t,o)=>{const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.addEventListener("load",(()=>t(n.response))),n.addEventListener("error",(()=>o(n.status))),n.addEventListener("progress",(e=>this.progress?.(100*e.loaded/e.total))),n.send()}))}}var c=function(e,t,o,n,r,i,s,a){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({progress:"",disabled:!0,downloader:new l,downloading:!1}),async mounted(){const e=await(0,r.select)("#app"),t=this.downloader;t.progress=e=>{this.progress=`${Math.round(e)}%`},(0,i.childList)(e,(()=>{const e=document.URL.match(/bilibili\.com\/audio\/au([\d]+)/);e&&e[1]?(this.disabled=!1,[,t.sid]=e):this.disabled=!0}))},methods:{async download(){if(!this.downloading){this.downloading=!0;try{const e=this.downloader;if(null===e.sid)return;const t=await e.download(),o=`${(()=>{const e=document.querySelector(".song-title");return e?e.getAttribute("title"):"神秘音频"})()}.mp3`;this.progress="",await s.DownloadPackage.single(o,t)}finally{this.downloading=!1}}}}}),n,[],!1,null,null,null);const u=c.exports},375:e=>{e.exports=coreApis.ajax},391:e=>{e.exports=coreApis.toast}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"downloadAudio",displayName:"下载音频",entry:none,tags:[componentsTags.utils],description:{"zh-CN":"\n开启音频下载支持, 音频页面中可以在功能面板中下载当前音频.\n\n> 需要进入音频的详细信息页面才能下载, 在其他页面中此按钮将不可点击.\n ".trim()},widget:{component:()=>Promise.resolve().then(r.bind(r,397)).then((e=>e.default))},urlInclude:["//www.bilibili.com/audio/"],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/download-audio"]=t():e["utils/download-audio"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={397:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{disabled:e.disabled||e.downloading,name:e.progress||"下载音频",icon:"mdi-download"},on:{click:function(t){return e.download()}}})};n._withStripped=!0;const r=coreApis.spinQuery,i=coreApis.observer,s=coreApis.download,a=coreApis.ui;function d(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class l{constructor(){d(this,"progress",null),d(this,"sid",void 0)}async getDownloadUrl(){const{getJsonWithCredentials:e}=await Promise.resolve().then(o.t.bind(o,375,23)),{Toast:t}=await Promise.resolve().then(o.t.bind(o,391,23)),n=`https://www.bilibili.com/audio/music-service-c/web/url?sid=${this.sid}&privilege=2&quality=2`,r=await e(n);return 0!==r.code?(t.error("获取下载链接失败, 请确保当前账号有下载权限.","下载音频",1e4),null):r.data.cdns.shift()}async download(){const e=await this.getDownloadUrl();return new Promise(((t,o)=>{const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.addEventListener("load",(()=>t(n.response))),n.addEventListener("error",(()=>o(n.status))),n.addEventListener("progress",(e=>this.progress?.(100*e.loaded/e.total))),n.send()}))}}var c=function(e,t,o,n,r,i,s,a){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({progress:"",disabled:!0,downloader:new l,downloading:!1}),async mounted(){const e=await(0,r.select)("#app"),t=this.downloader;t.progress=e=>{this.progress=`${Math.round(e)}%`},(0,i.childList)(e,(()=>{const e=document.URL.match(/bilibili\.com\/audio\/au([\d]+)/);e&&e[1]?(this.disabled=!1,[,t.sid]=e):this.disabled=!0}))},methods:{async download(){if(!this.downloading){this.downloading=!0;try{const e=this.downloader;if(null===e.sid)return;const t=await e.download(),o=`${(()=>{const e=document.querySelector(".song-title");return e?e.getAttribute("title"):"神秘音频"})()}.mp3`;this.progress="",await s.DownloadPackage.single(o,t)}finally{this.downloading=!1}}}}}),n,[],!1,null,null,null);const u=c.exports},375:e=>{e.exports=coreApis.ajax},391:e=>{e.exports=coreApis.toast}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(i,s),i},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.d(i,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"downloadAudio",displayName:"下载音频",entry:none,tags:[componentsTags.utils],description:{"zh-CN":"\n开启音频下载支持, 音频页面中可以在功能面板中下载当前音频.\n\n> 需要进入音频的详细信息页面才能下载, 在其他页面中此按钮将不可点击.\n ".trim()},widget:{component:()=>Promise.resolve().then(r.bind(r,397)).then((e=>e.default))},urlInclude:["//www.bilibili.com/audio/"],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/image-exporter.js b/registry/dist/components/utils/image-exporter.js index 8ec4930ef..f41b4b668 100644 --- a/registry/dist/components/utils/image-exporter.js +++ b/registry/dist/components/utils/image-exporter.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/image-exporter"]=t():e["utils/image-exporter"]=t()}(globalThis,(()=>(()=>{var e,t,o={727:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>m});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{name:"导出图片",icon:"mdi-export",disabled:e.busy},on:{click:function(t){return e.exportImages()}}})};n._withStripped=!0;var r=o(375),s=o(444);const i=coreApis.settings;var a=o(391),c=o(605);const l=coreApis.utils.log;var u=o(674);const d=coreApis.ui;var p=function(e,t,o,n,r,s,i,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:d.DefaultWidget},data:()=>({busy:!1}),methods:{async exportImages(){const{columnFormat:e}=(0,i.getComponentSettings)("imageExporter").options,t=a.Toast.info("下载中...","导出图片");this.busy=!0;try{const o=[],n=dq(".banner-image .card-image__image"),i=(0,c.retrieveImageUrl)(n);i&&(o.push({...i,name:`${(0,u.formatTitle)(e,!1,{n:"1"})}${i.extension}`}),console.log(n,i,o));if(dqa('.article-content .img-box img:not([class*="cut-off-"])').forEach((t=>{const n=(0,c.retrieveImageUrl)(t);n&&o.push({...n,name:`${(0,u.formatTitle)(e,!1,{n:(o.length+1).toString()})}${n.extension}`})})),0===o.length)return void a.Toast.info("此页面没有检测到任何可导出图片.","图片导出");let l=0;const d=await Promise.all(o.map((async e=>{let{url:n}=e;const s=await(0,r.getBlob)(n);return l++,t.message=`下载中... (${l}/${o.length})`,s}))),p=new s.DownloadPackage;d.forEach(((e,t)=>p.add(o[t].name,e))),await p.emit(`${(0,u.formatTitle)(e,!1,{n:""})}.zip`)}catch(e){(0,l.logError)(e)}finally{this.busy=!1,t.close()}}}}),n,[],!1,null,null,null);const m=p.exports},79:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=79,e.exports=t},87:e=>{"use strict";e.exports="可以批量导出某个地方的图片, 目前支持动态和专栏.\n\n动态文件名变量:\n- `user`: 用户名\n- `originalUser`: 被转发用户名, 如果不是转发类型的动态则等于 `user`\n- `id`: 动态 ID\n- `n`: 第 n 张图\n\n专栏文件名变量:\n- `title`: 专栏标题\n- `n`: 第 n 张图"},375:e=>{"use strict";e.exports=coreApis.ajax},444:e=>{"use strict";e.exports=coreApis.download},391:e=>{"use strict";e.exports=coreApis.toast},674:e=>{"use strict";e.exports=coreApis.utils.title},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,r),s.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var s=Object.create(null);r.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(s,i),s},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";r.d(s,{component:()=>d});const e=coreApis.componentApis.define;var t=r(605);const o=coreApis.utils.urls,n=coreApis.componentApis.feeds.api;var i=r(375),a=r(444),c=r(391),l=r(674);const u=(0,e.defineOptionsMetadata)({columnFormat:{defaultValue:"[title][ - n]",displayName:"专栏图片命名格式"},feedFormat:{defaultValue:"[user][ - id][ - n]",displayName:"动态图片命名格式"}}),d=(0,e.defineComponentMetadata)({name:"imageExporter",displayName:"图片批量导出",tags:[componentsTags.feeds,componentsTags.utils],entry:async e=>{await(async e=>{let{settings:{options:r}}=e;if(!o.feedsUrls.some((e=>(0,t.matchUrlPattern)(e))))return;(0,n.forEachFeedsCard)({added:e=>{(0,n.addMenuItem)(e,{className:"image-export",text:"导出图片",action:async()=>{const o=[];if(dqa(e.element,".main-content .img-content, .bili-album__preview__picture__img, .bili-album .preview__picture__img").forEach((e=>{const n=(0,t.retrieveImageUrl)(e);n&&!o.some((e=>{let{url:t}=e;return t===n.url}))&&o.push(n)})),0===o.length)return void c.Toast.info("此条动态没有检测到任何图片.","导出图片");const n=c.Toast.info("下载中...","导出图片");let s=0;const u=await Promise.all(o.map((async e=>{let{url:t}=e;const r=await(0,i.getBlob)(t);return s++,n.message=`下载中... (${s}/${o.length})`,r}))),d=new a.DownloadPackage,{feedFormat:p}=r;u.forEach(((t,n)=>{const r={user:e.username,id:e.id,originalUser:e.repostUsername??e.username,n:(n+1).toString()};d.add(`${(0,l.formatTitle)(p,!1,r)}${o[n].extension}`,t)})),n.close();const m={user:e.username,id:e.id,originalUser:e.repostUsername??e.username,n:""};await d.emit(`${(0,l.formatTitle)(p,!1,m)}.zip`)}})}})})(e)},widget:{condition:()=>o.columnUrls.some((e=>(0,t.matchUrlPattern)(e))),component:()=>Promise.resolve().then(r.bind(r,727)).then((e=>e.default))},urlInclude:[...o.feedsUrls,...o.columnUrls],options:u,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(79);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,87,17)).then((e=>e.default))}})()})})(),s=s.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/image-exporter"]=t():e["utils/image-exporter"]=t()}(globalThis,(()=>(()=>{var e,t,o={727:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>m});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{attrs:{name:"导出图片",icon:"mdi-export",disabled:e.busy},on:{click:function(t){return e.exportImages()}}})};n._withStripped=!0;var r=o(375),s=o(444);const i=coreApis.settings;var a=o(391),c=o(605);const l=coreApis.utils.log;var u=o(674);const d=coreApis.ui;var p=function(e,t,o,n,r,s,i,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:d.DefaultWidget},data:()=>({busy:!1}),methods:{async exportImages(){const{columnFormat:e}=(0,i.getComponentSettings)("imageExporter").options,t=a.Toast.info("下载中...","导出图片");this.busy=!0;try{const o=[],n=dq(".banner-image .card-image__image"),i=(0,c.retrieveImageUrl)(n);i&&(o.push({...i,name:`${(0,u.formatTitle)(e,!1,{n:"1"})}${i.extension}`}),console.log(n,i,o));if(dqa('.article-content .img-box img:not([class*="cut-off-"])').forEach((t=>{const n=(0,c.retrieveImageUrl)(t);n&&o.push({...n,name:`${(0,u.formatTitle)(e,!1,{n:(o.length+1).toString()})}${n.extension}`})})),0===o.length)return void a.Toast.info("此页面没有检测到任何可导出图片.","图片导出");let l=0;const d=await Promise.all(o.map((async e=>{let{url:n}=e;const s=await(0,r.getBlob)(n);return l++,t.message=`下载中... (${l}/${o.length})`,s}))),p=new s.DownloadPackage;d.forEach(((e,t)=>p.add(o[t].name,e))),await p.emit(`${(0,u.formatTitle)(e,!1,{n:""})}.zip`)}catch(e){(0,l.logError)(e)}finally{this.busy=!1,t.close()}}}}),n,[],!1,null,null,null);const m=p.exports},79:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=79,e.exports=t},87:e=>{"use strict";e.exports="可以批量导出某个地方的图片, 目前支持动态和专栏.\n\n动态文件名变量:\n- `user`: 用户名\n- `originalUser`: 被转发用户名, 如果不是转发类型的动态则等于 `user`\n- `id`: 动态 ID\n- `n`: 第 n 张图\n\n专栏文件名变量:\n- `title`: 专栏标题\n- `n`: 第 n 张图"},375:e=>{"use strict";e.exports=coreApis.ajax},444:e=>{"use strict";e.exports=coreApis.download},391:e=>{"use strict";e.exports=coreApis.toast},674:e=>{"use strict";e.exports=coreApis.utils.title},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,r),s.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var s=Object.create(null);r.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(s,i),s},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";r.d(s,{component:()=>d});const e=coreApis.componentApis.define;var t=r(605);const o=coreApis.utils.urls,n=coreApis.componentApis.feeds.api;var i=r(375),a=r(444),c=r(391),l=r(674);const u=(0,e.defineOptionsMetadata)({columnFormat:{defaultValue:"[title][ - n]",displayName:"专栏图片命名格式"},feedFormat:{defaultValue:"[user][ - id][ - n]",displayName:"动态图片命名格式"}}),d=(0,e.defineComponentMetadata)({name:"imageExporter",displayName:"图片批量导出",tags:[componentsTags.feeds,componentsTags.utils],entry:async e=>{await(async e=>{let{settings:{options:r}}=e;if(!o.feedsUrls.some((e=>(0,t.matchUrlPattern)(e))))return;(0,n.forEachFeedsCard)({added:e=>{(0,n.addMenuItem)(e,{className:"image-export",text:"导出图片",action:async()=>{const o=[];if(dqa(e.element,".main-content .img-content, .bili-album__preview__picture__img, .bili-album .preview__picture__img").forEach((e=>{const n=(0,t.retrieveImageUrl)(e);n&&!o.some((e=>{let{url:t}=e;return t===n.url}))&&o.push(n)})),0===o.length)return void c.Toast.info("此条动态没有检测到任何图片.","导出图片");const n=c.Toast.info("下载中...","导出图片");let s=0;const u=await Promise.all(o.map((async e=>{let{url:t}=e;const r=await(0,i.getBlob)(t);return s++,n.message=`下载中... (${s}/${o.length})`,r}))),d=new a.DownloadPackage,{feedFormat:p}=r;u.forEach(((t,n)=>{const r={user:e.username,id:e.id,originalUser:e.repostUsername??e.username,n:(n+1).toString()};d.add(`${(0,l.formatTitle)(p,!1,r)}${o[n].extension}`,t)})),n.close();const m={user:e.username,id:e.id,originalUser:e.repostUsername??e.username,n:""};await d.emit(`${(0,l.formatTitle)(p,!1,m)}.zip`)}})}})})(e)},widget:{condition:()=>o.columnUrls.some((e=>(0,t.matchUrlPattern)(e))),component:()=>Promise.resolve().then(r.bind(r,727)).then((e=>e.default))},urlInclude:[...o.feedsUrls,...o.columnUrls],options:u,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(79);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,87,17)).then((e=>e.default))}})()})})(),s=s.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/image-resolution.js b/registry/dist/components/utils/image-resolution.js index 87a17419f..139d230e4 100644 --- a/registry/dist/components/utils/image-resolution.js +++ b/registry/dist/components/utils/image-resolution.js @@ -6,4 +6,4 @@ e.i=function(t,o,n){"string"==typeof t&&( // eslint-disable-next-line no-param-reassign t=[[null,t,""]]);var r={};if(n)for(var i=0;i{var n=o(210);n&&n.__esModule&&(n=n.default),t.exports="string"==typeof n?n:n.toString()},391:t=>{"use strict";t.exports=coreApis.observer}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,exports:{}};return o[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>o[t]));return a.default=()=>o,r.d(i,a),i},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>l});const t=coreApis.componentApis.define,e=coreApis.componentApis.styledComponent,o=/@(\d+)[Ww]_(\d+)[Hh]/,n=["#certify-img1","#certify-img2"],a=(t,e)=>{const o=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT);let n=o.nextNode();for(;n;)e(n),n=o.nextNode()},s=async(t,e)=>{const{attributes:i}=await Promise.resolve().then(r.t.bind(r,391,23)),a=(r,i)=>{const a=r(e);if(null===a)return;if(n.some((t=>e.matches(t))))return;if(a.includes(","))return;const s=a.match(o);if(!s)return;const[,c,u]=s,l=parseInt(e.getAttribute("data-resolution-width")||"0");if(parseInt(c)>=l&&0!==l)return;null===e.getAttribute("width")&&null===e.getAttribute("height")&&(e.classList.contains("bili-avatar-img")?e.setAttribute("height",u):e.setAttribute("width",c));const d=Math.round(t*parseInt(c)).toString(),f=Math.round(t*parseInt(u)).toString();e.setAttribute("data-resolution-width",d),i(e,a.replace(o,`@${d}w_${f}h`))};i(e,(()=>{a((t=>t.getAttribute("src")),((t,e)=>t.setAttribute("src",e))),a((t=>t.getAttribute("srcset")),((t,e)=>t.setAttribute("srcset",e))),a((t=>t.style.backgroundImage),((t,e)=>t.style.backgroundImage=e))}))},c=(0,e.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,699,23))),(async t=>{let{settings:e}=t;const{allMutations:o}=await Promise.resolve().then(r.t.bind(r,391,23)),n="auto"===e.options.scale?window.devicePixelRatio:parseFloat(e.options.scale);a(document.body,(t=>s(n,t))),o((t=>{t.forEach((t=>t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(s(n,t),"IMG"!==t.nodeName.toUpperCase()&&a(t,(t=>s(n,t))))}))))}))})),u=(0,t.defineOptionsMetadata)({scale:{displayName:"缩放级别",defaultValue:"auto",hidden:!0}}),l=(0,t.defineComponentMetadata)({name:"imageResolution",displayName:"高分辨率图片",tags:[componentsTags.utils],enabledByDefault:window.devicePixelRatio>1,entry:c,description:{"zh-CN":"根据屏幕 DPI 请求更高分辨率的图片, 例如 DPI 缩放 200% 则请求 2 倍的分辨率, 加载时间也会相应变长一些. (也会导致某些浏览器里出现图片闪动, 因为本质上是更换了图片源)"},options:u,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var n=o(210);n&&n.__esModule&&(n=n.default),t.exports="string"==typeof n?n:n.toString()},391:t=>{"use strict";t.exports=coreApis.observer}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,exports:{}};return o[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>o[t]));return a.default=()=>o,r.d(i,a),i},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>l});const t=coreApis.componentApis.define,e=coreApis.componentApis.styledComponent,o=/@(\d+)[Ww]_(\d+)[Hh]/,n=["#certify-img1","#certify-img2"],a=(t,e)=>{const o=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT);let n=o.nextNode();for(;n;)e(n),n=o.nextNode()},s=async(t,e)=>{const{attributes:i}=await Promise.resolve().then(r.t.bind(r,391,23)),a=(r,i)=>{const a=r(e);if(null===a)return;if(n.some((t=>e.matches(t))))return;if(a.includes(","))return;const s=a.match(o);if(!s)return;const[,c,u]=s,l=parseInt(e.getAttribute("data-resolution-width")||"0");if(parseInt(c)>=l&&0!==l)return;null===e.getAttribute("width")&&null===e.getAttribute("height")&&(e.classList.contains("bili-avatar-img")?e.setAttribute("height",u):e.setAttribute("width",c));const d=Math.round(t*parseInt(c)).toString(),f=Math.round(t*parseInt(u)).toString();e.setAttribute("data-resolution-width",d),i(e,a.replace(o,`@${d}w_${f}h`))};i(e,(()=>{a((t=>t.getAttribute("src")),((t,e)=>t.setAttribute("src",e))),a((t=>t.getAttribute("srcset")),((t,e)=>t.setAttribute("srcset",e))),a((t=>t.style.backgroundImage),((t,e)=>t.style.backgroundImage=e))}))},c=(0,e.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,699,23))),(async t=>{let{settings:e}=t;const{allMutations:o}=await Promise.resolve().then(r.t.bind(r,391,23)),n="auto"===e.options.scale?window.devicePixelRatio:parseFloat(e.options.scale);a(document.body,(t=>s(n,t))),o((t=>{t.forEach((t=>t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(s(n,t),"IMG"!==t.nodeName.toUpperCase()&&a(t,(t=>s(n,t))))}))))}))})),u=(0,t.defineOptionsMetadata)({scale:{displayName:"缩放级别",defaultValue:"auto",hidden:!0}}),l=(0,t.defineComponentMetadata)({name:"imageResolution",displayName:"高分辨率图片",tags:[componentsTags.utils],enabledByDefault:window.devicePixelRatio>1,entry:c,description:{"zh-CN":"根据屏幕 DPI 请求更高分辨率的图片, 例如 DPI 缩放 200% 则请求 2 倍的分辨率, 加载时间也会相应变长一些. (也会导致某些浏览器里出现图片闪动, 因为本质上是更换了图片源)"},options:u,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/import-series.js b/registry/dist/components/utils/import-series.js index 5fd20580c..39271e987 100644 --- a/registry/dist/components/utils/import-series.js +++ b/registry/dist/components/utils/import-series.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/import-series"]=t():e["utils/import-series"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var a in i)e.o(i,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:i[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>c});const i=coreApis.componentApis.define,a=coreApis.utils,o=coreApis.spinQuery,s=coreApis.observer,n=coreApis.toast,r=async()=>{let e=function(e){return e[e.Collection=0]="Collection",e[e.Series=1]="Series",e}({});const t=new URL(window.location.href);let i,s;if(t.pathname.includes("seriesdetail"))s=t.searchParams.get("sid"),i=e.Series;else{if(!t.pathname.includes("collectiondetail"))return;s=t.searchParams.get("sid"),i=e.Collection}const r=t.pathname.split("/")[1],c=(0,a.getCsrf)(),l=await(0,o.select)(".page-head"),d=l.children[1],p=document.createElement("a");p.className="paly-all-btn",p.textContent="一键收藏",p.style.cssText="\n right: 6rem;\n display: block;\n text-align: center;\n width: 65px;\n ",l.insertBefore(p,d),p.onclick=async()=>{i===e.Series?await(async(e,t,i)=>{const s=(await fetch(`https://api.bilibili.com/x/series/archives?mid=${t}&series_id=${e}&only_normal=true&sort=desc&pn=1&ps=99999`).then((e=>e.json()))).data.archives,r=await(0,o.sq)((()=>document.getElementsByClassName("item cur")[0].innerHTML),(e=>""!==e));let c=0;for(;;){const e=await fetch("https://api.bilibili.com/x/v3/fav/folder/add",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`title=${r}&csrf=${i}&privacy=0`}).then((e=>e.json()));if(0===e.code){c=e.data.id;break}await(0,a.delay)(2e3)}const l=" 过久未动即触发风控,等待一段时间自动继续",d=n.Toast.info(`0 / ${s.length}${l}`,"收藏系列");for(let e=0;ee.json()))).code){d.message=`${e+1} / ${s.length}${l}`;break}{const e=2e3*Math.random()+2e3;console.log(`请求失败,等待${(e/1e3).toFixed(1)}s后重试`),await(0,a.delay)(e)}}d.duration=1e3,n.Toast.success("完成","收藏系列",2e3)})(s,r,c):await(async(e,t)=>{for(;;){if(0===(await fetch("https://api.bilibili.com/x/v3/fav/season/fav",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`platform=web&season_id=${e}&csrf=${t}`}).then((e=>e.json()))).code){n.Toast.success("成功","导入合集",2e3);break}await(0,a.delay)(2e3)}})(s,c)}},c=(0,i.defineComponentMetadata)({name:"importSeries",author:{name:"aiden",link:"https://github.com/swhoro"},displayName:"批量导入合集",tags:[componentsTags.utils],entry:()=>{(0,s.urlChange)((()=>{r()}))},description:{"zh-CN":"在合集页面制作一个批量导入按钮,可以新增所有合集内视频至同名收藏夹"},urlInclude:[/^https:\/\/space\.bilibili\.com\//],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/import-series"]=t():e["utils/import-series"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>r});const i=coreApis.componentApis.define,o=coreApis.utils,a=coreApis.spinQuery,s=coreApis.observer,n=coreApis.toast,c=async()=>{let e=function(e){return e[e.Collection=0]="Collection",e[e.Series=1]="Series",e}({});const t=new URL(window.location.href);let i,s;if(t.pathname.includes("seriesdetail"))s=t.searchParams.get("sid"),i=e.Series;else{if(!t.pathname.includes("collectiondetail"))return;s=t.searchParams.get("sid"),i=e.Collection}const c=t.pathname.split("/")[1],r=(0,o.getCsrf)(),l=await(0,a.select)(".page-head"),d=l.children[1],p=document.createElement("a");p.className="paly-all-btn",p.textContent="一键收藏",p.style.cssText="\n right: 6rem;\n display: block;\n text-align: center;\n width: 65px;\n ",l.insertBefore(p,d),p.onclick=async()=>{i===e.Series?await(async(e,t,i)=>{const s=(await fetch(`https://api.bilibili.com/x/series/archives?mid=${t}&series_id=${e}&only_normal=true&sort=desc&pn=1&ps=99999`).then((e=>e.json()))).data.archives,c=await(0,a.sq)((()=>document.getElementsByClassName("item cur")[0].innerHTML),(e=>""!==e));let r=0;for(;;){const e=await fetch("https://api.bilibili.com/x/v3/fav/folder/add",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`title=${c}&csrf=${i}&privacy=0`}).then((e=>e.json()));if(0===e.code){r=e.data.id;break}await(0,o.delay)(2e3)}const l=" 过久未动即触发风控,等待一段时间自动继续",d=n.Toast.info(`0 / ${s.length}${l}`,"收藏系列");for(let e=0;ee.json()))).code){d.message=`${e+1} / ${s.length}${l}`;break}{const e=2e3*Math.random()+2e3;console.log(`请求失败,等待${(e/1e3).toFixed(1)}s后重试`),await(0,o.delay)(e)}}d.duration=1e3,n.Toast.success("完成","收藏系列",2e3)})(s,c,r):await(async(e,t)=>{for(;;){if(0===(await fetch("https://api.bilibili.com/x/v3/fav/season/fav",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`platform=web&season_id=${e}&csrf=${t}`}).then((e=>e.json()))).code){n.Toast.success("成功","导入合集",2e3);break}await(0,o.delay)(2e3)}})(s,r)}},r=(0,i.defineComponentMetadata)({name:"importSeries",author:{name:"aiden",link:"https://github.com/swhoro"},displayName:"批量导入合集",tags:[componentsTags.utils],entry:()=>{(0,s.urlChange)((()=>{c()}))},description:{"zh-CN":"在合集页面制作一个批量导入按钮,可以新增所有合集内视频至同名收藏夹"},urlInclude:[/^https:\/\/space\.bilibili\.com\//],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/ip-show.js b/registry/dist/components/utils/ip-show.js index 0c0f4f17f..7a7373bbd 100644 --- a/registry/dist/components/utils/ip-show.js +++ b/registry/dist/components/utils/ip-show.js @@ -1,3 +1,3 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/ip-show"]=t():e["utils/ip-show"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,i={206:e=>{e.exports=coreApis.componentApis.utils.commentApis}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var l=s[e]={exports:{}};return i[e](l,l.exports,a),l.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var l=Object.create(null);a.r(l);var n={};e=e||[null,t({}),t([]),t(t)];for(var o=2&s&&i;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>n[e]=()=>i[e]));return n.default=()=>i,a.d(l,n),l},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.d(l,{component:()=>d});const e=coreApis.componentApis.define;let t,i=2;const s=function(e,i,s){const a=this._parentBlacklistDom(e,i,s),l=[`
`,`
${this._createNickNameDom(e)}`,this._createLevelLink(e),this._identity(e.mid,e.assist,e.member.fans_detail),`${this._createNameplate(e.member.nameplate)+this._createUserSailing(e)}
`,this._createMsgContent(e),this._createPerfectReply(e),'
',this._createPlatformDom(e.content.plat),'',''.concat(this._formateTime(e.ctime),""),e?.reply_control?.location?`${e?.reply_control?.location||""}`:"","",e.lottery_id?"":``,e.lottery_id?"":``,e.lottery_id?"":this._createReplyBtn(e.rcount),e.lottery_id&&e.mid!==t.userStatus.mid?"":`
    ${this._canSetTop(e)?`
  • ${e.isUpTop?"取消置顶":"设为置顶"}
  • `:""}${this._canBlackList(e.mid)?'
  • 加入黑名单
  • ':""}${this._canReport(e.mid)?'
  • 举报
  • ':""}${this._canDel(e.mid)&&!e.isTop?`
  • 删除
  • `:""}
`,this._createLotteryContent(e.content),this._createVoteContent(e.content),this._createTags(e),"
",'
',this._createSubReplyList(e.replies,e.rcount,!1,e.rpid,e.folder&&e.folder.has_folded,e.reply_control),"
",'
',"
","
"].join("");return e.state===t.blacklistCode?a:l},n=function(e,t){return[`
`,this._createSubReplyUserFace(e),'
','
',this._createNickNameDom(e),this._createLevelLink(e),this._identity(e.mid),this._createSubMsgContent(e),"
","
",'
','',''.concat(this._formateTime(e.ctime),""),e?.reply_control?.location?`${e?.reply_control?.location||""}`:"","",``,``,'回复',`
    ${this._canBlackList(e.mid)?'
  • 加入黑名单
  • ':""}${this._canReport(e.mid)?'
  • 举报
  • ':""}${this._canDel(e.mid)?`
  • 删除
  • `:""}
`,"
","
"].join("")},o=function(e,t,i){const s=this._parentBlacklistDom(e,t,i),a=[`
`,`
${this._identity(e.mid,e.assist,e.member.fans_detail)}`,`${this._unhtmlFix(e.member.uname)}${this._createNameplate(e.member.nameplate)}${this._createUserSailing(e.member&&e.member.user_sailing||{})}
`,this._createMsgContent(e),'
',e.floor?`#${e.floor}`:"",this._createPlatformDom(e.content.plat),`${this._formateTime(e.ctime)}`,e?.reply_control?.location?`${e?.reply_control?.location||""}`:"",e.lottery_id?"":``,e.lottery_id?"":``,e.lottery_id?"":this._createReplyBtn(e.rcount),e.lottery_id&&e.mid!==this.userStatus.mid?"":`
    ${this._canSetTop(e)?`
  • ${e.isUpTop?"取消置顶":"设为置顶"}
  • `:""}${this._canBlackList(e.mid)?'
  • 加入黑名单
  • ':""}${this._canReport(e.mid)?'
  • 举报
  • ':""}${this._canDel(e.mid)&&!e.isTop?`
  • 删除
  • `:""}
`,this._createLotteryContent(e.content),this._createVoteContent(e.content),this._createTags(e),"
",'
',this._createSubReplyList(e.replies,e.rcount,!1,e.rpid,e.folder&&e.folder.has_folded),"
",'
',"
","
"].join("");return e.state===this.blacklistCode?s:a},r=function(e,t){return[`
`,``,``,"",'
','
',`${this._unhtmlFix(e.member.uname)}`,``,this._createSubMsgContent(e),"
","
",'
',`${this._formateTime(e.ctime)}`,e?.reply_control?.location?`${e?.reply_control?.location||""}`:"",``,``,'回复',`
    ${this._canBlackList(e.mid)?'
  • 加入黑名单
  • ':""}${this._canReport(e.mid)?'
  • 举报
  • ':""}${this._canDel(e.mid)?`
  • 删除
  • `:""}
`,"
","
"].join("")},c=new MutationObserver((e=>{e.forEach((()=>{void 0!==unsafeWindow.bbComment&&(t=unsafeWindow.bbComment,"blackroom"===unsafeWindow.location.href.split("/")[3]?(t.prototype._unhtmlFix=function(e,t){return e? // eslint-disable-next-line @typescript-eslint/no-shadow -e.replace(t||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp|#\\d+);)?/g,(function(e,t){return t?e:{"<":"","&":"",'"':"",">":"","'":""}[e]})):""},t.prototype._trimHttpFix=function(e){return e?e.replace(/^http:/,""):""},t.prototype._webpFix=function(e,t){if(!e)return e;const i=e.match(/(.*\\.(jpg|jpeg|gif|png|bmp))(\\?.*)?/);let s=-1!==e.indexOf("/bfs/");return i&&"gif"!==i[2]&&"bmp"!==i[2]&&s?(s=t.w,e=t.h,e=s&&e?`@${s}w_${e}h`:"@",t=i[3]||"",this.isWebp?`${i[1]+e}.webp${t}`:`${i[1]+e}.${i[2]}${t}`):e},t.prototype._createListCon=o,t.prototype._createSubReplyItem=r):(t.prototype._createListCon=s,t.prototype._createSubReplyItem=n),i=1,c.disconnect())}))}));c.observe(document.head,{childList:!0});const p=e=>{e.forEach((e=>{const t=(e=>{const t=e.__vueParentComponent?.props;return(t?.reply??t?.subReply)?.reply_control?.location??void 0})(e.element);if(void 0!==t){const i=e.element.querySelector(".reply-info>.reply-time")??e.element.querySelector(".sub-reply-info>.sub-reply-time");if(0===i.childElementCount){const e=document.createElement("span");e.style.marginLeft="5px",e.innerText=t,i.appendChild(e)}}}))},d=(0,e.defineComponentMetadata)({name:"ipShow",author:{name:"Light_Quanta",link:"https://github.com/LightQuanta"},displayName:"评论区IP属地显示",tags:[componentsTags.utils],entry:async()=>{const{forEachCommentItem:e}=await Promise.resolve().then(a.t.bind(a,206,23));e({added:e=>{2===i&&(p([e,...e.replies]),e.addEventListener("repliesUpdate",(e=>p(e.detail))))}})},description:{"zh-CN":"在评论区显示评论的IP属地信息"},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file +e.replace(t||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp|#\\d+);)?/g,(function(e,t){return t?e:{"<":"","&":"",'"':"",">":"","'":""}[e]})):""},t.prototype._trimHttpFix=function(e){return e?e.replace(/^http:/,""):""},t.prototype._webpFix=function(e,t){if(!e)return e;const i=e.match(/(.*\\.(jpg|jpeg|gif|png|bmp))(\\?.*)?/);let s=-1!==e.indexOf("/bfs/");return i&&"gif"!==i[2]&&"bmp"!==i[2]&&s?(s=t.w,e=t.h,e=s&&e?`@${s}w_${e}h`:"@",t=i[3]||"",this.isWebp?`${i[1]+e}.webp${t}`:`${i[1]+e}.${i[2]}${t}`):e},t.prototype._createListCon=o,t.prototype._createSubReplyItem=r):(t.prototype._createListCon=s,t.prototype._createSubReplyItem=n),i=1,c.disconnect())}))}));c.observe(document.head,{childList:!0});const p=e=>{e.forEach((e=>{const t=(e=>{const t=e.__vueParentComponent?.props;return(t?.reply??t?.subReply)?.reply_control?.location??void 0})(e.element);if(void 0!==t){const i=e.element.querySelector(".reply-info>.reply-time")??e.element.querySelector(".sub-reply-info>.sub-reply-time");if(0===i.childElementCount){const e=document.createElement("span");e.style.marginLeft="5px",e.innerText=t,i.appendChild(e)}}}))},d=(0,e.defineComponentMetadata)({name:"ipShow",author:{name:"Light_Quanta",link:"https://github.com/LightQuanta"},displayName:"评论区IP属地显示",tags:[componentsTags.utils],entry:async()=>{const{forEachCommentItem:e}=await Promise.resolve().then(a.t.bind(a,206,23));e({added:e=>{2===i&&(p([e,...e.replies]),e.addEventListener("repliesUpdate",(e=>p(e.detail))))}})},description:{"zh-CN":"在评论区显示评论的IP属地信息"},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/keymap.js b/registry/dist/components/utils/keymap.js index 586498d78..ffc82d021 100644 --- a/registry/dist/components/utils/keymap.js +++ b/registry/dist/components/utils/keymap.js @@ -6,7 +6,7 @@ t.i=function(e,n,i){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";n.d(t,{Nw:()=>g,vN:()=>p,$j:()=>l,kW:()=>u});const i=coreApis.componentApis.video.playerAgent;var o=n(986),r=n(153),s=n(605);const a=e=>({...lodash.pick(e,"ctrlKey","shiftKey","altKey","metaKey"),bubbles:!0,cancelable:!0,view:unsafeWindow}),l=(e,t)=>{const{event:n}=t,i=a(n);if("string"==typeof e){const t=dq(e);if(!t)return!1;(0,s.simulateClick)(t,i)}else{if(!e)return!1;(0,s.simulateClick)(e,i)}return!0},d=e=>t=>l(e,t),p=e=>()=>i.playerAgent.changeTime("number"==typeof e?e:e());let c;const u=async(e,t)=>{let n=dq(".keymap-tip");if(!n){const o=await i.playerAgent.query.playerArea();if(!o)return;o.insertAdjacentHTML("afterbegin",`\n
\n \n
${e}
\n
\n `),n=dq(".keymap-tip")}n.innerHTML=e;const o=dq(".keymap-tip-container"),r=dq(o,".mdi");r.classList.remove(...r.classList.values()),r.classList.add("mdi",t),c&&clearTimeout(c),o.classList.add("show"),c=window.setTimeout((()=>{o.classList.remove("show")}),2e3)},m={fullscreen:{displayName:"全屏",run:()=>i.playerAgent.fullscreen()},webFullscreen:{displayName:"网页全屏",run:()=>i.playerAgent.webFullscreen()},wideScreen:{displayName:"宽屏",run:()=>i.playerAgent.widescreen()},volumeUp:{displayName:"增加音量",run:()=>{const e=(0,o.getComponentSettings)("keymap").options.volumeStep,t=i.playerAgent.changeVolume(e);return lodash.isNil(t)?t:(u(`${t}%`,"mdi-volume-high"),!0)}},volumeDown:{displayName:"降低音量",run:()=>{const e=(0,o.getComponentSettings)("keymap").options.volumeStep,t=i.playerAgent.changeVolume(-e);return lodash.isNil(t)?t:(0===t?u("静音","mdi-volume-off"):u(`${t}%`,"mdi-volume-high"),!0)}},mute:{displayName:"静音",run:()=>{const e=i.playerAgent.toggleMute();return lodash.isNil(e)?e:(i.playerAgent.isMute()?u("已静音","mdi-volume-off"):u("已取消静音","mdi-volume-high"),!0)}},pictureInPicture:{displayName:"画中画",run:()=>i.playerAgent.togglePip()},coin:{displayName:"投币",run:d(".video-toolbar .coin, .tool-bar .coin-info, .video-toolbar-module .coin-box, .play-options-ul > li:nth-child(2), .video-toolbar-v1 .coin, .toolbar .coin")},favorite:{displayName:"收藏",run:d(".video-toolbar .collect, .video-toolbar-module .fav-box, .play-options-ul > li:nth-child(3), .video-toolbar-v1 .collect")},pause:{displayName:"暂停/播放",run:()=>i.playerAgent.togglePlay()},like:{displayName:"点赞",run:(()=>{let e=!0;return t=>{const{event:n}=t,i=dq(".video-toolbar .like, .tool-bar .like-info, .video-toolbar-v1 .like, .toolbar .like");if(!i)return!1;n.preventDefault();const o=(e,t)=>{const n=a(t),o=new MouseEvent(e,n);i.dispatchEvent(o)};return e=!0,setTimeout((()=>e=!1),200),o("mousedown",n),document.body.addEventListener("keyup",(t=>{t.preventDefault(),o("mouseup",t),e&&o("click",t)}),{once:!0}),!0}})()},danmaku:{displayName:"弹幕开关",run:()=>i.playerAgent.toggleDanmaku()},longJumpBackward:{displayName:"长倒退",run:()=>i.playerAgent.changeTime(-(0,o.getComponentSettings)("keymap").options.longJumpSeconds)},longJumpForward:{displayName:"长前进",run:()=>i.playerAgent.changeTime((0,o.getComponentSettings)("keymap").options.longJumpSeconds)},jumpBackward:{displayName:"倒退",run:()=>i.playerAgent.changeTime(-5)},jumpForward:{displayName:"前进",run:()=>i.playerAgent.changeTime(5)},playerMenu:{displayName:"播放器菜单",run:()=>{const e=i.playerAgent.query.video.container.sync();if(!e)return null;const t=e.getBoundingClientRect();return e.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:unsafeWindow,button:2,buttons:0,clientX:t.x+t.width/2-88.325,clientY:t.y+t.height/2-97})),!0}},seekBegin:{displayName:"回开头",run:()=>i.playerAgent.seek(0)},sendComment:{displayName:"发送评论",ignoreTyping:!1,run:()=>{const{activeElement:e}=document;if(!(e&&e instanceof HTMLTextAreaElement))return null;const t=e.nextElementSibling??e.parentElement.nextElementSibling;return t?(t.click(),!0):null}}},[g]=(0,r.registerAndGetData)("keymap.actions",m)},899:(e,t,n)=>{"use strict";n.d(t,{Wb:()=>o,um:()=>r});var i=n(153);const o={fullscreen:"f",webFullscreen:"w",wideScreen:"t",volumeUp:"arrowUp",volumeDown:"arrowDown",mute:"m",pictureInPicture:"p",coin:"c",favorite:"s",pause:"space",like:"l",playerMenu:"`",longJumpForward:"j",longJumpBackward:"shift j",jumpBackward:"",jumpForward:"",danmaku:"d",seekBegin:"0",sendComment:"ctrl enter"},[,r]=(0,i.registerAndGetData)("keymap.presets",o,{Default:{},YouTube:{like:"",pause:"space k",longJumpForward:"l",longJumpBackward:"j",seekBegin:"0 Home"},HTML5Player:{coin:"shift c",danmaku:"shift d",fullscreen:"enter",webFullscreen:"shift enter",pictureInPicture:"shift p",longJumpBackward:"ctrl arrowLeft",longJumpForward:"ctrl arrowRight"},PotPlayer:{coin:"shift c",danmaku:"shift d",fullscreen:"enter",webFullscreen:"6",longJumpBackward:"ctrl arrowLeft",longJumpForward:"ctrl arrowRight",seekBegin:"backspace"}})},799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadKeymapSettings:()=>r,toggleKeymapSettings:()=>s});var i=n(605);let o;const r=async e=>{if(o)return;const t=await Promise.resolve().then(n.bind(n,461)).then((e=>e.default));o=(0,i.mountVueComponent)(t),e&&(o.triggerElement=e),document.body.insertAdjacentElement("beforeend",o.$el)},s=async e=>{o||await r(e),o.popupOpen=!o.popupOpen}},581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"keymap-extra-options"},[t("VButton",{ref:"button",staticClass:"keymap-settings-button",on:{mouseover:function(t){return e.loadSettings()},click:function(t){return e.toggleSettings()}}},[t("VIcon",{attrs:{icon:"mdi-keyboard-settings-outline",size:18}}),e._v("\n 快捷键设置\n ")],1)],1)};i._withStripped=!0;var o=n(648),r=n(799);const s=Vue.extend({components:{VButton:o.VButton,VIcon:o.VIcon},data:()=>({popupOpen:!1}),methods:{async loadSettings(){await(0,r.loadKeymapSettings)(this.$refs.button)},async toggleSettings(){await(0,r.toggleKeymapSettings)(this.$refs.button)}}});var a=n(332),l=n.n(a),d=n(15),p=n.n(d),c={insert:"head",singleton:!1};l()(p(),c);p().locals;const u=(0,n(499).Z)(s,i,[],!1,null,null,null).exports},461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"keymap-settings-popup be-settings-extra-options",attrs:{fixed:"","trigger-element":e.triggerElement},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"keymap-settings"},[t("div",{staticClass:"keymap-settings-header"},[t("div",{staticClass:"keymap-settings-header-title"},[t("VIcon",{attrs:{icon:"mdi-keyboard-settings-outline"}}),e._v("\n 快捷键设置\n ")],1),e._v(" "),t("a",{staticClass:"keymap-settings-header-help",attrs:{href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/registry/lib/components/utils/keymap/help.md",target:"_blank",title:"查看帮助"}},[t("VIcon",{attrs:{size:18,icon:"mdi-help-circle-outline"}})],1),e._v(" "),t("div",{staticClass:"keymap-settings-header-close",attrs:{title:"关闭"}},[t("VIcon",{attrs:{size:18,icon:"close"},on:{click:function(t){e.popupOpen=!1}}})],1)]),e._v(" "),t("div",{staticClass:"keymap-settings-content"},[t("div",{staticClass:"keymap-settings-grid"},[t("div",{staticClass:"grid-header"},[t("div",{staticClass:"header-name"},[e._v("动作")]),e._v(" "),t("div",{staticClass:"header-default-binding"},[e._v("默认按键")]),e._v(" "),t("div",{staticClass:"header-preset-binding"},[t("VDropdown",{attrs:{items:e.presetOptions,"key-mapper":e=>e},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedPreset,callback:function(t){e.selectedPreset=t},expression:"selectedPreset"}})],1),e._v(" "),t("div",{staticClass:"header-custom-binding"},[e._v("自定义按键")])]),e._v(" "),e._l(e.rows,(function(n){return t("KeymapSettingsRow",{key:n.name,attrs:{row:n,"selected-preset":e.selectedPreset}})}))],2)])])])};i._withStripped=!0;var o=n(986),r=n(648),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"grid-row"},[t("div",{staticClass:"row-name",attrs:{title:e.row.name}},[e._v("\n "+e._s(e.row.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"row-default-binding row-binding",class:{overwritten:e.isOverwrittern(e.presets[e.selectedPreset],e.customKeyBindings),"not-set":void 0===e.presetBase[e.row.name]}},[e._v("\n "+e._s(e.showReadonlyKey(e.presetBase))+"\n ")]),e._v(" "),t("div",{staticClass:"row-preset-binding row-binding",class:{overwritten:e.isOverwrittern(e.customKeyBindings),"not-set":void 0===e.presets[e.selectedPreset][e.row.name]}},[e._v("\n "+e._s(e.showReadonlyKey(e.presets[e.selectedPreset]))+"\n ")]),e._v(" "),t("div",{staticClass:"row-custom-binding row-binding"},[e.editable?t("div",{staticClass:"custom-binding-edit"},[t("TextBox",{ref:"customBindingTextBox",attrs:{placeholder:"禁用","change-on-blur":"",text:e.customKeyBindings[e.row.name]},on:{change:e.updateCustomBinding}}),e._v(" "),t("VButton",{attrs:{type:"transparent",title:"删除自定义键位"},on:{click:function(t){return e.removeCustomBinding()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}})],1)],1):t("div",{staticClass:"custom-binding-add"},[t("VButton",{attrs:{type:"transparent",title:"添加自定义键位"},on:{click:function(t){return e.addCustomBinding()}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:16}})],1)],1)])])};s._withStripped=!0;var a=n(899);const l=(0,o.getComponentSettings)("keymap").options,d=Vue.extend({components:{TextBox:r.TextBox,VButton:r.VButton,VIcon:r.VIcon},props:{row:{type:Object,required:!0},selectedPreset:{type:String,required:!0}},data:()=>({presets:a.um,presetBase:a.Wb,customKeyBindings:l.customKeyBindings,editable:!1}),created(){this.checkEditable()},methods:{checkEditable(){this.editable=void 0!==this.customKeyBindings[this.row.name]},showReadonlyKey(e){const{name:t}=this.row,n=e[t];return void 0===n?"继承":""===n?"禁用":n},isOverwrittern(){const{name:e}=this.row;for(var t=arguments.length,n=new Array(t),i=0;ivoid 0!==t[e]))},async addCustomBinding(){const{name:e}=this.row;this.customKeyBindings[e]="",this.checkEditable(),await this.$nextTick(),this.$refs.customBindingTextBox.focus()},removeCustomBinding(){const{name:e}=this.row;delete this.customKeyBindings[e],this.checkEditable()},updateCustomBinding(e){console.log("update",e);const{name:t}=this.row;this.customKeyBindings[t]=e}}});var p=n(332),c=n.n(p),u=n(724),m=n.n(u),g={insert:"head",singleton:!1};c()(m(),g);m().locals;var y=n(499);const f=(0,y.Z)(d,s,[],!1,null,null,null).exports;var b=n(984);const h=(0,o.getComponentSettings)("keymap").options;console.log(a.um,b.Nw,h.preset,h.customKeyBindings);const v=Vue.extend({components:{VIcon:r.VIcon,VDropdown:r.VDropdown,VPopup:r.VPopup,KeymapSettingsRow:f},props:{triggerElement:{type:HTMLElement,default:null}},data:()=>({popupOpen:!1,actions:b.Nw,presets:a.um,customKeyBindings:h.customKeyBindings}),computed:{selectedPreset:{get:()=>h.preset,set(e){h.preset=e}},rows(){return Object.entries(this.actions).map((e=>{let[t,n]=e;return{name:t,...n}}))},presetOptions(){return Object.keys(this.presets)}}});var w=n(297),k=n.n(w),x={insert:"head",singleton:!1};c()(k(),x);k().locals;const _=(0,y.Z)(v,i,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function i(e,t,n,i,o,r,s,a){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=l):o&&(l=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var p=d.render;d.render=function(e,t){return l.call(t),p(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}n.d(t,{Z:()=>i})},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( +var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a{"use strict";n.d(t,{Nw:()=>g,vN:()=>p,$j:()=>l,kW:()=>u});const i=coreApis.componentApis.video.playerAgent;var o=n(986),r=n(153),s=n(605);const a=e=>({...lodash.pick(e,"ctrlKey","shiftKey","altKey","metaKey"),bubbles:!0,cancelable:!0,view:unsafeWindow}),l=(e,t)=>{const{event:n}=t,i=a(n);if("string"==typeof e){const t=dq(e);if(!t)return!1;(0,s.simulateClick)(t,i)}else{if(!e)return!1;(0,s.simulateClick)(e,i)}return!0},d=e=>t=>l(e,t),p=e=>()=>i.playerAgent.changeTime("number"==typeof e?e:e());let c;const u=async(e,t)=>{let n=dq(".keymap-tip");if(!n){const o=await i.playerAgent.query.playerArea();if(!o)return;o.insertAdjacentHTML("afterbegin",`\n
\n \n
${e}
\n
\n `),n=dq(".keymap-tip")}n.innerHTML=e;const o=dq(".keymap-tip-container"),r=dq(o,".mdi");r.classList.remove(...r.classList.values()),r.classList.add("mdi",t),c&&clearTimeout(c),o.classList.add("show"),c=window.setTimeout((()=>{o.classList.remove("show")}),2e3)},m={fullscreen:{displayName:"全屏",run:()=>i.playerAgent.fullscreen()},webFullscreen:{displayName:"网页全屏",run:()=>i.playerAgent.webFullscreen()},wideScreen:{displayName:"宽屏",run:()=>i.playerAgent.widescreen()},volumeUp:{displayName:"增加音量",run:()=>{const e=(0,o.getComponentSettings)("keymap").options.volumeStep,t=i.playerAgent.changeVolume(e);return lodash.isNil(t)?t:(u(`${t}%`,"mdi-volume-high"),!0)}},volumeDown:{displayName:"降低音量",run:()=>{const e=(0,o.getComponentSettings)("keymap").options.volumeStep,t=i.playerAgent.changeVolume(-e);return lodash.isNil(t)?t:(0===t?u("静音","mdi-volume-off"):u(`${t}%`,"mdi-volume-high"),!0)}},mute:{displayName:"静音",run:()=>{const e=i.playerAgent.toggleMute();return lodash.isNil(e)?e:(i.playerAgent.isMute()?u("已静音","mdi-volume-off"):u("已取消静音","mdi-volume-high"),!0)}},pictureInPicture:{displayName:"画中画",run:()=>i.playerAgent.togglePip()},coin:{displayName:"投币",run:d(".video-toolbar .coin, .tool-bar .coin-info, .video-toolbar-module .coin-box, .play-options-ul > li:nth-child(2), .video-toolbar-v1 .coin, .toolbar .coin")},favorite:{displayName:"收藏",run:d(".video-toolbar .collect, .video-toolbar-module .fav-box, .play-options-ul > li:nth-child(3), .video-toolbar-v1 .collect")},pause:{displayName:"暂停/播放",run:()=>i.playerAgent.togglePlay()},like:{displayName:"点赞",run:(()=>{let e=!0;return t=>{const{event:n}=t,i=dq(".video-toolbar .like, .tool-bar .like-info, .video-toolbar-v1 .like, .toolbar .like");if(!i)return!1;n.preventDefault();const o=(e,t)=>{const n=a(t),o=new MouseEvent(e,n);i.dispatchEvent(o)};return e=!0,setTimeout((()=>e=!1),200),o("mousedown",n),document.body.addEventListener("keyup",(t=>{t.preventDefault(),o("mouseup",t),e&&o("click",t)}),{once:!0}),!0}})()},danmaku:{displayName:"弹幕开关",run:()=>i.playerAgent.toggleDanmaku()},longJumpBackward:{displayName:"长倒退",run:()=>i.playerAgent.changeTime(-(0,o.getComponentSettings)("keymap").options.longJumpSeconds)},longJumpForward:{displayName:"长前进",run:()=>i.playerAgent.changeTime((0,o.getComponentSettings)("keymap").options.longJumpSeconds)},jumpBackward:{displayName:"倒退",run:()=>i.playerAgent.changeTime(-5)},jumpForward:{displayName:"前进",run:()=>i.playerAgent.changeTime(5)},playerMenu:{displayName:"播放器菜单",run:()=>{const e=i.playerAgent.query.video.container.sync();if(!e)return null;const t=e.getBoundingClientRect();return e.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:unsafeWindow,button:2,buttons:0,clientX:t.x+t.width/2-88.325,clientY:t.y+t.height/2-97})),!0}},seekBegin:{displayName:"回开头",run:()=>i.playerAgent.seek(0)},sendComment:{displayName:"发送评论",ignoreTyping:!1,run:()=>{const{activeElement:e}=document;if(!(e&&e instanceof HTMLTextAreaElement))return null;const t=(()=>{const t=[()=>e.nextElementSibling,()=>e.parentElement.nextElementSibling,()=>dq(".reply-box:focus-within .reply-box-send")].find((e=>null!==e()));return t?t():null})();return t?(t.click(),!0):null}}},[g]=(0,r.registerAndGetData)("keymap.actions",m)},899:(e,t,n)=>{"use strict";n.d(t,{Wb:()=>o,um:()=>r});var i=n(153);const o={fullscreen:"f",webFullscreen:"w",wideScreen:"t",volumeUp:"arrowUp",volumeDown:"arrowDown",mute:"m",pictureInPicture:"p",coin:"c",favorite:"s",pause:"space",like:"l",playerMenu:"`",longJumpForward:"j",longJumpBackward:"shift j",jumpBackward:"",jumpForward:"",danmaku:"d",seekBegin:"0",sendComment:"ctrl enter"},[,r]=(0,i.registerAndGetData)("keymap.presets",o,{Default:{},YouTube:{like:"",pause:"space k",longJumpForward:"l",longJumpBackward:"j",seekBegin:"0 Home"},HTML5Player:{coin:"shift c",danmaku:"shift d",fullscreen:"enter",webFullscreen:"shift enter",pictureInPicture:"shift p",longJumpBackward:"ctrl arrowLeft",longJumpForward:"ctrl arrowRight"},PotPlayer:{coin:"shift c",danmaku:"shift d",fullscreen:"enter",webFullscreen:"6",longJumpBackward:"ctrl arrowLeft",longJumpForward:"ctrl arrowRight",seekBegin:"backspace"}})},799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadKeymapSettings:()=>r,toggleKeymapSettings:()=>s});var i=n(605);let o;const r=async e=>{if(o)return;const t=await Promise.resolve().then(n.bind(n,461)).then((e=>e.default));o=(0,i.mountVueComponent)(t),e&&(o.triggerElement=e),document.body.insertAdjacentElement("beforeend",o.$el)},s=async e=>{o||await r(e),o.popupOpen=!o.popupOpen}},581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"keymap-extra-options"},[t("VButton",{ref:"button",staticClass:"keymap-settings-button",on:{mouseover:function(t){return e.loadSettings()},click:function(t){return e.toggleSettings()}}},[t("VIcon",{attrs:{icon:"mdi-keyboard-settings-outline",size:18}}),e._v("\n 快捷键设置\n ")],1)],1)};i._withStripped=!0;var o=n(648),r=n(799);const s=Vue.extend({components:{VButton:o.VButton,VIcon:o.VIcon},data:()=>({popupOpen:!1}),methods:{async loadSettings(){await(0,r.loadKeymapSettings)(this.$refs.button)},async toggleSettings(){await(0,r.toggleKeymapSettings)(this.$refs.button)}}});var a=n(332),l=n.n(a),d=n(15),p=n.n(d),c={insert:"head",singleton:!1};l()(p(),c);p().locals;const u=(0,n(499).Z)(s,i,[],!1,null,null,null).exports},461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"keymap-settings-popup be-settings-extra-options",attrs:{fixed:"","trigger-element":e.triggerElement},model:{value:e.popupOpen,callback:function(t){e.popupOpen=t},expression:"popupOpen"}},[t("div",{staticClass:"keymap-settings"},[t("div",{staticClass:"keymap-settings-header"},[t("div",{staticClass:"keymap-settings-header-title"},[t("VIcon",{attrs:{icon:"mdi-keyboard-settings-outline"}}),e._v("\n 快捷键设置\n ")],1),e._v(" "),t("a",{staticClass:"keymap-settings-header-help",attrs:{href:"https://github.com/the1812/Bilibili-Evolved/blob/preview/registry/lib/components/utils/keymap/help.md",target:"_blank",title:"查看帮助"}},[t("VIcon",{attrs:{size:18,icon:"mdi-help-circle-outline"}})],1),e._v(" "),t("div",{staticClass:"keymap-settings-header-close",attrs:{title:"关闭"}},[t("VIcon",{attrs:{size:18,icon:"close"},on:{click:function(t){e.popupOpen=!1}}})],1)]),e._v(" "),t("div",{staticClass:"keymap-settings-content"},[t("div",{staticClass:"keymap-settings-grid"},[t("div",{staticClass:"grid-header"},[t("div",{staticClass:"header-name"},[e._v("动作")]),e._v(" "),t("div",{staticClass:"header-default-binding"},[e._v("默认按键")]),e._v(" "),t("div",{staticClass:"header-preset-binding"},[t("VDropdown",{attrs:{items:e.presetOptions,"key-mapper":e=>e},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.selectedPreset,callback:function(t){e.selectedPreset=t},expression:"selectedPreset"}})],1),e._v(" "),t("div",{staticClass:"header-custom-binding"},[e._v("自定义按键")])]),e._v(" "),e._l(e.rows,(function(n){return t("KeymapSettingsRow",{key:n.name,attrs:{row:n,"selected-preset":e.selectedPreset}})}))],2)])])])};i._withStripped=!0;var o=n(986),r=n(648),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"grid-row"},[t("div",{staticClass:"row-name",attrs:{title:e.row.name}},[e._v("\n "+e._s(e.row.displayName)+"\n ")]),e._v(" "),t("div",{staticClass:"row-default-binding row-binding",class:{overwritten:e.isOverwrittern(e.presets[e.selectedPreset],e.customKeyBindings),"not-set":void 0===e.presetBase[e.row.name]}},[e._v("\n "+e._s(e.showReadonlyKey(e.presetBase))+"\n ")]),e._v(" "),t("div",{staticClass:"row-preset-binding row-binding",class:{overwritten:e.isOverwrittern(e.customKeyBindings),"not-set":void 0===e.presets[e.selectedPreset][e.row.name]}},[e._v("\n "+e._s(e.showReadonlyKey(e.presets[e.selectedPreset]))+"\n ")]),e._v(" "),t("div",{staticClass:"row-custom-binding row-binding"},[e.editable?t("div",{staticClass:"custom-binding-edit"},[t("TextBox",{ref:"customBindingTextBox",attrs:{placeholder:"禁用","change-on-blur":"",text:e.customKeyBindings[e.row.name]},on:{change:e.updateCustomBinding}}),e._v(" "),t("VButton",{attrs:{type:"transparent",title:"删除自定义键位"},on:{click:function(t){return e.removeCustomBinding()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}})],1)],1):t("div",{staticClass:"custom-binding-add"},[t("VButton",{attrs:{type:"transparent",title:"添加自定义键位"},on:{click:function(t){return e.addCustomBinding()}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:16}})],1)],1)])])};s._withStripped=!0;var a=n(899);const l=(0,o.getComponentSettings)("keymap").options,d=Vue.extend({components:{TextBox:r.TextBox,VButton:r.VButton,VIcon:r.VIcon},props:{row:{type:Object,required:!0},selectedPreset:{type:String,required:!0}},data:()=>({presets:a.um,presetBase:a.Wb,customKeyBindings:l.customKeyBindings,editable:!1}),created(){this.checkEditable()},methods:{checkEditable(){this.editable=void 0!==this.customKeyBindings[this.row.name]},showReadonlyKey(e){const{name:t}=this.row,n=e[t];return void 0===n?"继承":""===n?"禁用":n},isOverwrittern(){const{name:e}=this.row;for(var t=arguments.length,n=new Array(t),i=0;ivoid 0!==t[e]))},async addCustomBinding(){const{name:e}=this.row;this.customKeyBindings[e]="",this.checkEditable(),await this.$nextTick(),this.$refs.customBindingTextBox.focus()},removeCustomBinding(){const{name:e}=this.row;delete this.customKeyBindings[e],this.checkEditable()},updateCustomBinding(e){console.log("update",e);const{name:t}=this.row;this.customKeyBindings[t]=e}}});var p=n(332),c=n.n(p),u=n(724),m=n.n(u),g={insert:"head",singleton:!1};c()(m(),g);m().locals;var y=n(499);const f=(0,y.Z)(d,s,[],!1,null,null,null).exports;var b=n(984);const h=(0,o.getComponentSettings)("keymap").options;console.log(a.um,b.Nw,h.preset,h.customKeyBindings);const v=Vue.extend({components:{VIcon:r.VIcon,VDropdown:r.VDropdown,VPopup:r.VPopup,KeymapSettingsRow:f},props:{triggerElement:{type:HTMLElement,default:null}},data:()=>({popupOpen:!1,actions:b.Nw,presets:a.um,customKeyBindings:h.customKeyBindings}),computed:{selectedPreset:{get:()=>h.preset,set(e){h.preset=e}},rows(){return Object.entries(this.actions).map((e=>{let[t,n]=e;return{name:t,...n}}))},presetOptions(){return Object.keys(this.presets)}}});var w=n(297),k=n.n(w),x={insert:"head",singleton:!1};c()(k(),x);k().locals;const _=(0,y.Z)(v,i,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function i(e,t,n,i,o,r,s,a){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=l):o&&(l=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var p=d.render;d.render=function(e,t){return l.call(t),p(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}n.d(t,{Z:()=>i})},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var i=n(241);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},153:e=>{"use strict";e.exports=coreApis.pluginApis.data},986:e=>{"use strict";e.exports=coreApis.settings},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>y});const e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.define;var n=o(986),i=o(984),s=o(605);const a=coreApis.utils.urls,l=["shift","alt","ctrl","meta"],d=lodash.once((e=>{const t=a.watchlaterUrls.some((e=>(0,s.matchUrlPattern)(e))),n=a.mediaListUrls.some((e=>(0,s.matchUrlPattern)(e))),o={enable:!0,bindings:e};return document.body.addEventListener("keydown",(e=>{o.enable&&o.bindings.forEach((o=>{if(0===o.keys.length)return;if(!1!==o.action.ignoreTyping&&(0,s.isTyping)())return;const r=e.key.toLowerCase(),a=dq(".bilibili-player-sphere-control");if(null!==a&&"none"!==a.style.display&&["w","a","s","d"].includes(r))return;if(l.some((t=>{const n=o.keys.includes(t);if(o.keys.includes(`[${t}]`))return!1;return n!==e[`${t}Key`]})))return;const d=o.keys.filter((e=>!l.includes(e.toLowerCase()))).map((e=>e.toLowerCase()));if(!(d.includes(e.key.toLowerCase())||d.includes(e.code.toLowerCase())))return;const p=o.action.run({binding:o,isWatchlater:t,isMediaList:n,event:e,clickElement:i.$j,changeVideoTime:i.vN,showTip:i.kW}),c=!lodash.isNil(p);(o.action.prevent??c)&&(e.stopPropagation(),e.preventDefault())}))})),o}));var p=o(899);const c=(0,t.defineOptionsMetadata)({longJumpSeconds:{defaultValue:85,displayName:"长跳跃秒数",validator:(0,s.getNumberValidator)(1)},volumeStep:{defaultValue:10,displayName:"音量调整幅度",validator:(0,s.getNumberValidator)(1,100)},customKeyBindings:{defaultValue:{},displayName:"自定义键位",hidden:!0},preset:{defaultValue:"Default",displayName:"预设",hidden:!0}});let u=null;const m=e=>Object.entries(e).map((e=>{let[t,n]=e;return o=t,{keys:n.split(" ").filter((e=>""!==e)),action:i.Nw[o]};var o})),g=(0,e.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,364,23))),(async e=>{let{settings:t}=e;const i=()=>{const e=t.options.preset,n=p.um[e]||{},i=m({...p.Wb,...n,...t.options.customKeyBindings});u?u.bindings=i:u=d(i)};(0,n.addComponentListener)("keymap.preset",i,!0),(0,n.addComponentListener)("keymap.customKeyBindings",i)})),y=(0,t.defineComponentMetadata)({name:"keymap",displayName:"快捷键扩展",tags:[componentsTags.video,componentsTags.utils],entry:g,unload:()=>{u&&(u.enable=!1)},reload:()=>{u&&(u.enable=!0)},description:{"zh-CN":"为脚本的功能和 b 站的功能启用键盘快捷键支持, 快捷键列表可在`快捷键设置`中查看和配置."},extraOptions:()=>Promise.resolve().then(o.bind(o,581)).then((e=>e.default)),options:c,plugin:{displayName:"快捷键扩展 - 搜索支持",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"keymapSettings",getActions:async()=>[{name:"快捷键扩展设置",description:"Keymap Settings",icon:"mdi-keyboard-settings-outline",action:async()=>{const{toggleKeymapSettings:e}=await Promise.resolve().then(o.bind(o,799));e()}}]})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var i=n(241);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},153:e=>{"use strict";e.exports=coreApis.pluginApis.data},986:e=>{"use strict";e.exports=coreApis.settings},648:e=>{"use strict";e.exports=coreApis.ui},605:e=>{"use strict";e.exports=coreApis.utils}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>y});const e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.define;var n=o(986),i=o(984),s=o(605);const a=coreApis.utils.urls,l=["shift","alt","ctrl","meta"],d=lodash.once((e=>{const t=a.watchlaterUrls.some((e=>(0,s.matchUrlPattern)(e))),n=a.mediaListUrls.some((e=>(0,s.matchUrlPattern)(e))),o={enable:!0,bindings:e};return document.body.addEventListener("keydown",(e=>{o.enable&&o.bindings.forEach((o=>{if(0===o.keys.length)return;if(!1!==o.action.ignoreTyping&&(0,s.isTyping)())return;const r=e.key.toLowerCase(),a=dq(".bilibili-player-sphere-control");if(null!==a&&"none"!==a.style.display&&["w","a","s","d"].includes(r))return;if(l.some((t=>{const n=o.keys.includes(t);if(o.keys.includes(`[${t}]`))return!1;return n!==e[`${t}Key`]})))return;const d=o.keys.filter((e=>!l.includes(e.toLowerCase()))).map((e=>e.toLowerCase()));if(!(d.includes(e.key.toLowerCase())||d.includes(e.code.toLowerCase())))return;const p=o.action.run({binding:o,isWatchlater:t,isMediaList:n,event:e,clickElement:i.$j,changeVideoTime:i.vN,showTip:i.kW}),c=!lodash.isNil(p);(o.action.prevent??c)&&(e.stopPropagation(),e.preventDefault())}))})),o}));var p=o(899);const c=(0,t.defineOptionsMetadata)({longJumpSeconds:{defaultValue:85,displayName:"长跳跃秒数",validator:(0,s.getNumberValidator)(1)},volumeStep:{defaultValue:10,displayName:"音量调整幅度",validator:(0,s.getNumberValidator)(1,100)},customKeyBindings:{defaultValue:{},displayName:"自定义键位",hidden:!0},preset:{defaultValue:"Default",displayName:"预设",hidden:!0}});let u=null;const m=e=>Object.entries(e).map((e=>{let[t,n]=e;return o=t,{keys:n.split(" ").filter((e=>""!==e)),action:i.Nw[o]};var o})),g=(0,e.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,364,23))),(async e=>{let{settings:t}=e;const i=()=>{const e=t.options.preset,n=p.um[e]||{},i=m({...p.Wb,...n,...t.options.customKeyBindings});u?u.bindings=i:u=d(i)};(0,n.addComponentListener)("keymap.preset",i,!0),(0,n.addComponentListener)("keymap.customKeyBindings",i)})),y=(0,t.defineComponentMetadata)({name:"keymap",displayName:"快捷键扩展",tags:[componentsTags.video,componentsTags.utils],entry:g,unload:()=>{u&&(u.enable=!1)},reload:()=>{u&&(u.enable=!0)},description:{"zh-CN":"为脚本的功能和 b 站的功能启用键盘快捷键支持, 快捷键列表可在`快捷键设置`中查看和配置."},extraOptions:()=>Promise.resolve().then(o.bind(o,581)).then((e=>e.default)),options:c,plugin:{displayName:"快捷键扩展 - 搜索支持",setup:e=>{let{addData:t}=e;t("launchBar.actions",(e=>{e.push({name:"keymapSettings",getActions:async()=>[{name:"快捷键扩展设置",description:"Keymap Settings",icon:"mdi-keyboard-settings-outline",action:async()=>{const{toggleKeymapSettings:e}=await Promise.resolve().then(o.bind(o,799));e()}}]})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/remove-promotions.js b/registry/dist/components/utils/remove-promotions.js index 48ab40cfa..2d5bdd4a7 100644 --- a/registry/dist/components/utils/remove-promotions.js +++ b/registry/dist/components/utils/remove-promotions.js @@ -4,6 +4,6 @@ e.exports=function(e){var n=[];return n.toString=function(){return this.map((fun // eslint-disable-next-line func-names n.i=function(e,o,t){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign -e=[[null,e,""]]);var r={};if(t)for(var a=0;a{var t=o(922);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()},451:e=>{function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=()=>[],n.resolve=n,n.id=451,e.exports=n},322:e=>{"use strict";e.exports='删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \\`占位文本\\` 选项.\n\n- \\`占位文本\\`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.\n- \\`保留活动横幅\\`: 保留视频页面的活动横幅.\n'},986:e=>{"use strict";e.exports=coreApis.settings},200:e=>{"use strict";e.exports=coreApis.spinQuery}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={id:e,exports:{}};return o[e](a,a.exports,r),a.exports}n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,t){if(1&t&&(o=this(o)),8&t)return o;if("object"==typeof o&&o){if(4&t&&o.__esModule)return o;if(16&t&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var s=2&t&&o;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(a,i),a},r.d=(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"removePromotions",displayName:"删除广告",entry:async e=>{let{settings:n,metadata:o}=e;const{addComponentListener:t}=await Promise.resolve().then(r.t.bind(r,986,23));if("https://www.bilibili.com/"===document.URL.replace(window.location.search,"")){const{selectAll:e,select:o}=await Promise.resolve().then(r.t.bind(r,200,23));o(".eva-extension-area").then((e=>{e&&(e.parentElement.style.margin="12px")})),e(".gg-pic").then((e=>{0!==e.length&&e.forEach((e=>{const o=e.parentElement;o.style.display="none";const t=[...o.parentElement.childNodes].indexOf(o)+1,r=o.parentElement.parentElement.querySelector(`.pic li:nth-child(${t})`);if(r){r.style.display="flex";const e=r.querySelector("a:not(.more-text)");e.insertAdjacentHTML("afterend",`\n
${n.options.showPlaceholder?"🚫已屏蔽广告":""}
\n `),e.style.visibility="hidden";[r.querySelector("a.more-text"),r.querySelector("img")].forEach((e=>e.style.display="none"))}}))})),o(".focus-carousel.home-slide").then((e=>{e&&dqa(e,".gg-icon,.bypb-icon").map((e=>e.parentElement.parentElement)).forEach((e=>{e.style.display="none",e.insertAdjacentHTML("afterend",`\n
${n.options.showPlaceholder?"🚫已屏蔽广告":""}
\n `)}))}))}t(`${o.name}.preserveEventBanner`,(e=>{document.body.classList.toggle("preserve-event-banner",e)}),!0),t(`${o.name}.preserveFeedGoods`,(e=>{document.body.classList.toggle("preserve-feed-goods",e)}),!0),t(`${o.name}.preserveReplyNotice`,(e=>{document.body.classList.toggle("preserve-reply-notice",e)}),!0),t(`${o.name}.showPlaceholder`,(e=>{document.body.classList.toggle("promotion-show-placeholder",e)}),!0)},instantStyles:[{name:"removePromotions",style:()=>Promise.resolve().then(r.t.bind(r,975,23))}],tags:[componentsTags.utils],options:{showPlaceholder:{displayName:"占位文本",defaultValue:!0},preserveEventBanner:{displayName:"保留活动横幅",defaultValue:!1},preserveFeedGoods:{displayName:"保留动态商品推荐",defaultValue:!1}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(451);return{...Object.fromEntries(e.keys().map((n=>[n.match(/index\.(.+)\.md$/)[1],e(n)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,322,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var t=o(922);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()},451:e=>{function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=()=>[],n.resolve=n,n.id=451,e.exports=n},322:e=>{"use strict";e.exports='删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \\`占位文本\\` 选项.\n\n- \\`占位文本\\`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.\n- \\`保留活动横幅\\`: 保留视频页面的活动横幅.\n'},986:e=>{"use strict";e.exports=coreApis.settings},200:e=>{"use strict";e.exports=coreApis.spinQuery}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,t){if(1&t&&(o=this(o)),8&t)return o;if("object"==typeof o&&o){if(4&t&&o.__esModule)return o;if(16&t&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var a={};e=e||[null,n({}),n([]),n(n)];for(var s=2&t&&o;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(i,a),i},r.d=(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"removePromotions",displayName:"删除广告",entry:async e=>{let{settings:n,metadata:o}=e;const{addComponentListener:t}=await Promise.resolve().then(r.t.bind(r,986,23));if("https://www.bilibili.com/"===document.URL.replace(window.location.search,"")){const{selectAll:e,select:o}=await Promise.resolve().then(r.t.bind(r,200,23));o(".eva-extension-area").then((e=>{e&&(e.parentElement.style.margin="12px")})),e(".gg-pic").then((e=>{0!==e.length&&e.forEach((e=>{const o=e.parentElement;o.style.display="none";const t=[...o.parentElement.childNodes].indexOf(o)+1,r=o.parentElement.parentElement.querySelector(`.pic li:nth-child(${t})`);if(r){r.style.display="flex";const e=r.querySelector("a:not(.more-text)");e.insertAdjacentHTML("afterend",`\n
${n.options.showPlaceholder?"🚫已屏蔽广告":""}
\n `),e.style.visibility="hidden";[r.querySelector("a.more-text"),r.querySelector("img")].forEach((e=>e.style.display="none"))}}))})),o(".focus-carousel.home-slide").then((e=>{e&&dqa(e,".gg-icon,.bypb-icon").map((e=>e.parentElement.parentElement)).forEach((e=>{e.style.display="none",e.insertAdjacentHTML("afterend",`\n
${n.options.showPlaceholder?"🚫已屏蔽广告":""}
\n `)}))}))}t(`${o.name}.preserveEventBanner`,(e=>{document.body.classList.toggle("preserve-event-banner",e)}),!0),t(`${o.name}.preserveFeedGoods`,(e=>{document.body.classList.toggle("preserve-feed-goods",e)}),!0),t(`${o.name}.preserveReplyNotice`,(e=>{document.body.classList.toggle("preserve-reply-notice",e)}),!0),t(`${o.name}.showPlaceholder`,(e=>{document.body.classList.toggle("promotion-show-placeholder",e)}),!0)},instantStyles:[{name:"removePromotions",style:()=>Promise.resolve().then(r.t.bind(r,975,23))}],tags:[componentsTags.utils],options:{showPlaceholder:{displayName:"占位文本",defaultValue:!0},preserveEventBanner:{displayName:"保留活动横幅",defaultValue:!1},preserveFeedGoods:{displayName:"保留动态商品推荐",defaultValue:!1}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(451);return{...Object.fromEntries(e.keys().map((n=>[n.match(/index\.(.+)\.md$/)[1],e(n)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,322,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/subscribe-time-show.js b/registry/dist/components/utils/subscribe-time-show.js index 8f6fb5f63..7bc56e9b7 100644 --- a/registry/dist/components/utils/subscribe-time-show.js +++ b/registry/dist/components/utils/subscribe-time-show.js @@ -6,6 +6,6 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{var o=n(999);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},356:e=>{"use strict";e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(i,s),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.observer,n=coreApis.spinQuery;let o,s;const a=(0,e.defineComponentMetadata)({name:"subscribeTimeShow",author:{name:"Light_Quanta",link:"https://github.com/LightQuanta"},displayName:"关注时间显示",tags:[componentsTags.utils],urlInclude:[/^https:\/\/space\.bilibili\.com/],entry:async()=>{const e=await(0,n.select)(".s-space");(0,t.childList)(e,(async()=>{document.URL.match(/^https:\/\/space\.bilibili\.com\/\d+\/fans/)&&(o=await(0,n.select)(".relation-list"),(async e=>{const[n]=(0,t.childList)(e,(()=>{ +var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c{var o=n(999);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},356:e=>{"use strict";e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(i,s),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>c});const e=coreApis.componentApis.define,t=coreApis.observer,n=coreApis.spinQuery;let o,s;const c=(0,e.defineComponentMetadata)({name:"subscribeTimeShow",author:{name:"Light_Quanta",link:"https://github.com/LightQuanta"},displayName:"关注时间显示",tags:[componentsTags.utils],urlInclude:[/^https:\/\/space\.bilibili\.com/],entry:async()=>{const e=await(0,n.select)(".s-space");(0,t.childList)(e,(async()=>{document.URL.match(/^https:\/\/space\.bilibili\.com\/\d+\/fans/)&&(o=await(0,n.select)(".relation-list"),(async e=>{const[n]=(0,t.childList)(e,(()=>{ // eslint-disable-next-line no-underscore-dangle -const e=o.parentElement.parentElement.parentElement.parentElement.__vue__.relationList.map((e=>e.mtime));o.querySelectorAll(".list-item>.content").forEach(((t,n)=>{if(null===t.querySelector(".subscribe-time-fix")){const o=e[n];void 0!==o&&t.querySelector("p").insertAdjacentHTML("afterend",``)}}))}));s?.disconnect(),s=n;const{addImportantStyle:i}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:a}=await Promise.resolve().then(r.t.bind(r,513,23));i(a,"subscribe-time-style")})(o))}))},description:{"zh-CN":"在粉丝/关注列表显示关注的具体时间"},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +const e=o.parentElement.parentElement.parentElement.parentElement.__vue__.relationList.map((e=>e.mtime));o.querySelectorAll(".list-item>.content").forEach(((t,n)=>{if(null===t.querySelector(".subscribe-time-fix")){const o=e[n];void 0!==o&&t.querySelector("p").insertAdjacentHTML("afterend",``)}}))}));s?.disconnect(),s=n;const{addImportantStyle:i}=await Promise.resolve().then(r.t.bind(r,356,23)),{default:c}=await Promise.resolve().then(r.t.bind(r,513,23));i(c,"subscribe-time-style")})(o))}))},description:{"zh-CN":"在粉丝/关注列表显示关注的具体时间"},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/url-params-clean.js b/registry/dist/components/utils/url-params-clean.js index b250eea0b..58cb94769 100644 --- a/registry/dist/components/utils/url-params-clean.js +++ b/registry/dist/components/utils/url-params-clean.js @@ -1,4 +1,4 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/url-params-clean"]=t():e["utils/url-params-clean"]=t()}(globalThis,(()=>(()=>{var e,t,r={912:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=912,e.exports=t},799:e=>{"use strict";e.exports="自动删除网址中的多余跟踪参数。请注意这会导致浏览器历史记录出现重复的标题(分别是转换前后的网址),并可能导致后退要多退几次。\n"},110:e=>{"use strict";e.exports=coreApis.lifeCycle},391:e=>{"use strict";e.exports=coreApis.observer}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,a),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);a.r(i);var n={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>n[e]=()=>r[e]));return n.default=()=>r,a.d(i,n),i},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";a.d(i,{component:()=>s});const e=coreApis.pluginApis.data,t=coreApis.componentApis.define,r=coreApis.utils,o="网址参数清理",n=(0,coreApis.utils.log.useScopedConsole)(o),s=(0,t.defineComponentMetadata)({name:"urlParamsClean",displayName:o,entry:async()=>{if((0,r.isNotHtml)()||(0,r.isIframe)())return; -/* spell-checker: disable */const[t]=(0,e.registerAndGetData)("urlParamsClean.noClean",["videocard_series"]),[o]=(0,e.registerAndGetData)("urlParamsClean.params",["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","share_session_id","share_from","bbid","ts","timestamp","unique_k","rt","tdsourcetag","accept_quality","broadcast_type","current_qn","current_quality","playurl_h264","playurl_h265","quality_description","network","network_status","platform_network_status","p2p_type","referfrom","visit_id","bsource","spm","hotRank","-Arouter","vd_source","is_story_h5","buvid","plat_id","goFrom","jumpLinkType","hasBack","noTitleBar","msource","live_from","plat_id","extra_jump_from","subarea_rank","popular_rank","launch_id","spmid"]),[i]=(0,e.registerAndGetData)("urlParamsClean.siteSpecifiedParams",[{match:/\/\/www\.bilibili\.com\/audio\/(au[\d]+|mycollection)/,param:"type"},{match:/\/\/live\.bilibili\.com\//,param:"session_id"},{match:/\/\/www\.bilibili\.com\/bangumi\//,param:"theme"},{match:/\/\/www\.bilibili\.com\/video\//,param:"mid"},{match:/\/\/www\.bilibili\.com\/video\//,param:"up_id"},{match:/\/\/mall\.bilibili\.com\//,param:"noReffer"}]),[s]=(0,e.registerAndGetData)("urlParamsClean.tailingSlash",[]),l=e=>{const a=new URL(e,location.origin),n=[...new URLSearchParams(a.search).entries()].map((e=>{let[t,r]=e;return`${t}=${r}`}));if(n.some((e=>t.some((t=>e.includes(t))))))return e;const l=n.filter((e=>!o.some((t=>e.startsWith(`${t}=`)))&&!i.some((t=>{let{match:r,param:o}=t;return document.URL.match(r)&&e.startsWith(`${o}=`)})))).join("&");s.forEach((e=>{let{match:t}=e;const o=a.pathname;(0,r.matchPattern)(o,t)&&o.endsWith("/")&&(a.pathname=o.slice(0,o.length-1))}));const c=l?`?${l}`:"";return a.search=c,a.toString()},c=e=>function(t,r,o){const a=(()=>{try{return new URL(o,location.origin+location.pathname).toString()}catch(e){return n.warn("History API URL",`解析失败: ${o}`),o}})(),i=l(a);for(var s=arguments.length,c=new Array(s>3?s-3:0),m=3;m{d((()=>(()=>{const e=l(document.URL);e!==document.URL&&(n.log("直接清理",document.URL,e),window.history.replaceState(history.state,"",e))})()))}))},tags:[componentsTags.utils], +/* spell-checker: disable */const[t]=(0,e.registerAndGetData)("urlParamsClean.noClean",["videocard_series"]),[o]=(0,e.registerAndGetData)("urlParamsClean.params",["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","share_session_id","share_from","bbid","ts","timestamp","unique_k","rt","tdsourcetag","accept_quality","broadcast_type","current_qn","current_quality","playurl_h264","playurl_h265","quality_description","network","network_status","platform_network_status","p2p_type","referfrom","visit_id","bsource","spm","hotRank","-Arouter","vd_source","is_story_h5","buvid","plat_id","goFrom","jumpLinkType","hasBack","noTitleBar","msource","live_from","plat_id","extra_jump_from","subarea_rank","popular_rank","launch_id","spmid"]),[i]=(0,e.registerAndGetData)("urlParamsClean.siteSpecifiedParams",[{match:/\/\/www\.bilibili\.com\/audio\/(au[\d]+|mycollection)/,param:"type"},{match:/\/\/live\.bilibili\.com\//,param:"session_id"},{match:/\/\/www\.bilibili\.com\/bangumi\//,param:"theme"},{match:/\/\/www\.bilibili\.com\/video\//,param:"mid"},{match:/\/\/www\.bilibili\.com\/video\//,param:"up_id"},{match:/\/\/mall\.bilibili\.com\//,param:"noReffer"}]),[s]=(0,e.registerAndGetData)("urlParamsClean.tailingSlash",[]),c=e=>{const a=new URL(e,location.origin),n=[...new URLSearchParams(a.search).entries()].map((e=>{let[t,r]=e;return`${t}=${r}`}));if(n.some((e=>t.some((t=>e.includes(t))))))return e;const c=n.filter((e=>!o.some((t=>e.startsWith(`${t}=`)))&&!i.some((t=>{let{match:r,param:o}=t;return document.URL.match(r)&&e.startsWith(`${o}=`)})))).join("&");s.forEach((e=>{let{match:t}=e;const o=a.pathname;(0,r.matchPattern)(o,t)&&o.endsWith("/")&&(a.pathname=o.slice(0,o.length-1))}));const l=c?`?${c}`:"";return a.search=l,a.toString()},l=e=>function(t,r,o){const a=(()=>{try{return new URL(o,location.origin+location.pathname).toString()}catch(e){return n.warn("History API URL",`解析失败: ${o}`),o}})(),i=c(a);for(var s=arguments.length,l=new Array(s>3?s-3:0),m=3;m{d((()=>(()=>{const e=c(document.URL);e!==document.URL&&(n.log("直接清理",document.URL,e),window.history.replaceState(history.state,"",e))})()))}))},tags:[componentsTags.utils], /* spell-checker: disable */ -urlExclude:[/game\.bilibili\.com\/fgo/,/live\.bilibili\.com\/p\/html\/live-app-hotrank\//],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=a(912);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(a.t.bind(a,799,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file +urlExclude:[/game\.bilibili\.com\/fgo/,/live\.bilibili\.com\/p\/html\/live-app-hotrank\//],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=a(912);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(a.t.bind(a,799,17)).then((e=>e.default))}})()})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/v1-migrate.js b/registry/dist/components/utils/v1-migrate.js index 49805333f..cdac968f9 100644 --- a/registry/dist/components/utils/v1-migrate.js +++ b/registry/dist/components/utils/v1-migrate.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["utils/v1-migrate"]=o():e["utils/v1-migrate"]=o()}(globalThis,(()=>(()=>{"use strict";var e,o,t={764:e=>{e.exports=coreApis.filePicker},414:e=>{e.exports=coreApis.utils.log}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,a),i.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);a.r(i);var r={};e=e||[null,o({}),o([]),o(o)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach((e=>r[e]=()=>t[e]));return r.default=()=>t,a.d(i,r),i},a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.d(i,{component:()=>g});const e=coreApis.componentApis.define,o=coreApis.pluginApis.data,t=coreApis.componentApis.component,n=coreApis.componentApis.userComponent,r=coreApis.ajax,s=coreApis.cdnTypes,l=coreApis.meta,d=coreApis.settings,c=coreApis.toast;var p=a(414);const m=coreApis.pluginApis.hook,u=coreApis.pluginApis.plugin,g=(0,e.defineComponentMetadata)({name:"v1Migrate",displayName:"v1 设置迁移",description:{"zh-CN":"在设置的 `关于` 面板中添加 `导入 v1 设置` 按钮, 点击导入可以导入 v1 的设置, 并根据打开的选项自动下载安装 v2 中对应的功能."},tags:[componentsTags.utils],entry:()=>{(0,o.addData)("settingsPanel.about.actions",(e=>{e.push({icon:"mdi-inbox-arrow-down-outline",name:"importV1Settings",displayName:"导入 v1 设置",run:async()=>{const{logError:e}=await Promise.resolve().then(a.t.bind(a,414,23)),{pickFile:o}=await Promise.resolve().then(a.t.bind(a,764,23)),i=await o({accept:"*.json"});if(0===i.length)return;const[g]=i;try{const e=JSON.parse(await g.text());await(async e=>{const o=c.Toast.info("下载功能列表中","导入 v1 设置");try{console.log("下载功能列表中");const a=`${s.cdnRoots[(0,d.getGeneralSettings)().cdnRoot](l.meta.compilationInfo.branch)}doc/features/features.json`,i=await(0,r.monkey)({url:a});console.log(i);const c=JSON.parse(i);console.log("下载功能列表完成");const p=(o,a,i)=>async()=>{if(!e[o])return void console.log(`跳过了未开启的选项 ${o}`);const p={component:t.componentsMap,plugin:u.pluginsMap},g={component:n.installComponent,plugin:u.installPlugin};if(a in p[i])console.log(`${a} 已经存在, 跳过安装`);else{const e=c.find((e=>e.type===i&&e.name===a)),o=e?.fullAbsolutePath;if(!o||!e)return void console.log(`没有找到名为 ${a} 的功能`);const t=`${s.cdnRoots[(0,d.getGeneralSettings)().cdnRoot](l.meta.compilationInfo.branch,e.owner)}${o}`,n=await(0,r.monkey)({url:t}),{before:p,after:u}=(0,m.getHook)(`user${lodash.startCase(i)}s.add`,n,t);await p();const{metadata:f,message:v}=await g[i](n);await u(f),console.log(v)}},g=(o,t,n)=>()=>{const a=e[o],i=n?.(a)??a;if(void 0!==i){const[e,...o]=t.split("."),{options:n}=(0,d.getComponentSettings)(e);lodash.set(n,o,i)}console.log(`迁移了选项 ${o} -> ${t}`)},f=()=>()=>{const{customStyles:o}=e;o.filter((e=>e.enabled)).forEach((e=>{d.settings.userStyles[e.name]=lodash.omit(e,"enabled")}))},v=e=>p("guiSettings",e,"plugin"),y=()=>none,b={category:"home",activities:"feeds",bangumi:"subscriptions",watchlaterList:"watchlater",favoritesList:"favorites",historyList:"history",rankingLink:"ranking",drawingLink:"drawing",bangumiLink:"bangumi",musicLink:"music",matchLink:"match",shopLink:"shop"},h=[p("useDarkStyle","darkMode","component"),p("darkColorScheme","darkModeFollowSystem","component"),p("hideBanner","hideBanner","component"),p("expandDanmakuList","expandDanmakuList","component"),g("expandDanmakuListIgnoreMediaList","expandDanmakuList.ignoreMediaList"),p("expandDescription","fullVideoDescription","component"),p("watchlaterRedirect","watchlaterRedirect","component"),g("watchLaterRedirectNavbar","watchlaterRedirect.navbar"),g("watchLaterRedirectPage","watchlaterRedirect.page"),p("touchVideoPlayer","touchPlayerGestures","component"),p("touchVideoPlayer","touchPlayerControl","component"),p("customControlBackground","playerControlBackground","component"),g("customControlBackgroundOpacity","playerControlBackground.opacity",(e=>{const o=parseFloat(e);return Math.round(100*o)})),p("darkSchedule","darkModeSchedule","component"),g("darkScheduleStart","darkModeSchedule.range.start"),g("darkScheduleEnd","darkModeSchedule.range.end"),p("fullTweetsTitle","fullFeedsTitle","component"),p("fullPageTitle","fullEpisodeTitle","component"),p("removeVideoTopMask","hideVideoTopMask","component"),p("removeLiveWatermark","removeLiveWatermark","component"),p("harunaScale","dpiLiveShowgirl","component"),p("harunaScale","dpiLiveShowgirl","component"),p("removeAds","removePromotions","component"),g("showBlockedAdsTip","removePromotions.showPlaceholder"),g("preserveEventBanner","removePromotions.preserveEventBanner"),p("touchVideoPlayerDoubleTapControl","doubleClickControl","component"),g("customStyleColor","settingsPanel.themeColor"),p("useDefaultPlayerMode","defaultPlayerMode","component"),g("applyPlayerModeOnPlay","defaultPlayerMode.applyOnPlay"),g("defaultPlayerMode","defaultPlayerMode.mode"),p("skipChargeList","skipChargeList","component"),p("comboLike","touchComboLike","component"),p("autoLightOff","playerAutoLight","component"),p("airborne","danmakuAirborne","component"),p("useBiliplusRedirect","biliplusRedirect","component"),p("biliplusRedirect","biliplusRedirect","component"),p("framePlayback","seekByFrames","component"),p("useCommentStyle","simplifyComments","component"),p("imageResolution","imageResolution","component"),g("imageResolutionScale","imageResolution.scale"),p("playerFocus","playerFocus","component"),g("playerFocusOffset","playerFocus.offset"),p("simplifyLiveroom","simplifyLiveroom","component"),g("simplifyLiveroomSettings","simplifyLiveroom",(e=>{const{options:o}=(0,d.getComponentSettings)("simplifyLiveroom");Object.assign(o,Object.fromEntries(Object.entries(e).map((e=>{let[o,t]=e;return[`switch-${o}`,t]}))))})),p("customNavbar","customNavbar","component"),v("customNavbar.items.darkMode"),g("favoritesListCurrentSelect","customNavbar.lastFavoriteFolder"),g("touchNavBar","customNavbar.touch"),g("customNavbarFill","customNavbar.fill"),g("customNavbarTransparent","customNavbar.transparent"),g("customNavbarShadow","customNavbar.shadow"),g("customNavbarBlur","customNavbar.blur"),g("customNavbarOrder","customNavbar.order",(e=>(Object.keys(e).forEach((o=>{o in b&&(e[b[o]]=e[o],delete e[o])})),delete e.mangaLink,e))),g("customNavbarHidden","customNavbar.hidden",(e=>([...e].forEach((o=>{o in b&&(e.push(b[o]),lodash.pull(e,o))})),lodash.pull(e,"mangaLink"),e))),g("customNavbarBoundsPadding","customNavbar.padding",(e=>parseFloat(e))),g("customNavbarGlobalFixed","customNavbar.globalFixed"),g("customNavbarSeasonLogo","customNavbar.seasonLogo"),g("customNavbarShowDeadVideos","customNavbar.showDeadVideos"),p("playerShadow","playerShadow","component"),p("narrowDanmaku","preserveDanmakuInput","component"),p("outerWatchlater","outerWatchlater","component"),p("videoScreenshot","videoScreenshot","component"),p("hideBangumiReviews","hideBangumiReviews","component"),g("filenameFormat","settingsPanel.filenameFormat"),g("batchFilenameFormat","settingsPanel.batchFilenameFormat"),p("sidebarOffset","sidebarOffset","component"),g("sidebarOffset","sidebarOffset.offset"),p("noLiveAutoplay","liveHomeMute","component"),p("foldComment","rememberVideoSpeed","component"),g("defaultVideoSpeed","rememberVideoSpeed.speed"),g("rememberVideoSpeedList","rememberVideoSpeed.individualRememberList"),g("rememberVideoSpeed","rememberVideoSpeed.individualRemember"),g("extendVideoSpeed","rememberVideoSpeed.extend"),g("extendVideoSpeedList","rememberVideoSpeed.extendList"),p("foldComment","foldComments","component"),p("autoDraw","liveAutoDraw","component"),p("keymap","keymap","component"),g("keymapPreset","keymap.preset"),g("keymapJumpSeconds","keymap.longJumpSeconds"),g("customKeyBindings","keymap.customKeyBindings"),p("doubleClickFullscreen","doubleClickFullscreen","component"),g("doubleClickFullscreenPreventSingleClick","doubleClickFullscreen.preventSingleClick"),g("scriptLoadingMode","settingsPanel.scriptLoadingMode",(e=>e.replace(/\(自动\)$/,""))),g("guiSettingsDockSide","settingsPanel.dockSide"),p("fullActivityContent","fullFeedsContent","component"),p("feedsFilter","feedsFilter","component"),g("feedsFilterPatterns","feedsFilter.patterns"),g("feedsSpecialFilterTypes","feedsFilter.types"),g("feedsFilterSideCards","feedsFilter.sideCards"),p("selectableColumnText","columnUnlock","component"),p("miniPlayerTouchMove","touchMiniPlayer","component"),p("hideBangumiSponsors","hideBangumiSponsors","component"),p("hideRecommendLive","hideRecommendedLive","component"),p("hideRelatedVideos","hideRelatedVideos","component"),p("urlParamsClean","urlParamsClean","component"),p("collapseLiveSideBar","collapseLiveSideBar","component"),g("foregroundColorMode","settingsPanel.textColor"),g("updateCdn","settingsPanel.cdnRoot"),g("downloadPackageEmitMode","settingsPanel.downloadPackageEmitMode",(e=>"分别下载"===e?"单独下载":e)),p("bvidConvert","bvidConvert","component"),p("fixedSidebars","fixedFeedsSidebars","component"),p("autoHideSideBar","autoHideSidebar","component"),p("livePip","livePip","component"),p("extendFeedsLive","extendFeedsLive","component"),p("playerOnTop","playerOnTop","component"),p("quickFavorite","quickFavorite","component"),g("quickFavoriteID","quickFavorite.favoriteFolderID"),p("disableFeedsDetails","disableFeedsDetails","component"),p("elegantScrollbar","elegantScrollbar","component"),p("danmakuSendBar","liveDanmakuSendbar","component"),p("showCoverBeforePlay","showCoverBeforePlay","component"),p("seoJump","seoRedirect","component"),p("copyFeedsLink","copyFeedsLink","component"),p("copyCommentLink","copyCommentsLink","component"),p("unfoldFeeds","unfoldFeeds","component"),p("feedsImageExporter","imageExporter","component"),p("columnImageExporter","imageExporter","component"),p("preferAvUrl","avUrl","component"),p("homeHidden","simplifyHome","component"),g("homeHiddenItems","simplifyHome",(e=>{const{options:o}=(0,d.getComponentSettings)("simplifyHome");e.forEach((e=>o[`switch-${e}`]=!0))})),p("alwaysShowDuration","alwaysShowDuration","component"),p("removeVideoPopup","removePlayerPopup","component"),p("removeGuidePopup","removePlayerPopup","component"),p("removeVotePopup","removePlayerPopup","component"),g("removeVideoPopup","removePlayerPopup.relatedVideos"),g("removeGuidePopup","removePlayerPopup.comboLikes"),g("removeVotePopup","removePlayerPopup.votes"),p("checkInCenter","checkInCenter","component"),p("fullscreenGiftBox","liveGiftBox","component"),p("autoPlayControl","legacyAutoPlay","component"),p("scrollOutPlayer","playerIntersectionActions","component"),g("scrollOutPlayerTriggerPlace","playerIntersectionActions.triggerLocation"),g("scrollOutPlayerAutoPause","playerIntersectionActions.pause"),g("scrollOutPlayerAutoLightOn","playerIntersectionActions.light"),p("disableDanmakuHighlights","disableSpecialDanmaku","component"),p("disableUpDanmakuStyle","disableSpecialDanmaku","component"),g("disableDanmakuHighlights","disableSpecialDanmaku.highlight"),g("disableUpDanmakuStyle","disableSpecialDanmaku.up"),p("viewCover","viewCover","component"),p("downloadVideo","downloadVideo","component"),v("downloadVideo.outputs.aria2"),v("downloadVideo.outputs.idm"),g("downloadVideoQuality","downloadVideo.basicConfig.quality"),g("downloadVideoFormat","downloadVideo.basicConfig.api",(o=>({flv:"video.flv",dash:e.downloadVideoDashCodec.startsWith("HEVC")?"video.dash.hevc":"video.dash.avc"}[o]))),g("downloadVideoDefaultDanmaku","downloadVideo.danmakuType"),g("downloadVideoDefaultSubtitle","downloadVideo.subtitleType"),g("aria2RpcOptionProfiles","downloadVideo.rpcProfiles"),p("downloadDanmaku","downloadDanmaku","component"),p("downloadSubtitle","downloadSubtitle","component"),p("downloadAudio","downloadAudio","component"),p("downloadLiveRecords","downloadLiveRecords","component"),p("medalHelper","badgeHelper","component"),g("defaultMedalID","badgeHelper.defaultMedalID"),g("autoMatchMedal","badgeHelper.autoMatchMedal"),f(),y()];let k=0;o.message=`导入中... (${k}/${h.length})`;let S=0,P=0;for(const e of h)try{await e(),S++}catch(e){console.log(e),P++}finally{k++,o.message=`导入中... (${k}/${h.length})`}o.message=`导入完成. 成功 ${S} 个, 失败 ${P} 个, 可在控制台查看详细日志.`}catch(e){o.close(),(0,p.logError)(e)}})(e)}catch(o){e(o)}}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["utils/v1-migrate"]=o():e["utils/v1-migrate"]=o()}(globalThis,(()=>(()=>{"use strict";var e,o,t={764:e=>{e.exports=coreApis.filePicker},414:e=>{e.exports=coreApis.utils.log}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,a),i.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);a.r(i);var r={};e=e||[null,o({}),o([]),o(o)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach((e=>r[e]=()=>t[e]));return r.default=()=>t,a.d(i,r),i},a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.d(i,{component:()=>g});const e=coreApis.componentApis.define,o=coreApis.pluginApis.data,t=coreApis.componentApis.component,n=coreApis.componentApis.userComponent,r=coreApis.ajax,s=coreApis.cdnTypes,l=coreApis.meta,d=coreApis.settings,c=coreApis.toast;var p=a(414);const m=coreApis.pluginApis.hook,u=coreApis.pluginApis.plugin,g=(0,e.defineComponentMetadata)({name:"v1Migrate",displayName:"v1 设置迁移",description:{"zh-CN":"在设置的 `关于` 面板中添加 `导入 v1 设置` 按钮, 点击导入可以导入 v1 的设置, 并根据打开的选项自动下载安装 v2 中对应的功能."},tags:[componentsTags.utils],entry:()=>{(0,o.addData)("settingsPanel.about.actions",(e=>{e.push({icon:"mdi-inbox-arrow-down-outline",name:"importV1Settings",displayName:"导入 v1 设置",run:async()=>{const{logError:e}=await Promise.resolve().then(a.t.bind(a,414,23)),{pickFile:o}=await Promise.resolve().then(a.t.bind(a,764,23)),i=await o({accept:"*.json"});if(0===i.length)return;const[g]=i;try{const e=JSON.parse(await g.text());await(async e=>{const o=c.Toast.info("下载功能列表中","导入 v1 设置");try{console.log("下载功能列表中");const a=`${s.cdnRoots[(0,d.getGeneralSettings)().cdnRoot](l.meta.compilationInfo.branch)}doc/features/features.json`,i=await(0,r.monkey)({url:a});console.log(i);const c=JSON.parse(i);console.log("下载功能列表完成");const p=(o,a,i)=>async()=>{if(!e[o])return void console.log(`跳过了未开启的选项 ${o}`);const p={component:t.componentsMap,plugin:u.pluginsMap},g={component:n.installComponent,plugin:u.installPlugin};if(a in p[i])console.log(`${a} 已经存在, 跳过安装`);else{const e=c.find((e=>e.type===i&&e.name===a)),o=e?.fullAbsolutePath;if(!o||!e)return void console.log(`没有找到名为 ${a} 的功能`);const t=`${s.cdnRoots[(0,d.getGeneralSettings)().cdnRoot](l.meta.compilationInfo.branch,e.owner)}${o}`,n=await(0,r.monkey)({url:t}),{before:p,after:u}=(0,m.getHook)(`user${lodash.startCase(i)}s.add`,n,t);await p();const{metadata:f,message:v}=await g[i](n);await u(f),console.log(v)}},g=(o,t,n)=>()=>{const a=e[o],i=n?.(a)??a;if(void 0!==i){const[e,...o]=t.split("."),{options:n}=(0,d.getComponentSettings)(e);lodash.set(n,o,i)}console.log(`迁移了选项 ${o} -> ${t}`)},f=()=>()=>{const{customStyles:o}=e;o.filter((e=>e.enabled)).forEach((e=>{d.settings.userStyles[e.name]=lodash.omit(e,"enabled")}))},v=e=>p("guiSettings",e,"plugin"),y=()=>none,b={category:"home",activities:"feeds",bangumi:"subscriptions",watchlaterList:"watchlater",favoritesList:"favorites",historyList:"history",rankingLink:"ranking",drawingLink:"drawing",bangumiLink:"bangumi",musicLink:"music",matchLink:"match",shopLink:"shop"},h=[p("useDarkStyle","darkMode","component"),p("darkColorScheme","darkModeFollowSystem","component"),p("hideBanner","hideBanner","component"),p("expandDanmakuList","expandDanmakuList","component"),g("expandDanmakuListIgnoreMediaList","expandDanmakuList.ignoreMediaList"),p("expandDescription","fullVideoDescription","component"),p("watchlaterRedirect","watchlaterRedirect","component"),g("watchLaterRedirectNavbar","watchlaterRedirect.navbar"),g("watchLaterRedirectPage","watchlaterRedirect.page"),p("touchVideoPlayer","touchPlayerGestures","component"),p("touchVideoPlayer","touchPlayerControl","component"),p("customControlBackground","playerControlBackground","component"),g("customControlBackgroundOpacity","playerControlBackground.opacity",(e=>{const o=parseFloat(e);return Math.round(100*o)})),p("darkSchedule","darkModeSchedule","component"),g("darkScheduleStart","darkModeSchedule.range.start"),g("darkScheduleEnd","darkModeSchedule.range.end"),p("fullTweetsTitle","fullFeedsTitle","component"),p("fullPageTitle","fullEpisodeTitle","component"),p("removeVideoTopMask","hideVideoTopMask","component"),p("removeLiveWatermark","removeLiveWatermark","component"),p("harunaScale","dpiLiveShowgirl","component"),p("harunaScale","dpiLiveShowgirl","component"),p("removeAds","removePromotions","component"),g("showBlockedAdsTip","removePromotions.showPlaceholder"),g("preserveEventBanner","removePromotions.preserveEventBanner"),p("touchVideoPlayerDoubleTapControl","doubleClickControl","component"),g("customStyleColor","settingsPanel.themeColor"),p("useDefaultPlayerMode","defaultPlayerMode","component"),g("applyPlayerModeOnPlay","defaultPlayerMode.applyOnPlay"),g("defaultPlayerMode","defaultPlayerMode.mode"),p("skipChargeList","skipChargeList","component"),p("comboLike","touchComboLike","component"),p("autoLightOff","playerAutoLight","component"),p("airborne","danmakuAirborne","component"),p("useBiliplusRedirect","biliplusRedirect","component"),p("biliplusRedirect","biliplusRedirect","component"),p("framePlayback","seekByFrames","component"),p("useCommentStyle","simplifyComments","component"),p("imageResolution","imageResolution","component"),g("imageResolutionScale","imageResolution.scale"),p("playerFocus","playerFocus","component"),g("playerFocusOffset","playerFocus.offset"),p("simplifyLiveroom","simplifyLiveroom","component"),g("simplifyLiveroomSettings","simplifyLiveroom",(e=>{const{options:o}=(0,d.getComponentSettings)("simplifyLiveroom");Object.assign(o,Object.fromEntries(Object.entries(e).map((e=>{let[o,t]=e;return[`switch-${o}`,t]}))))})),p("customNavbar","customNavbar","component"),v("customNavbar.items.darkMode"),g("favoritesListCurrentSelect","customNavbar.lastFavoriteFolder"),g("touchNavBar","customNavbar.touch"),g("customNavbarFill","customNavbar.fill"),g("customNavbarTransparent","customNavbar.transparent"),g("customNavbarShadow","customNavbar.shadow"),g("customNavbarBlur","customNavbar.blur"),g("customNavbarOrder","customNavbar.order",(e=>(Object.keys(e).forEach((o=>{o in b&&(e[b[o]]=e[o],delete e[o])})),delete e.mangaLink,e))),g("customNavbarHidden","customNavbar.hidden",(e=>([...e].forEach((o=>{o in b&&(e.push(b[o]),lodash.pull(e,o))})),lodash.pull(e,"mangaLink"),e))),g("customNavbarBoundsPadding","customNavbar.padding",(e=>parseFloat(e))),g("customNavbarGlobalFixed","customNavbar.globalFixed"),g("customNavbarSeasonLogo","customNavbar.seasonLogo"),g("customNavbarShowDeadVideos","customNavbar.showDeadVideos"),p("playerShadow","playerShadow","component"),p("narrowDanmaku","preserveDanmakuInput","component"),p("outerWatchlater","outerWatchlater","component"),p("videoScreenshot","videoScreenshot","component"),p("hideBangumiReviews","hideBangumiReviews","component"),g("filenameFormat","settingsPanel.filenameFormat"),g("batchFilenameFormat","settingsPanel.batchFilenameFormat"),p("sidebarOffset","sidebarOffset","component"),g("sidebarOffset","sidebarOffset.offset"),p("noLiveAutoplay","liveHomeMute","component"),p("foldComment","rememberVideoSpeed","component"),g("defaultVideoSpeed","rememberVideoSpeed.speed"),g("rememberVideoSpeedList","rememberVideoSpeed.individualRememberList"),g("rememberVideoSpeed","rememberVideoSpeed.individualRemember"),g("extendVideoSpeed","rememberVideoSpeed.extend"),g("extendVideoSpeedList","rememberVideoSpeed.extendList"),p("foldComment","foldComments","component"),p("autoDraw","liveAutoDraw","component"),p("keymap","keymap","component"),g("keymapPreset","keymap.preset"),g("keymapJumpSeconds","keymap.longJumpSeconds"),g("customKeyBindings","keymap.customKeyBindings"),p("doubleClickFullscreen","doubleClickFullscreen","component"),g("doubleClickFullscreenPreventSingleClick","doubleClickFullscreen.preventSingleClick"),g("scriptLoadingMode","settingsPanel.scriptLoadingMode",(e=>e.replace(/\(自动\)$/,""))),g("guiSettingsDockSide","settingsPanel.dockSide"),p("fullActivityContent","fullFeedsContent","component"),p("feedsFilter","feedsFilter","component"),g("feedsFilterPatterns","feedsFilter.patterns"),g("feedsSpecialFilterTypes","feedsFilter.types"),g("feedsFilterSideCards","feedsFilter.sideCards"),p("selectableColumnText","columnUnlock","component"),p("miniPlayerTouchMove","touchMiniPlayer","component"),p("hideBangumiSponsors","hideBangumiSponsors","component"),p("hideRecommendLive","hideRecommendedLive","component"),p("hideRelatedVideos","hideRelatedVideos","component"),p("urlParamsClean","urlParamsClean","component"),p("collapseLiveSideBar","collapseLiveSideBar","component"),g("foregroundColorMode","settingsPanel.textColor"),g("updateCdn","settingsPanel.cdnRoot"),g("downloadPackageEmitMode","settingsPanel.downloadPackageEmitMode",(e=>"分别下载"===e?"单独下载":e)),p("bvidConvert","bvidConvert","component"),p("fixedSidebars","fixedFeedsSidebars","component"),p("autoHideSideBar","autoHideSidebar","component"),p("livePip","livePip","component"),p("extendFeedsLive","extendFeedsLive","component"),p("playerOnTop","playerOnTop","component"),p("quickFavorite","quickFavorite","component"),g("quickFavoriteID","quickFavorite.favoriteFolderID"),p("disableFeedsDetails","disableFeedsDetails","component"),p("elegantScrollbar","elegantScrollbar","component"),p("danmakuSendBar","liveDanmakuSendbar","component"),p("showCoverBeforePlay","showCoverBeforePlay","component"),p("seoJump","seoRedirect","component"),p("copyFeedsLink","copyFeedsLink","component"),p("copyCommentLink","copyCommentsLink","component"),p("unfoldFeeds","unfoldFeeds","component"),p("feedsImageExporter","imageExporter","component"),p("columnImageExporter","imageExporter","component"),p("preferAvUrl","avUrl","component"),p("homeHidden","simplifyHome","component"),g("homeHiddenItems","simplifyHome",(e=>{const{options:o}=(0,d.getComponentSettings)("simplifyHome");e.forEach((e=>o[`switch-${e}`]=!0))})),p("alwaysShowDuration","alwaysShowDuration","component"),p("removeVideoPopup","removePlayerPopup","component"),p("removeGuidePopup","removePlayerPopup","component"),p("removeVotePopup","removePlayerPopup","component"),g("removeVideoPopup","removePlayerPopup.relatedVideos"),g("removeGuidePopup","removePlayerPopup.comboLikes"),g("removeVotePopup","removePlayerPopup.votes"),p("checkInCenter","checkInCenter","component"),p("fullscreenGiftBox","liveGiftBox","component"),p("autoPlayControl","legacyAutoPlay","component"),p("scrollOutPlayer","playerIntersectionActions","component"),g("scrollOutPlayerTriggerPlace","playerIntersectionActions.triggerLocation"),g("scrollOutPlayerAutoPause","playerIntersectionActions.pause"),g("scrollOutPlayerAutoLightOn","playerIntersectionActions.light"),p("disableDanmakuHighlights","disableSpecialDanmaku","component"),p("disableUpDanmakuStyle","disableSpecialDanmaku","component"),g("disableDanmakuHighlights","disableSpecialDanmaku.highlight"),g("disableUpDanmakuStyle","disableSpecialDanmaku.up"),p("viewCover","viewCover","component"),p("downloadVideo","downloadVideo","component"),v("downloadVideo.outputs.aria2"),v("downloadVideo.outputs.idm"),g("downloadVideoQuality","downloadVideo.basicConfig.quality"),g("downloadVideoFormat","downloadVideo.basicConfig.api",(o=>({flv:"video.flv",dash:e.downloadVideoDashCodec.startsWith("HEVC")?"video.dash.hevc":"video.dash.avc"}[o]))),g("downloadVideoDefaultDanmaku","downloadVideo.danmakuType"),g("downloadVideoDefaultSubtitle","downloadVideo.subtitleType"),g("aria2RpcOptionProfiles","downloadVideo.rpcProfiles"),p("downloadDanmaku","downloadDanmaku","component"),p("downloadSubtitle","downloadSubtitle","component"),p("downloadAudio","downloadAudio","component"),p("downloadLiveRecords","downloadLiveRecords","component"),p("medalHelper","badgeHelper","component"),g("defaultMedalID","badgeHelper.defaultMedalID"),g("autoMatchMedal","badgeHelper.autoMatchMedal"),f(),y()];let k=0;o.message=`导入中... (${k}/${h.length})`;let S=0,P=0;for(const e of h)try{await e(),S++}catch(e){console.log(e),P++}finally{k++,o.message=`导入中... (${k}/${h.length})`}o.message=`导入完成. 成功 ${S} 个, 失败 ${P} 个, 可在控制台查看详细日志.`}catch(e){o.close(),(0,p.logError)(e)}})(e)}catch(o){e(o)}}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/view-cover.js b/registry/dist/components/utils/view-cover.js index b358961a8..c8ad9978e 100644 --- a/registry/dist/components/utils/view-cover.js +++ b/registry/dist/components/utils/view-cover.js @@ -6,7 +6,7 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"download-cover-config download-video-config-section"},[t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("封面:")]),e._v(" "),t("VDropdown",{attrs:{items:e.items},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.type,callback:function(t){e.type=t},expression:"type"}})],1)])};o._withStripped=!0;const r=coreApis.settings;var i=n(648);const{options:a}=(0,r.getComponentSettings)("downloadVideo"),s=Vue.extend({components:{VDropdown:i.VDropdown},data:()=>({type:a.CoverType??"无",items:["无","jpg"]}),computed:{enabled(){return"无"!==this.type}},watch:{type(e){a.CoverType=e}}});var c=n(332),d=n.n(c),l=n(635),u=n.n(l),p={insert:"head",singleton:!1};d()(u(),p);u().locals;const f=(0,n(499).Z)(s,o,[],!1,null,null,null).exports},647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{staticClass:"view-cover",attrs:{disabled:!e.imageUrl,name:"查看封面",icon:"mdi-image-outline"},on:{click:function(t){return e.viewCover()}}})};o._withStripped=!0;var r=n(284);const i=coreApis.ajax,a=coreApis.observer,s=coreApis.spinQuery;var c=n(648);const d=Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({imageUrl:""}),async mounted(){if(document.URL.includes("live.bilibili.com")){const e=".header-info-ctnr .room-cover, .header-info-ctnr .avatar",t=await(0,s.select)(e);if(!t)return;const n=t.getAttribute("href").match(/space\.bilibili\.com\/([\d]+)/);if(n&&n[1]){const e=`https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${n[1]}`,t=await(0,i.getJson)(e);this.imageUrl=t.data.cover.replace("http:","https:")}}else(0,a.videoChange)((async()=>{const{aid:e}=unsafeWindow;this.imageUrl=await(0,r.getVideoCoverUrlByAid)(e)}))},methods:{async viewCover(){(0,c.showImage)(this.imageUrl)}}});const l=(0,n(499).Z)(d,o,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a,s){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):r&&(c=s?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}n.d(t,{Z:()=>o})},332:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&( +var s=this[i][0];null!=s&&(r[s]=!0)}for(var a=0;a{"use strict";n.r(t),n.d(t,{default:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"download-cover-config download-video-config-section"},[t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("封面:")]),e._v(" "),t("VDropdown",{attrs:{items:e.items},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}]),model:{value:e.type,callback:function(t){e.type=t},expression:"type"}})],1)])};o._withStripped=!0;const r=coreApis.settings;var i=n(648);const{options:s}=(0,r.getComponentSettings)("downloadVideo"),a=Vue.extend({components:{VDropdown:i.VDropdown},data:()=>({type:s.CoverType??"无",items:["无","jpg"]}),computed:{enabled(){return"无"!==this.type}},watch:{type(e){s.CoverType=e}}});var c=n(332),d=n.n(c),l=n(635),u=n.n(l),p={insert:"head",singleton:!1};d()(u(),p);u().locals;const f=(0,n(499).Z)(a,o,[],!1,null,null,null).exports},647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("DefaultWidget",{staticClass:"view-cover",attrs:{disabled:!e.imageUrl,name:"查看封面",icon:"mdi-image-outline"},on:{click:function(t){return e.viewCover()}}})};o._withStripped=!0;var r=n(284);const i=coreApis.ajax,s=coreApis.observer,a=coreApis.spinQuery;var c=n(648);const d=Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({imageUrl:""}),async mounted(){if(document.URL.includes("live.bilibili.com")){const e=".header-info-ctnr .room-cover, .header-info-ctnr .avatar",t=await(0,a.select)(e);if(!t)return;const n=t.getAttribute("href").match(/space\.bilibili\.com\/([\d]+)/);if(n&&n[1]){const e=`https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${n[1]}`,t=await(0,i.getJson)(e);this.imageUrl=t.data.cover.replace("http:","https:")}}else(0,s.videoChange)((async()=>{const{aid:e}=unsafeWindow;this.imageUrl=await(0,r.getVideoCoverUrlByAid)(e)}))},methods:{async viewCover(){(0,c.showImage)(this.imageUrl)}}});const l=(0,n(499).Z)(d,o,[],!1,null,null,null).exports},499:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):r&&(c=a?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}n.d(t,{Z:()=>o})},332:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.componentApis.video.videoCover},648:e=>{"use strict";e.exports=coreApis.ui}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{component:()=>a});const e=coreApis.componentApis.define;var t=n(284);const r=coreApis.utils.urls,i=coreApis.toast,a=(0,e.defineComponentMetadata)({name:"viewCover",displayName:"查看封面",tags:[componentsTags.utils,componentsTags.video],entry:none,reload:none,unload:none,plugin:{displayName:"下载视频 - 下载封面支持",setup:e=>{let{addData:o}=e;o("downloadVideo.assets",(async e=>{e.push({name:"downloadCover",displayName:"下载封面",getAssets:async(e,n)=>{const{type:o,enabled:r}=n;if(!r)return[];const a=i.Toast.info("获取封面中...","下载封面");let s=0;const c=await Promise.allSettled(e.map((async n=>{const r=await(0,t.getBlobByAid)(n.input.aid);return s++,a.message=`获取封面中... (${s}/${e.length})`,{name:`${n.input.title}.${o}`,data:r}}))),d=c.filter((e=>"fulfilled"===e.status)),l=c.filter((e=>"rejected"===e.status));return a.message=`获取完成. 成功 ${d.length} 个, 失败 ${l.length} 个.`,d.map((e=>e.value))},component:()=>Promise.resolve().then(n.bind(n,840)).then((e=>e.default))})}))}},widget:{component:()=>Promise.resolve().then(n.bind(n,647)).then((e=>e.default))},description:{"zh-CN":"在视频页面中, 可从功能面板中查看封面."},urlInclude:[...r.videoAndBangumiUrls],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.componentApis.video.videoCover},648:e=>{"use strict";e.exports=coreApis.ui}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{component:()=>s});const e=coreApis.componentApis.define;var t=n(284);const r=coreApis.utils.urls,i=coreApis.toast,s=(0,e.defineComponentMetadata)({name:"viewCover",displayName:"查看封面",tags:[componentsTags.utils,componentsTags.video],entry:none,reload:none,unload:none,plugin:{displayName:"下载视频 - 下载封面支持",setup:e=>{let{addData:o}=e;o("downloadVideo.assets",(async e=>{e.push({name:"downloadCover",displayName:"下载封面",getAssets:async(e,n)=>{const{type:o,enabled:r}=n;if(!r)return[];const s=i.Toast.info("获取封面中...","下载封面");let a=0;const c=await Promise.allSettled(e.map((async n=>{const r=await(0,t.getBlobByAid)(n.input.aid);return a++,s.message=`获取封面中... (${a}/${e.length})`,{name:`${n.input.title}.${o}`,data:r}}))),d=c.filter((e=>"fulfilled"===e.status)),l=c.filter((e=>"rejected"===e.status));return s.message=`获取完成. 成功 ${d.length} 个, 失败 ${l.length} 个.`,d.map((e=>e.value))},component:()=>Promise.resolve().then(n.bind(n,840)).then((e=>e.default))})}))}},widget:{component:()=>Promise.resolve().then(n.bind(n,647)).then((e=>e.default))},description:{"zh-CN":"在视频页面中, 可从功能面板中查看封面."},urlInclude:[...r.videoAndBangumiUrls],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/utils/watchlater-redirect.js b/registry/dist/components/utils/watchlater-redirect.js index 103788938..47c60bb69 100644 --- a/registry/dist/components/utils/watchlater-redirect.js +++ b/registry/dist/components/utils/watchlater-redirect.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/watchlater-redirect"]=t():e["utils/watchlater-redirect"]=t()}(globalThis,(()=>(()=>{var e,t,o={517:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=517,e.exports=t},346:e=>{"use strict";e.exports="将稍后再看的链接重定向为普通播放网址.\n- `重定向页面`: 对稍后再看列表页面里的链接重定向.\n- `重定向顶栏`: 对 `自定义顶栏` 里的稍后再看链接重定向.\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.video.watchlater},391:e=>{"use strict";e.exports=coreApis.observer},200:e=>{"use strict";e.exports=coreApis.spinQuery}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var n=Object.create(null);i.r(n);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,i.d(n,a),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.d(n,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"watchlaterRedirect",displayName:"稍后再看重定向",entry:async e=>{let{settings:t}=e;if(t.options.page){const{select:e}=await Promise.resolve().then(i.t.bind(i,200,23)),{childList:t}=await Promise.resolve().then(i.t.bind(i,391,23)),{getWatchlaterList:o}=await Promise.resolve().then(i.t.bind(i,952,23)),r=await o(!0),n=await e(".watch-later-list .list-box > span");if(!n)return;const a=(e,t)=>{try{const o=r[t],{bvid:i,cid:n,pages:a}=o,s=a.find((e=>e.cid===n))?.page??1,c=s>1?`https://www.bilibili.com/video/${i}?p=${s}`:`https://www.bilibili.com/video/${i}`,l=e.querySelector(".av-pic");l.target="_blank",l.href=c;const p=e.querySelector(".av-about .t");p.target="_blank",p.href=c}catch(o){console.error(`[watchlater redirect] error at index ${t}`,e,o)}},s=()=>{n.querySelectorAll(".av-item").forEach(a)};t(n,(e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{if(e instanceof HTMLElement&&!e.classList.contains("itemlist-move")){const t=parseInt(dq(e,".key").textContent)-1;console.log("remove index",t),r.splice(t,1)}}))})),s()}))}},options:{page:{displayName:"重定向页面",defaultValue:!0},navbar:{displayName:"重定向顶栏",defaultValue:!0}},urlInclude:["https://www.bilibili.com/watchlater/#/list"],tags:[componentsTags.utils,componentsTags.video],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=i(517);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,346,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/watchlater-redirect"]=t():e["utils/watchlater-redirect"]=t()}(globalThis,(()=>(()=>{var e,t,o={517:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=517,e.exports=t},346:e=>{"use strict";e.exports="将稍后再看的链接重定向为普通播放网址.\n- `重定向页面`: 对稍后再看列表页面里的链接重定向.\n- `重定向顶栏`: 对 `自定义顶栏` 里的稍后再看链接重定向.\n"},952:e=>{"use strict";e.exports=coreApis.componentApis.video.watchlater},391:e=>{"use strict";e.exports=coreApis.observer},200:e=>{"use strict";e.exports=coreApis.spinQuery}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var n=Object.create(null);i.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,i.d(n,s),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.d(n,{component:()=>e});const e=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"watchlaterRedirect",displayName:"稍后再看重定向",entry:async e=>{let{settings:t}=e;if(t.options.page){const{select:e}=await Promise.resolve().then(i.t.bind(i,200,23)),{childList:t}=await Promise.resolve().then(i.t.bind(i,391,23)),{getWatchlaterList:o}=await Promise.resolve().then(i.t.bind(i,952,23)),r=await o(!0),n=await e(".watch-later-list .list-box > span");if(!n)return;const s=(e,t)=>{try{const o=r[t],{bvid:i,cid:n,pages:s}=o,a=s.find((e=>e.cid===n))?.page??1,c=a>1?`https://www.bilibili.com/video/${i}?p=${a}`:`https://www.bilibili.com/video/${i}`,l=e.querySelector(".av-pic");l.target="_blank",l.href=c;const p=e.querySelector(".av-about .t");p.target="_blank",p.href=c}catch(o){console.error(`[watchlater redirect] error at index ${t}`,e,o)}},a=()=>{n.querySelectorAll(".av-item").forEach(s)};t(n,(e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{if(e instanceof HTMLElement&&!e.classList.contains("itemlist-move")){const t=parseInt(dq(e,".key").textContent)-1;console.log("remove index",t),r.splice(t,1)}}))})),a()}))}},options:{page:{displayName:"重定向页面",defaultValue:!0},navbar:{displayName:"重定向顶栏",defaultValue:!0}},urlInclude:["https://www.bilibili.com/watchlater/#/list"],tags:[componentsTags.utils,componentsTags.video],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=i(517);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,346,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/auto-remove-watchlater.js b/registry/dist/components/video/auto-remove-watchlater.js index a9d88a8d5..057b48456 100644 --- a/registry/dist/components/video/auto-remove-watchlater.js +++ b/registry/dist/components/video/auto-remove-watchlater.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/auto-remove-watchlater"]=t():e["video/auto-remove-watchlater"]=t()}(globalThis,(()=>(()=>{var e,t,o={955:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=955,e.exports=t},219:e=>{"use strict";e.exports="在稍后再看页面播放结束时, 自动将当前视频移出稍后再看.\n注意:\n- 一定要播放结束, 快结束时手动切走不算\n- b 站的稍后再看列表不会实时刷新\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,n.d(a,i),a},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.d(a,{component:()=>c});const e=coreApis.componentApis.define,t=coreApis.observer,o=coreApis.utils.urls,r=coreApis.componentApis.video.playerAgent,i=coreApis.componentApis.video.watchlater,c=(0,e.defineComponentMetadata)({name:"autoRemoveWatchlater",displayName:"自动移出稍后再看",tags:[componentsTags.video],urlInclude:[...o.watchlaterUrls,...o.videoUrls],entry:()=>{(0,t.videoChange)((async e=>{let{aid:t}=e;(await r.playerAgent.query.video.element()).addEventListener("ended",(async()=>{(await(0,i.getWatchlaterList)()).includes(parseInt(t))&&await(0,i.toggleWatchlater)(t)}))}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(955);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,219,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/auto-remove-watchlater"]=t():e["video/auto-remove-watchlater"]=t()}(globalThis,(()=>(()=>{var e,t,o={955:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=955,e.exports=t},219:e=>{"use strict";e.exports="在稍后再看页面播放结束时, 自动将当前视频移出稍后再看.\n注意:\n- 一定要播放结束, 快结束时手动切走不算\n- b 站的稍后再看列表不会实时刷新\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,n.d(a,i),a},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.d(a,{component:()=>c});const e=coreApis.componentApis.define,t=coreApis.observer,o=coreApis.utils.urls,r=coreApis.componentApis.video.playerAgent,i=coreApis.componentApis.video.watchlater,c=(0,e.defineComponentMetadata)({name:"autoRemoveWatchlater",displayName:"自动移出稍后再看",tags:[componentsTags.video],urlInclude:[...o.watchlaterUrls,...o.videoUrls],entry:()=>{(0,t.videoChange)((async e=>{let{aid:t}=e;(await r.playerAgent.query.video.element()).addEventListener("ended",(async()=>{(await(0,i.getWatchlaterList)()).includes(parseInt(t))&&await(0,i.toggleWatchlater)(t)}))}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(955);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,219,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/av-url.js b/registry/dist/components/video/av-url.js index 2c122a0f7..633f2df21 100644 --- a/registry/dist/components/video/av-url.js +++ b/registry/dist/components/video/av-url.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/av-url"]=o():e["video/av-url"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>a});const t=coreApis.componentApis.define,i=coreApis.lifeCycle,n=coreApis.observer,r=coreApis.spinQuery,s=coreApis.utils.urls,a=(0,t.defineComponentMetadata)({name:"avUrl",displayName:"网址AV号转换",description:{"zh-CN":"当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次."},entry:()=>{(0,i.fullyLoaded)((()=>{(0,n.urlChange)((async()=>{const e=await(0,r.select)((()=>unsafeWindow.aid));if(!e)return;if(document.URL.includes("videocard_series"))return void console.log("skip video series");const o=document.URL.replace(/\/(video|bangumi)\/(BV[\w]+)/i,((o,t)=>`/${t}/av${e}`));document.URL!==o&&window.history.replaceState(history.state,"",o)}))}))},tags:[componentsTags.video,componentsTags.utils],urlInclude:s.videoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/av-url"]=o():e["video/av-url"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>c});const t=coreApis.componentApis.define,i=coreApis.lifeCycle,n=coreApis.observer,r=coreApis.spinQuery,s=coreApis.utils.urls,c=(0,t.defineComponentMetadata)({name:"avUrl",displayName:"网址AV号转换",description:{"zh-CN":"当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次."},entry:()=>{(0,i.fullyLoaded)((()=>{(0,n.urlChange)((async()=>{const e=await(0,r.select)((()=>unsafeWindow.aid));if(!e)return;if(document.URL.includes("videocard_series"))return void console.log("skip video series");const o=document.URL.replace(/\/(video|bangumi)\/(BV[\w]+)/i,((o,t)=>`/${t}/av${e}`));document.URL!==o&&window.history.replaceState(history.state,"",o)}))}))},tags:[componentsTags.video,componentsTags.utils],urlInclude:s.videoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/biliplus-redirect.js b/registry/dist/components/video/biliplus-redirect.js index 6b38d2c8b..cd343d6b0 100644 --- a/registry/dist/components/video/biliplus-redirect.js +++ b/registry/dist/components/video/biliplus-redirect.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/biliplus-redirect"]=t():e["video/biliplus-redirect"]=t()}(globalThis,(()=>(()=>{"use strict";var e={249:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("a",{attrs:{href:e.url,target:"_blank",tabindex:"-1"}},[t("DefaultWidget",{attrs:{name:"转到BiliPlus",icon:"biliplus",disabled:!e.url}})],1)};i._withStripped=!0;const n=coreApis.observer,r=coreApis.ui,s=/\/(video|medialist\/play)\/([^\/]+\/)?(av[\d]+|BV.+)/i,a=[{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>document.URL.includes("/bangumi/play"),getUrl:(e,t)=>((0,n.videoChange)((()=>{const o=unsafeWindow.aid||document.querySelector(".av-link,.info-sec-av").innerText.replace(/[aAvV]/g,""),i=`https://${e}/video/av${o}/`;document.URL!==i?t(i):t("")})),`https://${e}${window.location.pathname}${window.location.search}`)},{condition:()=>s.test(document.URL),getUrl:e=>`https://${e}/video/${document.URL.match(s)[3]}/`}];var l=function(e,t,o,i,n,r,s,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({url:""}),created(){const e="www.biliplus.com",t=e=>this.url=e,o=a.find((e=>e.condition()));o?t(o.getUrl(e,t)):(0,n.videoChange)((()=>{this.url=document.URL.replace(window.location.host,e)}))}}),i,[],!1,null,null,null);const c=l.exports}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"biliplusRedirect",displayName:"BiliPlus 跳转支持",description:{"zh-CN":"在视频 / 番剧 / 空间中, 可以从功能中的按钮点击转到 BiliPlus 上对应的页面."},urlInclude:[...t.videoAndBangumiUrls,"//space.bilibili.com"],entry:none,tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,249)).then((e=>e.default))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/biliplus-redirect"]=t():e["video/biliplus-redirect"]=t()}(globalThis,(()=>(()=>{"use strict";var e={249:(e,t,o)=>{o.r(t),o.d(t,{default:()=>a});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("a",{attrs:{href:e.url,target:"_blank",tabindex:"-1"}},[t("DefaultWidget",{attrs:{name:"转到BiliPlus",icon:"biliplus",disabled:!e.url}})],1)};i._withStripped=!0;const n=coreApis.observer,r=coreApis.ui,s=/\/(video|medialist\/play)\/([^\/]+\/)?(av[\d]+|BV.+)/i,c=[{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>document.URL.includes("/bangumi/play"),getUrl:(e,t)=>((0,n.videoChange)((()=>{const o=unsafeWindow.aid||document.querySelector(".av-link,.info-sec-av").innerText.replace(/[aAvV]/g,""),i=`https://${e}/video/av${o}/`;document.URL!==i?t(i):t("")})),`https://${e}${window.location.pathname}${window.location.search}`)},{condition:()=>s.test(document.URL),getUrl:e=>`https://${e}/video/${document.URL.match(s)[3]}/`}];var l=function(e,t,o,i,n,r,s,c){var l,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=o,a._compiled=!0),i&&(a.functional=!0),r&&(a._scopeId="data-v-"+r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=l):n&&(l=c?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var d=a.render;a.render=function(e,t){return l.call(t),d(e,t)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:a}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({url:""}),created(){const e="www.biliplus.com",t=e=>this.url=e,o=c.find((e=>e.condition()));o?t(o.getUrl(e,t)):(0,n.videoChange)((()=>{this.url=document.URL.replace(window.location.host,e)}))}}),i,[],!1,null,null,null);const a=l.exports}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.d(i,{component:()=>n});const e=coreApis.componentApis.define,t=coreApis.utils.urls,n=(0,e.defineComponentMetadata)({name:"biliplusRedirect",displayName:"BiliPlus 跳转支持",description:{"zh-CN":"在视频 / 番剧 / 空间中, 可以从功能中的按钮点击转到 BiliPlus 上对应的页面."},urlInclude:[...t.videoAndBangumiUrls,"//space.bilibili.com"],entry:none,tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,249)).then((e=>e.default))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/bvid-convert.js b/registry/dist/components/video/bvid-convert.js index ab1fd97e4..03455a598 100644 --- a/registry/dist/components/video/bvid-convert.js +++ b/registry/dist/components/video/bvid-convert.js @@ -6,7 +6,7 @@ t.i=function(e,n,i){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>w});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bvid-convert"},[e.aid?t("div",{staticClass:"bvid-convert-item"},[e._v("\n "+e._s(e.aid)+"\n "),t("div",{staticClass:"bvid-convert-item-copy",attrs:{title:"复制链接"},on:{click:function(t){return e.copyLink("aid")}}},[t("VIcon",{attrs:{size:16,icon:e.aidCopied?"mdi-check":"mdi-link"}})],1)]):e._e(),e._v(" "),e.bvid?t("div",{staticClass:"bvid-convert-item"},[e._v("\n "+e._s(e.bvid)+"\n "),t("div",{staticClass:"bvid-convert-item-copy",attrs:{title:"复制链接"},on:{click:function(t){return e.copyLink("bvid")}}},[t("VIcon",{attrs:{size:16,icon:e.bvidCopied?"mdi-check":"mdi-link"}})],1)]):e._e()])};i._withStripped=!0;const o=coreApis.observer,r=coreApis.settings;var a=n(200);const s=coreApis.utils,c=coreApis.utils.title;var d=n(457);const l=coreApis.ui,{options:u}=(0,r.getComponentSettings)("bvidConvert");var p=function(e){return e.Aid="aid",e.Bvid="bvid",e}(p||{});const v=[p.Aid,p.Bvid],f=[e=>{let{id:t,query:n}=e;return v.some((e=>n.includes(`${e}=`)))?`https://www.bilibili.com/video/${t}`:null},e=>{let{id:t}=e;return d.bangumiUrls.some((e=>(0,s.matchUrlPattern)(e)))?`https://www.bilibili.com/video/${t}`:null},e=>{let{id:t,query:n}=e;const i=new URLSearchParams(n),o=new URLSearchParams;for(const e of["p","t"]){const t=i.get(e);t&&o.set(e,t)}return`https://www.bilibili.com/video/${t}${o.size>0?`?${o.toString()}`:""}`}],m=Vue.extend({components:{VIcon:l.VIcon},data:()=>({aid:"",aidCopied:!1,bvid:"",bvidCopied:!1}),async mounted(){(0,o.videoChange)((async()=>{this.aid=`av${unsafeWindow.aid}`,this.bvid=unsafeWindow.bvid;const e=await(0,a.select)(".av-link,.bv-link,.bvid-link");e&&(this.bvid=e.innerHTML.trim())}))},methods:{async copyLink(e){if(this[`${e}Copied`])return;const t={query:location.search,url:location.origin+location.pathname,id:this[e]},n=f.map((e=>e(t))).filter((e=>null!==e))[0];u.copyWithTitle?await navigator.clipboard.writeText(`${(0,c.getFriendlyTitle)()} ${n}`):await navigator.clipboard.writeText(n),this[`${e}Copied`]=!0,setTimeout((()=>this[`${e}Copied`]=!1),1e3)}}});var b=n(332),h=n.n(b),y=n(822),g=n.n(y),x={insert:"head",singleton:!1};h()(g(),x);g().locals;var C=function(e,t,n,i,o,r,a,s){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):o&&(c=s?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}(m,i,[],!1,null,null,null);const w=C.exports},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( +var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a{"use strict";n.r(t),n.d(t,{default:()=>w});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"bvid-convert"},[e.aid?t("div",{staticClass:"bvid-convert-item"},[e._v("\n "+e._s(e.aid)+"\n "),t("div",{staticClass:"bvid-convert-item-copy",attrs:{title:"复制链接"},on:{click:function(t){return e.copyLink("aid")}}},[t("VIcon",{attrs:{size:16,icon:e.aidCopied?"mdi-check":"mdi-link"}})],1)]):e._e(),e._v(" "),e.bvid?t("div",{staticClass:"bvid-convert-item"},[e._v("\n "+e._s(e.bvid)+"\n "),t("div",{staticClass:"bvid-convert-item-copy",attrs:{title:"复制链接"},on:{click:function(t){return e.copyLink("bvid")}}},[t("VIcon",{attrs:{size:16,icon:e.bvidCopied?"mdi-check":"mdi-link"}})],1)]):e._e()])};i._withStripped=!0;const o=coreApis.observer,r=coreApis.settings;var s=n(200);const a=coreApis.utils,c=coreApis.utils.title;var d=n(457);const l=coreApis.ui,{options:u}=(0,r.getComponentSettings)("bvidConvert");var p=function(e){return e.Aid="aid",e.Bvid="bvid",e}(p||{});const v=[p.Aid,p.Bvid],f=[e=>{let{id:t,query:n}=e;return v.some((e=>n.includes(`${e}=`)))?`https://www.bilibili.com/video/${t}`:null},e=>{let{id:t}=e;return d.bangumiUrls.some((e=>(0,a.matchUrlPattern)(e)))?`https://www.bilibili.com/video/${t}`:null},e=>{let{id:t,query:n}=e;const i=new URLSearchParams(n),o=new URLSearchParams;for(const e of["p","t"]){const t=i.get(e);t&&o.set(e,t)}return`https://www.bilibili.com/video/${t}${o.size>0?`?${o.toString()}`:""}`}],m=Vue.extend({components:{VIcon:l.VIcon},data:()=>({aid:"",aidCopied:!1,bvid:"",bvidCopied:!1}),async mounted(){(0,o.videoChange)((async()=>{this.aid=`av${unsafeWindow.aid}`,this.bvid=unsafeWindow.bvid;const e=await(0,s.select)(".av-link,.bv-link,.bvid-link");e&&(this.bvid=e.innerHTML.trim())}))},methods:{async copyLink(e){if(this[`${e}Copied`])return;const t={query:location.search,url:location.origin+location.pathname,id:this[e]},n=f.map((e=>e(t))).filter((e=>null!==e))[0];u.copyWithTitle?await navigator.clipboard.writeText(`${(0,c.getFriendlyTitle)()} ${n}`):await navigator.clipboard.writeText(n),this[`${e}Copied`]=!0,setTimeout((()=>this[`${e}Copied`]=!1),1e3)}}});var b=n(332),h=n.n(b),y=n(822),g=n.n(y),x={insert:"head",singleton:!1};h()(g(),x);g().locals;var C=function(e,t,n,i,o,r,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):o&&(c=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}(m,i,[],!1,null,null,null);const w=C.exports},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.spinQuery},457:e=>{"use strict";e.exports=coreApis.utils.urls}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>a});const e=coreApis.componentApis.define;var t=n(200),o=n(457);const r=(0,e.defineOptionsMetadata)({copyWithTitle:{defaultValue:!1,displayName:"复制链接时带上标题"}}),a=(0,e.defineComponentMetadata)({name:"bvidConvert",displayName:"BV 号转换",options:r,entry:none,description:{"zh-CN":"在功能面板中显示视频的 AV 号和 BV 号."},tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(n.bind(n,574)).then((e=>e.default)),condition:t.hasVideo},urlInclude:o.videoAndBangumiUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.spinQuery},457:e=>{"use strict";e.exports=coreApis.utils.urls}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>s});const e=coreApis.componentApis.define;var t=n(200),o=n(457);const r=(0,e.defineOptionsMetadata)({copyWithTitle:{defaultValue:!1,displayName:"复制链接时带上标题"}}),s=(0,e.defineComponentMetadata)({name:"bvidConvert",displayName:"BV 号转换",options:r,entry:none,description:{"zh-CN":"在功能面板中显示视频的 AV 号和 BV 号."},tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(n.bind(n,574)).then((e=>e.default)),condition:t.hasVideo},urlInclude:o.videoAndBangumiUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/danmaku/airborne.js b/registry/dist/components/video/danmaku/airborne.js index c2b13edd2..61d28e311 100644 --- a/registry/dist/components/video/danmaku/airborne.js +++ b/registry/dist/components/video/danmaku/airborne.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(o)for(var i=0;i{var o=n(698);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>c});const e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,o=coreApis.componentApis.video.videoDanmaku,a=coreApis.observer,s=coreApis.utils.urls,c=(0,t.defineComponentMetadata)({displayName:"启用弹幕空降",author:{name:"kdxcxs",link:"https://github.com/kdxcxs"},description:{"zh-CN":"为可能含有时间点的弹幕添加下划线, 点击可以跳到视频对应时间."},tags:[componentsTags.video],urlInclude:s.playerUrls,...(0,e.toggleStyle)("danmakuAirborne",(()=>Promise.resolve().then(r.t.bind(r,751,23))),(async e=>{let{settings:t}=e;const{enabled:r}=t,i=e=>{if(!e)return NaN;const t=e.match(/(\d+)[ ]*[::时分][ ]*(\d+)([ ]*[::分][ ]*(\d+))?/);if(!t)return NaN;if(t[3]){const[,n,o,,r]=t.map((e=>parseInt(e)));return[n,o,r].some((e=>Number.isNaN(e)))||e.includes("分")&&!e.includes("时")?NaN:3600*n+60*o+r}const[,n,o]=t.map((e=>parseInt(e)));return[n,o].some((e=>Number.isNaN(e)))?NaN:60*n+o},s=e=>{if(!r)return;const t=e.target;if(!["b-danmaku","bili-dm"].some((e=>t.classList.contains(e))))return;const n=i(t.textContent);Number.isNaN(n)||unsafeWindow.player.seek(n,!1)};(0,o.forEachVideoDanmaku)({added:e=>{const t=!Number.isNaN(i(e.text));e.element.classList.toggle("airborne",t)}}),(0,a.videoChange)((async()=>{const e=await n.playerAgent.query.video.wrap();e.classList.contains("airborne-enabled")||(e.classList.add("airborne-enabled"),e.addEventListener("click",s))}))})),commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s{var o=n(698);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>c});const e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,o=coreApis.componentApis.video.videoDanmaku,a=coreApis.observer,s=coreApis.utils.urls,c=(0,t.defineComponentMetadata)({displayName:"启用弹幕空降",author:{name:"kdxcxs",link:"https://github.com/kdxcxs"},description:{"zh-CN":"为可能含有时间点的弹幕添加下划线, 点击可以跳到视频对应时间."},tags:[componentsTags.video],urlInclude:s.playerUrls,...(0,e.toggleStyle)("danmakuAirborne",(()=>Promise.resolve().then(r.t.bind(r,751,23))),(async e=>{let{settings:t}=e;const{enabled:r}=t,i=e=>{if(!e)return NaN;const t=e.match(/(\d+)[ ]*[::时分][ ]*(\d+)([ ]*[::分][ ]*(\d+))?/);if(!t)return NaN;if(t[3]){const[,n,o,,r]=t.map((e=>parseInt(e)));return[n,o,r].some((e=>Number.isNaN(e)))||e.includes("分")&&!e.includes("时")?NaN:3600*n+60*o+r}const[,n,o]=t.map((e=>parseInt(e)));return[n,o].some((e=>Number.isNaN(e)))?NaN:60*n+o},s=e=>{if(!r)return;const t=e.target;if(!["b-danmaku","bili-dm"].some((e=>t.classList.contains(e))))return;const n=i(t.textContent);Number.isNaN(n)||unsafeWindow.player.seek(n,!1)};(0,o.forEachVideoDanmaku)({added:e=>{const t=!Number.isNaN(i(e.text));e.element.classList.toggle("airborne",t)}}),(0,a.videoChange)((async()=>{const e=await n.playerAgent.query.video.wrap();e.classList.contains("airborne-enabled")||(e.classList.add("airborne-enabled"),e.addEventListener("click",s))}))})),commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/danmaku/download.js b/registry/dist/components/video/danmaku/download.js index 546da7b78..98b1b7b8d 100644 --- a/registry/dist/components/video/danmaku/download.js +++ b/registry/dist/components/video/danmaku/download.js @@ -9,4 +9,4 @@ t=[[null,t,""]]);var o={};if(n)for(var r=0;r{"use strict";i.r(e),i.d(e,{decodeDanmakuSegment:()=>a,decodeDanmakuView:()=>s,getDanmakuSegment:()=>d,getDanmakuView:()=>c,proto:()=>o});const n=coreApis.runtimeLibrary,o={nested:{DmWebViewReply:{fields:{state:{type:"int32",id:1},text:{type:"string",id:2},textSide:{type:"string",id:3},dmSge:{type:"DmSegConfig",id:4},flag:{type:"DanmakuFlagConfig",id:5},specialDms:{rule:"repeated",type:"string",id:6},checkBox:{type:"bool",id:7},count:{type:"int64",id:8},commandDms:{rule:"repeated",type:"CommandDm",id:9},dmSetting:{type:"DanmuWebPlayerConfig",id:10}}},CommandDm:{fields:{id:{type:"int64",id:1},oid:{type:"int64",id:2},mid:{type:"int64",id:3},command:{type:"string",id:4},content:{type:"string",id:5},progress:{type:"int32",id:6},ctime:{type:"string",id:7},mtime:{type:"string",id:8},extra:{type:"string",id:9},idStr:{type:"string",id:10}}},DmSegConfig:{fields:{pageSize:{type:"int64",id:1},total:{type:"int64",id:2}}},DanmakuFlagConfig:{fields:{recFlag:{type:"int32",id:1},recText:{type:"string",id:2},recSwitch:{type:"int32",id:3}}},DmSegMobileReply:{fields:{elems:{rule:"repeated",type:"DanmakuElem",id:1}}},DanmakuElem:{fields:{id:{type:"int64",id:1},progress:{type:"int32",id:2},mode:{type:"int32",id:3},fontsize:{type:"int32",id:4},color:{type:"uint32",id:5},midHash:{type:"string",id:6},content:{type:"string",id:7},ctime:{type:"int64",id:8},weight:{type:"int32",id:9},action:{type:"string",id:10},pool:{type:"int32",id:11},idStr:{type:"string",id:12},attr:{type:"int32",id:13}}},DanmuWebPlayerConfig:{fields:{dmSwitch:{type:"bool",id:1},aiSwitch:{type:"bool",id:2},aiLevel:{type:"int32",id:3},blocktop:{type:"bool",id:4},blockscroll:{type:"bool",id:5},blockbottom:{type:"bool",id:6},blockcolor:{type:"bool",id:7},blockspecial:{type:"bool",id:8},preventshade:{type:"bool",id:9},dmask:{type:"bool",id:10},opacity:{type:"float",id:11},dmarea:{type:"int32",id:12},speedplus:{type:"float",id:13},fontsize:{type:"float",id:14},screensync:{type:"bool",id:15},speedsync:{type:"bool",id:16},fontfamily:{type:"string",id:17},bold:{type:"bool",id:18},fontborder:{type:"int32",id:19},drawType:{type:"string",id:20}}}}},r=lodash.curry((async(t,e)=>{const i=new Uint8Array("arrayBuffer"in Blob.prototype?await e.arrayBuffer():await new Response(e).arrayBuffer()),r=(await n.protobufLibrary).Root.fromJSON(o).lookupType(t),a=r.decode(i);return r.toObject(a)})),a=r("DmSegMobileReply"),s=r("DmWebViewReply"),l=async t=>(await fetch(t,{mode:"cors",credentials:"include"})).blob(),c=async(t,e)=>{const i=await l(`https://api.bilibili.com/x/v2/dm/web/view?type=1&oid=${e}&pid=${t}`);if(!i)throw new Error("获取弹幕信息失败");return await s(i)},d=async(t,e,i)=>{const n=await l(`https://api.bilibili.com/x/v2/dm/web/seg.so?type=1&oid=${e}&pid=${t}&segment_index=${i+1}`);if(!n)throw new Error(`弹幕片段${i+1}下载失败`);return a(n)}},580:(t,e,i)=>{"use strict";i.r(e),i.d(e,{JsonDanmaku:()=>F,convertToAss:()=>D,convertToAssFromJson:()=>A,convertToXmlFromJson:()=>C,getBlobByType:()=>P,getUserDanmakuConfig:()=>$});const n=coreApis.utils.lazyPanel;var o=i(414);const r=coreApis.utils.sort;var a=i(674);const s=coreApis.componentApis.video.assUtils;function l(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class c{constructor(t){let{content:e,time:i,type:n,fontSize:o,color:r}=t;l(this,"content",void 0),l(this,"time",void 0),l(this,"startTime",void 0),l(this,"type",void 0),l(this,"fontSize",void 0),l(this,"color",void 0),this.content=e,this.time=i,this.startTime=parseFloat(i),this.type=parseInt(n),this.fontSize=parseFloat(o),this.color=parseInt(r)}}function d(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class u extends c{constructor(t){let{content:e,time:i,type:n,fontSize:o,color:r,typeTag:a,colorTag:s,endTime:l}=t;super({content:e,time:i,type:n,fontSize:o,color:r}),d(this,"typeTag",void 0),d(this,"colorTag",void 0),d(this,"endTime",void 0),this.typeTag=a,this.colorTag=s,this.endTime=l}text(t){let e=t[this.fontSize];e||(e=t[25]);const i=e.match(/Style:(.*?),/)[1].trim();return`Dialogue: 0,${this.time},${this.endTime},${i},,0,0,0,,{${this.typeTag}${this.colorTag}}${this.content}`}}class p{constructor(t,e,i,n,o){d(this,"danmakus",void 0),d(this,"title",void 0),d(this,"fontStyles",void 0),d(this,"blockTypes",void 0),d(this,"resolution",void 0),this.danmakus=t,this.title=e,this.fontStyles=i,this.blockTypes=n,this.resolution=o}generateAss(){return`${`\n[Script Info]\n; Script generated by Bilibili Evolved Danmaku Converter\n; https://github.com/the1812/Bilibili-Evolved/\nTitle: ${this.title}\nScriptType: v4.00+\nPlayResX: ${this.resolution.x}\nPlayResY: ${this.resolution.y}\nTimer: 10.0000\nWrapStyle: 2\nScaledBorderAndShadow: no\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n${Object.values(this.fontStyles).join("\n")}\n\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n `.trim()}\n${this.danmakus.map((t=>t.text(this.fontStyles))).filter((t=>""!==t)).join("\n")}`}}const m=coreApis.componentApis.video.xmlUtils;function h(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class f extends c{constructor(t){let{content:e,time:i,type:n,fontSize:o,color:r,timeStamp:a,pool:s,userHash:l,rowId:c}=t;super({content:e,time:i,type:n,fontSize:o,color:r}),h(this,"timeStamp",void 0),h(this,"pool",void 0),h(this,"userHash",void 0),h(this,"rowId",void 0),h(this,"pDataArray",void 0),this.timeStamp=parseInt(a),this.pool=parseInt(s),this.userHash=l,this.rowId=parseInt(c),this.pDataArray=[i,n,o,r,a,s,l,c]}text(){return`${(0,m.escapeContent)(this.content)}`}static parse(t){const e=t.getAttribute("p"),[i,n,o,r,a,s,l,c]=e.split(","),d=t.innerHTML;return new f({content:d,time:i,type:n,fontSize:o,color:r,timeStamp:a,pool:s,userHash:l,rowId:c})}}class y{constructor(t){h(this,"xml",void 0),h(this,"danmakus",void 0),this.xml=t;const e=(new DOMParser).parseFromString(t,"application/xml").documentElement;this.danmakus=[...e.querySelectorAll("d[p]")].map((t=>f.parse(t)))}}const g=coreApis.utils;let v=function(t){return t[t.Normal=1]="Normal",t[t.Normal2=2]="Normal2",t[t.Normal3=3]="Normal3",t[t.Bottom=4]="Bottom",t[t.Top=5]="Top",t[t.Reversed=6]="Reversed",t[t.Special=7]="Special",t[t.Special2=8]="Special2",t}({});function b(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class S{constructor(t,e,i,n){b(this,"horizontalStack",void 0),b(this,"horizontalTrack",void 0),b(this,"verticalStack",void 0),b(this,"verticalTrack",void 0),b(this,"resolution",void 0),b(this,"duration",void 0),b(this,"canvas",void 0),b(this,"context",void 0),b(this,"fontSizes",void 0),b(this,"bottomMarginPercent",void 0),b(this,"danmakuHeight",void 0),b(this,"trackHeight",void 0),b(this,"trackCount",void 0),this.horizontalStack=[],this.horizontalTrack=[],this.verticalStack=[],this.verticalTrack=[],this.resolution=e,this.duration=i,this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.fontSizes={30:`64px ${t}`,25:`52px ${t}`,18:`36px ${t}`,45:`90px ${t}`},this.bottomMarginPercent=n,this.generateTracks()}generateTracks(){this.danmakuHeight=52,this.trackHeight=2*S.margin+52,this.trackCount=parseInt((0,g.fixed)(this.resolution.y*(1-this.bottomMarginPercent)/this.trackHeight,0))}getTextSize(t){this.context.font=this.fontSizes[t.fontSize];return[this.context.measureText(t.content).width/2,this.danmakuHeight/2]}getTags(t,e){let{targetTrack:i,initTrackNumber:n,nextTrackNumber:o,willOverlay:r,getTrackItem:a,getTag:s}=e;const[l,c]=this.getTextSize(t),d=2*l,u=this.duration(t)*d/(this.resolution.x+d)+S.nextDanmakuDelay;let p=n,m=null;const h=t=>r(t,p,d);do{m=i.find(h),p+=o}while(m&&p<=this.trackCount&&p>=0);return p>this.trackCount||p<0?"\\pos(0,-999)":(p-=o,i.push(a(p,d,u)),s({trackNumber:p,x:l,y:c}))}getHorizontalTags(t){return this.getTags(t,{targetTrack:this.horizontalTrack,initTrackNumber:0,nextTrackNumber:1,willOverlay:(e,i,n)=>e.trackNumber===i&&(e.widtht.startTime),getTrackItem:(e,i,n)=>({width:i,start:t.startTime,visible:t.startTime+n,end:t.startTime+this.duration(t),trackNumber:e}),getTag:e=>{let{trackNumber:i,x:n,y:o}=e;return`\\move(${this.resolution.x+n},${i*this.trackHeight+S.margin+o},${-n},${i*this.trackHeight+S.margin+o},0,${1e3*this.duration(t)})`}})}getVerticalTags(t){const e="top"===S.danmakuType[t.type];return this.getTags(t,{targetTrack:this.verticalTrack,initTrackNumber:e?0:this.trackCount-1,nextTrackNumber:e?1:-1,willOverlay:(e,i)=>e.trackNumber===i&&e.end>t.startTime,getTrackItem:e=>({start:t.startTime,end:t.startTime+this.duration(t),trackNumber:e}),getTag:t=>{let{trackNumber:i,y:n}=t;return e?`\\pos(${this.resolution.x/2},${i*this.trackHeight+S.margin+n})`:`\\pos(${this.resolution.x/2},${this.resolution.y-S.margin-n-(this.trackCount-1-i)*this.trackHeight})`}})}push(t){let e="",i=[];switch(S.danmakuType[t.type]){case"normal":case"reversed":e=this.getHorizontalTags(t),i=this.horizontalStack;break;case"top":case"bottom":e=this.getVerticalTags(t),i=this.verticalStack;break;default:return{tags:"\\pos(0,-999)"}}const n={tags:e};return i.push(n),n}}function k(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}b(S,"danmakuType",{[v.Normal]:"normal",[v.Normal2]:"normal",[v.Normal3]:"normal",[v.Bottom]:"bottom",[v.Top]:"top",[v.Reversed]:"reversed",[v.Special]:"special",[v.Special2]:"special"}),b(S,"margin",4),b(S,"nextDanmakuDelay",.05);class w{constructor(t){let{title:e,font:i,alpha:n,duration:o,blockTypes:r,blockFilter:a,resolution:s,bottomMarginPercent:l,bold:c}=t;k(this,"title",void 0),k(this,"font",void 0),k(this,"alpha",void 0),k(this,"duration",void 0),k(this,"blockTypes",void 0),k(this,"blockFilter",void 0),k(this,"resolution",void 0),k(this,"bold",void 0),k(this,"danmakuStack",void 0),this.title=e,this.font=i,this.alpha=Math.round(255*n).toString(16).toUpperCase().padStart(2,"0"),this.duration=o,this.blockTypes=r,this.blockFilter=a||(()=>!0),this.resolution=s,this.bold=c,this.danmakuStack=new S(i,s,o,l)}get fontStyles(){return{36:`Style: Larger,${this.font},72,&H${this.alpha}FFFFFF,&H${this.alpha}FFFFFF,&H${this.alpha}000000,&H${this.alpha}000000,${this.bold?"1":"0"},0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0`,30:`Style: Large,${this.font},64,&H${this.alpha}FFFFFF,&H${this.alpha}FFFFFF,&H${this.alpha}000000,&H${this.alpha}000000,${this.bold?"1":"0"},0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0`,25:`Style: Medium,${this.font},52,&H${this.alpha}FFFFFF,&H${this.alpha}FFFFFF,&H${this.alpha}000000,&H${this.alpha}000000,${this.bold?"1":"0"},0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0`,18:`Style: Small,${this.font},36,&H${this.alpha}FFFFFF,&H${this.alpha}FFFFFF,&H${this.alpha}000000,&H${this.alpha}000000,${this.bold?"1":"0"},0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0`,45:`Style: ExtraLarge,${this.font},90,&H${this.alpha}FFFFFF,&H${this.alpha}FFFFFF,&H${this.alpha}000000,&H${this.alpha}000000,${this.bold?"1":"0"},0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0`}}xmlDanmakuToAssDocument(t){const e=[];for(const i of t){const t=-1!==this.blockTypes.indexOf(i.type),n=-1!==this.blockTypes.indexOf("color")&&i.color!==w.white;if(t||n)continue;if(!this.blockFilter(i))continue;const[o,r]=(0,s.convertTimeByDuration)(i.startTime,this.duration(i));e.push(new u({content:(0,s.normalizeContent)(i.content),time:o,endTime:r,type:i.type.valueOf().toString(),fontSize:i.fontSize.toString(),color:i.color.toString(),typeTag:this.convertType(i),colorTag:(0,s.convertHexColorForDialogue)(i.color.toString(16))}))}return new p(e,this.title,this.fontStyles,this.blockTypes,this.resolution)}xmlStringToAssDocument(t){const e=new y(t);return this.xmlDanmakuToAssDocument(e.danmakus.sort((0,r.ascendingSort)((t=>t.startTime))))}convertType(t){return this.danmakuStack.push(t).tags}}k(w,"white",16777215);const T=coreApis.componentApis.video.playerAgent;function x(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class F{constructor(t,e){this.aid=t,this.cid=e,x(this,"jsonDanmakus",[])}get xmlDanmakus(){return this.jsonDanmakus.map((t=>({content:t.content,time:t.progress?(t.progress/1e3).toString():"0",type:t.mode?.toString()??"1",fontSize:t.fontsize?.toString()??"25",color:t.color?.toString()??"16777215",timeStamp:t.ctime?.toString()??"0",pool:t.pool?.toString()??"0",userHash:t.midHash??"0",rowId:t.idStr??"0"})))}async fetchInfo(){const{getDanmakuSegment:t,getDanmakuView:e}=await Promise.resolve().then(i.bind(i,497)),n=await e(this.aid,this.cid),{total:a}=n.dmSge;if(void 0===a)throw new Error(`获取弹幕分页数失败: ${JSON.stringify(lodash.omit(n,"flag"))}`);console.log("segment count =",a);const s=await Promise.all(new Array(a).fill(0).map((async(e,i)=>{try{const e=await t(this.aid,this.cid,i),n=e.elems??[];return console.log(`received blob for segment ${i+1}, count = ${n.length}, result =`,e),n}catch(t){throw(0,o.logError)(t),t}})));return this.jsonDanmakus=s.flat().sort((0,r.ascendingSort)((t=>t.progress??0))),this}}const $=async()=>{const t=(0,a.getFriendlyTitle)(),e={font:"微软雅黑",alpha:.4,duration:t=>{switch(t.type){case 4:case 5:return 4;default:return 6}},blockTypes:[7,8],resolution:{x:1920,y:1080},bottomMarginPercent:.15,bold:!1};let i={...e,title:t};try{await(0,n.loadDanmakuSettingsPanel)();if(localStorage.getItem("bilibili_player_settings")){i.blockTypes=(()=>{const t=[],e={scroll:[1,2,3],top:[5],bottom:[4],color:["color"]};for(const[i,n]of Object.entries(e))!1===T.playerAgent.getPlayerConfig(`block.type_${i}`,!0)&&t.push(...n);return t.concat(7,8)})(),i.bold=T.playerAgent.getPlayerConfig("bold",!1),i.alpha=lodash.clamp(1-parseFloat(T.playerAgent.getPlayerConfig("opacity","0.4")),0,1);const t=1.4-.4*T.playerAgent.getPlayerConfig("fontsize",1);i.resolution={x:Math.round(1920*t),y:Math.round(1080*t)},i.duration=(()=>{const t=18-3*T.playerAgent.getPlayerConfig("speedplus",0);return e=>{switch(e.type){case 4:case 5:return 4;default:return t}}})();const e=T.playerAgent.getPlayerConfig("danmakuArea",0);i.bottomMarginPercent=e>=100?0:e/100,0===i.bottomMarginPercent&&T.playerAgent.getPlayerConfig("preventshade",!1)&&(i.bottomMarginPercent=.15);const n=T.playerAgent.getPlayerConfig("block.list",[]);i.blockFilter=t=>{for(const e of n)if(e.s)switch(e.t){default:return!0;case"keyword":if(t.content.includes(e.v))return!1;break;case"regexp":if(new RegExp(e.v).test(t.content))return!1;break;case"user":if(t.userHash===e.v)return!1}return!0}}else console.warn("[弹幕转换] 未找到播放器设置"),i={...i,...e};i.font=dq(":is(.bilibili-player-video-danmaku-setting-right-font, .bpx-player-dm-setting-right-font-content-fontfamily) .bui-select-result").innerText}catch(t){(0,o.logError)(t),i={...i,...e}}for(const[t,n]of Object.entries(i))null==n&&(console.warn("danmaku config invalid for key",t,", value =",n),i[t]=e[n]);return console.log(i),i},D=async t=>new w(await $()).xmlStringToAssDocument(t).generateAss(),A=async t=>new w(await $()).xmlDanmakuToAssDocument(t.xmlDanmakus.map((t=>new f(t)))).generateAss(),C=t=>`\nchat.bilibili.com${t.cid}0${t.xmlDanmakus.length}00k-v\n${t.xmlDanmakus.map((t=>` ${new f(t).text()}`)).join("\n")}\n\n `.trim(),P=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:unsafeWindow;const{aid:i,cid:n}=e,o=await new F(i,n).fetchInfo();switch(t){case"xml":return new Blob([C(o)],{type:"text/xml"});default:case"json":return new Blob([JSON.stringify(o.jsonDanmakus,void 0,2)],{type:"text/json"});case"ass":return new Blob([await A(o)],{type:"text/ass"})}}},103:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>u});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"multiple-widgets"},[e("DefaultWidget",{attrs:{disabled:t.disabled,name:"下载弹幕 (XML)",icon:"danmaku"},on:{click:function(e){return t.download("xml")}}}),t._v(" "),e("DefaultWidget",{attrs:{disabled:t.disabled,name:"下载弹幕 (JSON)",icon:"danmaku"},on:{click:function(e){return t.download("json")}}}),t._v(" "),e("DefaultWidget",{attrs:{disabled:t.disabled,name:"下载弹幕 (ASS)",icon:"danmaku"},on:{click:function(e){return t.download("ass")}}})],1)};n._withStripped=!0;const o=coreApis.download;var r=i(414),a=i(674);const s=coreApis.pluginApis.data;var l=i(648);var c=i(580);(0,s.addData)("ui.icons",(t=>{t.danmaku=''}));const d=Vue.extend({components:{DefaultWidget:l.DefaultWidget},data:()=>({disabled:!1}),methods:{async download(t){try{this.disabled=!0;const e=(0,a.getFriendlyTitle)(),i=await(0,c.getBlobByType)(t);await o.DownloadPackage.single(`${e}.${t}`,i)}catch(t){(0,r.logError)(t)}finally{this.disabled=!1}}}});const u=(0,i(499).Z)(d,n,[],!1,null,null,null).exports},354:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"download-danmaku-config download-video-config-section"},[e("div",{staticClass:"download-video-config-item"},[e("div",{staticClass:"download-video-config-title"},[t._v("弹幕:")]),t._v(" "),e("VDropdown",{attrs:{items:t.items},scopedSlots:t._u([{key:"item",fn:function({item:e}){return[t._v("\n "+t._s(e)+"\n ")]}}]),model:{value:t.type,callback:function(e){t.type=e},expression:"type"}})],1)])};n._withStripped=!0;const o=coreApis.settings;var r=i(648);const a=(0,o.getComponentSettings)("downloadVideo").options,s=Vue.extend({components:{VDropdown:r.VDropdown},data:()=>({type:a.danmakuType??"无",items:["无","ass","json","xml"]}),computed:{enabled(){return"无"!==this.type}},watch:{type(t){a.danmakuType=t}}});var l=i(332),c=i.n(l),d=i(961),u=i.n(d),p={insert:"head",singleton:!1};c()(u(),p);u().locals;const m=(0,i(499).Z)(s,n,[],!1,null,null,null).exports},499:(t,e,i)=>{"use strict";function n(t,e,i,n,o,r,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}i.d(e,{Z:()=>n})},332:(t,e,i)=>{"use strict";var n,o=function(){return void 0===n&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function s(t){for(var e=-1,i=0;i{"use strict";t.exports=coreApis.ui},414:t=>{"use strict";t.exports=coreApis.utils.log},674:t=>{"use strict";t.exports=coreApis.utils.title}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.d(n,{component:()=>a});const t=coreApis.componentApis.define,e=coreApis.spinQuery,o=coreApis.toast,r=coreApis.utils.urls,a=(0,t.defineComponentMetadata)({name:"downloadDanmaku",displayName:"下载弹幕",description:{"zh-CN":"启用下载弹幕支持, 在视频和番剧页面中可从功能面板里下载弹幕. 请注意 ASS 弹幕下载不会包含高级弹幕, 字幕弹幕等."},tags:[componentsTags.video],entry:none,reload:none,unload:none,plugin:{displayName:"下载视频 - 下载弹幕支持",setup:t=>{let{addData:e}=t;e("downloadVideo.assets",(async t=>{const{getBlobByType:e}=await Promise.resolve().then(i.bind(i,580));t.push({name:"downloadDanmaku",displayName:"下载弹幕",getAssets:async(t,i)=>{const{type:n,enabled:r}=i;if(!r)return[];const a=o.Toast.info("获取弹幕中...","下载弹幕");let s=0;const l=await Promise.allSettled(t.map((async i=>{const o=await e(n,i.input);return s++,a.message=`获取弹幕中... (${s}/${t.length})`,{name:`${i.input.title}.${n}`,data:o}}))),c=l.filter((t=>"fulfilled"===t.status)),d=l.filter((t=>"rejected"===t.status));return a.message=`获取完成. 成功 ${c.length} 个, 失败 ${d.length} 个.`,c.map((t=>t.value))},component:()=>Promise.resolve().then(i.bind(i,354)).then((t=>t.default))})}))}},urlInclude:r.videoAndBangumiUrls,widget:{condition:e.hasVideo,component:()=>Promise.resolve().then(i.bind(i,103)).then((t=>t.default))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file +n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function s(t){for(var e=-1,i=0;i{"use strict";t.exports=coreApis.ui},414:t=>{"use strict";t.exports=coreApis.utils.log},674:t=>{"use strict";t.exports=coreApis.utils.title}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.d(n,{component:()=>a});const t=coreApis.componentApis.define,e=coreApis.spinQuery,o=coreApis.toast,r=coreApis.utils.urls,a=(0,t.defineComponentMetadata)({name:"downloadDanmaku",displayName:"下载弹幕",description:{"zh-CN":"启用下载弹幕支持, 在视频和番剧页面中可从功能面板里下载弹幕. 请注意 ASS 弹幕下载不会包含高级弹幕, 字幕弹幕等."},tags:[componentsTags.video],entry:none,reload:none,unload:none,plugin:{displayName:"下载视频 - 下载弹幕支持",setup:t=>{let{addData:e}=t;e("downloadVideo.assets",(async t=>{const{getBlobByType:e}=await Promise.resolve().then(i.bind(i,580));t.push({name:"downloadDanmaku",displayName:"下载弹幕",getAssets:async(t,i)=>{const{type:n,enabled:r}=i;if(!r)return[];const a=o.Toast.info("获取弹幕中...","下载弹幕");let s=0;const l=await Promise.allSettled(t.map((async i=>{const o=await e(n,i.input);return s++,a.message=`获取弹幕中... (${s}/${t.length})`,{name:`${i.input.title}.${n}`,data:o}}))),c=l.filter((t=>"fulfilled"===t.status)),d=l.filter((t=>"rejected"===t.status));return a.message=`获取完成. 成功 ${c.length} 个, 失败 ${d.length} 个.`,c.map((t=>t.value))},component:()=>Promise.resolve().then(i.bind(i,354)).then((t=>t.default))})}))}},urlInclude:r.videoAndBangumiUrls,widget:{condition:e.hasVideo,component:()=>Promise.resolve().then(i.bind(i,103)).then((t=>t.default))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/danmaku/expand.js b/registry/dist/components/video/danmaku/expand.js index e9c46aee8..3564032ce 100644 --- a/registry/dist/components/video/danmaku/expand.js +++ b/registry/dist/components/video/danmaku/expand.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/expand"]=t():e["video/danmaku/expand"]=t()}(globalThis,(()=>(()=>{var e,t,i={280:(e,t,i)=>{"use strict";i.r(t),i.d(t,{decodeDanmakuSegment:()=>a,decodeDanmakuView:()=>d,getDanmakuSegment:()=>l,getDanmakuView:()=>p,proto:()=>n});const o=coreApis.runtimeLibrary,n={nested:{DmWebViewReply:{fields:{state:{type:"int32",id:1},text:{type:"string",id:2},textSide:{type:"string",id:3},dmSge:{type:"DmSegConfig",id:4},flag:{type:"DanmakuFlagConfig",id:5},specialDms:{rule:"repeated",type:"string",id:6},checkBox:{type:"bool",id:7},count:{type:"int64",id:8},commandDms:{rule:"repeated",type:"CommandDm",id:9},dmSetting:{type:"DanmuWebPlayerConfig",id:10}}},CommandDm:{fields:{id:{type:"int64",id:1},oid:{type:"int64",id:2},mid:{type:"int64",id:3},command:{type:"string",id:4},content:{type:"string",id:5},progress:{type:"int32",id:6},ctime:{type:"string",id:7},mtime:{type:"string",id:8},extra:{type:"string",id:9},idStr:{type:"string",id:10}}},DmSegConfig:{fields:{pageSize:{type:"int64",id:1},total:{type:"int64",id:2}}},DanmakuFlagConfig:{fields:{recFlag:{type:"int32",id:1},recText:{type:"string",id:2},recSwitch:{type:"int32",id:3}}},DmSegMobileReply:{fields:{elems:{rule:"repeated",type:"DanmakuElem",id:1}}},DanmakuElem:{fields:{id:{type:"int64",id:1},progress:{type:"int32",id:2},mode:{type:"int32",id:3},fontsize:{type:"int32",id:4},color:{type:"uint32",id:5},midHash:{type:"string",id:6},content:{type:"string",id:7},ctime:{type:"int64",id:8},weight:{type:"int32",id:9},action:{type:"string",id:10},pool:{type:"int32",id:11},idStr:{type:"string",id:12},attr:{type:"int32",id:13}}},DanmuWebPlayerConfig:{fields:{dmSwitch:{type:"bool",id:1},aiSwitch:{type:"bool",id:2},aiLevel:{type:"int32",id:3},blocktop:{type:"bool",id:4},blockscroll:{type:"bool",id:5},blockbottom:{type:"bool",id:6},blockcolor:{type:"bool",id:7},blockspecial:{type:"bool",id:8},preventshade:{type:"bool",id:9},dmask:{type:"bool",id:10},opacity:{type:"float",id:11},dmarea:{type:"int32",id:12},speedplus:{type:"float",id:13},fontsize:{type:"float",id:14},screensync:{type:"bool",id:15},speedsync:{type:"bool",id:16},fontfamily:{type:"string",id:17},bold:{type:"bool",id:18},fontborder:{type:"int32",id:19},drawType:{type:"string",id:20}}}}},r=lodash.curry((async(e,t)=>{const i=new Uint8Array("arrayBuffer"in Blob.prototype?await t.arrayBuffer():await new Response(t).arrayBuffer()),r=(await o.protobufLibrary).Root.fromJSON(n).lookupType(e),a=r.decode(i);return r.toObject(a)})),a=r("DmSegMobileReply"),d=r("DmWebViewReply"),s=async e=>(await fetch(e,{mode:"cors",credentials:"include"})).blob(),p=async(e,t)=>{const i=await s(`https://api.bilibili.com/x/v2/dm/web/view?type=1&oid=${t}&pid=${e}`);if(!i)throw new Error("获取弹幕信息失败");return await d(i)},l=async(e,t,i)=>{const o=await s(`https://api.bilibili.com/x/v2/dm/web/seg.so?type=1&oid=${t}&pid=${e}&segment_index=${i+1}`);if(!o)throw new Error(`弹幕片段${i+1}下载失败`);return a(o)}},960:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=960,e.exports=t},635:e=>{"use strict";e.exports="每次加载视频时自动展开弹幕列表, 如果弹幕装载量超过 `最大弹幕数量`, 则不展开以免对页面造成卡顿. (`最大弹幕数量` 是和视频的总弹幕量对比, 不一定和播放器实际装载的弹幕量相等)\n"}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,n),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}var r=Object.create(null);n.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var d=2&o&&i;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,n.d(r,a),r},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.d(r,{component:()=>s});const e=coreApis.componentApis.define,t=coreApis.observer,i=coreApis.spinQuery,o=coreApis.utils,a=coreApis.utils.log,d=coreApis.utils.urls,s=(0,e.defineComponentMetadata)({name:"expandDanmakuList",displayName:"展开弹幕列表",entry:async e=>{let{settings:{options:r}}=e;const s=(0,a.useScopedConsole)("展开弹幕列表"),{getDanmakuView:p}=await Promise.resolve().then(n.bind(n,280));(0,t.videoChange)((async e=>{let{aid:t,cid:n}=e;if(d.mediaListUrls.some((e=>(0,o.matchUrlPattern)(e)))&&r.ignoreMediaList)return;const a=(await p(t,n)).count;if(s.log(`当前弹幕量: ${a}`),null!==a&&a>r.maxDanmakuCount)return void s.log(`超过了最大弹幕数量 ${r.maxDanmakuCount}, 跳过展开`);const l=await(0,i.select)(".bui-collapse-wrap");if(dq(".multi-page-v1, .base-video-sections-v1")&&r.ignoreWithEpisodes)s.log("检测到选集, 跳过展开");else if(l&&l.classList.contains("bui-collapse-wrap-folded")){(await(0,i.select)(".bui-collapse-header"))?.click()}}))},tags:[componentsTags.video],options:{ignoreMediaList:{defaultValue:!0,displayName:"合集类页面不自动展开"},ignoreWithEpisodes:{defaultValue:!0,displayName:"有选集时不自动展开"},maxDanmakuCount:{defaultValue:500,displayName:"最大弹幕数量"}},urlInclude:[...d.videoAndBangumiUrls,...d.mediaListUrls],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(960);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,635,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/expand"]=t():e["video/danmaku/expand"]=t()}(globalThis,(()=>(()=>{var e,t,i={280:(e,t,i)=>{"use strict";i.r(t),i.d(t,{decodeDanmakuSegment:()=>d,decodeDanmakuView:()=>a,getDanmakuSegment:()=>l,getDanmakuView:()=>p,proto:()=>n});const o=coreApis.runtimeLibrary,n={nested:{DmWebViewReply:{fields:{state:{type:"int32",id:1},text:{type:"string",id:2},textSide:{type:"string",id:3},dmSge:{type:"DmSegConfig",id:4},flag:{type:"DanmakuFlagConfig",id:5},specialDms:{rule:"repeated",type:"string",id:6},checkBox:{type:"bool",id:7},count:{type:"int64",id:8},commandDms:{rule:"repeated",type:"CommandDm",id:9},dmSetting:{type:"DanmuWebPlayerConfig",id:10}}},CommandDm:{fields:{id:{type:"int64",id:1},oid:{type:"int64",id:2},mid:{type:"int64",id:3},command:{type:"string",id:4},content:{type:"string",id:5},progress:{type:"int32",id:6},ctime:{type:"string",id:7},mtime:{type:"string",id:8},extra:{type:"string",id:9},idStr:{type:"string",id:10}}},DmSegConfig:{fields:{pageSize:{type:"int64",id:1},total:{type:"int64",id:2}}},DanmakuFlagConfig:{fields:{recFlag:{type:"int32",id:1},recText:{type:"string",id:2},recSwitch:{type:"int32",id:3}}},DmSegMobileReply:{fields:{elems:{rule:"repeated",type:"DanmakuElem",id:1}}},DanmakuElem:{fields:{id:{type:"int64",id:1},progress:{type:"int32",id:2},mode:{type:"int32",id:3},fontsize:{type:"int32",id:4},color:{type:"uint32",id:5},midHash:{type:"string",id:6},content:{type:"string",id:7},ctime:{type:"int64",id:8},weight:{type:"int32",id:9},action:{type:"string",id:10},pool:{type:"int32",id:11},idStr:{type:"string",id:12},attr:{type:"int32",id:13}}},DanmuWebPlayerConfig:{fields:{dmSwitch:{type:"bool",id:1},aiSwitch:{type:"bool",id:2},aiLevel:{type:"int32",id:3},blocktop:{type:"bool",id:4},blockscroll:{type:"bool",id:5},blockbottom:{type:"bool",id:6},blockcolor:{type:"bool",id:7},blockspecial:{type:"bool",id:8},preventshade:{type:"bool",id:9},dmask:{type:"bool",id:10},opacity:{type:"float",id:11},dmarea:{type:"int32",id:12},speedplus:{type:"float",id:13},fontsize:{type:"float",id:14},screensync:{type:"bool",id:15},speedsync:{type:"bool",id:16},fontfamily:{type:"string",id:17},bold:{type:"bool",id:18},fontborder:{type:"int32",id:19},drawType:{type:"string",id:20}}}}},r=lodash.curry((async(e,t)=>{const i=new Uint8Array("arrayBuffer"in Blob.prototype?await t.arrayBuffer():await new Response(t).arrayBuffer()),r=(await o.protobufLibrary).Root.fromJSON(n).lookupType(e),d=r.decode(i);return r.toObject(d)})),d=r("DmSegMobileReply"),a=r("DmWebViewReply"),s=async e=>(await fetch(e,{mode:"cors",credentials:"include"})).blob(),p=async(e,t)=>{const i=await s(`https://api.bilibili.com/x/v2/dm/web/view?type=1&oid=${t}&pid=${e}`);if(!i)throw new Error("获取弹幕信息失败");return await a(i)},l=async(e,t,i)=>{const o=await s(`https://api.bilibili.com/x/v2/dm/web/seg.so?type=1&oid=${t}&pid=${e}&segment_index=${i+1}`);if(!o)throw new Error(`弹幕片段${i+1}下载失败`);return d(o)}},960:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=960,e.exports=t},635:e=>{"use strict";e.exports="每次加载视频时自动展开弹幕列表, 如果弹幕装载量超过 `最大弹幕数量`, 则不展开以免对页面造成卡顿. (`最大弹幕数量` 是和视频的总弹幕量对比, 不一定和播放器实际装载的弹幕量相等)\n"}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,n),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}var r=Object.create(null);n.r(r);var d={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&i;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>d[e]=()=>i[e]));return d.default=()=>i,n.d(r,d),r},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.d(r,{component:()=>s});const e=coreApis.componentApis.define,t=coreApis.observer,i=coreApis.spinQuery,o=coreApis.utils,d=coreApis.utils.log,a=coreApis.utils.urls,s=(0,e.defineComponentMetadata)({name:"expandDanmakuList",displayName:"展开弹幕列表",entry:async e=>{let{settings:{options:r}}=e;const s=(0,d.useScopedConsole)("展开弹幕列表"),{getDanmakuView:p}=await Promise.resolve().then(n.bind(n,280));(0,t.videoChange)((async e=>{let{aid:t,cid:n}=e;if(a.mediaListUrls.some((e=>(0,o.matchUrlPattern)(e)))&&r.ignoreMediaList)return;const d=(await p(t,n)).count;if(s.log(`当前弹幕量: ${d}`),null!==d&&d>r.maxDanmakuCount)return void s.log(`超过了最大弹幕数量 ${r.maxDanmakuCount}, 跳过展开`);const l=await(0,i.select)(".bui-collapse-wrap");if(dq(".multi-page-v1, .base-video-sections-v1")&&r.ignoreWithEpisodes)s.log("检测到选集, 跳过展开");else if(l&&l.classList.contains("bui-collapse-wrap-folded")){(await(0,i.select)(".bui-collapse-header"))?.click()}}))},tags:[componentsTags.video],options:{ignoreMediaList:{defaultValue:!0,displayName:"合集类页面不自动展开"},ignoreWithEpisodes:{defaultValue:!0,displayName:"有选集时不自动展开"},maxDanmakuCount:{defaultValue:500,displayName:"最大弹幕数量"}},urlInclude:[...a.videoAndBangumiUrls,...a.mediaListUrls],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(960);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,635,17)).then((e=>e.default))}})()})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/danmaku/unescape.js b/registry/dist/components/video/danmaku/unescape.js index 3583d8156..0956850fe 100644 --- a/registry/dist/components/video/danmaku/unescape.js +++ b/registry/dist/components/video/danmaku/unescape.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/unescape"]=t():e["video/danmaku/unescape"]=t()}(globalThis,(()=>(()=>{var e,t,o={844:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=844,e.exports=t},78:e=>{"use strict";e.exports="将弹幕中的 `\\n` 替换为真实的换行, 注意这可能导致原先不重叠的弹幕发生重叠.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&o;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(a,i),a},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.video.videoDanmaku,o=(0,e.defineComponentMetadata)({name:"unescapeDanmaku",displayName:"弹幕转义",tags:[componentsTags.video],entry:()=>{const e=/\\n/g;(0,t.forEachVideoDanmaku)({added:t=>{if(e.test(t.text)){const o=t.text.replace(e,"\n");t.element.textContent=o}}})},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(844);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,78,17)).then((e=>e.default))}})()})})(),a=a.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/unescape"]=t():e["video/danmaku/unescape"]=t()}(globalThis,(()=>(()=>{var e,t,o={844:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=844,e.exports=t},78:e=>{"use strict";e.exports="将弹幕中的 `\\n` 替换为真实的换行, 注意这可能导致原先不重叠的弹幕发生重叠.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,r.d(c,a),c},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";r.d(c,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.componentApis.video.videoDanmaku,o=(0,e.defineComponentMetadata)({name:"unescapeDanmaku",displayName:"弹幕转义",tags:[componentsTags.video],entry:()=>{const e=/\\n/g;(0,t.forEachVideoDanmaku)({added:t=>{if(e.test(t.text)){const o=t.text.replace(e,"\n");t.element.textContent=o}}})},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(844);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,78,17)).then((e=>e.default))}})()})})(),c=c.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/default-location.js b/registry/dist/components/video/default-location.js index ef6f1be3c..cacbfda28 100644 --- a/registry/dist/components/video/default-location.js +++ b/registry/dist/components/video/default-location.js @@ -6,7 +6,7 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var i={};if(o)for(var a=0;a{"use strict";n.d(t,{component:()=>u,E:()=>r,F:()=>l});const o=coreApis.componentApis.define,i=coreApis.utils.urls,a=coreApis.spinQuery,s="//www.bilibili.com/video/",l={withTitle:{displayName:"带标题视频页",urls:[s,...i.mediaListUrls]},noTitle:{displayName:"无标题视频页",urls:[...i.bangumiUrls,...i.cheeseUrls]},bnj:{displayName:"拜年纪视频页",urls:[/\/\/www\.bilibili\.com\/festival\/(\d+)bnj/]}},r=lodash.once((()=>{for(const[e,{urls:t}]of Object.entries(l))if((0,i.matchCurrentPage)(t))return e;return null}));class c{constructor(e,t){this.lastMoment=e,this.result=t}}const d=async()=>{const e=6e4,t=(0,a.select)(".bb-comment",{maxRetry:50,queryInterval:600}),n=[e/2,e,3*e].map((e=>({time:e,callback:async e=>{console.warn(`[videoDefaultLocation] waiting more than ${e}ms for the page to load`)}}))),o=(await async function(e,t){let n={time:0,callback:none},o=null;const i=t[Symbol.iterator](),a=()=>{const e=i.next();if(!e.done){const t=e.value;o=setTimeout((()=>{o=null,n.callback(n.time),n=t,a()}),t.time-n.time)}};a();const s=await e;return null!==o&&clearTimeout(o),new c(n.time,s)}(t,n)).result;return null!==o||(console.error("[videoDefaultLocation] waiting for page load timeout"),!1)},u=(0,o.defineComponentMetadata)({name:"videoDefaultLocation",displayName:"视频页默认定位",tags:[componentsTags.video],urlInclude:i.allVideoUrls,description:{"zh-CN":'打开视频/番剧时自动定位到指定位置\n\n
\n\n位置:距离页面顶部的像素距离\\\n默认位置:打开视频时自动定位到此处\\\n位置测试:查看、调整当前页面所在位置\n\n当前版本限制默认位置的最大值为 4000。\\\n若有其他希望支持的页面,请提交反馈。\\\n脚本不会等待评论完全加载,因此较大的默认位置将无法正确定位。\n\n
\n\n\n'},extraOptions:()=>Promise.resolve().then(n.bind(n,723)).then((e=>e.default)),options:{locations:{defaultValue:lodash.mapValues(l,(()=>0)),hidden:!0}},entry:async e=>{let{settings:{options:{locations:t}}}=e;const n=window?.performance?.getEntriesByType("navigation");if(1!==n?.length)return void console.error(`[videoDefaultLocation] 无法处理 PerformanceNavigationTiming 不是一个的情况。url: ${window.location.href}`);if("navigate"!==n[0].type)return;if((0,i.matchCurrentPage)(s)){const e=unsafeWindow.scrollTo;unsafeWindow.scrollTo=()=>{unsafeWindow.scrollTo=e}}const o=r();if(null===o)return void console.error(`[videoDefaultLocation] unknown page type. url: ${window.location.href}`);const a=t[o],l=document.documentElement;(a{"use strict";n.r(t),n.d(t,{default:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-options"},[t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("页面")]),e._v(" "),t("PageTypeSelector",{staticClass:"video-default-location-form-item-grow",on:{change:e.onChangePageType},model:{value:e.pageType,callback:function(t){e.pageType=t},expression:"pageType"}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("默认位置")]),e._v(" "),t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onChangeDefaultLocation},model:{value:e.defaultLocation,callback:function(t){e.defaultLocation=t},expression:"defaultLocation"}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-options-test"},[t("ExtendBox",{on:{change:e.resetObservePosition},model:{value:e.hiddenAdvance,callback:function(t){e.hiddenAdvance=t},expression:"hiddenAdvance"}},[t("div",{staticClass:"video-default-location-options-advanced"},[t("Advanced",{attrs:{"observe-position":e.observePosition,"location-limit":e.locationLimit},on:{"set-default-location":e.setDefaultLocation}})],1)])],1)])};o._withStripped=!0;const i=coreApis.settings,a=coreApis.ui;var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-extend-box",class:{"video-default-location-extend-box-hidden":e.realHidden}},[t("div",{staticClass:"video-default-location-extend-box-bar",on:{click:e.setRealHidden}},[t("div",{staticClass:"video-default-location-extend-box-bar-text"},[e._v("位置测试")]),e._v(" "),t("div",{staticClass:"video-default-location-extend-box-bar-btn",class:e.btnClass,on:{animationend:e.onBarBtnAnimationEnd}},[t("VIcon",{attrs:{icon:e.btnIcon,size:15}})],1)]),e._v(" "),t("div",{staticClass:"video-default-location-extend-box-content-wrap"},[t("transition",{attrs:{name:"video-default-location-extend-box-content-transition"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.realHidden,expression:"!realHidden"}],staticClass:"video-default-location-extend-box-content"},[e._t("default")],2)])],1)])};s._withStripped=!0;const l=e=>e?"mdi-unfold-more-horizontal":"mdi-unfold-less-horizontal",r="video-default-location-extend-box-bar-btn-animation",c=Vue.extend({components:{VIcon:a.VIcon},model:{prop:"hidden",event:"change"},props:{title:{type:String,default:""},size:{type:Number,default:12},hidden:{type:Boolean,default:!0}},data(){return{realHidden:this.hidden,barBottom:!this.hidden,btnIcon:l(this.hidden),btnClass:{[r]:!1}}},watch:{hidden(e){this.setRealHidden(e)}},methods:{setRealHidden(e){e!==this.realHidden&&(this.realHidden=!this.realHidden,this.$emit("change",this.realHidden),this.btnClass[r]=!1,this.$nextTick((()=>{this.btnClass[r]=!0,setTimeout((()=>{this.btnIcon=l(this.realHidden)}),150)})))},onBarBtnAnimationEnd(){this.btnClass[r]=!1}}});var d=n(332),u=n.n(d),f=n(985),p=n.n(f),v={insert:"head",singleton:!1};u()(p(),v);p().locals;function h(e,t,n,o,i,a,s,l){var r,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(r=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=r):i&&(r=l?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var d=c.render;c.render=function(e,t){return r.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,r):[r]}return{exports:e,options:c}}const m=h(c,s,[],!1,null,null,null).exports;var b=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("当前位置")]),e._v(" "),t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{text:String(e.curPosition),"change-on-blur":"",readonly:"",linear:""}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("VButton",{staticClass:"video-default-location-form-item-grow",on:{click:function(t){return e.$emit("set-default-location",e.curPosition)}}},[e._v("\n 将当前位置设为默认值\n ")])],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onLocationInput},model:{value:e.locationInput,callback:function(t){e.locationInput=t},expression:"locationInput"}}),e._v(" "),t("VButton",{on:{click:e.locateTo}},[e._v(" 定位 ")])],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onOffsetInput},model:{value:e.offsetInput,callback:function(t){e.offsetInput=t},expression:"offsetInput"}}),e._v(" "),t("VButton",{on:{click:e.offsetTo}},[e._v(" 偏移 ")])],1)])};b._withStripped=!0;let x=null;const g=()=>Math.round(window.scrollY),y=e=>{const t=parseFloat(e);return isNaN(t)?null:Math.round(t)};const w=h(Vue.extend({components:{VButton:a.VButton,TextBox:a.TextBox},props:{observePosition:{type:Boolean,default:!1},locationLimit:{type:Number,required:!0}},data:()=>({curPosition:g(),locationInput:"0",offsetInput:"0",location:0,offset:0}),created(){this.setupObserveScroll()},beforeDestroy(){x.stop()},methods:{setLocation(e){this.location=e,this.locationInput=String(e)},onLocationInput(e){let t=y(e);null===t?this.setLocation(0):(t=lodash.clamp(t,0,this.locationLimit),this.setLocation(t))},locateTo(){unsafeWindow.scrollTo(0,this.location)},setOffset(e){this.offset=e,this.offsetInput=String(e)},onOffsetInput(e){let t=y(e);null===t?this.setOffset(0):(t=lodash.clamp(t,-this.locationLimit,this.locationLimit),this.setOffset(t))},offsetTo(){unsafeWindow.scrollBy(0,this.offset)},setupObserveScroll(){const e=()=>{this.curPosition=g()};let t=!1;x={start:()=>{t||(e(),window.addEventListener("scroll",e),t=!0)},stop:()=>{t&&(window.removeEventListener("scroll",e),t=!1)}},this.$watch("observePosition",(e=>x[e?"start":"stop"]()),{immediate:!0})}}}),b,[],!1,null,null,null).exports;var _=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-page-type-selector"},[t("VDropdown",{attrs:{items:e.items},on:{change:e.onChange},scopedSlots:e._u([{key:"arrow",fn:function(){return[t("div",{staticClass:"video-default-location-page-type-selector-icon"},[t("VIcon",{attrs:{size:15,icon:"mdi-chevron-down"}})],1)]},proxy:!0}]),model:{value:e.curItem,callback:function(t){e.curItem=t},expression:"curItem"}})],1)};_._withStripped=!0;var C=n(498);const T=lodash.mapValues(C.F,((e,t)=>({name:t,displayName:e.displayName}))),S=Vue.extend({components:{VDropdown:a.VDropdown,VIcon:a.VIcon},model:{prop:"value",event:"change"},props:{value:{type:String,required:!0}},data(){return{items:Object.values(T),curItem:T[this.value]}},watch:{value(e){this.curItem.name!==e&&(this.curItem=T[e])}},methods:{onChange(e){this.$emit("change",e.name)}}});var I=n(799),L=n.n(I),P={insert:"head",singleton:!1};u()(L(),P);L().locals;const B=h(S,_,[],!1,null,null,null).exports;let O=null;const V=Vue.extend({components:{TextBox:a.TextBox,ExtendBox:m,Advanced:w,PageTypeSelector:B},props:{componentData:{type:Object,required:!0}},data(){const{options:{locations:e}}=(0,i.getComponentSettings)(this.componentData),t=(0,C.E)()??Object.keys(C.F)[0];return{locations:e,defaultLocation:String(e[t]),hiddenAdvance:!0,observePosition:!1,locationLimit:4e3,pageType:t}},created(){this.setupPanelSwitch()},mounted(){O&&O.start()},beforeDestroy(){O&&O.stop()},methods:{onChangePageType(e){this.defaultLocation=String(this.locations[e])},setDefaultLocation(e){this.locations[this.pageType]=e,this.defaultLocation=String(e)},onChangeDefaultLocation(e){let t=(e=>{const t=parseFloat(e);return isNaN(t)?null:Math.round(t)})(e);null===t?this.setDefaultLocation(0):(t=lodash.clamp(t,0,4e3),this.setDefaultLocation(t))},resetObservePosition(){this.observePosition=!this.hiddenAdvance},setupPanelSwitch(){const e=dq(".component-detail-panel");if(!e)return void console.error("[videoPageOrientation] Could not find element '.component-detail-panel'");const t=()=>{e.classList.contains("open")?this.resetObservePosition():this.observePosition=!1},n=new MutationObserver(t),o={attributeFilter:["class"],attributes:!0};O={start:()=>{t(),n.observe(e,o)},stop:()=>n.disconnect()}}}}),j=V;var N=n(10),k=n.n(N),A={insert:"head",singleton:!1};u()(k(),A);k().locals;const D=h(j,o,[],!1,null,null,null).exports},332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( +var s=this[a][0];null!=s&&(i[s]=!0)}for(var l=0;l{"use strict";n.d(t,{component:()=>u,E:()=>r,F:()=>l});const o=coreApis.componentApis.define,i=coreApis.utils.urls,a=coreApis.spinQuery,s="//www.bilibili.com/video/",l={withTitle:{displayName:"带标题视频页",urls:[s,...i.mediaListUrls]},noTitle:{displayName:"无标题视频页",urls:[...i.bangumiUrls,...i.cheeseUrls]},bnj:{displayName:"拜年纪视频页",urls:[/\/\/www\.bilibili\.com\/festival\/(\d+)bnj/]}},r=lodash.once((()=>{for(const[e,{urls:t}]of Object.entries(l))if((0,i.matchCurrentPage)(t))return e;return null}));class c{constructor(e,t){this.lastMoment=e,this.result=t}}const d=async()=>{const e=6e4,t=(0,a.select)(".bb-comment",{maxRetry:50,queryInterval:600}),n=[e/2,e,3*e].map((e=>({time:e,callback:async e=>{console.warn(`[videoDefaultLocation] waiting more than ${e}ms for the page to load`)}}))),o=(await async function(e,t){let n={time:0,callback:none},o=null;const i=t[Symbol.iterator](),a=()=>{const e=i.next();if(!e.done){const t=e.value;o=setTimeout((()=>{o=null,n.callback(n.time),n=t,a()}),t.time-n.time)}};a();const s=await e;return null!==o&&clearTimeout(o),new c(n.time,s)}(t,n)).result;return null!==o||(console.error("[videoDefaultLocation] waiting for page load timeout"),!1)},u=(0,o.defineComponentMetadata)({name:"videoDefaultLocation",displayName:"视频页默认定位",tags:[componentsTags.video],urlInclude:i.allVideoUrls,description:{"zh-CN":'打开视频/番剧时自动定位到指定位置\n\n
\n\n位置:距离页面顶部的像素距离\\\n默认位置:打开视频时自动定位到此处\\\n位置测试:查看、调整当前页面所在位置\n\n当前版本限制默认位置的最大值为 4000。\\\n若有其他希望支持的页面,请提交反馈。\\\n脚本不会等待评论完全加载,因此较大的默认位置将无法正确定位。\n\n
\n\n\n'},extraOptions:()=>Promise.resolve().then(n.bind(n,723)).then((e=>e.default)),options:{locations:{defaultValue:lodash.mapValues(l,(()=>0)),hidden:!0}},entry:async e=>{let{settings:{options:{locations:t}}}=e;const n=window?.performance?.getEntriesByType("navigation");if(1!==n?.length)return void console.error(`[videoDefaultLocation] 无法处理 PerformanceNavigationTiming 不是一个的情况。url: ${window.location.href}`);if("navigate"!==n[0].type)return;if((0,i.matchCurrentPage)(s)){const e=unsafeWindow.scrollTo;unsafeWindow.scrollTo=()=>{unsafeWindow.scrollTo=e}}const o=r();if(null===o)return void console.error(`[videoDefaultLocation] unknown page type. url: ${window.location.href}`);const a=t[o],l=document.documentElement;(a{"use strict";n.r(t),n.d(t,{default:()=>D});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-options"},[t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("页面")]),e._v(" "),t("PageTypeSelector",{staticClass:"video-default-location-form-item-grow",on:{change:e.onChangePageType},model:{value:e.pageType,callback:function(t){e.pageType=t},expression:"pageType"}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("默认位置")]),e._v(" "),t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onChangeDefaultLocation},model:{value:e.defaultLocation,callback:function(t){e.defaultLocation=t},expression:"defaultLocation"}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-options-test"},[t("ExtendBox",{on:{change:e.resetObservePosition},model:{value:e.hiddenAdvance,callback:function(t){e.hiddenAdvance=t},expression:"hiddenAdvance"}},[t("div",{staticClass:"video-default-location-options-advanced"},[t("Advanced",{attrs:{"observe-position":e.observePosition,"location-limit":e.locationLimit},on:{"set-default-location":e.setDefaultLocation}})],1)])],1)])};o._withStripped=!0;const i=coreApis.settings,a=coreApis.ui;var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-extend-box",class:{"video-default-location-extend-box-hidden":e.realHidden}},[t("div",{staticClass:"video-default-location-extend-box-bar",on:{click:e.setRealHidden}},[t("div",{staticClass:"video-default-location-extend-box-bar-text"},[e._v("位置测试")]),e._v(" "),t("div",{staticClass:"video-default-location-extend-box-bar-btn",class:e.btnClass,on:{animationend:e.onBarBtnAnimationEnd}},[t("VIcon",{attrs:{icon:e.btnIcon,size:15}})],1)]),e._v(" "),t("div",{staticClass:"video-default-location-extend-box-content-wrap"},[t("transition",{attrs:{name:"video-default-location-extend-box-content-transition"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.realHidden,expression:"!realHidden"}],staticClass:"video-default-location-extend-box-content"},[e._t("default")],2)])],1)])};s._withStripped=!0;const l=e=>e?"mdi-unfold-more-horizontal":"mdi-unfold-less-horizontal",r="video-default-location-extend-box-bar-btn-animation",c=Vue.extend({components:{VIcon:a.VIcon},model:{prop:"hidden",event:"change"},props:{title:{type:String,default:""},size:{type:Number,default:12},hidden:{type:Boolean,default:!0}},data(){return{realHidden:this.hidden,barBottom:!this.hidden,btnIcon:l(this.hidden),btnClass:{[r]:!1}}},watch:{hidden(e){this.setRealHidden(e)}},methods:{setRealHidden(e){e!==this.realHidden&&(this.realHidden=!this.realHidden,this.$emit("change",this.realHidden),this.btnClass[r]=!1,this.$nextTick((()=>{this.btnClass[r]=!0,setTimeout((()=>{this.btnIcon=l(this.realHidden)}),150)})))},onBarBtnAnimationEnd(){this.btnClass[r]=!1}}});var d=n(332),u=n.n(d),f=n(985),p=n.n(f),v={insert:"head",singleton:!1};u()(p(),v);p().locals;function h(e,t,n,o,i,a,s,l){var r,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(r=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=r):i&&(r=l?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var d=c.render;c.render=function(e,t){return r.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,r):[r]}return{exports:e,options:c}}const m=h(c,s,[],!1,null,null,null).exports;var b=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"video-default-location-form-line"},[t("div",{staticClass:"video-default-location-form-item-not-grow"},[e._v("当前位置")]),e._v(" "),t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{text:String(e.curPosition),"change-on-blur":"",readonly:"",linear:""}})],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("VButton",{staticClass:"video-default-location-form-item-grow",on:{click:function(t){return e.$emit("set-default-location",e.curPosition)}}},[e._v("\n 将当前位置设为默认值\n ")])],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onLocationInput},model:{value:e.locationInput,callback:function(t){e.locationInput=t},expression:"locationInput"}}),e._v(" "),t("VButton",{on:{click:e.locateTo}},[e._v(" 定位 ")])],1),e._v(" "),t("div",{staticClass:"video-default-location-vertical-space"}),e._v(" "),t("div",{staticClass:"video-default-location-form-line"},[t("TextBox",{staticClass:"video-default-location-form-item-grow",attrs:{linear:"","change-on-blur":""},on:{change:e.onOffsetInput},model:{value:e.offsetInput,callback:function(t){e.offsetInput=t},expression:"offsetInput"}}),e._v(" "),t("VButton",{on:{click:e.offsetTo}},[e._v(" 偏移 ")])],1)])};b._withStripped=!0;let x=null;const g=()=>Math.round(window.scrollY),y=e=>{const t=parseFloat(e);return isNaN(t)?null:Math.round(t)};const w=h(Vue.extend({components:{VButton:a.VButton,TextBox:a.TextBox},props:{observePosition:{type:Boolean,default:!1},locationLimit:{type:Number,required:!0}},data:()=>({curPosition:g(),locationInput:"0",offsetInput:"0",location:0,offset:0}),created(){this.setupObserveScroll()},beforeDestroy(){x.stop()},methods:{setLocation(e){this.location=e,this.locationInput=String(e)},onLocationInput(e){let t=y(e);null===t?this.setLocation(0):(t=lodash.clamp(t,0,this.locationLimit),this.setLocation(t))},locateTo(){unsafeWindow.scrollTo(0,this.location)},setOffset(e){this.offset=e,this.offsetInput=String(e)},onOffsetInput(e){let t=y(e);null===t?this.setOffset(0):(t=lodash.clamp(t,-this.locationLimit,this.locationLimit),this.setOffset(t))},offsetTo(){unsafeWindow.scrollBy(0,this.offset)},setupObserveScroll(){const e=()=>{this.curPosition=g()};let t=!1;x={start:()=>{t||(e(),window.addEventListener("scroll",e),t=!0)},stop:()=>{t&&(window.removeEventListener("scroll",e),t=!1)}},this.$watch("observePosition",(e=>x[e?"start":"stop"]()),{immediate:!0})}}}),b,[],!1,null,null,null).exports;var _=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-default-location-page-type-selector"},[t("VDropdown",{attrs:{items:e.items},on:{change:e.onChange},scopedSlots:e._u([{key:"arrow",fn:function(){return[t("div",{staticClass:"video-default-location-page-type-selector-icon"},[t("VIcon",{attrs:{size:15,icon:"mdi-chevron-down"}})],1)]},proxy:!0}]),model:{value:e.curItem,callback:function(t){e.curItem=t},expression:"curItem"}})],1)};_._withStripped=!0;var C=n(498);const T=lodash.mapValues(C.F,((e,t)=>({name:t,displayName:e.displayName}))),S=Vue.extend({components:{VDropdown:a.VDropdown,VIcon:a.VIcon},model:{prop:"value",event:"change"},props:{value:{type:String,required:!0}},data(){return{items:Object.values(T),curItem:T[this.value]}},watch:{value(e){this.curItem.name!==e&&(this.curItem=T[e])}},methods:{onChange(e){this.$emit("change",e.name)}}});var I=n(799),L=n.n(I),P={insert:"head",singleton:!1};u()(L(),P);L().locals;const B=h(S,_,[],!1,null,null,null).exports;let O=null;const V=Vue.extend({components:{TextBox:a.TextBox,ExtendBox:m,Advanced:w,PageTypeSelector:B},props:{componentData:{type:Object,required:!0}},data(){const{options:{locations:e}}=(0,i.getComponentSettings)(this.componentData),t=(0,C.E)()??Object.keys(C.F)[0];return{locations:e,defaultLocation:String(e[t]),hiddenAdvance:!0,observePosition:!1,locationLimit:4e3,pageType:t}},created(){this.setupPanelSwitch()},mounted(){O&&O.start()},beforeDestroy(){O&&O.stop()},methods:{onChangePageType(e){this.defaultLocation=String(this.locations[e])},setDefaultLocation(e){this.locations[this.pageType]=e,this.defaultLocation=String(e)},onChangeDefaultLocation(e){let t=(e=>{const t=parseFloat(e);return isNaN(t)?null:Math.round(t)})(e);null===t?this.setDefaultLocation(0):(t=lodash.clamp(t,0,4e3),this.setDefaultLocation(t))},resetObservePosition(){this.observePosition=!this.hiddenAdvance},setupPanelSwitch(){const e=dq(".component-detail-panel");if(!e)return void console.error("[videoPageOrientation] Could not find element '.component-detail-panel'");const t=()=>{e.classList.contains("open")?this.resetObservePosition():this.observePosition=!1},n=new MutationObserver(t),o={attributeFilter:["class"],attributes:!0};O={start:()=>{t(),n.observe(e,o)},stop:()=>n.disconnect()}}}}),j=V;var N=n(10),k=n.n(N),A={insert:"head",singleton:!1};u()(k(),A);k().locals;const D=h(j,o,[],!1,null,null,null).exports},332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function l(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=n(498);return o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/download.js b/registry/dist/components/video/download.js index 40ec15b58..cbe30aedc 100644 --- a/registry/dist/components/video/download.js +++ b/registry/dist/components/video/download.js @@ -6,8 +6,8 @@ t.i=function(e,i,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var o={};if(n)for(var s=0;s{"use strict";i.d(t,{_i:()=>u,o1:()=>x,Ld:()=>b,JV:()=>y,SS:()=>w});var n=i(375),o=i(605);const s=coreApis.utils.sort;var a=i(391),r=i(457),d=i(381),l=i(808),c=i(20),p=i(986);const u={video:".mp4",audio:".m4a",flacAudio:".flac"};let f=function(e){return e.Avc="AVC/H.264",e.Hevc="HEVC/H.265",e.Av1="AV1",e}({});const m=e=>{const{options:t}=(0,p.getComponentSettings)("downloadVideo");return"video"===e?t.dashVideoExtension:"audio"===e?t.dashAudioExtension:"flacAudio"===e?t.dashFlacAudioExtension:u[e]??".m4s"},h=e=>({url:e.downloadUrl,backupUrls:e.backupUrls,length:e.duration,size:Math.trunc(e.bandWidth*e.duration/8),extension:m(e.type)}),v=e=>{const{videoDashes:t,audioDashes:i,videoCodec:n}=e,o=[];if(0!==t.length){const e=e=>e.videoCodec===n;if(t.some(e)){const i=t.filter(e).sort((0,s.ascendingSort)((e=>e.bandWidth)))[0];o.push(h(i))}else o.push(h(t.sort((0,s.ascendingSort)((e=>e.bandWidth)))[0]))}if(0!==i.length){const e=i.sort((0,s.descendingSort)((e=>e.bandWidth)))[0];o.push(h(e))}return o},g=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{codec:i=f.Avc,filters:s}=t,p={video:()=>!0,audio:()=>!0,...s},{aid:u,cid:m,quality:h}=e,g={avid:u,cid:m,qn:h?.value??"",otype:"json",fourk:1,fnver:0,fnval:4048},y=r.bangumiUrls.some((e=>(0,o.matchUrlPattern)(e))),w=y?(0,c.l)((0,o.formData)(g)):(0,c.s)((0,o.formData)(g)),b=await(0,n.bilibiliApi)((0,n.getJsonWithCredentials)(w),"获取视频链接失败");if(!b.dash)throw new Error("此视频没有 dash 格式, 请改用其他格式.");const x=a.allQualities.find((e=>e.value===b.quality)),{duration:_,video:k,audio:I,dolby:C,flac:A}=b.dash,V=e=>{switch(e){case 12:return f.Hevc;case 13:return f.Av1;default:return f.Avc}},S=k.filter((e=>e.id===x.value)).map((e=>({type:"video",videoCodec:V(e.codecid),quality:x,width:e.width,height:e.height,codecs:e.codecs,codecId:e.codecid,bandWidth:e.bandwidth,frameRate:e.frameRate,backupUrls:(e.backupUrl||e.backup_url||[]).map((e=>e.replace("http:","https:"))),downloadUrl:(e.baseUrl||e.base_url||"").replace("http:","https:"),duration:_}))).filter((e=>p.video(e))),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audio";return{type:t,bandWidth:e.bandwidth,codecs:e.codecs,codecId:e.codecid??0,backupUrls:(e.backupUrl||e.backup_url||[]).map((e=>e.replace("http:","https:"))),downloadUrl:(e.baseUrl||e.base_url||"").replace("http:","https:"),duration:_}},D=(I||[]).map((e=>E(e))).filter((e=>p.audio(e)));C&&D.push(...C.audio?.map((e=>E(e)))??[]),A&&D.push(...A.audio?[E(A.audio,"flacAudio")]:[]);const O=v({audioDashes:D,videoDashes:S,videoCodec:i}),U=b.accept_quality.map((e=>a.allQualities.find((t=>t.value===e)))).filter((e=>void 0!==e)),$=new l.c({input:e,jsonData:b,fragments:O,qualities:U,currentQuality:x});return(0,d.c)(e,$),$},y={name:"video.dash.avc",displayName:"dash (AVC/H.264)",description:"音画分离的 mp4 格式, 编码为 H.264, 体积较大, 兼容性较好. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Avc})},w={name:"video.dash.hevc",displayName:"dash (HEVC/H.265)",description:"音画分离的 mp4 格式, 编码为 H.265, 体积中等, 兼容性较差. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Hevc})},b={name:"video.dash.av1",displayName:"dash (AV1)",description:"音画分离的 mp4 格式, 编码为 AV1, 体积较小, 兼容性中等. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Av1})},x={name:"video.dash.audio",displayName:"dash (仅音频)",description:"仅下载视频中的音频轨道.",downloadVideoInfo:async e=>g(e,{filters:{video:()=>!1}})}},20:(e,t,i)=>{"use strict";i.d(t,{l:()=>o,s:()=>n});const n=e=>`https://api.bilibili.com/x/player/playurl?${e}`,o=e=>`https://api.bilibili.com/pgc/player/web/playurl?${e}`},381:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var n=i(391);const o=(e,t)=>{e.quality&&t.currentQuality.value!==e.quality.value&&(e.allowQualityDrop?console.warn(`'${e.title}' 不支持选择的清晰度${e.quality.displayName}, 已降级为${t.currentQuality.displayName}`):(e=>{if(n.vipRequiredQualities.find((t=>t.value===e)))throw new Error("您选择的清晰度需要大会员, 请更改清晰度后重试.");if(n.loginRequiredQualities.find((t=>t.value===e)))throw new Error("您选择的清晰度需要先登录.");throw new Error("获取下载链接失败, 请尝试更换清晰度或更换格式.")})(e.quality.value))}},808:(e,t,i)=>{"use strict";i.d(t,{u:()=>d,c:()=>r});const n=coreApis.download;var o=i(289),s=i(674);function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(e){a(this,"input",void 0),a(this,"fragments",void 0),a(this,"qualities",void 0),a(this,"currentQuality",void 0),a(this,"jsonData",void 0),Object.assign(this,e)}get totalSize(){return lodash.sumBy(this.fragments,(e=>e.size))}get totalLength(){return lodash.sumBy(this.fragments,(e=>e.length))}get titledFragments(){return this.fragments.map(((e,t)=>{const i=this.fragments.filter((t=>t.extension===e.extension)).length>1?` - ${(0,o.formatNumber)(t+1,this.fragments.length)}`:"";return{...e,title:`${this.input.title}${i}${e.extension}`}}))}}class d{constructor(e){this.infos=e,a(this,"inputs",[]),a(this,"extraAssets",[]),this.inputs=e.map((e=>e.input))}get isSingleVideo(){return this.inputs.length<2}async downloadExtraAssets(){console.log("[downloadExtraAssets]",this.extraAssets);const e=`${(0,s.getFriendlyTitle)(!1)}.zip`;await new n.DownloadPackage(this.extraAssets).emit(e)}}},912:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>G});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"download-video-panel",attrs:{fixed:"","trigger-element":e.triggerElement},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t("div",{staticClass:"download-video-panel-header"},[t("VIcon",{attrs:{icon:"mdi-download"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("下载视频")]),e._v(" "),t("VButton",{attrs:{type:"transparent",title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{icon:"mdi-close",size:20}})],1)],1),e._v(" "),t("div",{staticClass:"download-video-panel-content"},[e.selectedInput?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("输入源:")]),e._v(" "),t("VDropdown",{attrs:{items:e.inputs},model:{value:e.selectedInput,callback:function(t){e.selectedInput=t},expression:"selectedInput"}})],1):e._e(),e._v(" "),0===e.inputs.length?t("div",{staticClass:"download-video-config-item error"},[e._v("\n 没有匹配的输入源, 请确保安装了适合此页面的插件.\n ")]):e._e(),e._v(" "),e.selectedInput&&e.selectedInput.component?t(e.selectedInput.component,{ref:"inputOptions",tag:"component"}):e._e(),e._v(" "),e.selectedApi?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("格式:")]),e._v(" "),t("VDropdown",{attrs:{items:e.apis},model:{value:e.selectedApi,callback:function(t){e.selectedApi=t},expression:"selectedApi"}})],1):e._e(),e._v(" "),e.selectedApi&&e.selectedApi.description?t("div",{staticClass:"download-video-config-description",domProps:{innerHTML:e._s(e.selectedApi.description)}}):e._e(),e._v(" "),e.selectedQuality?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("清晰度:")]),e._v(" "),t("VDropdown",{attrs:{items:e.filteredQualities},on:{change:function(t){return e.saveSelectedQuality()}},model:{value:e.selectedQuality,callback:function(t){e.selectedQuality=t},expression:"selectedQuality"}})],1):e._e(),e._v(" "),!e.testData.multiple&&e.selectedQuality?[e.testData.videoInfo?t("div",{staticClass:"download-video-config-description"},[e._v("\n 预计大小: "+e._s(e.formatFileSize(e.testData.videoInfo.totalSize))+"\n ")]):e._e(),e._v(" "),null===e.testData.videoInfo?t("div",{staticClass:"download-video-config-description"},[e._v("\n 正在计算大小\n ")]):e._e()]:e._e(),e._v(" "),t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("使用备用下载地址:")]),e._v(" "),t("SwitchBox",{model:{value:e.useBackupUrls,callback:function(t){e.useBackupUrls=t},expression:"useBackupUrls"}})],1),e._v(" "),e._l(e.assetsWithOptions,(function(e){return t(e.component,{key:e.name,ref:"assetsOptions",refInFor:!0,tag:"component",attrs:{name:e.name}})})),e._v(" "),e.selectedOutput?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("输出方式:")]),e._v(" "),t("VDropdown",{attrs:{items:e.outputs},model:{value:e.selectedOutput,callback:function(t){e.selectedOutput=t},expression:"selectedOutput"}})],1):e._e(),e._v(" "),e.selectedOutput&&e.selectedOutput.description?t("div",{staticClass:"download-video-config-description",domProps:{innerHTML:e._s(e.selectedOutput.description)}}):e._e(),e._v(" "),e.selectedOutput&&e.selectedOutput.component?t(e.selectedOutput.component,{ref:"outputOptions",tag:"component"}):e._e()],2),e._v(" "),t("div",{staticClass:"download-video-panel-footer"},[t("VButton",{staticClass:"run-download",attrs:{type:"primary",disabled:!e.canStartDownload},on:{click:function(t){return e.startDownload(e.$refs.outputOptions,e.selectedOutput)}}},[e._v("\n 开始\n ")])],1)])};n._withStripped=!0;var o=i(986),s=i(605);const a=coreApis.utils.log;var r=i(289);const d=coreApis.ui,l=coreApis.pluginApis.data;var c=i(391);const p=coreApis.toast;var u=i(674),f=i(375),m=i(457),h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"episodes-picker download-video-config-section"},[t("div",{staticClass:"episodes-picker-header"},[t("div",{staticClass:"episodes-picker-title"},[e._v("选集:")]),e._v(" "),t("div",{staticClass:"episodes-picker-checked-ratio"},[e._v("\n "+e._s(e.checkedRatio)+"\n ")]),e._v(" "),t("div",{staticClass:"episodes-picker-actions"},[t("VButton",{staticClass:"select-all",attrs:{title:"全选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!0))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-checkbox-multiple-marked-circle"}})],1),e._v(" "),t("VButton",{staticClass:"deselect-all",attrs:{title:"全不选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!1))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-checkbox-multiple-blank-circle-outline"}})],1),e._v(" "),t("VButton",{staticClass:"invert-selection",attrs:{title:"反选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!e.isChecked))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-circle-slice-4"}})],1)],1)]),e._v(" "),t("div",{staticClass:"episodes-picker-items"},[0===e.episodeItems.length?t("div",{staticClass:"episodes-picker-empty"},[t("VEmpty")],1):e._e(),e._v(" "),e._l(e.episodeItems,(function(i,n){return t("div",{key:i.key,staticClass:"episodes-picker-item"},[t("CheckBox",{attrs:{"icon-position":"left","data-aid":i.inputItem.aid,"data-cid":i.inputItem.cid,"data-bvid":i.inputItem.bvid},nativeOn:{click:function(t){return e.shiftSelect(t,i,n)}},model:{value:i.isChecked,callback:function(t){e.$set(i,"isChecked",t)},expression:"item.isChecked"}},[t("span",{staticClass:"episode-title"},[e._v("\n "+e._s(i.title)+"\n ")]),e._v(" "),i.durationText?t("span",{staticClass:"episode-duration"},[e._v("\n "+e._s(i.durationText)+"\n ")]):e._e()])],1)}))],2)])};h._withStripped=!0;const v=Vue.extend({components:{VButton:d.VButton,VIcon:d.VIcon,CheckBox:d.CheckBox,VEmpty:d.VEmpty},props:{api:{type:Function,required:!0}},data:()=>({episodeItems:[],maxCheckedItems:32,lastCheckedEpisodeIndex:-1}),computed:{checkedRatio(){return`(${this.episodeItems.filter((e=>e.isChecked)).length}/${this.episodeItems.length})`},inputItems(){return this.episodeItems.map((e=>e.inputItem))},checkedInputItems(){return this.episodeItems.filter((e=>e.isChecked)).map((e=>e.inputItem))}},created(){this.getEpisodeItems()},methods:{shiftSelect(e,t,i){e.shiftKey&&-1!==this.lastCheckedEpisodeIndex?e.shiftKey&&-1!==this.lastCheckedEpisodeIndex&&(this.episodeItems.slice(Math.min(this.lastCheckedEpisodeIndex,i)+1,Math.max(this.lastCheckedEpisodeIndex,i)).forEach((e=>{e.isChecked=!e.isChecked})),this.lastCheckedEpisodeIndex=i,e.preventDefault()):this.lastCheckedEpisodeIndex=i},forEachItem(e){this.episodeItems.forEach(e)},async getEpisodeItems(){this.episodeItems.length>0||(this.episodeItems=await this.api(this))}}});var g=i(332),y=i.n(g),w=i(734),b=i.n(w),x={insert:"head",singleton:!1};y()(b(),x);b().locals;var _=i(499);const k=(0,_.Z)(v,h,[],!1,null,null,null).exports,I=e=>Vue.extend({computed:{checkedInputItems(){return this.$refs.picker.checkedInputItems}},render:t=>t(k,{props:{api:e},ref:"picker"})}),C={name:"bangumi.batch",displayName:"当前番剧 (多P)",match:m.bangumiUrls,batch:!0,getInputs:async e=>e?.checkedInputItems??[],component:async()=>I((async e=>{const t=dq('script[type="application/ld+json"]');if(!t)return(0,a.logError)("获取番剧数据失败: 无法找到 Metadata"),[];const i=JSON.parse(t.innerHTML.trim()),n=lodash.get(i,"itemListElement.0.url",null);if(null===n)return(0,a.logError)("获取番剧数据失败: 无法找到 metaUrl"),[];const s=n.match(/play\/ss(\d+)/)?.[1];if(void 0===s)return(0,a.logError)("获取番剧数据失败: 无法解析 Season ID"),[];const d=await(0,f.getJson)(`https://api.bilibili.com/pgc/web/season/section?season_id=${s}`);if(0!==d.code)return(0,a.logError)(`获取番剧数据失败: 无法获取番剧集数列表, message=${d.message}`),[];const l=[...d.result.main_section.episodes,...d.result.section?.flatMap((e=>e.episodes))??[]];return l.map((c=l.length,(t,i)=>{const n=t.long_title?t.title:(i+1).toString(),s=t.long_title?t.long_title:t.title;return{key:t.cid,title:`${n} - ${s}`,isChecked:ie?.checkedInputItems??[],component:async()=>I((async e=>{const{aid:t}=unsafeWindow,i=`https://api.bilibili.com/x/web-interface/view?aid=${t}`,n=await(0,f.getJsonWithCredentials)(i);if(0!==n.code)return(0,a.logError)(`获取视频选集列表失败, message = ${n.message}`),[];const{pages:s}=n.data;return void 0===s?((0,a.logError)("获取视频选集列表失败, 没有找到选集信息."),[]):s.map(((i,n)=>({key:i.cid,title:`P${i.page} ${i.part}`,isChecked:ne?.checkedInputItems??[],component:async()=>I((async e=>{const{aid:t,bvid:i}=unsafeWindow,n=`https://api.bilibili.com/x/web-interface/wbi/view/detail?bvid=${i}&aid=${t}`,s=await(0,f.getJsonWithCredentials)(n);if(0!==s.code)return(0,a.logError)(`获取视频合集列表失败, message = ${s.message}`),[];const d=lodash.get(s,"data.View.ugc_season.sections",[]);if(0===d.length)return[];const l=lodash.sumBy(d,(e=>e.episodes.length));return d.flatMap(((t,i)=>{const{episodes:n=[]}=t;return n.map(((t,n)=>{const s=n+lodash.sumBy(d.slice(0,i),(e=>e.episodes.length)),a=s+1;return{key:t.cid,title:`P${a} ${t.title}`,isChecked:s[{aid:unsafeWindow.aid,cid:unsafeWindow.cid,title:(0,u.getFriendlyTitle)(!0)}],component:()=>Promise.resolve().then(i.bind(i,630)).then((e=>e.default))};var E=i(182),D=i(381),O=i(808),U=i(20);const $=(e,t)=>{const i=e=>t.length>e?t[e]:t[t.length-1];return{fragments:e.durl.map(((e,t)=>({length:e.length,size:e.size,url:e.url,backupUrls:e.backup_url,extension:i(t)}))),qualities:e.accept_quality.map((e=>c.allQualities.find((t=>t.value===e)))).filter((e=>void 0!==e)),currentQuality:c.allQualities.find((t=>t.value===e.quality))}},j={name:"video.flv",displayName:"flv",description:"使用 flv 格式下载, 兼容 H.264 编码. 支持的清晰度相比于 dash 会少很多.",downloadVideoInfo:e=>(async e=>{const{aid:t,cid:i,quality:n}=e,o={avid:t,cid:i,qn:n?.value??"",otype:"json"},a=m.bangumiUrls.some((e=>(0,s.matchUrlPattern)(e))),r=a?(0,U.l)((0,s.formData)(o)):(0,U.s)((0,s.formData)(o)),d=await(0,f.bilibiliApi)((0,f.getJsonWithCredentials)(r),"获取视频链接失败"),l=new O.c({input:e,jsonData:d,...$(d,[".flv"])});return(0,D.c)(e,l),l})(e)},T={name:"toast",displayName:"Toast",description:"弹一条消息显示出下载链接, 右键新标签页打开就可以下载. 链接有 referer 限制, 复制无用, 且不能保留视频文件名.",runAction:async e=>{const t=e.infos.flatMap((e=>e.titledFragments)),i=t.map((e=>e.url)).join("\n");p.Toast.show(t.map((e=>`${e.title}`)).join("\n"),"下载视频"),console.log(i),console.log(e)}},P=coreApis.runtimeLibrary,q={name:"steamSaver",displayName:"StreamSaver",description:'使用 StreamSaver 输出到本地文件, 下载过程中请勿关闭页面. 注意: 需要浏览器允许来自 jimmywarting.github.io (StreamSaver 的网站) 的第三方 cookie, 详细原因见 How does it work, 否则弹出的链接点击后会没有反应.',runAction:async e=>{const t=await P.StreamSaverLibrary,i=e.infos.flatMap((e=>e.titledFragments)),n=p.Toast.show(i.map(((e,t)=>`${e.title}`)).join("\n"),"下载视频"),o=await n.element;dqa(o,"a[data-index]").forEach((e=>{e.addEventListener("click",(async()=>{const{index:n}=e.dataset,{title:o,url:s,size:a}=i[n],r=t.createWriteStream(o,{size:a}),d=await fetch(s);await d.body.pipeTo(r)}))}))}},[N]=(0,l.registerAndGetData)("downloadVideo.inputs",[S,A,V,C]),[Q]=(0,l.registerAndGetData)("downloadVideo.apis",[j,E.JV,E.SS,E.Ld,E.o1]),[B]=(0,l.registerAndGetData)("downloadVideo.assets",[]),[F]=(0,l.registerAndGetData)("downloadVideo.outputs",[T,q]),{basicConfig:M}=(0,o.getComponentSettings)("downloadVideo").options,z=e=>e.filter((e=>e.match?.some((e=>(0,s.matchUrlPattern)(e)))??!0)),W=Vue.extend({components:{VPopup:d.VPopup,VButton:d.VButton,VDropdown:d.VDropdown,VIcon:d.VIcon,SwitchBox:d.SwitchBox},props:{triggerElement:{required:!0}},data(){const e=M.output,t=M.useBackupUrls;return{open:!1,busy:!1,testData:{videoInfo:null,multiple:!1},assets:B,qualities:[],selectedQuality:void 0,inputs:[],selectedInput:void 0,apis:[],selectedApi:void 0,outputs:F,selectedOutput:F.find((t=>t.name===e))||F[0],useBackupUrls:t||!1}},computed:{assetsWithOptions(){return this.assets.filter((e=>e.component))},filteredQualities(){return 0===this.qualities.length?c.allQualities:this.qualities},canStartDownload(){if(this.busy||!this.open)return!1;return!Object.entries(this).filter((e=>{let[t]=e;return t.startsWith("selected")})).some((e=>{let[,t]=e;return!t}))}},watch:{selectedInput(e){void 0!==e&&this.updateTestVideoInfo()},selectedApi(e){void 0!==e&&(this.updateTestVideoInfo(),M.api=e.name)},selectedOutput(e){void 0!==e&&(M.output=e.name)},useBackupUrls(e){void 0!==e&&(M.useBackupUrls=e)}},mounted(){coreApis.observer.videoChange((()=>{this.selectedInput=void 0,this.selectedApi=void 0;const e=z(N);this.inputs=e,this.selectedInput=e[0];const t=z(Q);this.apis=t;const i=t.find((e=>e.name===M.api));this.selectedApi=i||t[0]}))},methods:{formatFileSize:r.formatFileSize,saveSelectedQuality(){const e=this.selectedQuality;void 0!==e&&(M.quality=e.value,this.updateTestVideoInfo())},async getVideoItems(){const e=this.selectedInput;return await e.getInputs(this.$refs.inputOptions)},async updateTestVideoInfo(){if(!this.selectedInput||!this.selectedApi)return;this.testData.videoInfo=null;const e=this.selectedInput,t=e.getTestInput?.()??{aid:unsafeWindow.aid,cid:unsafeWindow.cid,title:(0,u.getFriendlyTitle)(!0)};console.log("[updateTestVideoInfo]",t),this.testData.multiple=e.batch;const i=this.selectedApi;try{const e=await i.downloadVideoInfo(t);this.qualities=e.qualities;if((!this.selectedQuality||!e.qualities.some((e=>e.value===this.selectedQuality.value)))&&(this.selectedQuality=e.qualities[0],M.quality)){const[t]=e.qualities.filter((e=>e.value<=M.quality));t&&(this.selectedQuality=t)}t.quality=this.selectedQuality;const n=await i.downloadVideoInfo(t);this.testData.videoInfo=n}catch(e){console.error("[updateTestVideoInfo] failed",e),this.testData.videoInfo=void 0}},async startDownload(e,t){try{this.busy=!0;const i=this.selectedInput,n=this.selectedApi,o=await i.getInputs(this.$refs.inputOptions);if(0===o.length)return void p.Toast.info("未接收到视频, 如果输入源支持批量, 请至少选择一个视频.","下载视频",3e3);o.forEach((e=>{e.quality=this.selectedQuality}));const s=await Promise.all(o.map((e=>n.downloadVideoInfo(e))));if(0===s.length||0===lodash.sumBy(s,(e=>e.fragments.length)))return void p.Toast.info("未接收到可下载数据, 请检查输入源和格式是否适用于当前视频.","下载视频",3e3);this.useBackupUrls&&s.forEach((e=>{e.fragments.forEach((e=>{e.url=e.backupUrls&&0!==e.backupUrls.length?e.backupUrls.at(0):e.url}))}));const a=new O.u(s),r=(await Promise.all(B.map((e=>e.getAssets(s,this.$refs.assetsOptions.find((t=>t.$attrs.name===e.name))))))).flat();a.extraAssets.push(...r),await a.downloadExtraAssets(),await t.runAction(a,e)}catch(e){(0,a.logError)(e)}finally{this.busy=!1}}}}),H=W; +var a=this[s][0];null!=a&&(o[a]=!0)}for(var r=0;r{"use strict";i.d(t,{_i:()=>u,o1:()=>x,Ld:()=>w,JV:()=>y,SS:()=>b});var n=i(375),o=i(605);const s=coreApis.utils.sort;var a=i(391),r=i(457),d=i(381),l=i(808),c=i(20),p=i(986);const u={video:".mp4",audio:".m4a",flacAudio:".flac"};let f=function(e){return e.Avc="AVC/H.264",e.Hevc="HEVC/H.265",e.Av1="AV1",e}({});const m=e=>{const{options:t}=(0,p.getComponentSettings)("downloadVideo");return"video"===e?t.dashVideoExtension:"audio"===e?t.dashAudioExtension:"flacAudio"===e?t.dashFlacAudioExtension:u[e]??".m4s"},h=e=>({url:e.downloadUrl,backupUrls:e.backupUrls,length:e.duration,size:Math.trunc(e.bandWidth*e.duration/8),extension:m(e.type)}),v=e=>{const{videoDashes:t,audioDashes:i,videoCodec:n}=e,o=[];if(0!==t.length){const e=e=>e.videoCodec===n;if(t.some(e)){const i=t.filter(e).sort((0,s.ascendingSort)((e=>e.bandWidth)))[0];o.push(h(i))}else o.push(h(t.sort((0,s.ascendingSort)((e=>e.bandWidth)))[0]))}if(0!==i.length){const e=i.sort((0,s.descendingSort)((e=>e.bandWidth)))[0];o.push(h(e))}return o},g=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{codec:i=f.Avc,filters:s}=t,p={video:()=>!0,audio:()=>!0,...s},{aid:u,cid:m,quality:h}=e,g={avid:u,cid:m,qn:h?.value??"",otype:"json",fourk:1,fnver:0,fnval:4048},y=r.bangumiUrls.some((e=>(0,o.matchUrlPattern)(e))),b=y?(0,c.l)((0,o.formData)(g)):(0,c.s)((0,o.formData)(g)),w=await(0,n.bilibiliApi)((0,n.getJsonWithCredentials)(b),"获取视频链接失败");if(!w.dash)throw new Error("此视频没有 dash 格式, 请改用其他格式.");const x=a.allQualities.find((e=>e.value===w.quality)),{duration:_,video:k,audio:I,dolby:C,flac:A}=w.dash,V=e=>{switch(e){case 12:return f.Hevc;case 13:return f.Av1;default:return f.Avc}},S=k.filter((e=>e.id===x.value)).map((e=>({type:"video",videoCodec:V(e.codecid),quality:x,width:e.width,height:e.height,codecs:e.codecs,codecId:e.codecid,bandWidth:e.bandwidth,frameRate:e.frameRate,backupUrls:(e.backupUrl||e.backup_url||[]).map((e=>e.replace("http:","https:"))),downloadUrl:(e.baseUrl||e.base_url||"").replace("http:","https:"),duration:_}))).filter((e=>p.video(e))),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audio";return{type:t,bandWidth:e.bandwidth,codecs:e.codecs,codecId:e.codecid??0,backupUrls:(e.backupUrl||e.backup_url||[]).map((e=>e.replace("http:","https:"))),downloadUrl:(e.baseUrl||e.base_url||"").replace("http:","https:"),duration:_}},D=(I||[]).map((e=>E(e))).filter((e=>p.audio(e)));C&&D.push(...C.audio?.map((e=>E(e)))??[]),A&&D.push(...A.audio?[E(A.audio,"flacAudio")]:[]);const O=v({audioDashes:D,videoDashes:S,videoCodec:i}),U=w.accept_quality.map((e=>a.allQualities.find((t=>t.value===e)))).filter((e=>void 0!==e)),$=new l.c({input:e,jsonData:w,fragments:O,qualities:U,currentQuality:x});return(0,d.c)(e,$),$},y={name:"video.dash.avc",displayName:"dash (AVC/H.264)",description:"音画分离的 mp4 格式, 编码为 H.264, 体积较大, 兼容性较好. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Avc})},b={name:"video.dash.hevc",displayName:"dash (HEVC/H.265)",description:"音画分离的 mp4 格式, 编码为 H.265, 体积中等, 兼容性较差. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Hevc})},w={name:"video.dash.av1",displayName:"dash (AV1)",description:"音画分离的 mp4 格式, 编码为 AV1, 体积较小, 兼容性中等. 下载后可以合并为单个 mp4 文件. 如果视频源没有此编码, 则会自动选择其他同清晰度的编码格式.",downloadVideoInfo:async e=>g(e,{codec:f.Av1})},x={name:"video.dash.audio",displayName:"dash (仅音频)",description:"仅下载视频中的音频轨道.",downloadVideoInfo:async e=>g(e,{filters:{video:()=>!1}})}},20:(e,t,i)=>{"use strict";i.d(t,{l:()=>o,s:()=>n});const n=e=>`https://api.bilibili.com/x/player/playurl?${e}`,o=e=>`https://api.bilibili.com/pgc/player/web/playurl?${e}`},381:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var n=i(391);const o=(e,t)=>{e.quality&&t.currentQuality.value!==e.quality.value&&(e.allowQualityDrop?console.warn(`'${e.title}' 不支持选择的清晰度${e.quality.displayName}, 已降级为${t.currentQuality.displayName}`):(e=>{if(n.vipRequiredQualities.find((t=>t.value===e)))throw new Error("您选择的清晰度需要大会员, 请更改清晰度后重试.");if(n.loginRequiredQualities.find((t=>t.value===e)))throw new Error("您选择的清晰度需要先登录.");throw new Error("获取下载链接失败, 请尝试更换清晰度或更换格式.")})(e.quality.value))}},808:(e,t,i)=>{"use strict";i.d(t,{u:()=>d,c:()=>r});const n=coreApis.download;var o=i(289),s=i(674);function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(e){a(this,"input",void 0),a(this,"fragments",void 0),a(this,"qualities",void 0),a(this,"currentQuality",void 0),a(this,"jsonData",void 0),Object.assign(this,e)}get totalSize(){return lodash.sumBy(this.fragments,(e=>e.size))}get totalLength(){return lodash.sumBy(this.fragments,(e=>e.length))}get titledFragments(){return this.fragments.map(((e,t)=>{const i=this.fragments.filter((t=>t.extension===e.extension)).length>1?` - ${(0,o.formatNumber)(t+1,this.fragments.length)}`:"";return{...e,title:`${this.input.title}${i}${e.extension}`}}))}}class d{constructor(e){this.infos=e,a(this,"inputs",[]),a(this,"extraAssets",[]),this.inputs=e.map((e=>e.input))}get isSingleVideo(){return this.inputs.length<2}async downloadExtraAssets(){console.log("[downloadExtraAssets]",this.extraAssets);const e=`${(0,s.getFriendlyTitle)(!1)}.zip`;await new n.DownloadPackage(this.extraAssets).emit(e)}}},912:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>G});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VPopup",{staticClass:"download-video-panel",attrs:{fixed:"","trigger-element":e.triggerElement},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t("div",{staticClass:"download-video-panel-header"},[t("VIcon",{attrs:{icon:"mdi-download"}}),e._v(" "),t("div",{staticClass:"title"},[e._v("下载视频")]),e._v(" "),t("VButton",{attrs:{type:"transparent",title:"关闭"},on:{click:function(t){e.open=!1}}},[t("VIcon",{attrs:{icon:"mdi-close",size:20}})],1)],1),e._v(" "),t("div",{staticClass:"download-video-panel-content"},[e.selectedInput?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("输入源:")]),e._v(" "),t("VDropdown",{attrs:{items:e.inputs},model:{value:e.selectedInput,callback:function(t){e.selectedInput=t},expression:"selectedInput"}})],1):e._e(),e._v(" "),0===e.inputs.length?t("div",{staticClass:"download-video-config-item error"},[e._v("\n 没有匹配的输入源, 请确保安装了适合此页面的插件.\n ")]):e._e(),e._v(" "),e.selectedInput&&e.selectedInput.component?t(e.selectedInput.component,{ref:"inputOptions",tag:"component"}):e._e(),e._v(" "),e.selectedApi?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("格式:")]),e._v(" "),t("VDropdown",{attrs:{items:e.apis},model:{value:e.selectedApi,callback:function(t){e.selectedApi=t},expression:"selectedApi"}})],1):e._e(),e._v(" "),e.selectedApi&&e.selectedApi.description?t("div",{staticClass:"download-video-config-description",domProps:{innerHTML:e._s(e.selectedApi.description)}}):e._e(),e._v(" "),e.selectedQuality?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("清晰度:")]),e._v(" "),t("VDropdown",{attrs:{items:e.filteredQualities},on:{change:function(t){return e.saveSelectedQuality()}},model:{value:e.selectedQuality,callback:function(t){e.selectedQuality=t},expression:"selectedQuality"}})],1):e._e(),e._v(" "),!e.testData.multiple&&e.selectedQuality?[e.testData.videoInfo?t("div",{staticClass:"download-video-config-description"},[e._v("\n 预计大小: "+e._s(e.formatFileSize(e.testData.videoInfo.totalSize))+"\n ")]):e._e(),e._v(" "),null===e.testData.videoInfo?t("div",{staticClass:"download-video-config-description"},[e._v("\n 正在计算大小\n ")]):e._e()]:e._e(),e._v(" "),t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("使用备用下载地址:")]),e._v(" "),t("SwitchBox",{model:{value:e.useBackupUrls,callback:function(t){e.useBackupUrls=t},expression:"useBackupUrls"}})],1),e._v(" "),e._l(e.assetsWithOptions,(function(e){return t(e.component,{key:e.name,ref:"assetsOptions",refInFor:!0,tag:"component",attrs:{name:e.name}})})),e._v(" "),e.selectedOutput?t("div",{staticClass:"download-video-config-item"},[t("div",{staticClass:"download-video-config-title"},[e._v("输出方式:")]),e._v(" "),t("VDropdown",{attrs:{items:e.outputs},model:{value:e.selectedOutput,callback:function(t){e.selectedOutput=t},expression:"selectedOutput"}})],1):e._e(),e._v(" "),e.selectedOutput&&e.selectedOutput.description?t("div",{staticClass:"download-video-config-description",domProps:{innerHTML:e._s(e.selectedOutput.description)}}):e._e(),e._v(" "),e.selectedOutput&&e.selectedOutput.component?t(e.selectedOutput.component,{ref:"outputOptions",tag:"component"}):e._e()],2),e._v(" "),t("div",{staticClass:"download-video-panel-footer"},[t("VButton",{staticClass:"run-download",attrs:{type:"primary",disabled:!e.canStartDownload},on:{click:function(t){return e.startDownload(e.$refs.outputOptions,e.selectedOutput)}}},[e._v("\n 开始\n ")])],1)])};n._withStripped=!0;var o=i(986),s=i(605);const a=coreApis.utils.log;var r=i(289);const d=coreApis.ui,l=coreApis.pluginApis.data;var c=i(391);const p=coreApis.toast;var u=i(674),f=i(375),m=i(457),h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"episodes-picker download-video-config-section"},[t("div",{staticClass:"episodes-picker-header"},[t("div",{staticClass:"episodes-picker-title"},[e._v("选集:")]),e._v(" "),t("div",{staticClass:"episodes-picker-checked-ratio"},[e._v("\n "+e._s(e.checkedRatio)+"\n ")]),e._v(" "),t("div",{staticClass:"episodes-picker-actions"},[t("VButton",{staticClass:"select-all",attrs:{title:"全选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!0))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-checkbox-multiple-marked-circle"}})],1),e._v(" "),t("VButton",{staticClass:"deselect-all",attrs:{title:"全不选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!1))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-checkbox-multiple-blank-circle-outline"}})],1),e._v(" "),t("VButton",{staticClass:"invert-selection",attrs:{title:"反选",type:"transparent"},on:{click:function(t){e.forEachItem((e=>e.isChecked=!e.isChecked))}}},[t("VIcon",{attrs:{size:16,icon:"mdi-circle-slice-4"}})],1)],1)]),e._v(" "),t("div",{staticClass:"episodes-picker-items"},[0===e.episodeItems.length?t("div",{staticClass:"episodes-picker-empty"},[t("VEmpty")],1):e._e(),e._v(" "),e._l(e.episodeItems,(function(i,n){return t("div",{key:i.key,staticClass:"episodes-picker-item"},[t("CheckBox",{attrs:{"icon-position":"left","data-aid":i.inputItem.aid,"data-cid":i.inputItem.cid,"data-bvid":i.inputItem.bvid},nativeOn:{click:function(t){return e.shiftSelect(t,i,n)}},model:{value:i.isChecked,callback:function(t){e.$set(i,"isChecked",t)},expression:"item.isChecked"}},[t("span",{staticClass:"episode-title"},[e._v("\n "+e._s(i.title)+"\n ")]),e._v(" "),i.durationText?t("span",{staticClass:"episode-duration"},[e._v("\n "+e._s(i.durationText)+"\n ")]):e._e()])],1)}))],2)])};h._withStripped=!0;const v=Vue.extend({components:{VButton:d.VButton,VIcon:d.VIcon,CheckBox:d.CheckBox,VEmpty:d.VEmpty},props:{api:{type:Function,required:!0}},data:()=>({episodeItems:[],maxCheckedItems:32,lastCheckedEpisodeIndex:-1}),computed:{checkedRatio(){return`(${this.episodeItems.filter((e=>e.isChecked)).length}/${this.episodeItems.length})`},inputItems(){return this.episodeItems.map((e=>e.inputItem))},checkedInputItems(){return this.episodeItems.filter((e=>e.isChecked)).map((e=>e.inputItem))}},created(){this.getEpisodeItems()},methods:{shiftSelect(e,t,i){e.shiftKey&&-1!==this.lastCheckedEpisodeIndex?e.shiftKey&&-1!==this.lastCheckedEpisodeIndex&&(this.episodeItems.slice(Math.min(this.lastCheckedEpisodeIndex,i)+1,Math.max(this.lastCheckedEpisodeIndex,i)).forEach((e=>{e.isChecked=!e.isChecked})),this.lastCheckedEpisodeIndex=i,e.preventDefault()):this.lastCheckedEpisodeIndex=i},forEachItem(e){this.episodeItems.forEach(e)},async getEpisodeItems(){this.episodeItems.length>0||(this.episodeItems=await this.api(this))}}});var g=i(332),y=i.n(g),b=i(734),w=i.n(b),x={insert:"head",singleton:!1};y()(w(),x);w().locals;var _=i(499);const k=(0,_.Z)(v,h,[],!1,null,null,null).exports,I=e=>Vue.extend({computed:{checkedInputItems(){return this.$refs.picker.checkedInputItems}},render:t=>t(k,{props:{api:e},ref:"picker"})}),C={name:"bangumi.batch",displayName:"当前番剧 (多P)",match:m.bangumiUrls,batch:!0,getInputs:async e=>e?.checkedInputItems??[],component:async()=>I((async e=>{const t=dq('script[type="application/ld+json"]');if(!t)return(0,a.logError)("获取番剧数据失败: 无法找到 Metadata"),[];const i=JSON.parse(t.innerHTML.trim()),n=lodash.get(i,"itemListElement.0.url",null);if(null===n)return(0,a.logError)("获取番剧数据失败: 无法找到 metaUrl"),[];const s=n.match(/play\/ss(\d+)/)?.[1];if(void 0===s)return(0,a.logError)("获取番剧数据失败: 无法解析 Season ID"),[];const d=await(0,f.getJson)(`https://api.bilibili.com/pgc/web/season/section?season_id=${s}`);if(0!==d.code)return(0,a.logError)(`获取番剧数据失败: 无法获取番剧集数列表, message=${d.message}`),[];const l=[...d.result.main_section.episodes,...d.result.section?.flatMap((e=>e.episodes))??[]];return l.map((c=l.length,(t,i)=>{const n=t.long_title?t.title:(i+1).toString(),s=t.long_title?t.long_title:t.title;return{key:t.cid,title:`${n} - ${s}`,isChecked:ie?.checkedInputItems??[],component:async()=>I((async e=>{const{aid:t}=unsafeWindow,i=`https://api.bilibili.com/x/web-interface/view?aid=${t}`,n=await(0,f.getJsonWithCredentials)(i);if(0!==n.code)return(0,a.logError)(`获取视频选集列表失败, message = ${n.message}`),[];const{pages:s}=n.data;return void 0===s?((0,a.logError)("获取视频选集列表失败, 没有找到选集信息."),[]):s.map(((i,n)=>({key:i.cid,title:`P${i.page} ${i.part}`,isChecked:ne?.checkedInputItems??[],component:async()=>I((async e=>{const{aid:t,bvid:i}=unsafeWindow,n=`https://api.bilibili.com/x/web-interface/wbi/view/detail?bvid=${i}&aid=${t}`,s=await(0,f.getJsonWithCredentials)(n);if(0!==s.code)return(0,a.logError)(`获取视频合集列表失败, message = ${s.message}`),[];const d=lodash.get(s,"data.View.ugc_season.sections",[]);if(0===d.length)return[];const l=lodash.sumBy(d,(e=>e.episodes.length));return d.flatMap(((t,i)=>{const{episodes:n=[]}=t;return n.map(((t,n)=>{const s=n+lodash.sumBy(d.slice(0,i),(e=>e.episodes.length)),a=s+1;return{key:t.cid,title:`P${a} ${t.title}`,isChecked:s[{aid:unsafeWindow.aid,cid:unsafeWindow.cid,title:(0,u.getFriendlyTitle)(!0)}],component:()=>Promise.resolve().then(i.bind(i,630)).then((e=>e.default))};var E=i(182),D=i(381),O=i(808),U=i(20);const $=(e,t)=>{const i=e=>t.length>e?t[e]:t[t.length-1];return{fragments:e.durl.map(((e,t)=>({length:e.length,size:e.size,url:e.url,backupUrls:e.backup_url,extension:i(t)}))),qualities:e.accept_quality.map((e=>c.allQualities.find((t=>t.value===e)))).filter((e=>void 0!==e)),currentQuality:c.allQualities.find((t=>t.value===e.quality))}},j={name:"video.flv",displayName:"flv",description:"使用 flv 格式下载, 兼容 H.264 编码. 支持的清晰度相比于 dash 会少很多.",downloadVideoInfo:e=>(async e=>{const{aid:t,cid:i,quality:n}=e,o={avid:t,cid:i,qn:n?.value??"",otype:"json"},a=m.bangumiUrls.some((e=>(0,s.matchUrlPattern)(e))),r=a?(0,U.l)((0,s.formData)(o)):(0,U.s)((0,s.formData)(o)),d=await(0,f.bilibiliApi)((0,f.getJsonWithCredentials)(r),"获取视频链接失败"),l=new O.c({input:e,jsonData:d,...$(d,[".flv"])});return(0,D.c)(e,l),l})(e)},T={name:"toast",displayName:"Toast",description:"弹一条消息显示出下载链接, 右键新标签页打开就可以下载. 链接有 referer 限制, 复制无用, 且不能保留视频文件名.",runAction:async e=>{const t=e.infos.flatMap((e=>e.titledFragments)),i=t.map((e=>e.url)).join("\n");p.Toast.show(t.map((e=>`${e.title}`)).join("\n"),"下载视频"),console.log(i),console.log(e)}},P=coreApis.runtimeLibrary,q={name:"steamSaver",displayName:"StreamSaver",description:'使用 StreamSaver 输出到本地文件, 下载过程中请勿关闭页面. 注意: 需要浏览器允许来自 jimmywarting.github.io (StreamSaver 的网站) 的第三方 cookie, 详细原因见 How does it work, 否则弹出的链接点击后会没有反应.',runAction:async e=>{const t=await P.StreamSaverLibrary,i=e.infos.flatMap((e=>e.titledFragments)),n=p.Toast.show(i.map(((e,t)=>`${e.title}`)).join("\n"),"下载视频"),o=await n.element;dqa(o,"a[data-index]").forEach((e=>{e.addEventListener("click",(async()=>{const{index:n}=e.dataset,{title:o,url:s,size:a}=i[n],r=t.createWriteStream(o,{size:a}),d=await fetch(s);await d.body.pipeTo(r)}))}))}},[N]=(0,l.registerAndGetData)("downloadVideo.inputs",[S,A,V,C]),[Q]=(0,l.registerAndGetData)("downloadVideo.apis",[j,E.JV,E.SS,E.Ld,E.o1]),[B]=(0,l.registerAndGetData)("downloadVideo.assets",[]),[F]=(0,l.registerAndGetData)("downloadVideo.outputs",[T,q]),{basicConfig:M}=(0,o.getComponentSettings)("downloadVideo").options,z=e=>e.filter((e=>e.match?.some((e=>(0,s.matchUrlPattern)(e)))??!0)),W=Vue.extend({components:{VPopup:d.VPopup,VButton:d.VButton,VDropdown:d.VDropdown,VIcon:d.VIcon,SwitchBox:d.SwitchBox},props:{triggerElement:{required:!0}},data(){const e=M.output,t=M.useBackupUrls;return{open:!1,busy:!1,testData:{videoInfo:null,multiple:!1},assets:B,qualities:[],selectedQuality:void 0,inputs:[],selectedInput:void 0,apis:[],selectedApi:void 0,outputs:F,selectedOutput:F.find((t=>t.name===e))||F[0],useBackupUrls:t||!1}},computed:{assetsWithOptions(){return this.assets.filter((e=>e.component))},filteredQualities(){return 0===this.qualities.length?c.allQualities:this.qualities},canStartDownload(){if(this.busy||!this.open)return!1;return!Object.entries(this).filter((e=>{let[t]=e;return t.startsWith("selected")})).some((e=>{let[,t]=e;return!t}))}},watch:{selectedInput(e){void 0!==e&&this.updateTestVideoInfo()},selectedApi(e){void 0!==e&&(this.updateTestVideoInfo(),M.api=e.name)},selectedOutput(e){void 0!==e&&(M.output=e.name)},useBackupUrls(e){void 0!==e&&(M.useBackupUrls=e)}},mounted(){coreApis.observer.videoChange((()=>{this.selectedInput=void 0,this.selectedApi=void 0;const e=z(N);this.inputs=e,this.selectedInput=e[0];const t=z(Q);this.apis=t;const i=t.find((e=>e.name===M.api));this.selectedApi=i||t[0]}))},methods:{formatFileSize:r.formatFileSize,saveSelectedQuality(){const e=this.selectedQuality;void 0!==e&&(M.quality=e.value,this.updateTestVideoInfo())},async getVideoItems(){const e=this.selectedInput;return await e.getInputs(this.$refs.inputOptions)},async updateTestVideoInfo(){if(!this.selectedInput||!this.selectedApi)return;this.testData.videoInfo=null;const e=this.selectedInput,t=e.getTestInput?.()??{aid:unsafeWindow.aid,cid:unsafeWindow.cid,title:(0,u.getFriendlyTitle)(!0)};console.log("[updateTestVideoInfo]",t),this.testData.multiple=e.batch;const i=this.selectedApi;try{const e=await i.downloadVideoInfo(t);this.qualities=e.qualities;if((!this.selectedQuality||!e.qualities.some((e=>e.value===this.selectedQuality.value)))&&(this.selectedQuality=e.qualities[0],M.quality)){const[t]=e.qualities.filter((e=>e.value<=M.quality));t&&(this.selectedQuality=t)}t.quality=this.selectedQuality;const n=await i.downloadVideoInfo(t);this.testData.videoInfo=n}catch(e){console.error("[updateTestVideoInfo] failed",e),this.testData.videoInfo=void 0}},async startDownload(e,t){try{this.busy=!0;const i=this.selectedInput,n=this.selectedApi,o=await i.getInputs(this.$refs.inputOptions);if(0===o.length)return void p.Toast.info("未接收到视频, 如果输入源支持批量, 请至少选择一个视频.","下载视频",3e3);o.forEach((e=>{e.quality=this.selectedQuality}));const s=await Promise.all(o.map((e=>n.downloadVideoInfo(e))));if(0===s.length||0===lodash.sumBy(s,(e=>e.fragments.length)))return void p.Toast.info("未接收到可下载数据, 请检查输入源和格式是否适用于当前视频.","下载视频",3e3);this.useBackupUrls&&s.forEach((e=>{e.fragments.forEach((e=>{e.url=e.backupUrls&&0!==e.backupUrls.length?e.backupUrls.at(0):e.url}))}));const a=new O.u(s),r=(await Promise.all(B.map((e=>e.getAssets(s,this.$refs.assetsOptions.find((t=>t.$attrs.name===e.name))))))).flat();a.extraAssets.push(...r),await a.downloadExtraAssets(),await t.runAction(a,e)}catch(e){(0,a.logError)(e)}finally{this.busy=!1}}}}),H=W; /* spell-checker: disable */var L=i(82),R=i.n(L),J={insert:"head",singleton:!1};y()(R(),J);R().locals;const G=(0,_.Z)(H,n,[],!1,null,null,null).exports},518:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"multiple-widgets"},[t("DefaultWidget",{ref:"button",attrs:{name:"下载视频",icon:"mdi-download"},on:{mouseover:function(t){return e.createDownloadPanel()},click:function(t){return e.toggleDownloadPanel()}}})],1)};let o;n._withStripped=!0;const s=Vue.extend({components:{DefaultWidget:coreApis.ui.DefaultWidget},methods:{async createDownloadPanel(){if(!o){const e=document.createElement("div");document.body.appendChild(e);const t=await Promise.resolve().then(i.bind(i,912)).then((e=>e.default));o=new t({propsData:{triggerElement:this.$refs.button}}).$mount(e)}},async toggleDownloadPanel(){o&&(o.open=!o.open)}}});const a=(0,i(499).Z)(s,n,[],!1,null,null,null).exports},630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"single-video-info download-video-config-section"},[e.imageUrl?t("img",{staticClass:"shadow",attrs:{src:e.imageUrl}}):e._e(),e._v(" "),e.imageUrl?t("img",{attrs:{src:e.imageUrl}}):e._e()])};n._withStripped=!0;const o=coreApis.componentApis.video.videoCover,s=coreApis.observer,a=Vue.extend({data:()=>({imageUrl:""}),created(){(0,s.videoChange)((async()=>{const{aid:e}=unsafeWindow;this.imageUrl=await(0,o.getVideoCoverUrlByAid)(e)}))}});var r=i(332),d=i.n(r),l=i(880),c=i.n(l),p={insert:"head",singleton:!1};d()(c(),p);c().locals;const u=(0,i(499).Z)(a,n,[],!1,null,null,null).exports},499:(e,t,i)=>{"use strict";function n(e,t,i,n,o,s,a,r){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):o&&(d=r?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,d):[d]}return{exports:e,options:l}}i.d(t,{Z:()=>n})},332:(e,t,i)=>{"use strict";var n,o=function(){return void 0===n&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),a=[];function r(e){for(var t=-1,i=0;i{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8,e.exports=t},198:e=>{"use strict";e.exports="在功能面板中添加下载视频支持. 请注意:\n- 不能下载超出账号权限的视频, 例如非大会员下载大会员清晰度视频, 或者大陆地区网络下载港澳台地区番剧, 都是不可以的.\n- 请勿短时间进行大量下载, 以免遭到 b 站 IP 封禁.\n"},375:e=>{"use strict";e.exports=coreApis.ajax},391:e=>{"use strict";e.exports=coreApis.componentApis.video.videoQuality},986:e=>{"use strict";e.exports=coreApis.settings},289:e=>{"use strict";e.exports=coreApis.utils.formatters},674:e=>{"use strict";e.exports=coreApis.utils.title},457:e=>{"use strict";e.exports=coreApis.utils.urls},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={id:e,exports:{}};return i[e](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var s=Object.create(null);o.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var r=2&n&&i;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(s,a),s},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";o.d(s,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.spinQuery;var i=o(182);const n=(0,e.defineOptionsMetadata)({basicConfig:{defaultValue:{},displayName:"基础配置",hidden:!0},dashVideoExtension:{defaultValue:i._i.video,displayName:"DASH 视频扩展名"},dashAudioExtension:{defaultValue:i._i.audio,displayName:"DASH 普通音频扩展名"},dashFlacAudioExtension:{defaultValue:i._i.flacAudio,displayName:"DASH FLAC 音频扩展名"}}),a=(0,e.defineComponentMetadata)({name:"downloadVideo",displayName:"下载视频",entry:none,reload:none,unload:none,widget:{component:()=>Promise.resolve().then(o.bind(o,518)).then((e=>e.default)),condition:()=>(0,t.hasVideo)()},tags:[componentsTags.video],options:n,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(8);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,198,17)).then((e=>e.default))}})()})})(),s=s.component})())); \ No newline at end of file +n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),a=[];function r(e){for(var t=-1,i=0;i{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8,e.exports=t},198:e=>{"use strict";e.exports="在功能面板中添加下载视频支持. 请注意:\n- 不能下载超出账号权限的视频, 例如非大会员下载大会员清晰度视频, 或者大陆地区网络下载港澳台地区番剧, 都是不可以的.\n- 请勿短时间进行大量下载, 以免遭到 b 站 IP 封禁.\n"},375:e=>{"use strict";e.exports=coreApis.ajax},391:e=>{"use strict";e.exports=coreApis.componentApis.video.videoQuality},986:e=>{"use strict";e.exports=coreApis.settings},289:e=>{"use strict";e.exports=coreApis.utils.formatters},674:e=>{"use strict";e.exports=coreApis.utils.title},457:e=>{"use strict";e.exports=coreApis.utils.urls},605:e=>{"use strict";e.exports=coreApis.utils}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={id:e,exports:{}};return i[e](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var s=Object.create(null);o.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var r=2&n&&i;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(s,a),s},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";o.d(s,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.spinQuery;var i=o(182);const n=(0,e.defineOptionsMetadata)({basicConfig:{defaultValue:{},displayName:"基础配置",hidden:!0},dashVideoExtension:{defaultValue:i._i.video,displayName:"DASH 视频扩展名"},dashAudioExtension:{defaultValue:i._i.audio,displayName:"DASH 普通音频扩展名"},dashFlacAudioExtension:{defaultValue:i._i.flacAudio,displayName:"DASH FLAC 音频扩展名"}}),a=(0,e.defineComponentMetadata)({name:"downloadVideo",displayName:"下载视频",entry:none,reload:none,unload:none,widget:{component:()=>Promise.resolve().then(o.bind(o,518)).then((e=>e.default)),condition:()=>(0,t.hasVideo)()},tags:[componentsTags.video],options:n,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(8);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,198,17)).then((e=>e.default))}})()})})(),s=s.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/full-description.js b/registry/dist/components/video/full-description.js index 526a22605..571f22333 100644 --- a/registry/dist/components/video/full-description.js +++ b/registry/dist/components/video/full-description.js @@ -6,4 +6,4 @@ o.i=function(e,n,t){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var i={};if(t)for(var r=0;r{var t=n(386);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var r=o[t]={id:t,exports:{}};return e[t](r,r.exports,n),r.exports}n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o);var t={};return(()=>{"use strict";n.d(t,{component:()=>l});const e=coreApis.componentApis.define,o=coreApis.utils.urls,i=coreApis.observer,r=coreApis.spinQuery,s=coreApis.style;var a=n(648),d=n.n(a);const c="fullVideoDescription",p=()=>{(0,s.addStyle)(d(),c),(0,i.videoChange)((async()=>{const e=await(0,r.select)(".video-desc, .video-desc-v1, .video-desc-container");if(!e)return;(await(0,r.sq)((()=>dq(e,'[report-id="abstract_spread"], .toggle-btn')),(e=>e&&"none"!==e.style.display)))?.click()}))},l=(0,e.defineComponentMetadata)({name:c,entry:p,reload:p,unload:()=>{(0,s.removeStyle)(c)},displayName:"展开视频简介",tags:[componentsTags.video,componentsTags.style],description:{"zh-CN":"总是展开完整的视频简介."},urlInclude:o.videoAndBangumiUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),t=t.component})())); \ No newline at end of file +var s=this[r][0];null!=s&&(i[s]=!0)}for(var c=0;c{var t=n(386);t&&t.__esModule&&(t=t.default),e.exports="string"==typeof t?t:t.toString()}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var r=o[t]={id:t,exports:{}};return e[t](r,r.exports,n),r.exports}n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o);var t={};return(()=>{"use strict";n.d(t,{component:()=>l});const e=coreApis.componentApis.define,o=coreApis.utils.urls,i=coreApis.observer,r=coreApis.spinQuery,s=coreApis.style;var c=n(648),d=n.n(c);const a="fullVideoDescription",p=()=>{(0,s.addStyle)(d(),a),(0,i.videoChange)((async()=>{const e=await(0,r.select)(".video-desc, .video-desc-v1, .video-desc-container");if(!e)return;(await(0,r.sq)((()=>dq(e,'[report-id="abstract_spread"], .toggle-btn')),(e=>e&&"none"!==e.style.display)))?.click()}))},l=(0,e.defineComponentMetadata)({name:a,entry:p,reload:p,unload:()=>{(0,s.removeStyle)(a)},displayName:"展开视频简介",tags:[componentsTags.video,componentsTags.style],description:{"zh-CN":"总是展开完整的视频简介."},urlInclude:o.videoAndBangumiUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/full-episode-title.js b/registry/dist/components/video/full-episode-title.js index f5bc42d7c..ae22d75f3 100644 --- a/registry/dist/components/video/full-episode-title.js +++ b/registry/dist/components/video/full-episode-title.js @@ -6,4 +6,4 @@ t.i=function(e,i,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var l={};if(o)for(var n=0;n{var o=i(530);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},365:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=365,e.exports=t},393:e=>{"use strict";e.exports="提供一些视频选集区域的优化, 对番剧无效.\n- `展开选集标题`: 总是完全展开视频选集列表项的标题\n- `展开选集列表`: 总是完全展开视频选集列表\n\n打开 `展开选集列表` 时, 在选集区域的标题上按住 Alt 键点击可以临时切换展开/收起选集列表.\n"}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e](n,n.exports,l),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}var n=Object.create(null);l.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var d=2&o&&i;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>s[e]=()=>i[e]));return s.default=()=>i,l.d(n,s),n},l.d=(e,t)=>{for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";l.d(n,{component:()=>d});const e=coreApis.componentApis.define,t=coreApis.utils.urls,i=coreApis.settings,o=coreApis.spinQuery,s="fullEpisodeTitle",d=(0,e.defineComponentMetadata)({name:s,instantStyles:[{name:s,style:()=>Promise.resolve().then(l.t.bind(l,314,23))}],options:{fullEpisodeTitle:{defaultValue:!0,displayName:"展开选集标题"},fullEpisodeList:{defaultValue:!0,displayName:"展开选集列表"}},entry:e=>{let{metadata:{options:t}}=e;Object.keys(t).forEach((e=>{(0,i.addComponentListener)(`fullEpisodeTitle.${e}`,(t=>{document.body.classList.toggle(lodash.kebabCase(e),t)}),!0)})),t.fullEpisodeList&&Promise.race([(0,o.select)(".multi-page-v1 .head-left h3"),(0,o.select)(".video-sections-v1 .first-line-title"),(0,o.select)(".base-video-sections-v1 .first-line-title")]).then((e=>{e&&e.addEventListener("click",(e=>{e.altKey&&0===e.button&&(document.body.classList.toggle("disable-full-episode-list"),e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0})}))},displayName:"选集区域优化",tags:[componentsTags.video],urlInclude:t.videoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=l(365);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(l.t.bind(l,393,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file +var s=this[n][0];null!=s&&(l[s]=!0)}for(var d=0;d{var o=i(530);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},365:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=365,e.exports=t},393:e=>{"use strict";e.exports="提供一些视频选集区域的优化, 对番剧无效.\n- `展开选集标题`: 总是完全展开视频选集列表项的标题\n- `展开选集列表`: 总是完全展开视频选集列表\n\n打开 `展开选集列表` 时, 在选集区域的标题上按住 Alt 键点击可以临时切换展开/收起选集列表.\n"}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e](n,n.exports,l),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}var n=Object.create(null);l.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var d=2&o&&i;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((e=>s[e]=()=>i[e]));return s.default=()=>i,l.d(n,s),n},l.d=(e,t)=>{for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";l.d(n,{component:()=>d});const e=coreApis.componentApis.define,t=coreApis.utils.urls,i=coreApis.settings,o=coreApis.spinQuery,s="fullEpisodeTitle",d=(0,e.defineComponentMetadata)({name:s,instantStyles:[{name:s,style:()=>Promise.resolve().then(l.t.bind(l,314,23))}],options:{fullEpisodeTitle:{defaultValue:!0,displayName:"展开选集标题"},fullEpisodeList:{defaultValue:!0,displayName:"展开选集列表"}},entry:e=>{let{metadata:{options:t}}=e;Object.keys(t).forEach((e=>{(0,i.addComponentListener)(`fullEpisodeTitle.${e}`,(t=>{document.body.classList.toggle(lodash.kebabCase(e),t)}),!0)})),t.fullEpisodeList&&Promise.race([(0,o.select)(".multi-page-v1 .head-left h3"),(0,o.select)(".video-sections-v1 .first-line-title"),(0,o.select)(".base-video-sections-v1 .first-line-title")]).then((e=>{e&&e.addEventListener("click",(e=>{e.altKey&&0===e.button&&(document.body.classList.toggle("disable-full-episode-list"),e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0})}))},displayName:"选集区域优化",tags:[componentsTags.video],urlInclude:t.videoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=l(365);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(l.t.bind(l,393,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/outer-watchlater.js b/registry/dist/components/video/outer-watchlater.js index 9299cef69..f28995b07 100644 --- a/registry/dist/components/video/outer-watchlater.js +++ b/registry/dist/components/video/outer-watchlater.js @@ -9,4 +9,4 @@ t=[[null,t,""]]);var a={};if(o)for(var r=0;r{"use strict";n.r(e),n.d(e,{default:()=>f});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("span",{staticClass:"watchlater be-outer-watchlater video-toolbar-left-item",class:{on:t.on},attrs:{title:"稍后再看"},on:{click:function(e){return t.toggle()}}},[e("VIcon",{staticClass:"icon",attrs:{size:28,icon:"mdi-timetable"}}),t._v(" "),e("span",{staticClass:"text"},[t._v("稍后再看")]),t._v(" "),e("div",{staticClass:"tip",class:{show:t.tipShowing}},[t._v(t._s(t.tipText))])],1)};o._withStripped=!0;const a=coreApis.ui,r=coreApis.componentApis.video.watchlater,i=Vue.extend({components:{VIcon:a.VIcon},data:()=>({watchlaterList:r.watchlaterList,aid:unsafeWindow.aid,tipText:"",tipShowing:!1,tipHandle:0}),computed:{on(){return console.log(this.watchlaterList,this.aid,this.watchlaterList.includes(parseInt(this.aid))),this.watchlaterList.includes(parseInt(this.aid))}},methods:{showTip(t){this.tipText=t,this.tipShowing=!0,this.tipHandle&&clearTimeout(this.tipHandle),this.tipHandle=setTimeout((()=>{this.tipShowing=!1}),2e3)},async toggle(){await(0,r.toggleWatchlater)(this.aid),this.showTip(this.on?"已添加至稍后再看":"已从稍后再看移除")}}});var s=n(332),l=n.n(s),c=n(175),d=n.n(c),p={insert:"head",singleton:!1};l()(d(),p);d().locals;var u=function(t,e,n,o,a,r,i,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}(i,o,[],!1,null,null,null);const f=u.exports},332:(t,e,n)=>{"use strict";var o,a=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),i=[];function s(t){for(var e=-1,n=0;n{"use strict";t.exports=coreApis.observer}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,a.d(r,i),r},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>s});const t=coreApis.componentApis.define,e=coreApis.utils,n=coreApis.utils.urls,o=coreApis.componentApis.video.videoActions,i=(0,t.defineOptionsMetadata)({showInWatchlaterPages:{defaultValue:!1,displayName:"在稍后再看页面中仍然显示"}}),s=(0,t.defineComponentMetadata)({name:"outerWatchlater",displayName:"外置稍后再看",entry:async t=>{let{settings:r}=t;if(n.watchlaterUrls.some(e.matchUrlPattern)&&!r.options.showInWatchlaterPages)return;if(!(0,e.getUID)())return;const i=await Promise.resolve().then(a.bind(a,603)),s=(0,e.mountVueComponent)(i);if(await(0,o.addVideoActionButton)((()=>s.$el))){const{videoChange:t}=await Promise.resolve().then(a.t.bind(a,391,23));t((t=>{let{aid:e}=t;console.log("videoChange",unsafeWindow.aid,e),s.aid=unsafeWindow.aid}))}},tags:[componentsTags.video],description:{"zh-CN":"将视频页面菜单里的 `稍后再看` 移到外面. 请注意如果在稍后再看页面中仍然显示, 是不会实时同步右侧的播放列表的."},urlInclude:n.videoUrls,options:i,reload:()=>{dqa(".be-outer-watchlater").forEach((t=>{t.style.display=""}))},unload:()=>{dqa(".be-outer-watchlater").forEach((t=>{t.style.display="none"}))},plugin:{displayName:"稍后再看 - 快捷键支持",setup:t=>{let{addData:e}=t;e("keymap.actions",(t=>{t.watchlater={displayName:"稍后再看",run:t=>{const{clickElement:e}=t;return e(".be-outer-watchlater",t)}}})),e("keymap.presets",(t=>{t.watchlater="shift w"}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),i=[];function s(t){for(var e=-1,n=0;n{"use strict";t.exports=coreApis.observer}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,a.d(r,i),r},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>s});const t=coreApis.componentApis.define,e=coreApis.utils,n=coreApis.utils.urls,o=coreApis.componentApis.video.videoActions,i=(0,t.defineOptionsMetadata)({showInWatchlaterPages:{defaultValue:!1,displayName:"在稍后再看页面中仍然显示"}}),s=(0,t.defineComponentMetadata)({name:"outerWatchlater",displayName:"外置稍后再看",entry:async t=>{let{settings:r}=t;if(n.watchlaterUrls.some(e.matchUrlPattern)&&!r.options.showInWatchlaterPages)return;if(!(0,e.getUID)())return;const i=await Promise.resolve().then(a.bind(a,603)),s=(0,e.mountVueComponent)(i);if(await(0,o.addVideoActionButton)((()=>s.$el))){const{videoChange:t}=await Promise.resolve().then(a.t.bind(a,391,23));t((t=>{let{aid:e}=t;console.log("videoChange",unsafeWindow.aid,e),s.aid=unsafeWindow.aid}))}},tags:[componentsTags.video],description:{"zh-CN":"将视频页面菜单里的 `稍后再看` 移到外面. 请注意如果在稍后再看页面中仍然显示, 是不会实时同步右侧的播放列表的."},urlInclude:n.videoUrls,options:i,reload:()=>{dqa(".be-outer-watchlater").forEach((t=>{t.style.display=""}))},unload:()=>{dqa(".be-outer-watchlater").forEach((t=>{t.style.display="none"}))},plugin:{displayName:"稍后再看 - 快捷键支持",setup:t=>{let{addData:e}=t;e("keymap.actions",(t=>{t.watchlater={displayName:"稍后再看",run:t=>{const{clickElement:e}=t;return e(".be-outer-watchlater",t)}}})),e("keymap.presets",(t=>{t.watchlater="shift w"}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/auto-light.js b/registry/dist/components/video/player/auto-light.js index a25900016..a2bcc1f71 100644 --- a/registry/dist/components/video/player/auto-light.js +++ b/registry/dist/components/video/player/auto-light.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/auto-light"]=t():e["video/player/auto-light"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,n={605:e=>{e.exports=coreApis.utils}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.d(r,{component:()=>d});const e=coreApis.componentApis.video.playerAgent,t=coreApis.componentApis.video.playerLight,n=coreApis.observer,o=coreApis.utils.urls,a=e=>{let t=document.getElementById("mstars1"),n=document.getElementById("mstars2");e?(null==t&&((()=>{const e=document.getElementById("biliMainHeader");if(null==e)return;const t=document.createElement("div");t.id="mstars1";const n=document.createElement("div");n.id="mstars2",e.appendChild(t),e.appendChild(n);const o=document.createElement("style");function i(e){let t="";const n=window.innerWidth*window.innerHeight;for(let o=0;o{let{settings:r}=o;const{isEmbeddedPlayer:d}=await Promise.resolve().then(i.t.bind(i,605,23));if(d())return;const l=()=>{(0,t.lightOn)(),a(!1)},p=()=>{(0,t.lightOff)(),r.options.starAnimation&&a(!0)};(0,n.videoChange)((async()=>{if(null!=s){const e=await s.query.video.element();e.removeEventListener("ended",l),e.removeEventListener("pause",l),e.removeEventListener("play",p)}s=e.playerAgent;const t=await s.query.video.element();s.isAutoPlay()&&p(),t.addEventListener("ended",l),t.addEventListener("pause",l),t.addEventListener("play",p)}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/auto-light"]=t():e["video/player/auto-light"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,n={605:e=>{e.exports=coreApis.utils}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.d(r,{component:()=>d});const e=coreApis.componentApis.video.playerAgent,t=coreApis.componentApis.video.playerLight,n=coreApis.observer,o=coreApis.utils.urls,a=e=>{let t=document.getElementById("mstars1"),n=document.getElementById("mstars2");e?(null==t&&((()=>{const e=document.getElementById("biliMainHeader");if(null==e)return;const t=document.createElement("div");t.id="mstars1";const n=document.createElement("div");n.id="mstars2",e.appendChild(t),e.appendChild(n);const o=document.createElement("style");function i(e){let t="";const n=window.innerWidth*window.innerHeight;for(let o=0;o{let{settings:r}=o;const{isEmbeddedPlayer:d}=await Promise.resolve().then(i.t.bind(i,605,23));if(d())return;const l=()=>{(0,t.lightOn)(),a(!1)},p=()=>{(0,t.lightOff)(),r.options.starAnimation&&a(!0)};(0,n.videoChange)((async()=>{if(null!=s){const e=await s.query.video.element();e.removeEventListener("ended",l),e.removeEventListener("pause",l),e.removeEventListener("play",p)}s=e.playerAgent;const t=await s.query.video.element();s.isAutoPlay()&&p(),t.addEventListener("ended",l),t.addEventListener("pause",l),t.addEventListener("play",p)}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/control-background.js b/registry/dist/components/video/player/control-background.js index 1598c8dc8..3ca48f0e4 100644 --- a/registry/dist/components/video/player/control-background.js +++ b/registry/dist/components/video/player/control-background.js @@ -6,4 +6,4 @@ e.i=function(o,r,t){"string"==typeof o&&( // eslint-disable-next-line no-param-reassign o=[[null,o,""]]);var n={};if(t)for(var l=0;l{var t=r(183);t&&t.__esModule&&(t=t.default),o.exports="string"==typeof t?t:t.toString()},986:o=>{"use strict";o.exports=coreApis.settings}},t={};function n(o){var e=t[o];if(void 0!==e)return e.exports;var l=t[o]={id:o,exports:{}};return r[o](l,l.exports,n),l.exports}e=Object.getPrototypeOf?o=>Object.getPrototypeOf(o):o=>o.__proto__,n.t=function(r,t){if(1&t&&(r=this(r)),8&t)return r;if("object"==typeof r&&r){if(4&t&&r.__esModule)return r;if(16&t&&"function"==typeof r.then)return r}var l=Object.create(null);n.r(l);var i={};o=o||[null,e({}),e([]),e(e)];for(var a=2&t&&r;"object"==typeof a&&!~o.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((o=>i[o]=()=>r[o]));return i.default=()=>r,n.d(l,i),l},n.d=(o,e)=>{for(var r in e)n.o(e,r)&&!n.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},n.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),n.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var l={};return(()=>{"use strict";n.d(l,{component:()=>t});const o=coreApis.componentApis.define,e=coreApis.utils.urls,r=(0,o.defineOptionsMetadata)({opacity:{displayName:"不透明度(%)",defaultValue:64,slider:{}},includeProgress:{displayName:"包括进度条",defaultValue:!0}}),t=(0,o.defineComponentMetadata)({name:"playerControlBackground",displayName:"播放器控制栏背景色",tags:[componentsTags.video,componentsTags.style],description:{"zh-CN":"给视频播放器控制栏附上半透明的黑色, 代替原来的阴影."},entry:async o=>{let{metadata:e}=o;const{addComponentListener:r}=await Promise.resolve().then(n.t.bind(n,986,23));r(`${e.name}.includeProgress`,(o=>{document.body.classList.toggle("video-control-progress-background",o)}),!0),r(`${e.name}.opacity`,lodash.debounce((o=>{document.documentElement.style.setProperty("--video-control-opacity",(o/100).toString())}),200),!0)},instantStyles:[{name:"playerControlBackground",style:()=>Promise.resolve().then(n.t.bind(n,591,23))}],urlInclude:e.playerUrls,options:r,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file +var i=this[l][0];null!=i&&(n[i]=!0)}for(var a=0;a{var t=r(183);t&&t.__esModule&&(t=t.default),o.exports="string"==typeof t?t:t.toString()},986:o=>{"use strict";o.exports=coreApis.settings}},t={};function n(o){var e=t[o];if(void 0!==e)return e.exports;var l=t[o]={id:o,exports:{}};return r[o](l,l.exports,n),l.exports}e=Object.getPrototypeOf?o=>Object.getPrototypeOf(o):o=>o.__proto__,n.t=function(r,t){if(1&t&&(r=this(r)),8&t)return r;if("object"==typeof r&&r){if(4&t&&r.__esModule)return r;if(16&t&&"function"==typeof r.then)return r}var l=Object.create(null);n.r(l);var i={};o=o||[null,e({}),e([]),e(e)];for(var a=2&t&&r;"object"==typeof a&&!~o.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((o=>i[o]=()=>r[o]));return i.default=()=>r,n.d(l,i),l},n.d=(o,e)=>{for(var r in e)n.o(e,r)&&!n.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},n.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),n.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var l={};return(()=>{"use strict";n.d(l,{component:()=>t});const o=coreApis.componentApis.define,e=coreApis.utils.urls,r=(0,o.defineOptionsMetadata)({opacity:{displayName:"不透明度(%)",defaultValue:64,slider:{}},includeProgress:{displayName:"包括进度条",defaultValue:!0}}),t=(0,o.defineComponentMetadata)({name:"playerControlBackground",displayName:"播放器控制栏背景色",tags:[componentsTags.video,componentsTags.style],description:{"zh-CN":"给视频播放器控制栏附上半透明的黑色, 代替原来的阴影."},entry:async o=>{let{metadata:e}=o;const{addComponentListener:r}=await Promise.resolve().then(n.t.bind(n,986,23));r(`${e.name}.includeProgress`,(o=>{document.body.classList.toggle("video-control-progress-background",o)}),!0),r(`${e.name}.opacity`,lodash.debounce((o=>{document.documentElement.style.setProperty("--video-control-opacity",(o/100).toString())}),200),!0)},instantStyles:[{name:"playerControlBackground",style:()=>Promise.resolve().then(n.t.bind(n,591,23))}],urlInclude:e.playerUrls,options:r,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/default-mode.js b/registry/dist/components/video/player/default-mode.js index 35ae6e520..503fa670f 100644 --- a/registry/dist/components/video/player/default-mode.js +++ b/registry/dist/components/video/player/default-mode.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/default-mode"]=o():e["video/player/default-mode"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>c});const t=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,l=coreApis.spinQuery,a=coreApis.utils,r=coreApis.utils.lazyPanel,s=coreApis.utils.urls;let i=function(e){return e.Normal="常规",e.Wide="宽屏",e.WebFullscreen="网页全屏",e.Fullscreen="全屏",e}({});const d=(0,t.defineOptionsMetadata)({mode:{defaultValue:i.Normal,displayName:"模式选择",dropdownEnum:i},applyOnPlay:{defaultValue:!1,displayName:"播放时应用"}}),c=(0,t.defineComponentMetadata)({name:"defaultPlayerMode",displayName:"默认播放器模式",entry:async e=>{let{settings:{options:o}}=e;if((0,a.isEmbeddedPlayer)())return;const{query:{control:{buttons:t}}}=n.playerAgent;await(0,a.playerReady)(),Promise.resolve().then((async()=>{const e=new Map([[i.Normal,none],[i.Wide,async()=>{await(0,r.loadLazyPanel)(t.widescreen.selector),(0,a.disableWindowScroll)((()=>n.playerAgent.widescreen()))}],[i.WebFullscreen,async()=>{await(0,r.loadLazyPanel)(t.webFullscreen.selector),n.playerAgent.webFullscreen()}],[i.Fullscreen,async()=>{null!==await(0,l.sq)((()=>dq(n.playerAgent.query.video.element.selector)),(e=>null!==e&&4===e.readyState&&"complete"===document.readyState&&document.hasFocus()))?n.playerAgent.fullscreen():console.warn("[默认播放器模式] 未能应用全屏模式, 等待超时.")}]]),s=await n.playerAgent.query.video.element();if(!s)return;const d=e.get(o.mode);o.applyOnPlay&&!n.playerAgent.isAutoPlay()?s.addEventListener("play",d,{once:!0}):d()}))},tags:[componentsTags.video],description:{"zh-CN":"控制是否使用默认播放器模式, 可以为`常规`, `宽屏`, `网页全屏`或`全屏`. 注意: 不能和其他影响定位的功能一同使用, 例如播放器定位. (相关讨论: [#483](https://github.com/the1812/Bilibili-Evolved/issues/483))","en-US":"Set the default player mode. Could be `Normal`, `Widescreen`, `Web fullscreen` or `Fullscreen`.","ja-JP":"デフォルト・プレーヤー・モードが使用するかどうかを制御する、 例えば`常规`、`宽屏`、 `网页全屏`か`全屏`."},options:d,urlInclude:s.allVideoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/default-mode"]=o():e["video/player/default-mode"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>d});const t=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,l=coreApis.spinQuery,a=coreApis.utils,r=coreApis.utils.lazyPanel,s=coreApis.utils.urls;let i=function(e){return e.Normal="常规",e.Wide="宽屏",e.WebFullscreen="网页全屏",e.Fullscreen="全屏",e}({});const c=(0,t.defineOptionsMetadata)({mode:{defaultValue:i.Normal,displayName:"模式选择",dropdownEnum:i},applyOnPlay:{defaultValue:!1,displayName:"播放时应用"}}),d=(0,t.defineComponentMetadata)({name:"defaultPlayerMode",displayName:"默认播放器模式",entry:async e=>{let{settings:{options:o}}=e;if((0,a.isEmbeddedPlayer)())return;const{query:{control:{buttons:t}}}=n.playerAgent;await(0,a.playerReady)(),Promise.resolve().then((async()=>{const e=new Map([[i.Normal,none],[i.Wide,async()=>{await(0,r.loadLazyPanel)(t.widescreen.selector),(0,a.disableWindowScroll)((()=>n.playerAgent.widescreen()))}],[i.WebFullscreen,async()=>{await(0,r.loadLazyPanel)(t.webFullscreen.selector),n.playerAgent.webFullscreen()}],[i.Fullscreen,async()=>{null!==await(0,l.sq)((()=>dq(n.playerAgent.query.video.element.selector)),(e=>null!==e&&4===e.readyState&&"complete"===document.readyState&&document.hasFocus()))?n.playerAgent.fullscreen():console.warn("[默认播放器模式] 未能应用全屏模式, 等待超时.")}]]),s=await n.playerAgent.query.video.element();if(!s)return;const c=e.get(o.mode);o.applyOnPlay&&!n.playerAgent.isAutoPlay()?s.addEventListener("play",c,{once:!0}):c()}))},tags:[componentsTags.video],description:{"zh-CN":"控制是否使用默认播放器模式, 可以为`常规`, `宽屏`, `网页全屏`或`全屏`. 注意: 不能和其他影响定位的功能一同使用, 例如播放器定位. (相关讨论: [#483](https://github.com/the1812/Bilibili-Evolved/issues/483))","en-US":"Set the default player mode. Could be `Normal`, `Widescreen`, `Web fullscreen` or `Fullscreen`.","ja-JP":"デフォルト・プレーヤー・モードが使用するかどうかを制御する、 例えば`常规`、`宽屏`、 `网页全屏`か`全屏`."},options:c,urlInclude:s.allVideoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/disable-scroll-volume.js b/registry/dist/components/video/player/disable-scroll-volume.js index 8ea1e5ee1..48ca53084 100644 --- a/registry/dist/components/video/player/disable-scroll-volume.js +++ b/registry/dist/components/video/player/disable-scroll-volume.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/disable-scroll-volume"]=o():e["video/player/disable-scroll-volume"]=o()}(globalThis,(()=>(()=>{var e,o,t={132:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=132,e.exports=o},466:e=>{"use strict";e.exports="在网页全屏 / 全屏模式下, 禁止鼠标滚轮控制播放器的音量. 请注意不能和 `反转滚轮调音量` 一同使用.\n"}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var l=Object.create(null);n.r(l);var i={};e=e||[null,o({}),o([]),o(o)];for(var s=2&r&&t;"object"==typeof s&&!~e.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,n.d(l,i),l},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";n.d(l,{component:()=>s});const e=coreApis.componentApis.define,o=coreApis.utils,t=coreApis.utils.urls;let r;const i=()=>(0,o.preventEvent)(unsafeWindow,"mousewheel",(()=>["player-mode-full","player-mode-web","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e))))),s=(0,e.defineComponentMetadata)({name:"disableScrollVolume",displayName:"禁止滚轮调音量",tags:[componentsTags.video],entry:()=>{r?.(),r=i()},reload:()=>{r?.(),r=i()},unload:()=>{r?.()},urlInclude:t.allVideoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(132);return{...Object.fromEntries(e.keys().map((o=>[o.match(/index\.(.+)\.md$/)[1],e(o)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,466,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/disable-scroll-volume"]=o():e["video/player/disable-scroll-volume"]=o()}(globalThis,(()=>(()=>{var e,o,t={132:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=132,e.exports=o},466:e=>{"use strict";e.exports="在网页全屏 / 全屏模式下, 禁止鼠标滚轮控制播放器的音量. 请注意不能和 `反转滚轮调音量` 一同使用.\n"}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var l=Object.create(null);n.r(l);var i={};e=e||[null,o({}),o([]),o(o)];for(var s=2&r&&t;"object"==typeof s&&!~e.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,n.d(l,i),l},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";n.d(l,{component:()=>s});const e=coreApis.componentApis.define,o=coreApis.utils,t=coreApis.utils.urls;let r;const i=()=>(0,o.preventEvent)(unsafeWindow,"mousewheel",(()=>["player-mode-full","player-mode-web","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e))))),s=(0,e.defineComponentMetadata)({name:"disableScrollVolume",displayName:"禁止滚轮调音量",tags:[componentsTags.video],entry:()=>{r?.(),r=i()},reload:()=>{r?.(),r=i()},unload:()=>{r?.()},urlInclude:t.allVideoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(132);return{...Object.fromEntries(e.keys().map((o=>[o.match(/index\.(.+)\.md$/)[1],e(o)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,466,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/double-click-fullscreen.js b/registry/dist/components/video/player/double-click-fullscreen.js index daca2d2ce..f3a58fe8d 100644 --- a/registry/dist/components/video/player/double-click-fullscreen.js +++ b/registry/dist/components/video/player/double-click-fullscreen.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/double-click-fullscreen"]=t():e["video/player/double-click-fullscreen"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={833:e=>{e.exports=coreApis.componentApis.video.playerAgent},391:e=>{e.exports=coreApis.observer},605:e=>{e.exports=coreApis.utils}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>l[e]=()=>o[e]));return l.default=()=>o,n.d(i,l),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineOptionsMetadata)({preventSingleClick:{displayName:"双击时阻止单击事件",defaultValue:!0}}),r=(0,e.defineComponentMetadata)({name:"doubleClickFullscreen",displayName:"双击全屏",description:"为视频播放器启用双击全屏功能, 请注意不能和 `启用双击控制` 一同使用.",entry:async e=>{let{settings:t}=e;const{videoChange:o}=await Promise.resolve().then(n.t.bind(n,391,23));o((async()=>{const{DoubleClickEvent:e}=await Promise.resolve().then(n.t.bind(n,605,23)),{playerAgent:o}=await Promise.resolve().then(n.t.bind(n,833,23)),r=await o.query.danmakuTipLayer();if(null===r)return void console.error("playerArea not found");const i="double-click-fullscreen";if(!r.classList.contains(i)){r.classList.add(i);const n=o.query.video.container.sync(),l=new e((()=>o.fullscreen()),t.options.preventSingleClick);l.singleClickHandler=()=>o.togglePlay(),l.bind(n)}}))},tags:[componentsTags.video],options:o,urlInclude:t.playerUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/double-click-fullscreen"]=t():e["video/player/double-click-fullscreen"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={833:e=>{e.exports=coreApis.componentApis.video.playerAgent},391:e=>{e.exports=coreApis.observer},605:e=>{e.exports=coreApis.utils}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>l[e]=()=>o[e]));return l.default=()=>o,n.d(i,l),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{component:()=>r});const e=coreApis.componentApis.define,t=coreApis.utils.urls,o=(0,e.defineOptionsMetadata)({preventSingleClick:{displayName:"双击时阻止单击事件",defaultValue:!0}}),r=(0,e.defineComponentMetadata)({name:"doubleClickFullscreen",displayName:"双击全屏",description:"为视频播放器启用双击全屏功能, 请注意不能和 `启用双击控制` 一同使用.",entry:async e=>{let{settings:t}=e;const{videoChange:o}=await Promise.resolve().then(n.t.bind(n,391,23));o((async()=>{const{DoubleClickEvent:e}=await Promise.resolve().then(n.t.bind(n,605,23)),{playerAgent:o}=await Promise.resolve().then(n.t.bind(n,833,23)),r=await o.query.danmakuTipLayer();if(null===r)return void console.error("playerArea not found");const i="double-click-fullscreen";if(!r.classList.contains(i)){r.classList.add(i);const n=o.query.video.container.sync(),l=new e((()=>o.fullscreen()),t.options.preventSingleClick);l.singleClickHandler=()=>o.togglePlay(),l.bind(n)}}))},tags:[componentsTags.video],options:o,urlInclude:t.playerUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/extend-speed.js b/registry/dist/components/video/player/extend-speed.js index 380909d61..265e1b17c 100644 --- a/registry/dist/components/video/player/extend-speed.js +++ b/registry/dist/components/video/player/extend-speed.js @@ -1,5 +1,5 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/extend-speed"]=t():e["video/player/extend-speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>Y});const n=coreApis.utils.urls,s=coreApis.settings,i=coreApis.utils.log,o=coreApis.pluginApis.hook,r=e=>"function"==typeof e?{next:e}:e,a=e=>function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!1;const a=[],l=[];let d=!1;const c=()=>{for(;a.length;)a.pop()();l.length=0,d=!0},p=e=>{d||(l.forEach((t=>{t.error?.(e),(0,s.getGeneralSettings)().devMode&&console.error(e)})),c())},u=e=>{d||l.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{l.forEach((e=>{e.complete?.()})),c()},m=()=>{if(o)return;const e=t?.({next:u,error:p,complete:h});e&&a.push(e),o=!0},b=e=>null==e?null:(l.push(e),()=>{lodash.pull(l,e)}),f=function(){for(var t=arguments.length,n=new Array(t),s=0;s{const t=b(r(e));return(i?.connect??m)(),t},pipe:f,next:u,error:p,complete:h,...i}:e(n[0],{subscribe:b},i||{connect:m,next:u}).pipe(...n.slice(1))};if(n){const e=t?.({subscribe:e=>n.subscribe({error:p,complete:h,...r(e)}),next:u,error:p,complete:h});e&&a.push(e)}return f()}(e),l=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:s}=e;t.forEach((e=>{n(e)})),s()}))},d=(e,t)=>a((n=>{let{next:s}=n;return e.addEventListener(t,s),()=>e.removeEventListener(t,s)})),c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let{next:s}=t;e(...n,s)}))},p=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:s}=e;const i=[...t],o=()=>{const e=i.shift();e||s(),e.subscribe({next:n,complete:()=>{o()}})};o()}))},u=e=>new Promise(((t,n)=>{const s=e.subscribe({next:e=>{t(e),s()},error:()=>{n(),s()},complete:()=>{n(),s()}})})),h=coreApis.componentApis.video.playerAgent,m=coreApis.lifeCycle,b=coreApis.observer,f=coreApis.utils,y=coreApis.utils.sort,v=e=>t=>{let{subscribe:n,next:s,complete:i,error:o}=t;n(lodash.mapValues({next:s,complete:i,error:o},(t=>e(t))))},g=e=>function(){for(var t=arguments.length,n=new Array(t),s=0;se(...n)))},x=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,error:s,complete:i}=e;return x((e=>{const o=[];let r=0;e(t.map(((e,a)=>e.pipe(v(g)).subscribe({next:e=>{o[a]=e,o.reduce((e=>e+1),0)===t.length&&n(o.slice())},complete:()=>{r++,r===t.length&&i()},error:s})))),e((()=>{o.length=0,r=0}))}))}))},w=e=>t=>{let{subscribe:n,next:s,error:i}=t;n(lodash.debounce((e=>{try{s(e)}catch(e){i(e)}}),e))},E=e=>t=>{let{subscribe:n,next:s}=t;n((t=>{e(t)&&s(t)}))},$=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,subscribe:s}=e,i=!1;s((e=>{i||t.forEach((e=>n(e))),n(e),i=!0}))}},C=coreApis.pluginApis.data,V=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),M=e=>e.split(",").join(" "),A=(e,t)=>{const n=t=>{(0,C.registerAndGetData)(e,t)[0]=t},s=(0,C.getData)(e);if(s.length)return[s[0],n];if(t){const e=t();return n(e),[e,n]}return[void 0,n]},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},k=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=h.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let O=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const T=(e,t,n)=>{const s=new MutationObserver(n);return s.observe(e,t),s},I=e=>{let[t,n]=e;if(!t)throw new Error("speed container element not found!");if(!n)throw new Error("video element not found!");const s=t.querySelector(j.custom.speedNameBtn.selector),i=t.querySelector(j.custom.speedMenuList.selector);let o,r,l;const d=a(),c=a().pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));c.pipe($(void 0),(e=>{let{subscribe:t,next:n}=e;const s=[];return t((e=>{2===s.length&&s.shift(),s.push(e),2===s.length&&n(s.slice())})),()=>{s.length=0}})).subscribe((e=>{let[t,n]=e;r=t,o=n}));const p=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:c.next(k(e.data));break;case Node.ELEMENT_NODE:c.next(k(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},u=()=>{l=lodash([...i.children]).map((e=>lodash.attempt((()=>k(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,y.ascendingSort)()).value()};p(s),u();const h=T(i,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:n=[]}=lodash.groupBy(e,"type");n.length&&u(),d.next({attributes:t,childList:n})})),m=T(s,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;p(t)}))}));return{containerElement:t,videoElement:n,nameBtnElement:s,menuListElement:i,query:e=>(0,f.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(V).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(j.custom.speedMenuItem.selector)}) and normalize-space()="${L(e)}"]`,i),dispose:()=>{h.disconnect(),m.disconnect()},activeVideoSpeed$:c,menuListElementMutations$:d,getActiveVideoSpeed:()=>o,getOldActiveVideoSpeed:()=>r,getAvailableSpeedValues:()=>l}},P=e=>{const{videoElement:t,menuListElement:n}=e,s=d(n,"click").pipe((i=e=>{const{innerText:t,innerHTML:n}=e.target,s=t.trim()||n.trim();return lodash.attempt((()=>k(s)))},e=>{let{subscribe:t,next:n}=e;t((e=>{n(i(e))}))}),E((e=>!lodash.isError(e))));var i;const o=a((e=>{let{next:n}=e,s=t;do{s=Object.getPrototypeOf(s)}while(null===s||!Object.prototype.hasOwnProperty.call(s,"playbackRate"));const i=Object.getOwnPropertyDescriptor(s,"playbackRate");return Object.defineProperty(s,"playbackRate",{set(e){i.set.call(this,e),n(e)}}),()=>{Object.defineProperty(s,"playbackRate",i)}})),r=s.pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})),l=o.pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})),c=a((e=>{let{next:t}=e;const n=S(r,l);return n.subscribe((e=>{let[n,s]=e;n===s&&t(s)})),()=>n.complete()})).pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));let p;l.pipe(w(200),$(void 0),(e=>{let{subscribe:t,next:n}=e;const s=[];return t((e=>{2===s.length&&s.shift(),s.push(e),2===s.length&&n(s.slice())})),()=>{s.length=0}})).subscribe((e=>{let[t]=e;p=t}));const u={menuListElementClickSpeed$:s,menuListElementClickSpeedChange$:r,playbackRate$:o,playbackRateChange$:l,videoSpeedChange$:c};return{...e,...u,dispose:()=>{lodash.values(u).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>p}},[R]=A("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>L(e))),n=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${n}`),this.speed=e,N(this,"formattedSpeed",void 0),this.formattedSpeed=n}})),q=e=>{const{query:t,videoElement:n,videoSpeedChange$:s,getOldActiveVideoSpeed:i,getAvailableSpeedValues:o,getActiveVideoSpeed:r}=e,a=async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const o=t(e);if(null==o)throw new R(e);o.click();const r=t=>{if((t??n.playbackRate)!==e)throw new Error(`failed to set ${L(e)} video speed.`)},a=[u(s.pipe(w(Math.max(0,i||0))))];i>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,i)))))),await Promise.all(a).then(r).catch(r)},l=async()=>{await a(1)},d=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===n.playbackRate?await a(i()):await l();else{const n=o();switch(t){case O.MIN:await a(n[e]);break;case O.MAX:await a(n[n.length-1+e]);break;case O.CURRENT:default:{const t=n.indexOf(r());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(n[t+e])}}}},c=async e=>{try{await d(e,O.CURRENT)}catch(e){if(console.warn(e),!(e instanceof R))throw e}};return Object.assign(e,{set:a,force:async e=>{n.playbackRate=e},reset:l,toggle:d,step:c,increase:async()=>{await c(1)},decrease:async()=>{await c(-1)}})},U=()=>A("speed.speedContext"),B=()=>A("speed.buildArguments$",(()=>{return a().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:n,next:s}=t;const i=new Set;return n((t=>{const n=i.size;e(t)?i.add(t):i.delete(t),i.size!==n&&s([...i])})),()=>{i.clear()}}));var e})),z=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,n]=U();if(t)return t;let s,i;const[o]=A("lifeCycleComponentLoaded$",(()=>d(unsafeWindow,m.LifeCycleEventTypes.ComponentsLoaded))),[r]=B(),[h]=A("speed.videoChange$",(()=>c(b.videoChange).pipe(E((e=>{let{aid:t,cid:n}=e;return t||n}))))),[f]=A("speed.speedContext$",(()=>a((t=>{let{next:n}=t;return S(h,p(l([]),r),o).subscribe((t=>{let[o,r]=t;const[a]=U();a?.dispose(),i?.("context update");const l=new Promise(((e,t)=>{s=e,i=t}));Promise.all([Promise.all([j.custom.speedContainer(),j.query.video.element()]).then(s),l]).then((e=>{let[,t]=e;return t})).then(I).then(P).then(q).then((e=>Object.assign(e,{videoIdObject:o,speedContext$:f,videoChange$:h}))).then(e(r)).then(n).catch((e=>console.error(e)))}))}))));return f.subscribe(n),u(f)};function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=[.5,.75,1,1.25,1.5,2],X=.0625;class W{constructor(e,t){this.entryContext=e,this.enabled$=t,H(this,"speedContext",void 0),H(this,"settings",void 0),H(this,"coreApis",void 0),H(this,"metadata",void 0),H(this,"options",void 0),H(this,"getVideoIdObject",void 0),H(this,"getAvailableSpeedValues",void 0),H(this,"getOldActiveVideoSpeed",void 0),H(this,"forceVideoSpeed",void 0),H(this,"getVideoSpeed",void 0),H(this,"setVideoSpeed",void 0),H(this,"resetVideoSpeed",void 0),H(this,"toggleVideoSpeed",void 0),H(this,"increaseVideoSpeed",void 0),H(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(W.contextMap,(e=>async function(){const t=await z(),n=lodash.get(t,e),s=lodash.isFunction(n)?await n(...arguments):n;return s})))}}H(W,"create",void 0),H(W,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),z((e=>t=>{const n=lodash.omit(t,"dispose"),i=e.map((e=>e.getSpeedContextMixin(n)));if(i.length>1){const e=lodash.intersection(...i.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(n,...i);const o=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,n)=>c(s.addComponentListener,`${e.metadata.name}.${n}`).pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();o.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,n,s)=>lodash.isSymbol(n)?Reflect.get(e,n,s):!Reflect.has(e,n)&&n.endsWith("$")?t[n]:Reflect.get(e,n,s)}),e.speedContext=n,e.onSpeedContext(n),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[n,s]=t;s.next(e.settings.options[n.slice(0,-1)])}))})),{...n,dispose:()=>{o.forEach((e=>e.complete())),t.dispose()}}})),W.create=function(e){const t=a().pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));return{...e,entry:n=>{const s=lodash.attempt((()=>new this(n,t)));if(s instanceof Error)return(0,i.logError)(s),null;const[r]=B();return t.subscribe((()=>{r.next(s)})),t.next(!0),(0,o.getHook)(`speed.component.${e.name}`).after(s),s},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const F=coreApis.style,_=coreApis.toast,G=e=>{let t,{style:n,name:s,container:i}=e;const o=()=>t?.remove();return{next:e=>{o();const r="function"==typeof n?n(e):n;r&&(t=(0,F.addStyle)(r,s,i))},complete:o}};function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=document.createElement("div");n.innerHTML=e;const s={},i=n.children.item(0),o=e=>{t&&(e.id=`scoped-element-${Math.random().toString(36).replace(/[^a-z0-9]+/g,"")}`);const n=e.getAttribute("data-ref");n&&(s[lodash.camelCase(n)]=e);for(let t=0;te=>{let{subscribe:t,next:n}=e;t((e=>{D.includes(e)&&n(e)}))})),this.enabled$.subscribe(G({name:"fix-after-element",style:e=>e&&".bpx-player-ctrl-playbackrate-menu:after { display: none; }"}))}addSpeedValue(e){this.options.extendSpeedList=lodash.sortedUniq(this.options.extendSpeedList.concat(e).sort((0,y.ascendingSort)()))}removeSpeedValue(e){this.options.extendSpeedList=lodash.without(this.options.extendSpeedList,e)}createInputElement(){const{input:e,root:t,icon:n}=K(`\n
  • \n \n \n
  • \n `),s=()=>{const t=this.speedContext.getAvailableSpeedValues().slice(-1)[0]+.5,n=lodash.toString(t>16?null:t);e.value=n,e.min=n};this.options.extendSpeedList$.pipe(v(g)).subscribe(s);const o=(0,F.addStyle)(`\n #${e.id} {\n font-size: inherit;\n color: inherit;\n line-height: inherit;\n background: transparent;\n outline: none;\n width: 100%;\n border: none;\n text-align: center;\n cursor: text;\n }\n /* https://stackoverflow.com/a/4298216 */\n /* Chrome */\n #${e.id}::-webkit-outer-spin-button,\n #${e.id}::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n #${e.id}[type=number] {\n -moz-appearance:textfield;\n }\n `),r=lodash.over(d(e,"keydown").pipe(w(200)).subscribe((t=>{let{key:n}=t;if("Enter"!==n)return;const s=parseFloat(e.value);try{if(!lodash.isFinite(s))throw new Error("无效的倍数值");if(s16)throw new Error("倍数值太大了");if(this.speedContext.getAvailableSpeedValues().includes(s))throw new Error("不能重复添加已有的倍数值");this.addSpeedValue(s)}catch(t){(0,i.logError)(String(t),5e3),e.focus(),e.select()}})),d(t,"mouseenter").subscribe((()=>{e.style.display="inline",n.style.display="none",s(),setTimeout((()=>e.focus()))})),d(t,"mouseleave").subscribe((()=>{e.style.display="none",n.style.display="inline"})),(()=>t.remove()),(()=>o.remove()));return{node:t,destroy:r}}createCustomSpeedMenuItemElement(e){const{closeBtn:t,root:n}=K(`\n
  • \n ${L(e)}\n \n
  • \n `),s=(0,F.addStyle)(`\n .extend-speed-item [data-ref="close-btn"] {\n color: inherit;\n opacity: 0.5;\n display: none;\n position: absolute;\n right: 4px;\n }\n :is(${j.custom.speedMenuItem.selector}):not(${j.custom.active.selector}):hover [data-ref="close-btn"] {\n display: inline;\n }\n .extend-speed-item [data-ref="close-btn"]:hover {\n opacity: 1;\n transition: all .3s;\n }\n `),i=lodash.over(d(t,"click").subscribe((()=>{this.removeSpeedValue(e)})),(()=>n.remove()),(()=>s.remove()));return{tag:e,node:n,destroy:i}}migrate(){const{options:e}=this.settings,{options:t}=(0,s.getComponentSettings)("rememberVideoSpeed");t.extendList&&(e.extendSpeedList=Array.from(t.extendList),delete t.extendList,delete t.extend,_.Toast.success("从「倍速记忆」组件迁移旧配置成功","【扩展倍速】旧配置迁移完成",8e3))} +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/extend-speed"]=t():e["video/player/extend-speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>Y});const n=coreApis.utils.urls,s=coreApis.settings,i=coreApis.utils.log,o=coreApis.pluginApis.hook,r=e=>"function"==typeof e?{next:e}:e,a=e=>function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!1;const a=[],l=[];let c=!1;const d=()=>{for(;a.length;)a.pop()();l.length=0,c=!0},p=e=>{c||(l.forEach((t=>{t.error?.(e),(0,s.getGeneralSettings)().devMode&&console.error(e)})),d())},u=e=>{c||l.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{l.forEach((e=>{e.complete?.()})),d()},m=()=>{if(o)return;const e=t?.({next:u,error:p,complete:h});e&&a.push(e),o=!0},b=e=>null==e?null:(l.push(e),()=>{lodash.pull(l,e)}),f=function(){for(var t=arguments.length,n=new Array(t),s=0;s{const t=b(r(e));return(i?.connect??m)(),t},pipe:f,next:u,error:p,complete:h,...i}:e(n[0],{subscribe:b},i||{connect:m,next:u}).pipe(...n.slice(1))};if(n){const e=t?.({subscribe:e=>n.subscribe({error:p,complete:h,...r(e)}),next:u,error:p,complete:h});e&&a.push(e)}return f()}(e),l=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:s}=e;t.forEach((e=>{n(e)})),s()}))},c=(e,t)=>a((n=>{let{next:s}=n;return e.addEventListener(t,s),()=>e.removeEventListener(t,s)})),d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let{next:s}=t;e(...n,s)}))},p=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:s}=e;const i=[...t],o=()=>{const e=i.shift();e||s(),e.subscribe({next:n,complete:()=>{o()}})};o()}))},u=e=>new Promise(((t,n)=>{const s=e.subscribe({next:e=>{t(e),s()},error:()=>{n(),s()},complete:()=>{n(),s()}})})),h=coreApis.componentApis.video.playerAgent,m=coreApis.lifeCycle,b=coreApis.observer,f=coreApis.utils,y=coreApis.utils.sort,v=e=>t=>{let{subscribe:n,next:s,complete:i,error:o}=t;n(lodash.mapValues({next:s,complete:i,error:o},(t=>e(t))))},g=e=>function(){for(var t=arguments.length,n=new Array(t),s=0;se(...n)))},x=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,error:s,complete:i}=e;return x((e=>{const o=[];let r=0;e(t.map(((e,a)=>e.pipe(v(g)).subscribe({next:e=>{o[a]=e,o.reduce((e=>e+1),0)===t.length&&n(o.slice())},complete:()=>{r++,r===t.length&&i()},error:s})))),e((()=>{o.length=0,r=0}))}))}))},w=e=>t=>{let{subscribe:n,next:s,error:i}=t;n(lodash.debounce((e=>{try{s(e)}catch(e){i(e)}}),e))},E=e=>t=>{let{subscribe:n,next:s}=t;n((t=>{e(t)&&s(t)}))},$=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,subscribe:s}=e,i=!1;s((e=>{i||t.forEach((e=>n(e))),n(e),i=!0}))}},C=coreApis.pluginApis.data,V=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),M=e=>e.split(",").join(" "),A=(e,t)=>{const n=t=>{(0,C.registerAndGetData)(e,t)[0]=t},s=(0,C.getData)(e);if(s.length)return[s[0],n];if(t){const e=t();return n(e),[e,n]}return[void 0,n]},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},k=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=h.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let O=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const T=(e,t,n)=>{const s=new MutationObserver(n);return s.observe(e,t),s},I=e=>{let[t,n]=e;if(!t)throw new Error("speed container element not found!");if(!n)throw new Error("video element not found!");const s=t.querySelector(j.custom.speedNameBtn.selector),i=t.querySelector(j.custom.speedMenuList.selector);let o,r,l;const c=a(),d=a().pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));d.pipe($(void 0),(e=>{let{subscribe:t,next:n}=e;const s=[];return t((e=>{2===s.length&&s.shift(),s.push(e),2===s.length&&n(s.slice())})),()=>{s.length=0}})).subscribe((e=>{let[t,n]=e;r=t,o=n}));const p=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:d.next(k(e.data));break;case Node.ELEMENT_NODE:d.next(k(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},u=()=>{l=lodash([...i.children]).map((e=>lodash.attempt((()=>k(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,y.ascendingSort)()).value()};p(s),u();const h=T(i,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:n=[]}=lodash.groupBy(e,"type");n.length&&u(),c.next({attributes:t,childList:n})})),m=T(s,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;p(t)}))}));return{containerElement:t,videoElement:n,nameBtnElement:s,menuListElement:i,query:e=>(0,f.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(V).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(j.custom.speedMenuItem.selector)}) and normalize-space()="${L(e)}"]`,i),dispose:()=>{h.disconnect(),m.disconnect()},activeVideoSpeed$:d,menuListElementMutations$:c,getActiveVideoSpeed:()=>o,getOldActiveVideoSpeed:()=>r,getAvailableSpeedValues:()=>l}},P=e=>{const{videoElement:t,menuListElement:n}=e,s=c(n,"click").pipe((i=e=>{const{innerText:t,innerHTML:n}=e.target,s=t.trim()||n.trim();return lodash.attempt((()=>k(s)))},e=>{let{subscribe:t,next:n}=e;t((e=>{n(i(e))}))}),E((e=>!lodash.isError(e))));var i;const o=a((e=>{let{next:n}=e,s=t;do{s=Object.getPrototypeOf(s)}while(null===s||!Object.prototype.hasOwnProperty.call(s,"playbackRate"));const i=Object.getOwnPropertyDescriptor(s,"playbackRate");return Object.defineProperty(s,"playbackRate",{set(e){i.set.call(this,e),n(e)}}),()=>{Object.defineProperty(s,"playbackRate",i)}})),r=s.pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})),l=o.pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})),d=a((e=>{let{next:t}=e;const n=S(r,l);return n.subscribe((e=>{let[n,s]=e;n===s&&t(s)})),()=>n.complete()})).pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));let p;l.pipe(w(200),$(void 0),(e=>{let{subscribe:t,next:n}=e;const s=[];return t((e=>{2===s.length&&s.shift(),s.push(e),2===s.length&&n(s.slice())})),()=>{s.length=0}})).subscribe((e=>{let[t]=e;p=t}));const u={menuListElementClickSpeed$:s,menuListElementClickSpeedChange$:r,playbackRate$:o,playbackRateChange$:l,videoSpeedChange$:d};return{...e,...u,dispose:()=>{lodash.values(u).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>p}},[R]=A("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>L(e))),n=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${n}`),this.speed=e,N(this,"formattedSpeed",void 0),this.formattedSpeed=n}})),q=e=>{const{query:t,videoElement:n,videoSpeedChange$:s,getOldActiveVideoSpeed:i,getAvailableSpeedValues:o,getActiveVideoSpeed:r}=e,a=async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const o=t(e);if(null==o)throw new R(e);o.click();const r=t=>{if((t??n.playbackRate)!==e)throw new Error(`failed to set ${L(e)} video speed.`)},a=[u(s.pipe(w(Math.max(0,i||0))))];i>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,i)))))),await Promise.all(a).then(r).catch(r)},l=async()=>{await a(1)},c=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===n.playbackRate?await a(i()):await l();else{const n=o();switch(t){case O.MIN:await a(n[e]);break;case O.MAX:await a(n[n.length-1+e]);break;case O.CURRENT:default:{const t=n.indexOf(r());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(n[t+e])}}}},d=async e=>{try{await c(e,O.CURRENT)}catch(e){if(console.warn(e),!(e instanceof R))throw e}};return Object.assign(e,{set:a,force:async e=>{n.playbackRate=e},reset:l,toggle:c,step:d,increase:async()=>{await d(1)},decrease:async()=>{await d(-1)}})},U=()=>A("speed.speedContext"),B=()=>A("speed.buildArguments$",(()=>{return a().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:n,next:s}=t;const i=new Set;return n((t=>{const n=i.size;e(t)?i.add(t):i.delete(t),i.size!==n&&s([...i])})),()=>{i.clear()}}));var e})),z=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,n]=U();if(t)return t;let s,i;const[o]=A("lifeCycleComponentLoaded$",(()=>c(unsafeWindow,m.LifeCycleEventTypes.ComponentsLoaded))),[r]=B(),[h]=A("speed.videoChange$",(()=>d(b.videoChange).pipe(E((e=>{let{aid:t,cid:n}=e;return t||n}))))),[f]=A("speed.speedContext$",(()=>a((t=>{let{next:n}=t;return S(h,p(l([]),r),o).subscribe((t=>{let[o,r]=t;const[a]=U();a?.dispose(),i?.("context update");const l=new Promise(((e,t)=>{s=e,i=t}));Promise.all([Promise.all([j.custom.speedContainer(),j.query.video.element()]).then(s),l]).then((e=>{let[,t]=e;return t})).then(I).then(P).then(q).then((e=>Object.assign(e,{videoIdObject:o,speedContext$:f,videoChange$:h}))).then(e(r)).then(n).catch((e=>console.error(e)))}))}))));return f.subscribe(n),u(f)};function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=[.5,.75,1,1.25,1.5,2],X=.0625;class W{constructor(e,t){this.entryContext=e,this.enabled$=t,H(this,"speedContext",void 0),H(this,"settings",void 0),H(this,"coreApis",void 0),H(this,"metadata",void 0),H(this,"options",void 0),H(this,"getVideoIdObject",void 0),H(this,"getAvailableSpeedValues",void 0),H(this,"getOldActiveVideoSpeed",void 0),H(this,"forceVideoSpeed",void 0),H(this,"getVideoSpeed",void 0),H(this,"setVideoSpeed",void 0),H(this,"resetVideoSpeed",void 0),H(this,"toggleVideoSpeed",void 0),H(this,"increaseVideoSpeed",void 0),H(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(W.contextMap,(e=>async function(){const t=await z(),n=lodash.get(t,e),s=lodash.isFunction(n)?await n(...arguments):n;return s})))}}H(W,"create",void 0),H(W,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),z((e=>t=>{const n=lodash.omit(t,"dispose"),i=e.map((e=>e.getSpeedContextMixin(n)));if(i.length>1){const e=lodash.intersection(...i.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(n,...i);const o=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,n)=>d(s.addComponentListener,`${e.metadata.name}.${n}`).pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();o.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,n,s)=>lodash.isSymbol(n)?Reflect.get(e,n,s):!Reflect.has(e,n)&&n.endsWith("$")?t[n]:Reflect.get(e,n,s)}),e.speedContext=n,e.onSpeedContext(n),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[n,s]=t;s.next(e.settings.options[n.slice(0,-1)])}))})),{...n,dispose:()=>{o.forEach((e=>e.complete())),t.dispose()}}})),W.create=function(e){const t=a().pipe((e=>{let t,{subscribe:n,next:s}=e,i=!0;n((e=>{(i||t!==e)&&(i=!1,t=e,s(e))}))}));return{...e,entry:n=>{const s=lodash.attempt((()=>new this(n,t)));if(s instanceof Error)return(0,i.logError)(s),null;const[r]=B();return t.subscribe((()=>{r.next(s)})),t.next(!0),(0,o.getHook)(`speed.component.${e.name}`).after(s),s},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const F=coreApis.style,_=coreApis.toast,G=e=>{let t,{style:n,name:s,container:i}=e;const o=()=>t?.remove();return{next:e=>{o();const r="function"==typeof n?n(e):n;r&&(t=(0,F.addStyle)(r,s,i))},complete:o}};function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=document.createElement("div");n.innerHTML=e;const s={},i=n.children.item(0),o=e=>{t&&(e.id=`scoped-element-${Math.random().toString(36).replace(/[^a-z0-9]+/g,"")}`);const n=e.getAttribute("data-ref");n&&(s[lodash.camelCase(n)]=e);for(let t=0;te=>{let{subscribe:t,next:n}=e;t((e=>{D.includes(e)&&n(e)}))})),this.enabled$.subscribe(G({name:"fix-after-element",style:e=>e&&".bpx-player-ctrl-playbackrate-menu:after { display: none; }"}))}addSpeedValue(e){this.options.extendSpeedList=lodash.sortedUniq(this.options.extendSpeedList.concat(e).sort((0,y.ascendingSort)()))}removeSpeedValue(e){this.options.extendSpeedList=lodash.without(this.options.extendSpeedList,e)}createInputElement(){const{input:e,root:t,icon:n}=K(`\n
  • \n \n \n
  • \n `),s=()=>{const t=this.speedContext.getAvailableSpeedValues().slice(-1)[0]+.5,n=lodash.toString(t>16?null:t);e.value=n,e.min=n};this.options.extendSpeedList$.pipe(v(g)).subscribe(s);const o=(0,F.addStyle)(`\n #${e.id} {\n font-size: inherit;\n color: inherit;\n line-height: inherit;\n background: transparent;\n outline: none;\n width: 100%;\n border: none;\n text-align: center;\n cursor: text;\n }\n /* https://stackoverflow.com/a/4298216 */\n /* Chrome */\n #${e.id}::-webkit-outer-spin-button,\n #${e.id}::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n #${e.id}[type=number] {\n -moz-appearance:textfield;\n }\n `),r=lodash.over(c(e,"keydown").pipe(w(200)).subscribe((t=>{let{key:n}=t;if("Enter"!==n)return;const s=parseFloat(e.value);try{if(!lodash.isFinite(s))throw new Error("无效的倍数值");if(s16)throw new Error("倍数值太大了");if(this.speedContext.getAvailableSpeedValues().includes(s))throw new Error("不能重复添加已有的倍数值");this.addSpeedValue(s)}catch(t){(0,i.logError)(String(t),5e3),e.focus(),e.select()}})),c(t,"mouseenter").subscribe((()=>{e.style.display="inline",n.style.display="none",s(),setTimeout((()=>e.focus()))})),c(t,"mouseleave").subscribe((()=>{e.style.display="none",n.style.display="inline"})),(()=>t.remove()),(()=>o.remove()));return{node:t,destroy:r}}createCustomSpeedMenuItemElement(e){const{closeBtn:t,root:n}=K(`\n
  • \n ${L(e)}\n \n
  • \n `),s=(0,F.addStyle)(`\n .extend-speed-item [data-ref="close-btn"] {\n color: inherit;\n opacity: 0.5;\n display: none;\n position: absolute;\n right: 4px;\n }\n :is(${j.custom.speedMenuItem.selector}):not(${j.custom.active.selector}):hover [data-ref="close-btn"] {\n display: inline;\n }\n .extend-speed-item [data-ref="close-btn"]:hover {\n opacity: 1;\n transition: all .3s;\n }\n `),i=lodash.over(c(t,"click").subscribe((()=>{this.removeSpeedValue(e)})),(()=>n.remove()),(()=>s.remove()));return{tag:e,node:n,destroy:i}}migrate(){const{options:e}=this.settings,{options:t}=(0,s.getComponentSettings)("rememberVideoSpeed");t.extendList&&(e.extendSpeedList=Array.from(t.extendList),delete t.extendList,delete t.extend,_.Toast.success("从「倍速记忆」组件迁移旧配置成功","【扩展倍速】旧配置迁移完成",8e3))} // eslint-disable-next-line class-methods-use-this getSpeedContextMixin(e){let{menuListElement:t}=e;return{query:e=>(0,f.des)(`./*[(${Q.speedMenuItemClassName.split(",").map((e=>`contains(@class, "${e}")`)).join(" or ")}) and not(contains(@class, "extend-speed-input")) and normalize-space()="${L(e)}"]`,t)}}onSpeedContext(e){let{menuListElementClickSpeedChange$:t,playbackRate$:n}=e;this.options.extendSpeedList$.subscribe({next:e=>this.patch(((e,t)=>{let n=0,s=e.length,i=0,o=t.length;for(;ne.tag)),Array.from(e))),complete:()=>{this.unpatch()}}),this.options.maxMenuHeight$.subscribe(G({name:"extend-video-speed-style",style:e=>`\n ${j.custom.speedMenuList.selector} {\n display: flex !important; /* 防止3.X样式覆盖 */\n flex-direction: column;\n overflow-y: auto;\n max-height: ${e}px;\n visibility: hidden;\n }\n /* 修复2.X倍速列表显示问题 */\n :is(${j.custom.show.selector}) :is(${j.custom.speedMenuList.selector}){\n visibility: visible;\n }\n /* 修复番剧区的列表显示问题 */\n :is(${j.custom.speedMenuList.selector})[style*="block"] {\n visibility: visible;\n }`})),this.options.hideScrollbar$.subscribe(G({name:"extend-video-speed-no-scrollbar-style",style:e=>e&&`\n ${j.custom.speedMenuList.selector} {\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n }\n :is(${j.custom.speedMenuList.selector})::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n }`})),this.options.hideRemoveBtn$.subscribe(G({name:"extend-video-speed-no-remove-btn-style",style:e=>e&&`\n .extend-speed-item [data-ref="close-btn"] {\n display: none !important;\n }\n :is(${j.custom.speedMenuItem.selector}):not(${j.custom.active.selector}):hover [data-ref="close-btn"] {\n display: none !important;\n }`})),this.options.hideAddBtn$.subscribe(G({name:"extend-video-speed-no-add-btn-style",style:e=>e&&"\n .extend-speed-input {\n display: none !important;\n }"}));let s=1;n.pipe(E((e=>D.includes(e)))).subscribe((e=>{s=e})),t.subscribe({next:e=>{this.forceVideoSpeedWithUpdateStyle(e),this.currentSpeedValue=e},complete:()=>{this.setVideoSpeed(s),this.forceVideoSpeedWithUpdateStyle(s)}}),this.currentSpeedValue&&requestIdleCallback((()=>{this.setVideoSpeed(this.currentSpeedValue,1e3)}))}async forceVideoSpeedWithUpdateStyle(e){await this.forceVideoSpeed(e),setTimeout((()=>this.forceUpdateStyle(e)))} // eslint-disable-next-line class-methods-use-this -patch(e){const[t,n,s]=e,{menuListElement:i}=this.speedContext;if(this.inputElement||(this.inputElement=this.createInputElement(),i.prepend(this.inputElement.node)),0===n&&0===s.length)return;const o=s.map((e=>this.createCustomSpeedMenuItemElement(e)));this.elementMap.splice(t,n,...o).forEach((e=>{e.destroy()})),(this.elementMap[t-1]||this.inputElement).node.after(...o.map((e=>e.node)).reverse()),i.querySelectorAll(`:is(${j.custom.speedMenuItem.selector}):not(#${this.inputElement.node.id})`).forEach((e=>{e.style.order=(1e4*(16-k(e.innerHTML))).toString()})),this.unpatch=()=>{this.inputElement.destroy(),this.inputElement=void 0,this.elementMap.forEach((e=>e.destroy())),this.elementMap.length=0}}forceUpdateStyle(e){const{menuListElement:t,containerElement:n,nameBtnElement:s,query:i}=this.speedContext;for(const e of(0,f.dea)(`./*[(${V(Q.speedMenuItemClassName).split(",").map((e=>`contains(@class, "${e}")`)).join(" or ")}) and (${V(Q.activeClassName).split(",").map((e=>`contains(@class, "${e}")`)).join(" or ")})]`,t))e.classList.remove(...Q.activeClassName.split(","));i(e).classList.add(...Q.activeClassName.split(",")),n.classList.remove(...Q.showClassName.split(",")),s.innerText=L(e,!0)}}const Y=Q.create({name:"extendVideoSpeed",displayName:"扩展倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:{"zh-CN":"\n\n> 扩展视频播放器的倍速菜单项,可用于突破原有播放倍数的上限或下限.\n\n### 🔧 **选项**\n\n- `隐藏滚动条`:如果添加的倍速过多,倍速菜单将出现滚动条,在 Windows 下,若没有安装并启用「细滚动条」组件会显得比较挤,建议开启此选项隐藏滚动条.\n\n- `隐藏移除图标`:如果认为倍速右侧的移除倍速图标有些突兀,可以开启此选项隐藏.\n\n- `隐藏新增图标`:如果认为顶部的新增倍速图标有些突兀,可以开启此选项隐藏.\n\n### **新增倍速**\n\n开启组件后,在默认情况下,播放器的倍速菜单就会新增 2.5x 和 3.0x 两个倍速选项.\n\n如果需要添加更多倍速,只需将鼠标指针移到菜单顶部的新增图标上,图标将变成一个输入框,根据需要键入新的倍速值,或通过滚轮增减数值,或直接使用推荐的数值,回车确认即可.\n\n新增倍速的范围要求在 0.0625 到 16 之间,数量则不受限制.\n\n**不推荐设置超高倍速(>3.0x)**:原生播放器内部没有针对超高倍速进行优化,可能导致音画不同步、播放卡顿、声音嘈杂/消失等一系列问题.\n\n### **删除倍速**\n\n将鼠标指针移到**自定义**的倍速菜单项上,其右侧将会显示一个移除图标,单击即可删除相应的倍速.\n\n"},tags:[componentsTags.video],urlInclude:n.playerUrls,options:{maxMenuHeight:{displayName:"倍速菜单最大高度",defaultValue:360,hidden:!0,validator:e=>Math.max(parseInt(e),360)||360},hideScrollbar:{displayName:"隐藏滚动条",defaultValue:!1},hideRemoveBtn:{displayName:"隐藏移除图标",defaultValue:!1},hideAddBtn:{displayName:"隐藏新增图标",defaultValue:!1},extendSpeedList:{displayName:"扩展倍速列表",defaultValue:[2.5,3],hidden:!0}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +patch(e){const[t,n,s]=e,{menuListElement:i}=this.speedContext;if(this.inputElement||(this.inputElement=this.createInputElement(),i.prepend(this.inputElement.node)),0===n&&0===s.length)return;const o=s.map((e=>this.createCustomSpeedMenuItemElement(e)));this.elementMap.splice(t,n,...o).forEach((e=>{e.destroy()})),(this.elementMap[t-1]||this.inputElement).node.after(...o.map((e=>e.node)).reverse()),i.querySelectorAll(`:is(${j.custom.speedMenuItem.selector}):not(#${this.inputElement.node.id})`).forEach((e=>{e.style.order=(1e4*(16-k(e.innerHTML))).toString()})),this.unpatch=()=>{this.inputElement.destroy(),this.inputElement=void 0,this.elementMap.forEach((e=>e.destroy())),this.elementMap.length=0}}forceUpdateStyle(e){const{menuListElement:t,containerElement:n,nameBtnElement:s,query:i}=this.speedContext;for(const e of(0,f.dea)(`./*[(${V(Q.speedMenuItemClassName).split(",").map((e=>`contains(@class, "${e}")`)).join(" or ")}) and (${V(Q.activeClassName).split(",").map((e=>`contains(@class, "${e}")`)).join(" or ")})]`,t))e.classList.remove(...Q.activeClassName.split(","));i(e).classList.add(...Q.activeClassName.split(",")),n.classList.remove(...Q.showClassName.split(",")),s.innerText=L(e,!0)}}const Y=Q.create({name:"extendVideoSpeed",displayName:"扩展倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:{"zh-CN":"\n\n> 扩展视频播放器的倍速菜单项,可用于突破原有播放倍数的上限或下限.\n\n### 🔧 **选项**\n\n- `隐藏滚动条`:如果添加的倍速过多,倍速菜单将出现滚动条,在 Windows 下,若没有安装并启用「细滚动条」组件会显得比较挤,建议开启此选项隐藏滚动条.\n\n- `隐藏移除图标`:如果认为倍速右侧的移除倍速图标有些突兀,可以开启此选项隐藏.\n\n- `隐藏新增图标`:如果认为顶部的新增倍速图标有些突兀,可以开启此选项隐藏.\n\n### **新增倍速**\n\n开启组件后,在默认情况下,播放器的倍速菜单就会新增 2.5x 和 3.0x 两个倍速选项.\n\n如果需要添加更多倍速,只需将鼠标指针移到菜单顶部的新增图标上,图标将变成一个输入框,根据需要键入新的倍速值,或通过滚轮增减数值,或直接使用推荐的数值,回车确认即可.\n\n新增倍速的范围要求在 0.0625 到 16 之间,数量则不受限制.\n\n**不推荐设置超高倍速(>3.0x)**:原生播放器内部没有针对超高倍速进行优化,可能导致音画不同步、播放卡顿、声音嘈杂/消失等一系列问题.\n\n### **删除倍速**\n\n将鼠标指针移到**自定义**的倍速菜单项上,其右侧将会显示一个移除图标,单击即可删除相应的倍速.\n\n"},tags:[componentsTags.video],urlInclude:n.playerUrls,options:{maxMenuHeight:{displayName:"倍速菜单最大高度",defaultValue:360,hidden:!0,validator:e=>Math.max(parseInt(e),360)||360},hideScrollbar:{displayName:"隐藏滚动条",defaultValue:!1},hideRemoveBtn:{displayName:"隐藏移除图标",defaultValue:!1},hideAddBtn:{displayName:"隐藏新增图标",defaultValue:!1},extendSpeedList:{displayName:"扩展倍速列表",defaultValue:[2.5,3],hidden:!0}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/focus.js b/registry/dist/components/video/player/focus.js index 7b505643e..a5c81d37a 100644 --- a/registry/dist/components/video/player/focus.js +++ b/registry/dist/components/video/player/focus.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/focus"]=t():e["video/player/focus"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery},605:e=>{e.exports=coreApis.utils}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var n=Object.create(null);i.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,i.d(n,s),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{i.d(n,{component:()=>t});const e=coreApis.utils.urls,t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"playerFocus",displayName:"播放器定位",tags:[componentsTags.video],entry:async e=>{let{settings:{options:t}}=e;const o=document.URL.includes("bangumi")?".bilibili-player":".video-info .video-title .tit",{select:r}=await Promise.resolve().then(i.t.bind(i,200,23)),{playerReady:n}=await Promise.resolve().then(i.t.bind(i,605,23)),s=await r(o);await n(),s&&(s.scrollIntoView(),0!==t.offset&&window.scrollBy(0,t.offset))},description:{"zh-CN":"进入视频 / 番剧页面时, 自动定位到播放器. 注意: 不能和其他影响定位的功能一同使用, 例如自动宽屏. (相关讨论: [#483](https://github.com/the1812/Bilibili-Evolved/issues/483))\n\n可设置定位时的竖直偏移量, 单位为像素(px)."},options:{offset:{displayName:"定位偏移量",defaultValue:-10}},urlInclude:e.videoAndBangumiUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/focus"]=t():e["video/player/focus"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,o={200:e=>{e.exports=coreApis.spinQuery},605:e=>{e.exports=coreApis.utils}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var n=Object.create(null);i.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,i.d(n,s),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{i.d(n,{component:()=>t});const e=coreApis.utils.urls,t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"playerFocus",displayName:"播放器定位",tags:[componentsTags.video],entry:async e=>{let{settings:{options:t}}=e;const o=document.URL.includes("bangumi")?".bilibili-player":".video-info .video-title .tit",{select:r}=await Promise.resolve().then(i.t.bind(i,200,23)),{playerReady:n}=await Promise.resolve().then(i.t.bind(i,605,23)),s=await r(o);await n(),s&&(s.scrollIntoView(),0!==t.offset&&window.scrollBy(0,t.offset))},description:{"zh-CN":"进入视频 / 番剧页面时, 自动定位到播放器. 注意: 不能和其他影响定位的功能一同使用, 例如自动宽屏. (相关讨论: [#483](https://github.com/the1812/Bilibili-Evolved/issues/483))\n\n可设置定位时的竖直偏移量, 单位为像素(px)."},options:{offset:{displayName:"定位偏移量",defaultValue:-10}},urlInclude:e.videoAndBangumiUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/intersection-actions.js b/registry/dist/components/video/player/intersection-actions.js index 8d6914fd3..51b6de284 100644 --- a/registry/dist/components/video/player/intersection-actions.js +++ b/registry/dist/components/video/player/intersection-actions.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/intersection-actions"]=t():e["video/player/intersection-actions"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>d});const o=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,a=coreApis.componentApis.video.playerLight,i=coreApis.observer,s=coreApis.settings,r=coreApis.utils.urls;var p=function(e){return e.Top="视频顶部",e.Medium="视频中间",e.Bottom="视频底部",e}(p||{});const d=(0,o.defineComponentMetadata)({name:"playerIntersectionActions",author:{name:"Waua",link:"https://github.com/FoundTheWOUT"},tags:[componentsTags.video],urlInclude:r.allVideoUrls,entry:async e=>{let{settings:{options:t},metadata:o}=e;const r=t;Promise.resolve().then((async()=>{const{query:{video:e}}=n.playerAgent,t=await e.element(),d=document.getElementById("video-player")??(dq(".player-wrap")||dq(".player-module"));let l,c=!0;function u(e){switch(e){case p.Top:return 1;case p.Medium:return.5;case p.Bottom:return 0;default:return.5}}function m(){l.observe(d)}function y(){l.unobserve(d)}const g=e=>new IntersectionObserver((e=>{let[o]=e;o.isIntersecting?c||(c=!0,r.pause&&t.paused&&t.play(),r.light&&(0,s.getComponentSettings)("playerAutoLight").enabled&&!r.pause&&!t.paused&&(0,a.lightOff)()):(t.paused||(c=!1),r.pause&&!t.paused&&t.pause(),r.light&&(0,s.getComponentSettings)("playerAutoLight").enabled&&!r.pause&&(0,a.lightOn)())}),{threshold:u(e||r.triggerLocation)});(0,s.addComponentListener)(`${o.name}.triggerLocation`,(e=>{y(),l=g(e),m()})),l=g(),(0,i.videoChange)((async()=>{n.playerAgent.isAutoPlay()&&m(),t.addEventListener("play",m),t.addEventListener("ended",y)}))}))},displayName:"播放器位置动作",description:{"zh-CN":"设置当播放器移出视图的位置变化时执行的动作."},options:{triggerLocation:{defaultValue:p.Medium,displayName:"触发位置",dropdownEnum:p},pause:{defaultValue:!1,displayName:"自动暂停"},light:{defaultValue:!0,displayName:"自动开灯"}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/intersection-actions"]=t():e["video/player/intersection-actions"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>d});const o=coreApis.componentApis.define,n=coreApis.componentApis.video.playerAgent,i=coreApis.componentApis.video.playerLight,a=coreApis.observer,s=coreApis.settings,r=coreApis.utils.urls;var p=function(e){return e.Top="视频顶部",e.Medium="视频中间",e.Bottom="视频底部",e}(p||{});const d=(0,o.defineComponentMetadata)({name:"playerIntersectionActions",author:{name:"Waua",link:"https://github.com/FoundTheWOUT"},tags:[componentsTags.video],urlInclude:r.allVideoUrls,entry:async e=>{let{settings:{options:t},metadata:o}=e;const r=t;Promise.resolve().then((async()=>{const{query:{video:e}}=n.playerAgent,t=await e.element(),d=document.getElementById("video-player")??(dq(".player-wrap")||dq(".player-module"));let c,l=!0;function u(e){switch(e){case p.Top:return 1;case p.Medium:return.5;case p.Bottom:return 0;default:return.5}}function m(){c.observe(d)}function y(){c.unobserve(d)}const g=e=>new IntersectionObserver((e=>{let[o]=e;o.isIntersecting?l||(l=!0,r.pause&&t.paused&&t.play(),r.light&&(0,s.getComponentSettings)("playerAutoLight").enabled&&!r.pause&&!t.paused&&(0,i.lightOff)()):(t.paused||(l=!1),r.pause&&!t.paused&&t.pause(),r.light&&(0,s.getComponentSettings)("playerAutoLight").enabled&&!r.pause&&(0,i.lightOn)())}),{threshold:u(e||r.triggerLocation)});(0,s.addComponentListener)(`${o.name}.triggerLocation`,(e=>{y(),c=g(e),m()})),c=g(),(0,a.videoChange)((async()=>{n.playerAgent.isAutoPlay()&&m(),t.addEventListener("play",m),t.addEventListener("ended",y)}))}))},displayName:"播放器位置动作",description:{"zh-CN":"设置当播放器移出视图的位置变化时执行的动作."},options:{triggerLocation:{defaultValue:p.Medium,displayName:"触发位置",dropdownEnum:p},pause:{defaultValue:!1,displayName:"自动暂停"},light:{defaultValue:!0,displayName:"自动开灯"}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/invert-scroll-volume.js b/registry/dist/components/video/player/invert-scroll-volume.js index 7dc1c044f..64ee30a42 100644 --- a/registry/dist/components/video/player/invert-scroll-volume.js +++ b/registry/dist/components/video/player/invert-scroll-volume.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/invert-scroll-volume"]=t():e["video/player/invert-scroll-volume"]=t()}(globalThis,(()=>(()=>{var e,t,o={132:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=132,e.exports=t},17:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=17,e.exports=t},466:e=>{"use strict";e.exports="在网页全屏 / 全屏模式下, 禁止鼠标滚轮控制播放器的音量. 请注意不能和 `反转滚轮调音量` 一同使用.\n"},777:e=>{"use strict";e.exports="反转在网页全屏 / 全屏模式下使用滚轮调节音量的方向, 使其更符合使用触控板时的操作方向. 请注意不能和 `禁止滚轮调音量` 一同使用.\n\n- 手指向上推时, 增加音量\n- 手指向下推时, 减少音量\n- 可以自定义 `灵敏度`, 同样的滚动幅度下, 灵敏度越高变化的音量越多"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var l=n[e]={exports:{}};return o[e](l,l.exports,r),l.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var l=Object.create(null);r.r(l);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(l,s),l},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";r.d(l,{component:()=>u});const e=coreApis.componentApis.define,t=coreApis.utils,o=coreApis.utils.urls;let n;const s=()=>(0,t.preventEvent)(unsafeWindow,"mousewheel",(()=>["player-mode-full","player-mode-web","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e))))),a=((0,e.defineComponentMetadata)({name:"disableScrollVolume",displayName:"禁止滚轮调音量",tags:[componentsTags.video],entry:()=>{n?.(),n=s()},reload:()=>{n?.(),n=s()},unload:()=>{n?.()},urlInclude:o.allVideoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(132);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,466,17)).then((e=>e.default))}})()}),coreApis.componentApis.video.playerAgent),i=coreApis.settings;let d;const c=(0,e.defineOptionsMetadata)({deltaFactor:{defaultValue:15,slider:{min:1,max:30,step:1},displayName:"灵敏度"}}),p=()=>{d?.();const e=(0,i.getComponentSettings)("invertScrollVolume"),t=t=>{["player-mode-webfullscreen","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e)))&&a.playerAgent.changeVolume(t.deltaY/((30-e.options.deltaFactor+1)/2))};unsafeWindow.addEventListener("wheel",t);const o=s();return()=>{unsafeWindow.removeEventListener("wheel",t),o()}},u=(0,e.defineComponentMetadata)({name:"invertScrollVolume",displayName:"反转滚轮调音量",tags:[componentsTags.video],options:c,entry:()=>{d?.(),d=p()},reload:()=>{d?.(),d=p()},unload:()=>d?.(),urlInclude:o.allVideoUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(17);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,777,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/invert-scroll-volume"]=t():e["video/player/invert-scroll-volume"]=t()}(globalThis,(()=>(()=>{var e,t,o={132:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=132,e.exports=t},17:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=17,e.exports=t},466:e=>{"use strict";e.exports="在网页全屏 / 全屏模式下, 禁止鼠标滚轮控制播放器的音量. 请注意不能和 `反转滚轮调音量` 一同使用.\n"},777:e=>{"use strict";e.exports="反转在网页全屏 / 全屏模式下使用滚轮调节音量的方向, 使其更符合使用触控板时的操作方向. 请注意不能和 `禁止滚轮调音量` 一同使用.\n\n- 手指向上推时, 增加音量\n- 手指向下推时, 减少音量\n- 可以自定义 `灵敏度`, 同样的滚动幅度下, 灵敏度越高变化的音量越多"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var l=n[e]={exports:{}};return o[e](l,l.exports,r),l.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var l=Object.create(null);r.r(l);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,r.d(l,s),l},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";r.d(l,{component:()=>u});const e=coreApis.componentApis.define,t=coreApis.utils,o=coreApis.utils.urls;let n;const s=()=>(0,t.preventEvent)(unsafeWindow,"mousewheel",(()=>["player-mode-full","player-mode-web","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e))))),i=((0,e.defineComponentMetadata)({name:"disableScrollVolume",displayName:"禁止滚轮调音量",tags:[componentsTags.video],entry:()=>{n?.(),n=s()},reload:()=>{n?.(),n=s()},unload:()=>{n?.()},urlInclude:o.allVideoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(132);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,466,17)).then((e=>e.default))}})()}),coreApis.componentApis.video.playerAgent),a=coreApis.settings;let c;const d=(0,e.defineOptionsMetadata)({deltaFactor:{defaultValue:15,slider:{min:1,max:30,step:1},displayName:"灵敏度"}}),p=()=>{c?.();const e=(0,a.getComponentSettings)("invertScrollVolume"),t=t=>{["player-mode-webfullscreen","player-fullscreen-fix","player-full-win"].some((e=>document.body.classList.contains(e)))&&i.playerAgent.changeVolume(t.deltaY/((30-e.options.deltaFactor+1)/2))};unsafeWindow.addEventListener("wheel",t);const o=s();return()=>{unsafeWindow.removeEventListener("wheel",t),o()}},u=(0,e.defineComponentMetadata)({name:"invertScrollVolume",displayName:"反转滚轮调音量",tags:[componentsTags.video],options:d,entry:()=>{c?.(),c=p()},reload:()=>{c?.(),c=p()},unload:()=>c?.(),urlInclude:o.allVideoUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(17);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,777,17)).then((e=>e.default))}})()})})(),l=l.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/legacy-auto-play.js b/registry/dist/components/video/player/legacy-auto-play.js index a0a8395dd..ac0c14ba7 100644 --- a/registry/dist/components/video/player/legacy-auto-play.js +++ b/registry/dist/components/video/player/legacy-auto-play.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/legacy-auto-play"]=o():e["video/player/legacy-auto-play"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>r});const t=coreApis.componentApis.define,i=coreApis.componentApis.video.playerAgent,a=coreApis.observer,n=coreApis.spinQuery,s=coreApis.utils,l=coreApis.utils.log,c=coreApis.utils.urls,r=(0,t.defineComponentMetadata)({name:"legacyAutoPlay",displayName:"传统连播模式",description:"模拟传统的多 P 连播策略: 仅连播视频的分 P, 最后 1P 放完禁止连播其他推荐视频.",tags:[componentsTags.video],urlInclude:c.videoUrls,entry:async()=>{const e=(0,l.useScopedConsole)("传统连播模式"),o={enable:[":is(.base-video-sections, .base-video-sections-v1) .next-button",":is(.multi-page, .multi-page-v1) .next-button",".player-auxiliary-autoplay-switch input"],disable:[":is(.recommend-list, .recommend-list-v1) .next-button"]},t=[()=>Boolean(dq(":is(.multi-page, .multi-page-v1) .list-box li.on:last-child")),()=>Boolean(dq(".video-sections-item:last-child .video-episode-card:last-child .video-episode-card__info-playing")),()=>Boolean(dq(".video-sections-item:last-child .video-episode-card:last-child .video-episode-card__info-title-playing"))];await(0,s.playerReady)();const c=async()=>{const e=await(0,n.select)([...o.disable,...o.enable].join(","));if(!e)return;var i;(o.enable.some((o=>e.matches(o)))&&t.every((e=>!e())))!==(i=e,Boolean(i.querySelector(".switch-button.on")||i.matches(":checked")))&&e.click()};(0,a.videoChange)((async()=>{c();(await i.playerAgent.query.video.element())?.addEventListener("play",c,{once:!0})}));const r=await(0,n.select)(".right-container-inner");r?(0,a.childListSubtree)(r,(()=>c())):e.warn("未找到 rightPanelContainer")},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/player/legacy-auto-play"]=o():e["video/player/legacy-auto-play"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>r});const t=coreApis.componentApis.define,i=coreApis.componentApis.video.playerAgent,n=coreApis.observer,a=coreApis.spinQuery,s=coreApis.utils,c=coreApis.utils.log,l=coreApis.utils.urls,r=(0,t.defineComponentMetadata)({name:"legacyAutoPlay",displayName:"传统连播模式",description:"模拟传统的多 P 连播策略: 仅连播视频的分 P, 最后 1P 放完禁止连播其他推荐视频.",tags:[componentsTags.video],urlInclude:l.videoUrls,entry:async()=>{const e=(0,c.useScopedConsole)("传统连播模式"),o={enable:[":is(.base-video-sections, .base-video-sections-v1) .next-button",":is(.multi-page, .multi-page-v1) .next-button",".player-auxiliary-autoplay-switch input"],disable:[":is(.recommend-list, .recommend-list-v1) .next-button"]},t=[()=>Boolean(dq(":is(.multi-page, .multi-page-v1) .list-box li.on:last-child")),()=>Boolean(dq(".video-sections-item:last-child .video-episode-card:last-child .video-episode-card__info-playing")),()=>Boolean(dq(".video-sections-item:last-child .video-episode-card:last-child .video-episode-card__info-title-playing"))];await(0,s.playerReady)();const l=async()=>{const e=await(0,a.select)([...o.disable,...o.enable].join(","));if(!e)return;var i;(o.enable.some((o=>e.matches(o)))&&t.every((e=>!e())))!==(i=e,Boolean(i.querySelector(".switch-button.on")||i.matches(":checked")))&&e.click()};(0,n.videoChange)((async()=>{l();(await i.playerAgent.query.video.element())?.addEventListener("play",l,{once:!0})}));const r=await(0,a.select)(".right-container-inner");r?(0,n.childListSubtree)(r,(()=>l())):e.warn("未找到 rightPanelContainer")},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/preserve-danmaku-input.js b/registry/dist/components/video/player/preserve-danmaku-input.js index 92bebbd32..397558a36 100644 --- a/registry/dist/components/video/player/preserve-danmaku-input.js +++ b/registry/dist/components/video/player/preserve-danmaku-input.js @@ -6,4 +6,4 @@ t.i=function(e,r,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(o)for(var i=0;i{var o=r(948);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return r[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&o&&r;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,r="preserveDanmakuInput",o=(0,e.defineComponentMetadata)({name:r,displayName:"强制保留弹幕发送栏",entry:none,instantStyles:[{name:r,style:()=>Promise.resolve().then(n.t.bind(n,894,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"在视频播放器网页全屏时, 即使宽度过小也强制保留弹幕发送栏, 注意这可能导致右侧的功能按钮挤出边界."},urlInclude:t.playerUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(n[a]=!0)}for(var p=0;p{var o=r(948);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return r[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var p=2&o&&r;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>o});const e=coreApis.componentApis.define,t=coreApis.utils.urls,r="preserveDanmakuInput",o=(0,e.defineComponentMetadata)({name:r,displayName:"强制保留弹幕发送栏",entry:none,instantStyles:[{name:r,style:()=>Promise.resolve().then(n.t.bind(n,894,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"在视频播放器网页全屏时, 即使宽度过小也强制保留弹幕发送栏, 注意这可能导致右侧的功能按钮挤出边界."},urlInclude:t.playerUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/remember-speed.js b/registry/dist/components/video/player/remember-speed.js index 2b5143a20..51dfc48f6 100644 --- a/registry/dist/components/video/player/remember-speed.js +++ b/registry/dist/components/video/player/remember-speed.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/remember-speed"]=t():e["video/player/remember-speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>H});const i=coreApis.meta,o=coreApis.utils.urls,n=coreApis.settings,r=coreApis.utils.log,s=coreApis.pluginApis.hook,a=e=>"function"==typeof e?{next:e}:e,l=e=>function e(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!1;const s=[],l=[];let d=!1;const c=()=>{for(;s.length;)s.pop()();l.length=0,d=!0},p=e=>{d||(l.forEach((t=>{t.error?.(e),(0,n.getGeneralSettings)().devMode&&console.error(e)})),c())},u=e=>{d||l.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{l.forEach((e=>{e.complete?.()})),c()},m=()=>{if(r)return;const e=t?.({next:u,error:p,complete:h});e&&s.push(e),r=!0},b=e=>null==e?null:(l.push(e),()=>{lodash.pull(l,e)}),f=function(){for(var t=arguments.length,i=new Array(t),n=0;n{const t=b(a(e));return(o?.connect??m)(),t},pipe:f,next:u,error:p,complete:h,...o}:e(i[0],{subscribe:b},o||{connect:m,next:u}).pipe(...i.slice(1))};if(i){const e=t?.({subscribe:e=>i.subscribe({error:p,complete:h,...a(e)}),next:u,error:p,complete:h});e&&s.push(e)}return f()}(e),d=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,complete:o}=e;t.forEach((e=>{i(e)})),o()}))},c=(e,t)=>l((i=>{let{next:o}=i;return e.addEventListener(t,o),()=>e.removeEventListener(t,o)})),p=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o{let{next:o}=t;e(...i,o)}))},u=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,complete:o}=e;const n=[...t],r=()=>{const e=n.shift();e||o(),e.subscribe({next:i,complete:()=>{r()}})};r()}))},h=e=>new Promise(((t,i)=>{const o=e.subscribe({next:e=>{t(e),o()},error:()=>{i(),o()},complete:()=>{i(),o()}})})),m=coreApis.componentApis.video.playerAgent,b=coreApis.lifeCycle,f=coreApis.observer,g=coreApis.utils,v=coreApis.utils.sort,y=e=>t=>{let{subscribe:i,next:o,complete:n,error:r}=t;i(lodash.mapValues({next:o,complete:n,error:r},(t=>e(t))))},S=e=>function(){for(var t=arguments.length,i=new Array(t),o=0;oe(...i)))},x=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},w=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,error:o,complete:n}=e;return x((e=>{const r=[];let s=0;e(t.map(((e,a)=>e.pipe(y(S)).subscribe({next:e=>{r[a]=e,r.reduce((e=>e+1),0)===t.length&&i(r.slice())},complete:()=>{s++,s===t.length&&n()},error:o})))),e((()=>{r.length=0,s=0}))}))}))},E=e=>t=>{let{subscribe:i,next:o,error:n}=t;i(lodash.debounce((e=>{try{o(e)}catch(e){n(e)}}),e))},R=e=>t=>{let{subscribe:i,next:o}=t;i((t=>{e(t)&&o(t)}))},A=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,subscribe:o}=e,n=!1;o((e=>{n||t.forEach((e=>i(e))),i(e),n=!0}))}},V=coreApis.pluginApis.data,C=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),$=(e,t)=>{const i=t=>{(0,V.registerAndGetData)(e,t)[0]=t},o=(0,V.getData)(e);if(o.length)return[o[0],i];if(t){const e=t();return i(e),[e,i]}return[void 0,i]},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},N=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function j(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const k=m.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let T=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const L=(e,t,i)=>{const o=new MutationObserver(i);return o.observe(e,t),o},M=e=>{let[t,i]=e;if(!t)throw new Error("speed container element not found!");if(!i)throw new Error("video element not found!");const o=t.querySelector(k.custom.speedNameBtn.selector),n=t.querySelector(k.custom.speedMenuList.selector);let r,s,a;const d=l(),c=l().pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));c.pipe(A(void 0),(e=>{let{subscribe:t,next:i}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&i(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t,i]=e;s=t,r=i}));const p=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:c.next(N(e.data));break;case Node.ELEMENT_NODE:c.next(N(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},u=()=>{a=lodash([...n.children]).map((e=>lodash.attempt((()=>N(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,v.ascendingSort)()).value()};p(o),u();const h=L(n,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:i=[]}=lodash.groupBy(e,"type");i.length&&u(),d.next({attributes:t,childList:i})})),m=L(o,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;p(t)}))}));return{containerElement:t,videoElement:i,nameBtnElement:o,menuListElement:n,query:e=>(0,g.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(C).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(k.custom.speedMenuItem.selector)}) and normalize-space()="${O(e)}"]`,n),dispose:()=>{h.disconnect(),m.disconnect()},activeVideoSpeed$:c,menuListElementMutations$:d,getActiveVideoSpeed:()=>r,getOldActiveVideoSpeed:()=>s,getAvailableSpeedValues:()=>a}},P=e=>{const{videoElement:t,menuListElement:i}=e,o=c(i,"click").pipe((n=e=>{const{innerText:t,innerHTML:i}=e.target,o=t.trim()||i.trim();return lodash.attempt((()=>N(o)))},e=>{let{subscribe:t,next:i}=e;t((e=>{i(n(e))}))}),R((e=>!lodash.isError(e))));var n;const r=l((e=>{let{next:i}=e,o=t;do{o=Object.getPrototypeOf(o)}while(null===o||!Object.prototype.hasOwnProperty.call(o,"playbackRate"));const n=Object.getOwnPropertyDescriptor(o,"playbackRate");return Object.defineProperty(o,"playbackRate",{set(e){n.set.call(this,e),i(e)}}),()=>{Object.defineProperty(o,"playbackRate",n)}})),s=o.pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})),a=r.pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})),d=l((e=>{let{next:t}=e;const i=w(s,a);return i.subscribe((e=>{let[i,o]=e;i===o&&t(o)})),()=>i.complete()})).pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));let p;a.pipe(E(200),A(void 0),(e=>{let{subscribe:t,next:i}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&i(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t]=e;p=t}));const u={menuListElementClickSpeed$:o,menuListElementClickSpeedChange$:s,playbackRate$:r,playbackRateChange$:a,videoSpeedChange$:d};return{...e,...u,dispose:()=>{lodash.values(u).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>p}},[I]=$("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>O(e))),i=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${i}`),this.speed=e,j(this,"formattedSpeed",void 0),this.formattedSpeed=i}})),q=e=>{const{query:t,videoElement:i,videoSpeedChange$:o,getOldActiveVideoSpeed:n,getAvailableSpeedValues:r,getActiveVideoSpeed:s}=e,a=async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const r=t(e);if(null==r)throw new I(e);r.click();const s=t=>{if((t??i.playbackRate)!==e)throw new Error(`failed to set ${O(e)} video speed.`)},a=[h(o.pipe(E(Math.max(0,n||0))))];n>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,n)))))),await Promise.all(a).then(s).catch(s)},l=async()=>{await a(1)},d=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===i.playbackRate?await a(n()):await l();else{const i=r();switch(t){case T.MIN:await a(i[e]);break;case T.MAX:await a(i[i.length-1+e]);break;case T.CURRENT:default:{const t=i.indexOf(s());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(i[t+e])}}}},c=async e=>{try{await d(e,T.CURRENT)}catch(e){if(console.warn(e),!(e instanceof I))throw e}};return Object.assign(e,{set:a,force:async e=>{i.playbackRate=e},reset:l,toggle:d,step:c,increase:async()=>{await c(1)},decrease:async()=>{await c(-1)}})},G=()=>$("speed.speedContext"),D=()=>$("speed.buildArguments$",(()=>{return l().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:i,next:o}=t;const n=new Set;return i((t=>{const i=n.size;e(t)?n.add(t):n.delete(t),n.size!==i&&o([...n])})),()=>{n.clear()}}));var e})),U=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,i]=G();if(t)return t;let o,n;const[r]=$("lifeCycleComponentLoaded$",(()=>c(unsafeWindow,b.LifeCycleEventTypes.ComponentsLoaded))),[s]=D(),[a]=$("speed.videoChange$",(()=>p(f.videoChange).pipe(R((e=>{let{aid:t,cid:i}=e;return t||i}))))),[m]=$("speed.speedContext$",(()=>l((t=>{let{next:i}=t;return w(a,u(d([]),s),r).subscribe((t=>{let[r,s]=t;const[l]=G();l?.dispose(),n?.("context update");const d=new Promise(((e,t)=>{o=e,n=t}));Promise.all([Promise.all([k.custom.speedContainer(),k.query.video.element()]).then(o),d]).then((e=>{let[,t]=e;return t})).then(M).then(P).then(q).then((e=>Object.assign(e,{videoIdObject:r,speedContext$:m,videoChange$:a}))).then(e(s)).then(i).catch((e=>console.error(e)))}))}))));return m.subscribe(i),h(m)};function B(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class W{constructor(e,t){this.entryContext=e,this.enabled$=t,B(this,"speedContext",void 0),B(this,"settings",void 0),B(this,"coreApis",void 0),B(this,"metadata",void 0),B(this,"options",void 0),B(this,"getVideoIdObject",void 0),B(this,"getAvailableSpeedValues",void 0),B(this,"getOldActiveVideoSpeed",void 0),B(this,"forceVideoSpeed",void 0),B(this,"getVideoSpeed",void 0),B(this,"setVideoSpeed",void 0),B(this,"resetVideoSpeed",void 0),B(this,"toggleVideoSpeed",void 0),B(this,"increaseVideoSpeed",void 0),B(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(W.contextMap,(e=>async function(){const t=await U(),i=lodash.get(t,e),o=lodash.isFunction(i)?await i(...arguments):i;return o})))}}B(W,"create",void 0),B(W,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),U((e=>t=>{const i=lodash.omit(t,"dispose"),o=e.map((e=>e.getSpeedContextMixin(i)));if(o.length>1){const e=lodash.intersection(...o.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(i,...o);const r=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,i)=>p(n.addComponentListener,`${e.metadata.name}.${i}`).pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();r.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,i,o)=>lodash.isSymbol(i)?Reflect.get(e,i,o):!Reflect.has(e,i)&&i.endsWith("$")?t[i]:Reflect.get(e,i,o)}),e.speedContext=i,e.onSpeedContext(i),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[i,o]=t;o.next(e.settings.options[i.slice(0,-1)])}))})),{...i,dispose:()=>{r.forEach((e=>e.complete())),t.dispose()}}})),W.create=function(e){const t=l().pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));return{...e,entry:i=>{const o=lodash.attempt((()=>new this(i,t)));if(o instanceof Error)return(0,r.logError)(o),null;const[n]=D();return t.subscribe((()=>{n.next(o)})),t.next(!0),(0,s.getHook)(`speed.component.${e.name}`).after(o),o},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const F=coreApis.toast;function X(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class z extends W{getSpeedContextMixin(e){var t=this;let{videoIdObject:i,set:o,reset:n,toggle:r,getActiveVideoSpeed:s,getOldActiveVideoSpeed:a}=e;const l=async()=>{const e=this.getRestoredVideoSpeed(i);await o(e??1)};return{reset:l,toggle:async function(){for(var e=arguments.length,i=new Array(e),d=0;d{e&&(this.options.fixGlobalSpeed=!0)})),this.options.fixGlobalSpeed$.subscribe((e=>{e||(this.options.individualRemember=!1)}));const o=this.getRestoredVideoSpeed(i);o&&requestIdleCallback((async()=>{try{if(await this.setVideoSpeed(o,1e3),this.options.showRestoreTip){let e=`已还原到 ${O(o)} 倍速`;this.options.individualRemember&&null!=this.matchRememberSpeed()&&(e=`【独立倍速视频】${e}`),F.Toast.info(e,this.metadata.displayName,3e3)}}catch(e){const t=`${this.metadata.displayName} - 倍速还原操作失败`,i=e instanceof I?`没有 ${e.formattedSpeed} 这样的倍速项`:String(e);F.Toast.error(i,t,5e3),console.error(e)}})),t.subscribe((e=>{this.settings.enabled&&(this.options.individualRemember?e!==+this.options.globalSpeed&&this.rememberSpeed(e):this.options.fixGlobalSpeed||this.rememberSpeed(e,null))}))}getRestoredVideoSpeed(e){return this.options.individualRemember&&this.matchRememberSpeed(e.aid)||this.readGlobalVideoSpeed()}readGlobalVideoSpeed(){return parseFloat(String(this.options.globalSpeed))}matchRememberSpeed(e){for(const[t,i]of Object.entries(this.options.individualRememberRecord))if(i.some((t=>t.toString()===z.getAid(e).toString())))return parseFloat(t);return null}rememberSpeed(e,t){if(lodash.isNull(t))return void(this.options.globalSpeed=e);lodash.isUndefined(t)&&(t=z.getAid(t));const i=lodash.castArray(t);this.forgetSpeed(i),this.options.individualRememberRecord={...this.options.individualRememberRecord,[e]:lodash.unionWith(this.options.individualRememberRecord[e],i,z.aidComparator)}}forgetSpeed(e){lodash.isNil(e)&&(e=z.getAid(e));const t=lodash.castArray(e);this.options.individualRememberRecord=lodash(this.options.individualRememberRecord).mapValues((e=>lodash(e).pullAllWith(t,z.aidComparator).uniqWith(z.aidComparator).value())).pickBy((e=>e.length)).value()}}X(z,"getAid",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:unsafeWindow.aid;if(!e)throw new Error("aid is unknown");return e})),X(z,"aidComparator",((e,t)=>e.toString()===t.toString()));const H=z.create({name:"rememberVideoSpeed",displayName:"记忆倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:{"zh-CN":`\n\n> 提高视频播放器的倍速记忆体验,可实现跨页共享倍速,也可以按视频分别记忆倍速.\n\n### 🔧 **选项**\n\n- \`全局记忆倍速值\`:默认情况下,这是跨页共享的倍速值,如果启用「各视频分别记忆」,则作为从未独立记忆倍速视频的初始倍速值.\n- \`固定全局倍速值\`:默认情况下,全局倍速值将随着用户改变视频倍速而改变,打开此选项后,全局记忆倍速值不再受倍速调整的影响.\n- \`各视频分别记忆\`:打开此选项后,将按不同视频分别记忆倍速,对于从未被记忆过倍速的视频,将采用全局记忆倍速值,选项「固定全局倍速值」在此情况下强制生效.\n- \`弹出还原倍速提示\`:打开此选项后,每次成功还原倍速后都会弹出提示.\n\n### 🌈 **温馨提示**\n\n「扩展倍速」和倍速相关的快捷键插件已分离为单独的组件或插件.\n\n请根据自身需要:\n\n- 前往「组件」页面安装[「扩展倍速」](${i.meta.compilationInfo.altCdn.root}registry/dist/components/video/player/extend-speed.js)组件\n- 前往「插件」页面安装[「快捷键扩展 - 视频倍速」](${i.meta.compilationInfo.altCdn.root}registry/dist/plugins/video/player/speed.js)插件.\n\n*如果想要清除当前视频的记忆状态,需要安装「快捷键扩展 - 视频倍速」插件.*\n`},tags:[componentsTags.video],urlInclude:o.playerUrls,options:{globalSpeed:{displayName:"全局记忆倍速值",defaultValue:1,validator:e=>lodash.clamp(parseFloat(e),.0625,16)||1},fixGlobalSpeed:{displayName:"固定全局倍速值",defaultValue:!1},individualRemember:{displayName:"各视频分别记忆",defaultValue:!1},individualRememberRecord:{displayName:"独立记忆倍速记录",defaultValue:{},hidden:!0},showRestoreTip:{displayName:"弹出还原倍速提示",defaultValue:!0}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/remember-speed"]=t():e["video/player/remember-speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{component:()=>H});const i=coreApis.meta,o=coreApis.utils.urls,n=coreApis.settings,r=coreApis.utils.log,s=coreApis.pluginApis.hook,a=e=>"function"==typeof e?{next:e}:e,l=e=>function e(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!1;const s=[],l=[];let d=!1;const c=()=>{for(;s.length;)s.pop()();l.length=0,d=!0},p=e=>{d||(l.forEach((t=>{t.error?.(e),(0,n.getGeneralSettings)().devMode&&console.error(e)})),c())},u=e=>{d||l.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{l.forEach((e=>{e.complete?.()})),c()},m=()=>{if(r)return;const e=t?.({next:u,error:p,complete:h});e&&s.push(e),r=!0},b=e=>null==e?null:(l.push(e),()=>{lodash.pull(l,e)}),f=function(){for(var t=arguments.length,i=new Array(t),n=0;n{const t=b(a(e));return(o?.connect??m)(),t},pipe:f,next:u,error:p,complete:h,...o}:e(i[0],{subscribe:b},o||{connect:m,next:u}).pipe(...i.slice(1))};if(i){const e=t?.({subscribe:e=>i.subscribe({error:p,complete:h,...a(e)}),next:u,error:p,complete:h});e&&s.push(e)}return f()}(e),d=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,complete:o}=e;t.forEach((e=>{i(e)})),o()}))},c=(e,t)=>l((i=>{let{next:o}=i;return e.addEventListener(t,o),()=>e.removeEventListener(t,o)})),p=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o{let{next:o}=t;e(...i,o)}))},u=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,complete:o}=e;const n=[...t],r=()=>{const e=n.shift();e||o(),e.subscribe({next:i,complete:()=>{r()}})};r()}))},h=e=>new Promise(((t,i)=>{const o=e.subscribe({next:e=>{t(e),o()},error:()=>{i(),o()},complete:()=>{i(),o()}})})),m=coreApis.componentApis.video.playerAgent,b=coreApis.lifeCycle,f=coreApis.observer,g=coreApis.utils,v=coreApis.utils.sort,y=e=>t=>{let{subscribe:i,next:o,complete:n,error:r}=t;i(lodash.mapValues({next:o,complete:n,error:r},(t=>e(t))))},S=e=>function(){for(var t=arguments.length,i=new Array(t),o=0;oe(...i)))},x=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},w=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,error:o,complete:n}=e;return x((e=>{const r=[];let s=0;e(t.map(((e,a)=>e.pipe(y(S)).subscribe({next:e=>{r[a]=e,r.reduce((e=>e+1),0)===t.length&&i(r.slice())},complete:()=>{s++,s===t.length&&n()},error:o})))),e((()=>{r.length=0,s=0}))}))}))},E=e=>t=>{let{subscribe:i,next:o,error:n}=t;i(lodash.debounce((e=>{try{o(e)}catch(e){n(e)}}),e))},R=e=>t=>{let{subscribe:i,next:o}=t;i((t=>{e(t)&&o(t)}))},A=function(){for(var e=arguments.length,t=new Array(e),i=0;i{let{next:i,subscribe:o}=e,n=!1;o((e=>{n||t.forEach((e=>i(e))),i(e),n=!0}))}},V=coreApis.pluginApis.data,C=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),$=(e,t)=>{const i=t=>{(0,V.registerAndGetData)(e,t)[0]=t},o=(0,V.getData)(e);if(o.length)return[o[0],i];if(t){const e=t();return i(e),[e,i]}return[void 0,i]},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},N=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function j(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const k=m.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let T=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const L=(e,t,i)=>{const o=new MutationObserver(i);return o.observe(e,t),o},M=e=>{let[t,i]=e;if(!t)throw new Error("speed container element not found!");if(!i)throw new Error("video element not found!");const o=t.querySelector(k.custom.speedNameBtn.selector),n=t.querySelector(k.custom.speedMenuList.selector);let r,s,a;const d=l(),c=l().pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));c.pipe(A(void 0),(e=>{let{subscribe:t,next:i}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&i(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t,i]=e;s=t,r=i}));const p=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:c.next(N(e.data));break;case Node.ELEMENT_NODE:c.next(N(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},u=()=>{a=lodash([...n.children]).map((e=>lodash.attempt((()=>N(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,v.ascendingSort)()).value()};p(o),u();const h=L(n,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:i=[]}=lodash.groupBy(e,"type");i.length&&u(),d.next({attributes:t,childList:i})})),m=L(o,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;p(t)}))}));return{containerElement:t,videoElement:i,nameBtnElement:o,menuListElement:n,query:e=>(0,g.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(C).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(k.custom.speedMenuItem.selector)}) and normalize-space()="${O(e)}"]`,n),dispose:()=>{h.disconnect(),m.disconnect()},activeVideoSpeed$:c,menuListElementMutations$:d,getActiveVideoSpeed:()=>r,getOldActiveVideoSpeed:()=>s,getAvailableSpeedValues:()=>a}},P=e=>{const{videoElement:t,menuListElement:i}=e,o=c(i,"click").pipe((n=e=>{const{innerText:t,innerHTML:i}=e.target,o=t.trim()||i.trim();return lodash.attempt((()=>N(o)))},e=>{let{subscribe:t,next:i}=e;t((e=>{i(n(e))}))}),R((e=>!lodash.isError(e))));var n;const r=l((e=>{let{next:i}=e,o=t;do{o=Object.getPrototypeOf(o)}while(null===o||!Object.prototype.hasOwnProperty.call(o,"playbackRate"));const n=Object.getOwnPropertyDescriptor(o,"playbackRate");return Object.defineProperty(o,"playbackRate",{set(e){n.set.call(this,e),i(e)}}),()=>{Object.defineProperty(o,"playbackRate",n)}})),s=o.pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})),a=r.pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})),d=l((e=>{let{next:t}=e;const i=w(s,a);return i.subscribe((e=>{let[i,o]=e;i===o&&t(o)})),()=>i.complete()})).pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));let p;a.pipe(E(200),A(void 0),(e=>{let{subscribe:t,next:i}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&i(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t]=e;p=t}));const u={menuListElementClickSpeed$:o,menuListElementClickSpeedChange$:s,playbackRate$:r,playbackRateChange$:a,videoSpeedChange$:d};return{...e,...u,dispose:()=>{lodash.values(u).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>p}},[I]=$("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>O(e))),i=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${i}`),this.speed=e,j(this,"formattedSpeed",void 0),this.formattedSpeed=i}})),q=e=>{const{query:t,videoElement:i,videoSpeedChange$:o,getOldActiveVideoSpeed:n,getAvailableSpeedValues:r,getActiveVideoSpeed:s}=e,a=async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const r=t(e);if(null==r)throw new I(e);r.click();const s=t=>{if((t??i.playbackRate)!==e)throw new Error(`failed to set ${O(e)} video speed.`)},a=[h(o.pipe(E(Math.max(0,n||0))))];n>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,n)))))),await Promise.all(a).then(s).catch(s)},l=async()=>{await a(1)},d=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===i.playbackRate?await a(n()):await l();else{const i=r();switch(t){case T.MIN:await a(i[e]);break;case T.MAX:await a(i[i.length-1+e]);break;case T.CURRENT:default:{const t=i.indexOf(s());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(i[t+e])}}}},c=async e=>{try{await d(e,T.CURRENT)}catch(e){if(console.warn(e),!(e instanceof I))throw e}};return Object.assign(e,{set:a,force:async e=>{i.playbackRate=e},reset:l,toggle:d,step:c,increase:async()=>{await c(1)},decrease:async()=>{await c(-1)}})},G=()=>$("speed.speedContext"),D=()=>$("speed.buildArguments$",(()=>{return l().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:i,next:o}=t;const n=new Set;return i((t=>{const i=n.size;e(t)?n.add(t):n.delete(t),n.size!==i&&o([...n])})),()=>{n.clear()}}));var e})),U=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,i]=G();if(t)return t;let o,n;const[r]=$("lifeCycleComponentLoaded$",(()=>c(unsafeWindow,b.LifeCycleEventTypes.ComponentsLoaded))),[s]=D(),[a]=$("speed.videoChange$",(()=>p(f.videoChange).pipe(R((e=>{let{aid:t,cid:i}=e;return t||i}))))),[m]=$("speed.speedContext$",(()=>l((t=>{let{next:i}=t;return w(a,u(d([]),s),r).subscribe((t=>{let[r,s]=t;const[l]=G();l?.dispose(),n?.("context update");const d=new Promise(((e,t)=>{o=e,n=t}));Promise.all([Promise.all([k.custom.speedContainer(),k.query.video.element()]).then(o),d]).then((e=>{let[,t]=e;return t})).then(M).then(P).then(q).then((e=>Object.assign(e,{videoIdObject:r,speedContext$:m,videoChange$:a}))).then(e(s)).then(i).catch((e=>console.error(e)))}))}))));return m.subscribe(i),h(m)};function B(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class W{constructor(e,t){this.entryContext=e,this.enabled$=t,B(this,"speedContext",void 0),B(this,"settings",void 0),B(this,"coreApis",void 0),B(this,"metadata",void 0),B(this,"options",void 0),B(this,"getVideoIdObject",void 0),B(this,"getAvailableSpeedValues",void 0),B(this,"getOldActiveVideoSpeed",void 0),B(this,"forceVideoSpeed",void 0),B(this,"getVideoSpeed",void 0),B(this,"setVideoSpeed",void 0),B(this,"resetVideoSpeed",void 0),B(this,"toggleVideoSpeed",void 0),B(this,"increaseVideoSpeed",void 0),B(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(W.contextMap,(e=>async function(){const t=await U(),i=lodash.get(t,e),o=lodash.isFunction(i)?await i(...arguments):i;return o})))}}B(W,"create",void 0),B(W,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),U((e=>t=>{const i=lodash.omit(t,"dispose"),o=e.map((e=>e.getSpeedContextMixin(i)));if(o.length>1){const e=lodash.intersection(...o.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(i,...o);const r=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,i)=>p(n.addComponentListener,`${e.metadata.name}.${i}`).pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();r.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,i,o)=>lodash.isSymbol(i)?Reflect.get(e,i,o):!Reflect.has(e,i)&&i.endsWith("$")?t[i]:Reflect.get(e,i,o)}),e.speedContext=i,e.onSpeedContext(i),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[i,o]=t;o.next(e.settings.options[i.slice(0,-1)])}))})),{...i,dispose:()=>{r.forEach((e=>e.complete())),t.dispose()}}})),W.create=function(e){const t=l().pipe((e=>{let t,{subscribe:i,next:o}=e,n=!0;i((e=>{(n||t!==e)&&(n=!1,t=e,o(e))}))}));return{...e,entry:i=>{const o=lodash.attempt((()=>new this(i,t)));if(o instanceof Error)return(0,r.logError)(o),null;const[n]=D();return t.subscribe((()=>{n.next(o)})),t.next(!0),(0,s.getHook)(`speed.component.${e.name}`).after(o),o},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const F=coreApis.toast;function X(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class z extends W{getSpeedContextMixin(e){var t=this;let{videoIdObject:i,set:o,reset:n,toggle:r,getActiveVideoSpeed:s,getOldActiveVideoSpeed:a}=e;const l=async()=>{const e=this.getRestoredVideoSpeed(i);await o(e??1)};return{reset:l,toggle:async function(){for(var e=arguments.length,i=new Array(e),d=0;d{e&&(this.options.fixGlobalSpeed=!0)})),this.options.fixGlobalSpeed$.subscribe((e=>{e||(this.options.individualRemember=!1)}));const o=this.getRestoredVideoSpeed(i);o&&requestIdleCallback((async()=>{try{if(await this.setVideoSpeed(o,1e3),this.options.showRestoreTip){let e=`已还原到 ${O(o)} 倍速`;this.options.individualRemember&&null!=this.matchRememberSpeed()&&(e=`【独立倍速视频】${e}`),F.Toast.info(e,this.metadata.displayName,3e3)}}catch(e){const t=`${this.metadata.displayName} - 倍速还原操作失败`,i=e instanceof I?`没有 ${e.formattedSpeed} 这样的倍速项`:String(e);F.Toast.error(i,t,5e3),console.error(e)}})),t.subscribe((e=>{this.settings.enabled&&(this.options.individualRemember?e!==+this.options.globalSpeed&&this.rememberSpeed(e):this.options.fixGlobalSpeed||this.rememberSpeed(e,null))}))}getRestoredVideoSpeed(e){return this.options.individualRemember&&this.matchRememberSpeed(e.aid)||this.readGlobalVideoSpeed()}readGlobalVideoSpeed(){return parseFloat(String(this.options.globalSpeed))}matchRememberSpeed(e){for(const[t,i]of Object.entries(this.options.individualRememberRecord))if(i.some((t=>t.toString()===z.getAid(e).toString())))return parseFloat(t);return null}rememberSpeed(e,t){if(lodash.isNull(t))return void(this.options.globalSpeed=e);lodash.isUndefined(t)&&(t=z.getAid(t));const i=lodash.castArray(t);this.forgetSpeed(i),this.options.individualRememberRecord={...this.options.individualRememberRecord,[e]:lodash.unionWith(this.options.individualRememberRecord[e],i,z.aidComparator)}}forgetSpeed(e){lodash.isNil(e)&&(e=z.getAid(e));const t=lodash.castArray(e);this.options.individualRememberRecord=lodash(this.options.individualRememberRecord).mapValues((e=>lodash(e).pullAllWith(t,z.aidComparator).uniqWith(z.aidComparator).value())).pickBy((e=>e.length)).value()}}X(z,"getAid",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:unsafeWindow.aid;if(!e)throw new Error("aid is unknown");return e})),X(z,"aidComparator",((e,t)=>e.toString()===t.toString()));const H=z.create({name:"rememberVideoSpeed",displayName:"记忆倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:{"zh-CN":`\n\n> 提高视频播放器的倍速记忆体验,可实现跨页共享倍速,也可以按视频分别记忆倍速.\n\n### 🔧 **选项**\n\n- \`全局记忆倍速值\`:默认情况下,这是跨页共享的倍速值,如果启用「各视频分别记忆」,则作为从未独立记忆倍速视频的初始倍速值.\n- \`固定全局倍速值\`:默认情况下,全局倍速值将随着用户改变视频倍速而改变,打开此选项后,全局记忆倍速值不再受倍速调整的影响.\n- \`各视频分别记忆\`:打开此选项后,将按不同视频分别记忆倍速,对于从未被记忆过倍速的视频,将采用全局记忆倍速值,选项「固定全局倍速值」在此情况下强制生效.\n- \`弹出还原倍速提示\`:打开此选项后,每次成功还原倍速后都会弹出提示.\n\n### 🌈 **温馨提示**\n\n「扩展倍速」和倍速相关的快捷键插件已分离为单独的组件或插件.\n\n请根据自身需要:\n\n- 前往「组件」页面安装[「扩展倍速」](${i.meta.compilationInfo.altCdn.root}registry/dist/components/video/player/extend-speed.js)组件\n- 前往「插件」页面安装[「快捷键扩展 - 视频倍速」](${i.meta.compilationInfo.altCdn.root}registry/dist/plugins/video/player/speed.js)插件.\n\n*如果想要清除当前视频的记忆状态,需要安装「快捷键扩展 - 视频倍速」插件.*\n`},tags:[componentsTags.video],urlInclude:o.playerUrls,options:{globalSpeed:{displayName:"全局记忆倍速值",defaultValue:1,validator:e=>lodash.clamp(parseFloat(e),.0625,16)||1},fixGlobalSpeed:{displayName:"固定全局倍速值",defaultValue:!1},individualRemember:{displayName:"各视频分别记忆",defaultValue:!1},individualRememberRecord:{displayName:"独立记忆倍速记录",defaultValue:{},hidden:!0},showRestoreTip:{displayName:"弹出还原倍速提示",defaultValue:!0}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return t=t.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/remove-popup.js b/registry/dist/components/video/player/remove-popup.js index f341b901b..cb61414ed 100644 --- a/registry/dist/components/video/player/remove-popup.js +++ b/registry/dist/components/video/player/remove-popup.js @@ -6,4 +6,4 @@ o.i=function(e,p,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var t={};if(r)for(var n=0;n{var r=p(693);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},912:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=912,e.exports=o},541:e=>{"use strict";e.exports="删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.\n"}},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var n=r[e]={id:e,exports:{}};return p[e](n,n.exports,t),n.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(p,r){if(1&r&&(p=this(p)),8&r)return p;if("object"==typeof p&&p){if(4&r&&p.__esModule)return p;if(16&r&&"function"==typeof p.then)return p}var n=Object.create(null);t.r(n);var a={};e=e||[null,o({}),o([]),o(o)];for(var i=2&r&&p;"object"==typeof i&&!~e.indexOf(i);i=o(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>p[e]));return a.default=()=>p,t.d(n,a),n},t.d=(e,o)=>{for(var p in o)t.o(o,p)&&!t.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";t.d(n,{component:()=>a});const e=coreApis.componentApis.define,o=coreApis.settings,p=coreApis.utils.urls,r="removePlayerPopup",a=(0,e.defineComponentMetadata)({name:r,entry:e=>{let{settings:p,metadata:r}=e;const{options:t}=p,{kebabCase:n}=lodash;Object.keys(t).forEach((e=>{(0,o.addComponentListener)(`${r.name}.${e}`,(o=>{document.body.classList.toggle(`${n(r.name)}-${n(e)}`,o)}),!0)}))},instantStyles:[{name:r,style:()=>Promise.resolve().then(t.t.bind(t,966,23))}],displayName:"删除视频弹窗",tags:[componentsTags.video,componentsTags.style],urlInclude:p.playerUrls,options:{votes:{defaultValue:!1,displayName:"投票"},relatedVideos:{defaultValue:!0,displayName:"关联视频"},comboLikes:{defaultValue:!0,displayName:"关注/三连"},rates:{defaultValue:!0,displayName:"评分"},reservations:{defaultValue:!0,displayName:"预告"},promotions:{defaultValue:!0,displayName:"心动"}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=t(912);return{...Object.fromEntries(e.keys().map((o=>[o.match(/index\.(.+)\.md$/)[1],e(o)]))),"zh-CN":()=>Promise.resolve().then(t.t.bind(t,541,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file +var a=this[n][0];null!=a&&(t[a]=!0)}for(var i=0;i{var r=p(693);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},912:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=912,e.exports=o},541:e=>{"use strict";e.exports="删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.\n"}},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var n=r[e]={id:e,exports:{}};return p[e](n,n.exports,t),n.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(p,r){if(1&r&&(p=this(p)),8&r)return p;if("object"==typeof p&&p){if(4&r&&p.__esModule)return p;if(16&r&&"function"==typeof p.then)return p}var n=Object.create(null);t.r(n);var a={};e=e||[null,o({}),o([]),o(o)];for(var i=2&r&&p;"object"==typeof i&&!~e.indexOf(i);i=o(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>p[e]));return a.default=()=>p,t.d(n,a),n},t.d=(e,o)=>{for(var p in o)t.o(o,p)&&!t.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";t.d(n,{component:()=>a});const e=coreApis.componentApis.define,o=coreApis.settings,p=coreApis.utils.urls,r="removePlayerPopup",a=(0,e.defineComponentMetadata)({name:r,entry:e=>{let{settings:p,metadata:r}=e;const{options:t}=p,{kebabCase:n}=lodash;Object.keys(t).forEach((e=>{(0,o.addComponentListener)(`${r.name}.${e}`,(o=>{document.body.classList.toggle(`${n(r.name)}-${n(e)}`,o)}),!0)}))},instantStyles:[{name:r,style:()=>Promise.resolve().then(t.t.bind(t,966,23))}],displayName:"删除视频弹窗",tags:[componentsTags.video,componentsTags.style],urlInclude:p.playerUrls,options:{votes:{defaultValue:!1,displayName:"投票"},relatedVideos:{defaultValue:!0,displayName:"关联视频"},comboLikes:{defaultValue:!0,displayName:"关注/三连"},rates:{defaultValue:!0,displayName:"评分"},reservations:{defaultValue:!0,displayName:"预告"},promotions:{defaultValue:!0,displayName:"心动"}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=t(912);return{...Object.fromEntries(e.keys().map((o=>[o.match(/index\.(.+)\.md$/)[1],e(o)]))),"zh-CN":()=>Promise.resolve().then(t.t.bind(t,541,17)).then((e=>e.default))}})()})})(),n=n.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/screenshot.js b/registry/dist/components/video/player/screenshot.js index d28b6ea98..e012f49d8 100644 --- a/registry/dist/components/video/player/screenshot.js +++ b/registry/dist/components/video/player/screenshot.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";var i,o=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.componentApis.video.playerAgent},414:e=>{"use strict";e.exports=coreApis.utils.log}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>O});const e=coreApis.componentApis.video.videoControlBar,t=coreApis.utils,n=coreApis.utils.urls;var i=o(833);const s=coreApis.utils.title;function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=document.createElement("canvas");class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.video=e,this.videoTime=t,this.withDanmaku=n,a(this,"url",""),a(this,"blob",void 0),a(this,"timeStamp",(new Date).getTime()),this.createUrl()}async createUrl(){const{logError:e}=await Promise.resolve().then(o.t.bind(o,414,23));if(this.withDanmaku){const e=dq(i.playerAgent.query.video.wrap.selector).getBoundingClientRect(),t=e.width/e.height;t>=this.video.videoWidth/this.video.videoHeight?(c.height=this.video.videoHeight,c.width=this.video.videoHeight*t):(c.width=this.video.videoWidth,c.height=this.video.videoWidth/t)}else c.width=this.video.videoWidth,c.height=this.video.videoHeight;const t=c.getContext("2d");if(null===t)return void e("视频截图失败: canvas 未创建或创建失败.");const n=(c.width-this.video.videoWidth)/2,r=(c.height-this.video.videoHeight)/2;if(t.drawImage(this.video,n,r),this.withDanmaku){const e=dq("canvas.bilibili-player-video-danmaku, canvas.dm-canvas");null!==e&&t.drawImage(e,0,0,c.width,c.height)}try{c.toBlob((t=>{null!==t?(this.blob=t,this.url=URL.createObjectURL(t)):e("视频截图失败: 创建 blob 失败.")}),"image/png")}catch(t){e("视频截图失败: 操作被浏览器阻止. 这通常发生于电影的试看片段, 请在正片尝试使用截图功能.")}}get filename(){return`${(0,s.getFriendlyTitle)()} @${this.time.replace(/:/g,"-")} ${this.timeStamp.toString()}.png`}get id(){return this.videoTime.toString()+this.timeStamp.toString()}get time(){const e=Math.trunc(this.videoTime/3600).toString(),t=Math.trunc(this.videoTime/60).toString(),n=(this.videoTime%60).toFixed(2);return"0"===e?`${t.padStart(2,"0")}:${n.padStart(5,"0")}`:`${e}:${t.padStart(2,"0")}:${n.padStart(5,"0")}`}revoke(){URL.revokeObjectURL(this.url)}}const l=coreApis.componentApis.define;var h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-screenshot-container"},[t("transition-group",{staticClass:"video-screenshot-list",attrs:{name:"video-screenshot-list",tag:"div"}},e._l(e.screenshots,(function(n){return t("VideoScreenshot",{key:n.id,attrs:{filename:n.filename,"object-url":n.url,time:n.time},on:{discard:function(t){return e.discard(n)}}})})),1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showBatch,expression:"showBatch"}],staticClass:"video-screenshot-batch"},[t("button",{on:{click:e.saveAll}},[t("VIcon",{attrs:{size:18,icon:"mdi-content-save"}}),e._v("全部保存")],1),e._v(" "),t("button",{on:{click:e.discardAll}},[t("VIcon",{attrs:{size:18,icon:"mdi-delete-forever"}}),e._v("全部丢弃\n ")],1)])],1)};h._withStripped=!0;const u=coreApis.download,v=coreApis.ui;var p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-screenshot-thumbnail"},[e.objectUrl?t("img",{attrs:{src:e.objectUrl}}):e._e(),e._v(" "),e.objectUrl?t("div",{staticClass:"mask"},[t("a",{ref:"link",staticClass:"link",staticStyle:{display:"none"},attrs:{href:e.objectUrl,download:e.filename}}),e._v(" "),t("button",{staticClass:"save",attrs:{title:"保存"},on:{click:e.save}},[t("VIcon",{attrs:{size:28,icon:"mdi-content-save-outline"}})],1),e._v(" "),t("button",{staticClass:"discard",attrs:{title:"丢弃"},on:{click:e.discard}},[t("VIcon",{attrs:{size:28,icon:"mdi-delete-forever-outline"}})],1),e._v(" "),t("span",{staticClass:"time"},[e._v(e._s(e.time))])]):t("div",{staticClass:"loading",on:{click:e.discard}})])};p._withStripped=!0;const f=Vue.extend({components:{VIcon:v.VIcon},props:{objectUrl:{type:String,required:!0},filename:{type:String,required:!0},time:{type:String,required:!0}},methods:{discard(){this.$emit("discard")},save(){this.$refs.link.click(),this.discard()}}});var m=o(332),b=o.n(m),g=o(86),y=o.n(g),w={insert:"head",singleton:!1};b()(y(),w);y().locals;function x(e,t,n,i,o,r,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):o&&(c=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:d}}const k=x(f,p,[],!1,null,null,null).exports,_=Vue.extend({components:{VIcon:v.VIcon,VideoScreenshot:k},data:()=>({screenshots:[]}),computed:{showBatch(){return this.screenshots.length>=2}},methods:{discard(e){this.screenshots.splice(this.screenshots.indexOf(e),1),e.revoke()},async saveAll(){const e=new u.DownloadPackage;this.screenshots.forEach((t=>{e.add(t.filename,t.blob,{date:new Date(t.timeStamp)})})),await e.emit(`${(0,s.getFriendlyTitle)()}.zip`),this.discardAll()},discardAll(){this.screenshots.forEach((e=>e.revoke())),this.screenshots=[]}}});var S=o(942),C=o.n(S),j={insert:"head",singleton:!1};b()(C(),j);C().locals;const A=x(_,h,[],!1,null,null,null).exports,T="video-screenshot-disable",O=(0,l.defineComponentMetadata)({name:"videoScreenshot",displayName:"启用视频截图",tags:[componentsTags.video],entry:async()=>{let n;(0,e.addControlBarButton)({name:"takeScreenshot",displayName:"截图",icon:"mdi-camera",order:0,action:async e=>{const{playerAgent:i}=await Promise.resolve().then(o.t.bind(o,833,23)),r=await i.query.video.element();if(r instanceof HTMLVideoElement){const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.currentTime;return new d(e,n,t)}(r,e.shiftKey);n||(n=(0,t.mountVueComponent)(A),document.body.insertAdjacentElement("beforeend",n.$el)),n.screenshots.unshift(i)}else{const{logError:e}=await Promise.resolve().then(o.t.bind(o,414,23));e("视频截图失败: 无法定位视频元素, 请尝试右击视频两次后另存为图片, 或将播放策略改为 AV1 或 AVC.")}}})},description:{"zh-CN":"启用视频快速截图, 将在播放器的时间右边增加一个截图按钮. 装有 `快捷键扩展` 时支持键盘快捷键Ctrl+Alt+C."},urlInclude:n.playerUrls,reload:()=>document.body.classList.remove(T),unload:()=>document.body.classList.add(T),plugin:{displayName:"视频截图 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.takeScreenshot={displayName:"视频截图",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="takeScreenshot"]',e)}}})),t("keymap.presets",(e=>{e.takeScreenshot="ctrl [shift] alt c"}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.componentApis.video.playerAgent},414:e=>{"use strict";e.exports=coreApis.utils.log}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>O});const e=coreApis.componentApis.video.videoControlBar,t=coreApis.utils,n=coreApis.utils.urls;var i=o(833);const s=coreApis.utils.title;function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=document.createElement("canvas");class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.video=e,this.videoTime=t,this.withDanmaku=n,a(this,"url",""),a(this,"blob",void 0),a(this,"timeStamp",(new Date).getTime()),this.createUrl()}async createUrl(){const{logError:e}=await Promise.resolve().then(o.t.bind(o,414,23));if(this.withDanmaku){const e=dq(i.playerAgent.query.video.wrap.selector).getBoundingClientRect(),t=e.width/e.height;t>=this.video.videoWidth/this.video.videoHeight?(c.height=this.video.videoHeight,c.width=this.video.videoHeight*t):(c.width=this.video.videoWidth,c.height=this.video.videoWidth/t)}else c.width=this.video.videoWidth,c.height=this.video.videoHeight;const t=c.getContext("2d");if(null===t)return void e("视频截图失败: canvas 未创建或创建失败.");const n=(c.width-this.video.videoWidth)/2,r=(c.height-this.video.videoHeight)/2;if(t.drawImage(this.video,n,r),this.withDanmaku){const e=dq("canvas.bilibili-player-video-danmaku, canvas.dm-canvas");null!==e&&t.drawImage(e,0,0,c.width,c.height)}try{c.toBlob((t=>{null!==t?(this.blob=t,this.url=URL.createObjectURL(t)):e("视频截图失败: 创建 blob 失败.")}),"image/png")}catch(t){e("视频截图失败: 操作被浏览器阻止. 这通常发生于电影的试看片段, 请在正片尝试使用截图功能.")}}get filename(){return`${(0,s.getFriendlyTitle)()} @${this.time.replace(/:/g,"-")} ${this.timeStamp.toString()}.png`}get id(){return this.videoTime.toString()+this.timeStamp.toString()}get time(){const e=Math.trunc(this.videoTime/3600).toString(),t=Math.trunc(this.videoTime/60).toString(),n=(this.videoTime%60).toFixed(2);return"0"===e?`${t.padStart(2,"0")}:${n.padStart(5,"0")}`:`${e}:${t.padStart(2,"0")}:${n.padStart(5,"0")}`}revoke(){URL.revokeObjectURL(this.url)}}const l=coreApis.componentApis.define;var h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-screenshot-container"},[t("transition-group",{staticClass:"video-screenshot-list",attrs:{name:"video-screenshot-list",tag:"div"}},e._l(e.screenshots,(function(n){return t("VideoScreenshot",{key:n.id,attrs:{filename:n.filename,"object-url":n.url,time:n.time},on:{discard:function(t){return e.discard(n)}}})})),1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showBatch,expression:"showBatch"}],staticClass:"video-screenshot-batch"},[t("button",{on:{click:e.saveAll}},[t("VIcon",{attrs:{size:18,icon:"mdi-content-save"}}),e._v("全部保存")],1),e._v(" "),t("button",{on:{click:e.discardAll}},[t("VIcon",{attrs:{size:18,icon:"mdi-delete-forever"}}),e._v("全部丢弃\n ")],1)])],1)};h._withStripped=!0;const u=coreApis.download,v=coreApis.ui;var p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"video-screenshot-thumbnail"},[e.objectUrl?t("img",{attrs:{src:e.objectUrl}}):e._e(),e._v(" "),e.objectUrl?t("div",{staticClass:"mask"},[t("a",{ref:"link",staticClass:"link",staticStyle:{display:"none"},attrs:{href:e.objectUrl,download:e.filename}}),e._v(" "),t("button",{staticClass:"save",attrs:{title:"保存"},on:{click:e.save}},[t("VIcon",{attrs:{size:28,icon:"mdi-content-save-outline"}})],1),e._v(" "),t("button",{staticClass:"discard",attrs:{title:"丢弃"},on:{click:e.discard}},[t("VIcon",{attrs:{size:28,icon:"mdi-delete-forever-outline"}})],1),e._v(" "),t("span",{staticClass:"time"},[e._v(e._s(e.time))])]):t("div",{staticClass:"loading",on:{click:e.discard}})])};p._withStripped=!0;const f=Vue.extend({components:{VIcon:v.VIcon},props:{objectUrl:{type:String,required:!0},filename:{type:String,required:!0},time:{type:String,required:!0}},methods:{discard(){this.$emit("discard")},save(){this.$refs.link.click(),this.discard()}}});var m=o(332),b=o.n(m),g=o(86),y=o.n(g),w={insert:"head",singleton:!1};b()(y(),w);y().locals;function x(e,t,n,i,o,r,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):o&&(c=a?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:d}}const k=x(f,p,[],!1,null,null,null).exports,_=Vue.extend({components:{VIcon:v.VIcon,VideoScreenshot:k},data:()=>({screenshots:[]}),computed:{showBatch(){return this.screenshots.length>=2}},methods:{discard(e){this.screenshots.splice(this.screenshots.indexOf(e),1),e.revoke()},async saveAll(){const e=new u.DownloadPackage;this.screenshots.forEach((t=>{e.add(t.filename,t.blob,{date:new Date(t.timeStamp)})})),await e.emit(`${(0,s.getFriendlyTitle)()}.zip`),this.discardAll()},discardAll(){this.screenshots.forEach((e=>e.revoke())),this.screenshots=[]}}});var S=o(942),C=o.n(S),j={insert:"head",singleton:!1};b()(C(),j);C().locals;const A=x(_,h,[],!1,null,null,null).exports,T="video-screenshot-disable",O=(0,l.defineComponentMetadata)({name:"videoScreenshot",displayName:"启用视频截图",tags:[componentsTags.video],entry:async()=>{let n;(0,e.addControlBarButton)({name:"takeScreenshot",displayName:"截图",icon:"mdi-camera",order:0,action:async e=>{const{playerAgent:i}=await Promise.resolve().then(o.t.bind(o,833,23)),r=await i.query.video.element();if(r instanceof HTMLVideoElement){const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.currentTime;return new d(e,n,t)}(r,e.shiftKey);n||(n=(0,t.mountVueComponent)(A),document.body.insertAdjacentElement("beforeend",n.$el)),n.screenshots.unshift(i)}else{const{logError:e}=await Promise.resolve().then(o.t.bind(o,414,23));e("视频截图失败: 无法定位视频元素, 请尝试右击视频两次后另存为图片, 或将播放策略改为 AV1 或 AVC.")}}})},description:{"zh-CN":"启用视频快速截图, 将在播放器的时间右边增加一个截图按钮. 装有 `快捷键扩展` 时支持键盘快捷键Ctrl+Alt+C."},urlInclude:n.playerUrls,reload:()=>document.body.classList.remove(T),unload:()=>document.body.classList.add(T),plugin:{displayName:"视频截图 - 快捷键支持",setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.takeScreenshot={displayName:"视频截图",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="takeScreenshot"]',e)}}})),t("keymap.presets",(e=>{e.takeScreenshot="ctrl [shift] alt c"}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/seek-by-frames.js b/registry/dist/components/video/player/seek-by-frames.js index 32e495bb5..ec1d196f6 100644 --- a/registry/dist/components/video/player/seek-by-frames.js +++ b/registry/dist/components/video/player/seek-by-frames.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/seek-by-frames"]=t():e["video/player/seek-by-frames"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,r={833:e=>{e.exports=coreApis.componentApis.video.playerAgent}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>r[e]));return s.default=()=>r,n.d(a,s),a},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.d(a,{component:()=>c});const e=coreApis.componentApis.video.videoControlBar,t=coreApis.observer,r=coreApis.utils,o=coreApis.utils.urls,s=coreApis.pluginApis.data,i=coreApis.componentApis.define,l="seek-by-frame-disable",c=(0,i.defineComponentMetadata)({name:"seekByFrames",displayName:"启用逐帧调整",tags:[componentsTags.video],description:{"zh-CN":"在播放器的时间右边增加两个按钮, 用于**较精细**调整视频时间. 装有 `快捷键扩展` 时支持键盘快捷键Shift+/.\n\n> 注: `视频的实际播放帧率`跟`视频本身的帧率`和`显示器的刷新率`有关, 很难计算一个精准的数值, 部分视频仍然会有暂停不到那种一闪而过的图的情况."},entry:async()=>{await(0,r.playerReady)();const{playerAgent:o}=await Promise.resolve().then(n.t.bind(n,833,23));(0,s.addData)("ui.icons",(e=>{e["seek-left"]='\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\t\n\n\n\n',e["seek-right"]='\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\t\n\n\n\n'}));let a=0;(0,t.attributesSubtree)(`${o.query.control.buttons.quality.selector} ul`,(()=>{const e=dq(`${o.query.control.buttons.quality.selector} .bui-select-item-active, ${o.query.control.buttons.quality.selector} .active`),t=e?parseInt(e.getAttribute("data-value")):0,r=(()=>{switch(t){case 116:case 74:return 6e4/1001;default:return 3e4/1001}})();a=1/r}));const i=e=>{o.changeTime(e*a)};(0,e.addControlBarButton)({name:"seekPrevFrame",displayName:"上一帧",icon:"seek-left",order:1,action:()=>{i(-1)}}),(0,e.addControlBarButton)({name:"seekNextFrame",displayName:"下一帧",icon:"seek-right",order:2,action:()=>{i(1)}})},reload:()=>document.body.classList.remove(l),unload:()=>document.body.classList.add(l),urlInclude:o.playerUrls,plugin:{displayName:"逐帧调整 - 快捷键支持",setup:()=>{(0,s.addData)("keymap.actions",(e=>{e.previousFrame={displayName:"上一帧",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="seekPrevFrame"]',e)}},e.nextFrame={displayName:"下一帧",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="seekNextFrame"]',e)}}})),(0,s.addData)("keymap.presets",(e=>{e.previousFrame="shift arrowLeft",e.nextFrame="shift arrowRight"}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/seek-by-frames"]=t():e["video/player/seek-by-frames"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,r={833:e=>{e.exports=coreApis.componentApis.video.playerAgent}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>r[e]));return s.default=()=>r,n.d(a,s),a},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.d(a,{component:()=>l});const e=coreApis.componentApis.video.videoControlBar,t=coreApis.observer,r=coreApis.utils,o=coreApis.utils.urls,s=coreApis.pluginApis.data,i=coreApis.componentApis.define,c="seek-by-frame-disable",l=(0,i.defineComponentMetadata)({name:"seekByFrames",displayName:"启用逐帧调整",tags:[componentsTags.video],description:{"zh-CN":"在播放器的时间右边增加两个按钮, 用于**较精细**调整视频时间. 装有 `快捷键扩展` 时支持键盘快捷键Shift+/.\n\n> 注: `视频的实际播放帧率`跟`视频本身的帧率`和`显示器的刷新率`有关, 很难计算一个精准的数值, 部分视频仍然会有暂停不到那种一闪而过的图的情况."},entry:async()=>{await(0,r.playerReady)();const{playerAgent:o}=await Promise.resolve().then(n.t.bind(n,833,23));(0,s.addData)("ui.icons",(e=>{e["seek-left"]='\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\t\n\n\n\n',e["seek-right"]='\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\t\n\n\n\n'}));let a=0;(0,t.attributesSubtree)(`${o.query.control.buttons.quality.selector} ul`,(()=>{const e=dq(`${o.query.control.buttons.quality.selector} .bui-select-item-active, ${o.query.control.buttons.quality.selector} .active`),t=e?parseInt(e.getAttribute("data-value")):0,r=(()=>{switch(t){case 116:case 74:return 6e4/1001;default:return 3e4/1001}})();a=1/r}));const i=e=>{o.changeTime(e*a)};(0,e.addControlBarButton)({name:"seekPrevFrame",displayName:"上一帧",icon:"seek-left",order:1,action:()=>{i(-1)}}),(0,e.addControlBarButton)({name:"seekNextFrame",displayName:"下一帧",icon:"seek-right",order:2,action:()=>{i(1)}})},reload:()=>document.body.classList.remove(c),unload:()=>document.body.classList.add(c),urlInclude:o.playerUrls,plugin:{displayName:"逐帧调整 - 快捷键支持",setup:()=>{(0,s.addData)("keymap.actions",(e=>{e.previousFrame={displayName:"上一帧",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="seekPrevFrame"]',e)}},e.nextFrame={displayName:"下一帧",run:e=>{const{clickElement:t}=e;return t('.be-video-control-bar-extend [data-name="seekNextFrame"]',e)}}})),(0,s.addData)("keymap.presets",(e=>{e.previousFrame="shift arrowLeft",e.nextFrame="shift arrowRight"}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),a=a.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/show-cover.js b/registry/dist/components/video/player/show-cover.js index 0b6892736..69006989a 100644 --- a/registry/dist/components/video/player/show-cover.js +++ b/registry/dist/components/video/player/show-cover.js @@ -6,4 +6,4 @@ o.i=function(e,t,n){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var r={};if(n)for(var i=0;i{var n=t(612);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},77:e=>{"use strict";e.exports=coreApis.componentApis.video.videoInfo}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};e=e||[null,o({}),o([]),o(o)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,r.d(i,a),i},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>a});const e=coreApis.componentApis.define,o=coreApis.observer,t=coreApis.utils,n=coreApis.utils.urls,a=(0,e.defineComponentMetadata)({name:"showCoverBeforePlay",displayName:"播放前显示封面",urlInclude:n.playerUrls,entry:async()=>{let e;(0,o.videoChange)((()=>{console.debug("isBpxPlayer");const e=dq(".bpx-player-video-wrap video");e?(0,t.createHook)(e,"play",(()=>(document.documentElement.style.removeProperty("--cover-url"),!0))):console.warn("bpx player not found")}));(0,o.videoChange)((async o=>{let{aid:t}=o;if(!t)return void console.warn("[播放前显示封面] 未找到av号");if(t===e)return;e=t;const{VideoInfo:n}=await Promise.resolve().then(r.t.bind(r,77,23)),i=new n(t);await i.fetchInfo(),document.documentElement.style.setProperty("--cover-url",`url('${i.coverUrl}')`)}))},instantStyles:[{name:"showCoverBeforePlay",style:()=>Promise.resolve().then(r.t.bind(r,721,23))}],description:{"zh-CN":"在视频开始播放前, 在播放器中显示封面."},tags:[componentsTags.video],commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c{var n=t(612);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},77:e=>{"use strict";e.exports=coreApis.componentApis.video.videoInfo}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};e=e||[null,o({}),o([]),o(o)];for(var c=2&n&&t;"object"==typeof c&&!~e.indexOf(c);c=o(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,r.d(i,a),i},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{component:()=>a});const e=coreApis.componentApis.define,o=coreApis.observer,t=coreApis.utils,n=coreApis.utils.urls,a=(0,e.defineComponentMetadata)({name:"showCoverBeforePlay",displayName:"播放前显示封面",urlInclude:n.playerUrls,entry:async()=>{let e;(0,o.videoChange)((()=>{console.debug("isBpxPlayer");const e=dq(".bpx-player-video-wrap video");e?(0,t.createHook)(e,"play",(()=>(document.documentElement.style.removeProperty("--cover-url"),!0))):console.warn("bpx player not found")}));(0,o.videoChange)((async o=>{let{aid:t}=o;if(!t)return void console.warn("[播放前显示封面] 未找到av号");if(t===e)return;e=t;const{VideoInfo:n}=await Promise.resolve().then(r.t.bind(r,77,23)),i=new n(t);await i.fetchInfo(),document.documentElement.style.setProperty("--cover-url",`url('${i.coverUrl}')`)}))},instantStyles:[{name:"showCoverBeforePlay",style:()=>Promise.resolve().then(r.t.bind(r,721,23))}],description:{"zh-CN":"在视频开始播放前, 在播放器中显示封面."},tags:[componentsTags.video],commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/show-upload-time.js b/registry/dist/components/video/player/show-upload-time.js index 0deae3bcb..ffdc1999b 100644 --- a/registry/dist/components/video/player/show-upload-time.js +++ b/registry/dist/components/video/player/show-upload-time.js @@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var i={};if(o)for(var r=0;r{var o=n(708);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>m});const e=coreApis.componentApis.define,t=coreApis.observer,n=coreApis.utils,o=coreApis.utils.urls,a=coreApis.componentApis.feeds.api,s=coreApis.componentApis.video.videoInfo,c=coreApis.utils.log,l=coreApis.settings,p="显示视频投稿时间",d=(0,c.useScopedConsole)(p),m=(0,e.defineComponentMetadata)({author:{name:"wisokey",link:"https://github.com/wisokey"},name:"showUploadTime",displayName:p,description:"为视频播放页面的推荐列表中的视频添加显示视频投稿时间.\n\n`时间格式` 替换up名的文本格式 (默认为'up · yyyy-MM-dd'):\n - y: 年\n - M: 月\n - d: 日\n - h: 时\n - m: 分\n - s: 秒\n - q: 季度\n - up: up名\n - \\r: 回车符\n - \\n:换行符\n - \\t:制表符",tags:[componentsTags.video],urlInclude:o.videoUrls,options:{formatString:{displayName:"文本格式",defaultValue:"up · yyyy-MM-dd",validator:(e,t)=>e?.trim()?e:t}},instantStyles:[{name:"showUploadTime",style:()=>Promise.resolve().then(i.t.bind(i,187,23))}],entry:async e=>{let{metadata:o}=e;const i=(e,t,n)=>{const o={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3)},i={up:n,"\\\\r":"\r","\\\\n":"\n","\\\\t":"\t"};let r=t.match(/(y+)/);null!==r&&(t=t.replace(r[0],`${e.getFullYear()}`.substring(4-r[0].length)));for(const e in o)e&&(r=t.match(new RegExp(`(${e})`)),null!==r&&(t=t.replace(r[0],1===r[0].length?o[e]:`00${o[e]}`.substring(`${o[e]}`.length))));for(const e in i)e&&(r=t.match(new RegExp(`(${e})`)),null!==r&&(t=t.replace(r[0],i[e])));return t},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n){const{options:e}=(0,l.getComponentSettings)(o.name);n=e.formatString?.toString()}e.forEach((async e=>{if(t||!e.item.owner.mark){if(e.item.owner.mark=!0,t||!e.mark){let t;if(e.mark=!0,e.item.ctime)t=new Date(1e3*e.item.ctime);else{const n=new s.VideoInfo(e.item.aid);await n.fetchInfo(),t=n.createTime,e.item.ctime=t.getTime()/1e3}e.oldname||(e.oldname=e.name),e.name=i(t,n,e.oldname)}e.item.owner.name=e.name}}))},c=()=>{const e=dq("#reco_list");let t=(0,a.getVueData)(e);return void 0===t.isOpen&&(t=t.$children[0],void 0===t.isOpen&&(d.log("结构获取失败"),d.log(document.URL),d.log(t))),t};(0,l.addComponentListener)(`${o.name}.formatString`,(e=>{const t=c().$children.filter((e=>-1===e.$el.className.indexOf("special")));r(t,!0,e)}),!1),(0,t.urlChange)((async()=>{await(0,n.playerReady)();const e=c().$children.filter((e=>-1===e.$el.className.indexOf("special")));r(e)})),await(0,n.playerReady)(),(0,t.childList)(dq("#reco_list .rec-list"),(async()=>{const e=c();if(e.isOpen){const t=e.$children.filter((e=>-1===e.$el.className.indexOf("special")));r(t)}}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file +var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s{var o=n(708);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(r,a),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>m});const e=coreApis.componentApis.define,t=coreApis.observer,n=coreApis.utils,o=coreApis.utils.urls,a=coreApis.componentApis.feeds.api,s=coreApis.componentApis.video.videoInfo,c=coreApis.utils.log,l=coreApis.settings,p="显示视频投稿时间",d=(0,c.useScopedConsole)(p),m=(0,e.defineComponentMetadata)({author:{name:"wisokey",link:"https://github.com/wisokey"},name:"showUploadTime",displayName:p,description:"为视频播放页面的推荐列表中的视频添加显示视频投稿时间.\n\n`时间格式` 替换up名的文本格式 (默认为'up · yyyy-MM-dd'):\n - y: 年\n - M: 月\n - d: 日\n - h: 时\n - m: 分\n - s: 秒\n - q: 季度\n - up: up名\n - \\r: 回车符\n - \\n:换行符\n - \\t:制表符",tags:[componentsTags.video],urlInclude:o.videoUrls,options:{formatString:{displayName:"文本格式",defaultValue:"up · yyyy-MM-dd",validator:(e,t)=>e?.trim()?e:t}},instantStyles:[{name:"showUploadTime",style:()=>Promise.resolve().then(i.t.bind(i,187,23))}],entry:async e=>{let{metadata:o}=e;const i=(e,t,n)=>{const o={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3)},i={up:n,"\\\\r":"\r","\\\\n":"\n","\\\\t":"\t"};let r=t.match(/(y+)/);null!==r&&(t=t.replace(r[0],`${e.getFullYear()}`.substring(4-r[0].length)));for(const e in o)e&&(r=t.match(new RegExp(`(${e})`)),null!==r&&(t=t.replace(r[0],1===r[0].length?o[e]:`00${o[e]}`.substring(`${o[e]}`.length))));for(const e in i)e&&(r=t.match(new RegExp(`(${e})`)),null!==r&&(t=t.replace(r[0],i[e])));return t},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n){const{options:e}=(0,l.getComponentSettings)(o.name);n=e.formatString?.toString()}e.forEach((async e=>{if(t||!e.item.owner.mark){if(e.item.owner.mark=!0,t||!e.mark){let t;if(e.mark=!0,e.item.ctime)t=new Date(1e3*e.item.ctime);else{const n=new s.VideoInfo(e.item.aid);await n.fetchInfo(),t=n.createTime,e.item.ctime=t.getTime()/1e3}e.oldname||(e.oldname=e.name),e.name=i(t,n,e.oldname)}e.item.owner.name=e.name}}))},c=()=>{const e=dq("#reco_list");let t=(0,a.getVueData)(e);return void 0===t.isOpen&&(t=t.$children[0],void 0===t.isOpen&&(d.log("结构获取失败"),d.log(document.URL),d.log(t))),t};(0,l.addComponentListener)(`${o.name}.formatString`,(e=>{const t=c().$children.filter((e=>-1===e.$el.className.indexOf("special")));r(t,!0,e)}),!1),(0,t.urlChange)((async()=>{await(0,n.playerReady)();const e=c().$children.filter((e=>-1===e.$el.className.indexOf("special")));r(e)})),await(0,n.playerReady)(),(0,t.childList)(dq("#reco_list .rec-list"),(async()=>{const e=c();if(e.isOpen){const t=e.$children.filter((e=>-1===e.$el.className.indexOf("special")));r(t)}}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/player/skip-charge-list.js b/registry/dist/components/video/player/skip-charge-list.js index c7b8a6928..4f5b0e9a4 100644 --- a/registry/dist/components/video/player/skip-charge-list.js +++ b/registry/dist/components/video/player/skip-charge-list.js @@ -6,4 +6,4 @@ t.i=function(e,o,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign e=[[null,e,""]]);var n={};if(r)for(var i=0;i{var r=o(703);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},391:e=>{"use strict";e.exports=coreApis.observer},200:e=>{"use strict";e.exports=coreApis.spinQuery}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>s});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r="skip-charge-list-disable",a=(0,t.styledComponentEntry)((()=>Promise.resolve().then(n.t.bind(n,102,23))),(async()=>{const{videoChange:e}=await Promise.resolve().then(n.t.bind(n,391,23)),{select:t}=await Promise.resolve().then(n.t.bind(n,200,23));e((async()=>{(await t("video"))?.addEventListener("ended",(async()=>{if(document.body.classList.contains(r))return;(await t(".bilibili-player-electric-panel-jump,.bpx-player-electric-jump"))?.click()}))}))})),s=(0,e.defineComponentMetadata)({name:"skipChargeList",displayName:"跳过充电鸣谢",tags:[componentsTags.video],entry:a,description:{"zh-CN":"自动跳过视频结尾的充电鸣谢. 注意: 不包括番剧承包鸣谢."},reload:()=>document.body.classList.remove(r),unload:()=>document.body.classList.add(r),urlInclude:o.playerUrls,commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +var s=this[i][0];null!=s&&(n[s]=!0)}for(var a=0;a{var r=o(703);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},391:e=>{"use strict";e.exports=coreApis.observer},200:e=>{"use strict";e.exports=coreApis.spinQuery}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,n.d(i,s),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{component:()=>a});const e=coreApis.componentApis.define,t=coreApis.componentApis.styledComponent,o=coreApis.utils.urls,r="skip-charge-list-disable",s=(0,t.styledComponentEntry)((()=>Promise.resolve().then(n.t.bind(n,102,23))),(async()=>{const{videoChange:e}=await Promise.resolve().then(n.t.bind(n,391,23)),{select:t}=await Promise.resolve().then(n.t.bind(n,200,23));e((async()=>{(await t("video"))?.addEventListener("ended",(async()=>{if(document.body.classList.contains(r))return;(await t(".bilibili-player-electric-panel-jump,.bpx-player-electric-jump"))?.click()}))}))})),a=(0,e.defineComponentMetadata)({name:"skipChargeList",displayName:"跳过充电鸣谢",tags:[componentsTags.video],entry:s,description:{"zh-CN":"自动跳过视频结尾的充电鸣谢. 注意: 不包括番剧承包鸣谢."},reload:()=>document.body.classList.remove(r),unload:()=>document.body.classList.add(r),urlInclude:o.playerUrls,commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/quick-favorite.js b/registry/dist/components/video/quick-favorite.js index 6847c499b..07f444d7c 100644 --- a/registry/dist/components/video/quick-favorite.js +++ b/registry/dist/components/video/quick-favorite.js @@ -9,4 +9,4 @@ A=[[null,A,""]]);var n={};if(i)for(var o=0;o{"use strict";e.r(t),e.d(t,{default:()=>m});var i=function(){var A=this,t=A._self._c;A._self._setupProxy;return t("span",{staticClass:"quick-favorite be-quick-favorite video-toolbar-left-item",class:{on:A.isFavorite},attrs:{title:"快速收藏"},on:{click:function(t){return!t.type.indexOf("key")&&A._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button||t.target!==t.currentTarget?null:A.toggle()},contextmenu:function(t){if(t.preventDefault(),t.target!==t.currentTarget)return null;A.listShowing=!A.listShowing}}},[t("i",{staticClass:"quick-favorite-icon icon",on:{click:function(t){return!t.type.indexOf("key")&&A._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:A.toggle()},contextmenu:function(t){t.preventDefault(),A.listShowing=!A.listShowing}}}),A._v(" "),t("div",{staticClass:"text",on:{click:function(t){return!t.type.indexOf("key")&&A._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:A.toggle()},contextmenu:function(t){t.preventDefault(),A.listShowing=!A.listShowing}}},[A._v("\n 快速收藏\n ")]),A._v(" "),t("div",{ref:"selectList",staticClass:"select-list",class:{show:A.listShowing}},[t("div",{staticClass:"lists"},[A._v("\n 选择快速收藏夹:\n "),t("VDropdown",{attrs:{items:A.lists.map((A=>A.title)),"key-mapper":A=>A},scopedSlots:A._u([{key:"item",fn:function({item:t}){return[A._v("\n "+A._s(t)+"\n ")]}}]),model:{value:A.selectedFavorite,callback:function(t){A.selectedFavorite=t},expression:"selectedFavorite"}})],1),A._v(" "),t("div",{staticClass:"lists-tip",class:{show:A.listShowing}},[A._v("右键点击快速收藏可再次打开")])]),A._v(" "),t("div",{staticClass:"tip",class:{show:A.tipShowing}},[A._v(A._s(A.tipText))])])};i._withStripped=!0;const n=coreApis.settings,o=coreApis.ajax;var a=e(605);const r=coreApis.utils.log,s=coreApis.toast,l=coreApis.ui,{options:c}=(0,n.getComponentSettings)("quickFavorite"),d=Vue.extend({components:{VDropdown:l.VDropdown},data:()=>({aid:unsafeWindow.aid,favoriteTitle:"",isFavorite:!1,tipText:"",tipShowing:!1,tipHandle:0,lists:[],selectedFavorite:"<未选择>",listShowing:!1}),watch:{selectedFavorite(A){if(0===this.lists.length)return;const{lists:t}=this,e=t.find((t=>t.title===A));e?(c.favoriteFolderID=e.id,this.syncFavoriteState()):console.error("list not found in selectedFavorite(value)")},async listShowing(A){if(A&&(document.addEventListener("click",(A=>{const t=this.$el,e=A.target;e===t||t.contains(e)||(this.listShowing=!1)})),0===this.lists.length))try{const A=await(0,o.getJsonWithCredentials)(`https://api.bilibili.com/medialist/gateway/base/created?pn=1&ps=100&up_mid=${(0,a.getUID)()}&is_space=0`);if(0!==A.code)throw new Error(`获取收藏夹列表失败: ${A.message}`);this.lists=lodash.get(A,"data.list",[])}catch(A){(0,r.logError)(A)}}},created(){this.syncFavoriteState()},methods:{async syncFavoriteState(){if(0!==c.favoriteFolderID&&this.aid)try{const A=await(0,o.getJsonWithCredentials)(`https://api.bilibili.com/x/v3/fav/folder/created/list-all?type=2&rid=${this.aid}&up_mid=${(0,a.getUID)()}`);if(0!==A.code)throw new Error(`获取收藏状态失败: ${A.message}`);const t=lodash.get(A,"data.list",[]).find((A=>A.id===c.favoriteFolderID));if(void 0===t)return void(c.favoriteFolderID=0);this.isFavorite=Boolean(t.fav_state),this.favoriteTitle=t.title,this.selectedFavorite=t.title}catch(A){(0,r.logError)(A)}},showTip(A){this.tipText=A,this.tipShowing=!0,this.tipHandle&&clearTimeout(this.tipHandle),this.tipHandle=setTimeout((()=>{this.tipShowing=!1}),2e3)},async toggle(){if(0===c.favoriteFolderID)return void(this.listShowing=!0);const A={rid:this.aid,type:2,add_media_ids:"",del_media_ids:"",csrf:(0,a.getCsrf)()};A[this.isFavorite?"del_media_ids":"add_media_ids"]=c.favoriteFolderID.toString();try{await(0,o.postTextWithCredentials)("https://api.bilibili.com/x/v3/fav/resource/deal",Object.entries(A).map((A=>{let[t,e]=A;return`${t}=${e}`})).join("&")),this.isFavorite=!this.isFavorite,this.showTip(this.isFavorite?`已添加至收藏夹: ${this.favoriteTitle}`:`已移出收藏夹: ${this.favoriteTitle}`)}catch(A){s.Toast.error(`快速收藏失败: ${A.message}`,"快速收藏"),console.error(A)}}}});var f=e(332),u=e.n(f),p=e(914),v=e.n(p),g={insert:"head",singleton:!1};u()(v(),g);v().locals;var h=function(A,t,e,i,n,o,a,r){var s,l="function"==typeof A?A.options:A;if(t&&(l.render=t,l.staticRenderFns=e,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(s=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),n&&n.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(a)},l._ssrRegister=s):n&&(s=r?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(A,t){return s.call(t),c(A,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,s):[s]}return{exports:A,options:l}}(d,i,[],!1,null,"3e9731f3",null);const m=h.exports},332:(A,t,e)=>{"use strict";var i,n=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var A={};return function(t){if(void 0===A[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(A){e=null}A[t]=e}return A[t]}}(),a=[];function r(A){for(var t=-1,e=0;e{"use strict";A.exports=coreApis.utils}},t={};function e(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={id:i,exports:{}};return A[i](o,o.exports,e),o.exports}e.n=A=>{var t=A&&A.__esModule?()=>A.default:()=>A;return e.d(t,{a:t}),t},e.d=(A,t)=>{for(var i in t)e.o(t,i)&&!e.o(A,i)&&Object.defineProperty(A,i,{enumerable:!0,get:t[i]})},e.o=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),e.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var i={};return(()=>{"use strict";e.d(i,{component:()=>s});const A=coreApis.componentApis.define;var t=e(605);const n=coreApis.utils.urls,o=coreApis.componentApis.video.videoActions,a=coreApis.observer,r=(0,A.defineOptionsMetadata)({favoriteFolderID:{defaultValue:0,displayName:"快速收藏夹ID",hidden:!0},showInFavoritePages:{defaultValue:!1,displayName:"在收藏夹播放页面仍然显示"}}),s=(0,A.defineComponentMetadata)({name:"quickFavorite",displayName:"启用快速收藏",description:{"zh-CN":"启用快速收藏, 在视频页面可以一键收藏到设定的某个收藏夹. 首次启动时或者右键点击快速收藏图标可以配置快速收藏夹. 请注意如果在在收藏夹播放页面仍然显示, 是不会实时同步右侧的播放列表的."},entry:async A=>{let{settings:i}=A;if(n.favoriteListUrls.some(t.matchUrlPattern)&&!i.options.showInFavoritePages)return;if(!(0,t.getUID)())return;const r=await Promise.resolve().then(e.bind(e,431)),s=(0,t.mountVueComponent)(r);await(0,o.addVideoActionButton)((()=>s.$el)),(0,a.videoChange)((()=>{s.aid=unsafeWindow.aid,s.syncFavoriteState()}))},unload:()=>{dqa(".be-quick-favorite").forEach((A=>A.style.display=""))},reload:()=>{dqa(".be-quick-favorite").forEach((A=>A.style.display="inline-block"))},urlInclude:n.videoUrls,tags:[componentsTags.video],options:r,plugin:{displayName:"快速收藏 - 快捷键支持",setup:A=>{let{addData:t}=A;t("keymap.actions",(A=>{A.quickFavorite={displayName:"快速收藏",run:A=>{const{clickElement:t}=A;return t(".be-quick-favorite",A)}}})),t("keymap.presets",(A=>{A.quickFavorite="shift s"}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var A={};return function(t){if(void 0===A[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(A){e=null}A[t]=e}return A[t]}}(),a=[];function r(A){for(var t=-1,e=0;e{"use strict";A.exports=coreApis.utils}},t={};function e(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={id:i,exports:{}};return A[i](o,o.exports,e),o.exports}e.n=A=>{var t=A&&A.__esModule?()=>A.default:()=>A;return e.d(t,{a:t}),t},e.d=(A,t)=>{for(var i in t)e.o(t,i)&&!e.o(A,i)&&Object.defineProperty(A,i,{enumerable:!0,get:t[i]})},e.o=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),e.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var i={};return(()=>{"use strict";e.d(i,{component:()=>s});const A=coreApis.componentApis.define;var t=e(605);const n=coreApis.utils.urls,o=coreApis.componentApis.video.videoActions,a=coreApis.observer,r=(0,A.defineOptionsMetadata)({favoriteFolderID:{defaultValue:0,displayName:"快速收藏夹ID",hidden:!0},showInFavoritePages:{defaultValue:!1,displayName:"在收藏夹播放页面仍然显示"}}),s=(0,A.defineComponentMetadata)({name:"quickFavorite",displayName:"启用快速收藏",description:{"zh-CN":"启用快速收藏, 在视频页面可以一键收藏到设定的某个收藏夹. 首次启动时或者右键点击快速收藏图标可以配置快速收藏夹. 请注意如果在在收藏夹播放页面仍然显示, 是不会实时同步右侧的播放列表的."},entry:async A=>{let{settings:i}=A;if(n.favoriteListUrls.some(t.matchUrlPattern)&&!i.options.showInFavoritePages)return;if(!(0,t.getUID)())return;const r=await Promise.resolve().then(e.bind(e,431)),s=(0,t.mountVueComponent)(r);await(0,o.addVideoActionButton)((()=>s.$el)),(0,a.videoChange)((()=>{s.aid=unsafeWindow.aid,s.syncFavoriteState()}))},unload:()=>{dqa(".be-quick-favorite").forEach((A=>A.style.display=""))},reload:()=>{dqa(".be-quick-favorite").forEach((A=>A.style.display="inline-block"))},urlInclude:n.videoUrls,tags:[componentsTags.video],options:r,plugin:{displayName:"快速收藏 - 快捷键支持",setup:A=>{let{addData:t}=A;t("keymap.actions",(A=>{A.quickFavorite={displayName:"快速收藏",run:A=>{const{clickElement:t}=A;return t(".be-quick-favorite",A)}}})),t("keymap.presets",(A=>{A.quickFavorite="shift s"}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"})})(),i=i.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/seo-redirect.js b/registry/dist/components/video/seo-redirect.js index 74b902606..b3ae9893d 100644 --- a/registry/dist/components/video/seo-redirect.js +++ b/registry/dist/components/video/seo-redirect.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/seo-redirect"]=o():e["video/seo-redirect"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"seoRedirect",displayName:"SEO 页面重定向",entry:()=>{window.location.assign(document.URL.replace("/s/","/"))},urlInclude:["//www.bilibili.com/s/video/"],tags:[componentsTags.video],description:{"zh-CN":"进入 SEO 视频页面时 (`https://www.bilibili.com/s/video/`) 自动跳转到原视频页面."},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/seo-redirect"]=o():e["video/seo-redirect"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"seoRedirect",displayName:"SEO 页面重定向",entry:()=>{window.location.assign(document.URL.replace("/s/","/"))},urlInclude:["//www.bilibili.com/s/video/"],tags:[componentsTags.video],description:{"zh-CN":"进入 SEO 视频页面时 (`https://www.bilibili.com/s/video/`) 自动跳转到原视频页面."},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"});return o=o.component})())); \ No newline at end of file diff --git a/registry/dist/components/video/subtitle/download.js b/registry/dist/components/video/subtitle/download.js index 213e2f707..5daa891e8 100644 --- a/registry/dist/components/video/subtitle/download.js +++ b/registry/dist/components/video/subtitle/download.js @@ -9,4 +9,4 @@ t=[[null,t,""]]);var i={};if(o)for(var r=0;r{"use strict";n.d(e,{mE:()=>l});const o=coreApis.ajax;var i=n(391),r=n(674);const a=async()=>{const{SubtitleConverter:t,SubtitleSize:e,SubtitleLocation:o}=await Promise.resolve().then(n.bind(n,617)),{playerAgent:i}=await Promise.resolve().then(n.t.bind(n,833,23)),a=i.getPlayerConfig("subtitle",null);if(!a)return[t.defaultConfig,""];const s=a.lan,l=(0,r.getFriendlyTitle)(!0),c={.6:e.VerySmall,.8:e.Small,1:e.Medium,1.3:e.Large,1.6:e.VeryLarge}[a.fontsize],d=parseInt(a.color).toString(16),{opacity:u}=a,f={bc:o.BottomCenter,bl:o.BottomLeft,br:o.BottomRight,tc:o.TopCenter,tl:o.TopLeft,tr:o.TopRight,"bottom-center":o.BottomCenter,"bottom-left":o.BottomLeft,"bottom-right":o.BottomRight,"top-center":o.TopCenter,"top-left":o.TopLeft,"top-right":o.TopRight}[a.position],p=i.query.video.element.sync();return[{title:l,height:p.videoHeight,width:p.videoWidth,color:d,location:f,opacity:u,size:c,boxPadding:1,boxMargin:32},s]},s=async(t,e)=>{const n=await(0,o.bilibiliApi)((0,o.getJsonWithCredentials)(`https://api.bilibili.com/x/player/wbi/v2?aid=${t}&cid=${e}`));return lodash.get(n,"subtitle.subtitles",[])},l=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{...lodash.pick(unsafeWindow,"aid","cid"),title:(0,r.getFriendlyTitle)(!0)};const{aid:l,cid:c}=e;if(!l||!c)throw new Error("未找到视频AID和CID");const d=await s(l,c);if(0===d.length)return i.Toast.info("当前视频没有字幕.","下载字幕",3e3),null;const[u,f]=await a(),p=d.find((t=>t.lan===f))||d[0],m=await(0,o.getJson)(p.subtitle_url),g=m.body;if("ass"===t){const{SubtitleConverter:t}=await Promise.resolve().then(n.bind(n,617)),o=new t({...u,title:e.title}),i=await o.convertToAss(g);return new Blob([i],{type:"text/ass"})}return new Blob([JSON.stringify(g,void 0,2)],{type:"text/json"})}},617:(t,e,n)=>{"use strict";function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,{SubtitleConverter:()=>a,SubtitleLocation:()=>i,SubtitleSize:()=>r});const i={TopLeft:7,TopCenter:8,TopRight:9,BottomLeft:1,BottomCenter:2,BottomRight:3};let r=function(t){return t[t.VerySmall=1]="VerySmall",t[t.Small=2]="Small",t[t.Medium=3]="Medium",t[t.Large=4]="Large",t[t.VeryLarge=5]="VeryLarge",t}({});class a{constructor(t){o(this,"config",void 0),this.config=Object.assign(a.defaultConfig,t)}async getAssMeta(){const{convertHexColorForStyle:t}=await Promise.resolve().then(n.t.bind(n,726,23)),e=t(this.config.color),o=t("#000000",this.config.opacity),r=[],a=(10*(this.config.size-3)+48)*this.config.height/720;console.log(a);for(const[t,n]of Object.entries(i))r.push(`Style: ${t},微软雅黑,${a},${e},${e},${o},${o},0,0,0,0,100,100,0,0,3,${this.config.boxPadding},0,${n},${this.config.boxMargin},${this.config.boxMargin},${this.config.boxMargin},0`);return`\n[Script Info]\n; Script generated by Bilibili Evolved Danmaku Converter\n; https://github.com/the1812/Bilibili-Evolved/\nTitle: ${this.config.title}\nScriptType: v4.00+\nPlayResX: ${this.config.width}\nPlayResY: ${this.config.height}\nTimer: 10.0000\nWrapStyle: 0\nScaledBorderAndShadow: no\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n${r.join("\n")}\n\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text`.trim()}async convertToAss(t){const{convertTimeByEndTime:e,normalizeContent:o}=await Promise.resolve().then(n.t.bind(n,726,23));return`${await this.getAssMeta()}\n${t.map((t=>{const[n,r]=e(t.from,t.to);var a;return`Dialogue: 0,${n},${r},${a=this.config.location,Object.entries(i).filter((t=>{let[,e]=t;return e===a})).map((t=>{let[e]=t;return e})).shift()},,0,0,0,,${o(t.content)}`})).join("\n")}`}}o(a,"defaultConfig",void 0),a.defaultConfig={title:"",color:"#ffffff",width:1920,height:1080,size:r.Medium,opacity:.5,location:i.BottomCenter,boxPadding:1,boxMargin:32}},533:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"multiple-widgets"},[e("DefaultWidget",{attrs:{disabled:t.disabled,name:"下载字幕 (JSON)",icon:"subtitle"},on:{click:function(e){return t.download("json")}}}),t._v(" "),e("DefaultWidget",{attrs:{disabled:t.disabled,name:"下载字幕 (ASS)",icon:"subtitle"},on:{click:function(e){return t.download("ass")}}})],1)};o._withStripped=!0;const i=coreApis.pluginApis.data;var r=n(648);const a=coreApis.utils.log;var s=n(674);const l=coreApis.download;var c=n(807);(0,i.addData)("ui.icons",(t=>{t.subtitle=''}));const d=Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({disabled:!1}),methods:{async download(t){try{this.disabled=!0;const e=await(0,c.mE)(t);l.DownloadPackage.single(`${(0,s.getFriendlyTitle)(!0)}.${t}`,e)}catch(t){(0,a.logError)(t)}finally{this.disabled=!1}}}});const u=(0,n(499).Z)(d,o,[],!1,null,null,null).exports},956:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"download-subtitle-config download-video-config-section"},[e("div",{staticClass:"download-video-config-item"},[e("div",{staticClass:"download-video-config-title"},[t._v("字幕:")]),t._v(" "),e("VDropdown",{attrs:{items:t.items},scopedSlots:t._u([{key:"item",fn:function({item:e}){return[t._v("\n "+t._s(e)+"\n ")]}}]),model:{value:t.type,callback:function(e){t.type=e},expression:"type"}})],1)])};o._withStripped=!0;const i=coreApis.settings;var r=n(648);const a=(0,i.getComponentSettings)("downloadVideo").options,s=Vue.extend({components:{VDropdown:r.VDropdown},data:()=>({type:a.subtitleType??"无",items:["无","ass","json"]}),computed:{enabled(){return"无"!==this.type}},watch:{type(t){a.subtitleType=t}}});var l=n(332),c=n.n(l),d=n(912),u=n.n(d),f={insert:"head",singleton:!1};c()(u(),f);u().locals;const p=(0,n(499).Z)(s,o,[],!1,null,null,null).exports},499:(t,e,n)=>{"use strict";function o(t,e,n,o,i,r,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>o})},332:(t,e,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=673,t.exports=e},132:t=>{"use strict";t.exports="启用下载字幕支持, 在视频页面中可从功能面板里下载字幕. (AI 生成的不可下载)\n"},726:t=>{"use strict";t.exports=coreApis.componentApis.video.assUtils},833:t=>{"use strict";t.exports=coreApis.componentApis.video.playerAgent},391:t=>{"use strict";t.exports=coreApis.toast},648:t=>{"use strict";t.exports=coreApis.ui},674:t=>{"use strict";t.exports=coreApis.utils.title}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>n[t]));return a.default=()=>n,i.d(r,a),r},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>s});const t=coreApis.componentApis.define,e=coreApis.spinQuery;var n=i(391);const o=coreApis.utils.urls;var a=i(807);const s=(0,t.defineComponentMetadata)({name:"downloadSubtitle",displayName:"下载字幕",tags:[componentsTags.video],entry:none,urlInclude:o.videoAndBangumiUrls,widget:{condition:e.hasVideo,component:()=>Promise.resolve().then(i.bind(i,533)).then((t=>t.default))},plugin:{displayName:"下载视频 - 下载字幕支持",setup:t=>{let{addData:e}=t;e("downloadVideo.assets",(async t=>{t.push({name:"downloadSubtitles",displayName:"下载字幕",getAssets:async(t,e)=>{const{type:o,enabled:i}=e;if(!i)return[];const r=n.Toast.info("获取字幕中...","下载字幕");let s=0;const l=await Promise.allSettled(t.map((async e=>{const n=await(0,a.mE)(o,e.input);return s++,r.message=`获取字幕中... (${s}/${t.length})`,{name:`${e.input.title}.${o}`,data:n}}))),c=l.filter((t=>"fulfilled"===t.status)),d=l.filter((t=>"rejected"===t.status));return r.message=`获取完成. 成功 ${c.length} 个, 失败 ${d.length} 个.`,c.map((t=>t.value))},component:()=>Promise.resolve().then(i.bind(i,956)).then((t=>t.default))})}))}},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const t=i(673);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,132,17)).then((t=>t.default))}})()})})(),r=r.component})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=673,t.exports=e},132:t=>{"use strict";t.exports="启用下载字幕支持, 在视频页面中可从功能面板里下载字幕. (AI 生成的不可下载)\n"},726:t=>{"use strict";t.exports=coreApis.componentApis.video.assUtils},833:t=>{"use strict";t.exports=coreApis.componentApis.video.playerAgent},391:t=>{"use strict";t.exports=coreApis.toast},648:t=>{"use strict";t.exports=coreApis.ui},674:t=>{"use strict";t.exports=coreApis.utils.title}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>n[t]));return a.default=()=>n,i.d(r,a),r},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.d(r,{component:()=>s});const t=coreApis.componentApis.define,e=coreApis.spinQuery;var n=i(391);const o=coreApis.utils.urls;var a=i(807);const s=(0,t.defineComponentMetadata)({name:"downloadSubtitle",displayName:"下载字幕",tags:[componentsTags.video],entry:none,urlInclude:o.videoAndBangumiUrls,widget:{condition:e.hasVideo,component:()=>Promise.resolve().then(i.bind(i,533)).then((t=>t.default))},plugin:{displayName:"下载视频 - 下载字幕支持",setup:t=>{let{addData:e}=t;e("downloadVideo.assets",(async t=>{t.push({name:"downloadSubtitles",displayName:"下载字幕",getAssets:async(t,e)=>{const{type:o,enabled:i}=e;if(!i)return[];const r=n.Toast.info("获取字幕中...","下载字幕");let s=0;const l=await Promise.allSettled(t.map((async e=>{const n=await(0,a.mE)(o,e.input);return s++,r.message=`获取字幕中... (${s}/${t.length})`,{name:`${e.input.title}.${o}`,data:n}}))),c=l.filter((t=>"fulfilled"===t.status)),d=l.filter((t=>"rejected"===t.status));return r.message=`获取完成. 成功 ${c.length} 个, 失败 ${d.length} 个.`,c.map((t=>t.value))},component:()=>Promise.resolve().then(i.bind(i,956)).then((t=>t.default))})}))}},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const t=i(673);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,132,17)).then((t=>t.default))}})()})})(),r=r.component})())); \ No newline at end of file diff --git a/registry/dist/plugins/feeds/filter/hide-charge-feeds.js b/registry/dist/plugins/feeds/filter/hide-charge-feeds.js index dac01c84e..eda36cb2d 100644 --- a/registry/dist/plugins/feeds/filter/hide-charge-feeds.js +++ b/registry/dist/plugins/feeds/filter/hide-charge-feeds.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/filter/hide-charge-feeds"]=t():e["feeds/filter/hide-charge-feeds"]=t()}(globalThis,(()=>(()=>{var e,t,o={522:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=522,e.exports=t},701:e=>{"use strict";e.exports="移除动态里的充电专属动态, 装有 `动态过滤器` 时生效.\n"},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var d=r[e]={exports:{}};return o[e](d,d.exports,n),d.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var d=Object.create(null);n.r(d);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,n.d(d,s),d},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";n.d(d,{plugin:()=>e});const e={name:"feedsFilter.pluginBlocks.chargeFeeds",displayName:"动态过滤器 - 移除充电专属动态",async setup(){const{forEachFeedsCard:e,getVueData:t}=await Promise.resolve().then(n.t.bind(n,799,23));e({added:e=>{const o=t(e.element);3===lodash.get(o,"data.modules.module_dynamic.major.blocked.blocked_type",null)&&e.element.classList.add("plugin-block")}})},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(522);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,701,17)).then((e=>e.default))}})()}})(),d=d.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/filter/hide-charge-feeds"]=t():e["feeds/filter/hide-charge-feeds"]=t()}(globalThis,(()=>(()=>{var e,t,o={522:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=522,e.exports=t},701:e=>{"use strict";e.exports="移除动态里的充电专属动态, 装有 `动态过滤器` 时生效.\n"},799:e=>{"use strict";e.exports=coreApis.componentApis.feeds.api}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var d=r[e]={exports:{}};return o[e](d,d.exports,n),d.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var d=Object.create(null);n.r(d);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>o[e]));return s.default=()=>o,n.d(d,s),d},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";n.d(d,{plugin:()=>e});const e={name:"feedsFilter.pluginBlocks.chargeFeeds",displayName:"动态过滤器 - 移除充电专属动态",async setup(){const{forEachFeedsCard:e,getVueData:t}=await Promise.resolve().then(n.t.bind(n,799,23));e({added:e=>{const o=t(e.element);3===lodash.get(o,"data.modules.module_dynamic.major.blocked.blocked_type",null)&&e.element.classList.add("plugin-block")}})},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(522);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,701,17)).then((e=>e.default))}})()}})(),d=d.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/audio-search.js b/registry/dist/plugins/launch-bar/audio-search.js index 0dbdef094..9527bd425 100644 --- a/registry/dist/plugins/launch-bar/audio-search.js +++ b/registry/dist/plugins/launch-bar/audio-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/audio-search"]=t():e["launch-bar/audio-search"]=t()}(globalThis,(()=>(()=>{var e,t,o={408:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=408,e.exports=t},500:e=>{"use strict";e.exports="在输入音频的 au 号或播放列表的 am 号时, 提供对应的跳转选项.\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{plugin:()=>o});const e=coreApis.ajax,t=e=>{const{name:t,displayName:o,description:r,indexer:n,link:i}=e;return{name:t||n,displayName:o,icon:"mdi-open-in-new",indexer:n,description:r,action:()=>{window.open(i,"_blank")},order:0}},o={name:"launchBar.actions.audioSearch",displayName:"搜索栏 - 音频跳转",async setup(o){let{addData:r}=o;r("launchBar.actions",(o=>{o.push({name:"audioSearchProvider",getActions:async o=>{const{match:r,type:n,id:i,indexer:a}=((e,t)=>{const o=e.match(t);if(!o)return{};const r=o[1],n=o[2];return{match:o,type:r,id:n,indexer:`${r}${n}`}})(o,/^(a[um])(\d+)$/);if(!r)return[];const c=await(0,e.getJson)("am"===n?`https://www.bilibili.com/audio/music-service-c/web/menu/info?sid=${i}`:`https://www.bilibili.com/audio/music-service-c/web/song/info?sid=${i}`),{title:s}=lodash.get(c,"data",{});return[t({name:s,description:"am"===n?"播放列表跳转":"音频跳转",link:`https://www.bilibili.com/audio/${a}`,indexer:a})]}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(408);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,500,17)).then((e=>e.default))}})()}})(),i=i.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/audio-search"]=t():e["launch-bar/audio-search"]=t()}(globalThis,(()=>(()=>{var e,t,o={408:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=408,e.exports=t},500:e=>{"use strict";e.exports="在输入音频的 au 号或播放列表的 am 号时, 提供对应的跳转选项.\n"}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{plugin:()=>o});const e=coreApis.ajax,t=e=>{const{name:t,displayName:o,description:r,indexer:n,link:i}=e;return{name:t||n,displayName:o,icon:"mdi-open-in-new",indexer:n,description:r,action:()=>{window.open(i,"_blank")},order:0}},o={name:"launchBar.actions.audioSearch",displayName:"搜索栏 - 音频跳转",async setup(o){let{addData:r}=o;r("launchBar.actions",(o=>{o.push({name:"audioSearchProvider",getActions:async o=>{const{match:r,type:n,id:i,indexer:a}=((e,t)=>{const o=e.match(t);if(!o)return{};const r=o[1],n=o[2];return{match:o,type:r,id:n,indexer:`${r}${n}`}})(o,/^(a[um])(\d+)$/);if(!r)return[];const c=await(0,e.getJson)("am"===n?`https://www.bilibili.com/audio/music-service-c/web/menu/info?sid=${i}`:`https://www.bilibili.com/audio/music-service-c/web/song/info?sid=${i}`),{title:s}=lodash.get(c,"data",{});return[t({name:s,description:"am"===n?"播放列表跳转":"音频跳转",link:`https://www.bilibili.com/audio/${a}`,indexer:a})]}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(408);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,500,17)).then((e=>e.default))}})()}})(),i=i.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/bangumi-search.js b/registry/dist/plugins/launch-bar/bangumi-search.js index 7ffccd95e..86bf0abdd 100644 --- a/registry/dist/plugins/launch-bar/bangumi-search.js +++ b/registry/dist/plugins/launch-bar/bangumi-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/bangumi-search"]=t():e["launch-bar/bangumi-search"]=t()}(globalThis,(()=>(()=>{var e,t,i={706:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=706,e.exports=t},521:e=>{"use strict";e.exports="在输入番剧的 ss 号 / ep 号, 或番剧详情的 md 号时, 提供对应的跳转选项.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,r),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,r.d(o,a),o},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.d(o,{plugin:()=>i});const e=coreApis.ajax,t=e=>{const{name:t,displayName:i,description:n,indexer:r,link:o}=e;return{name:t||r,displayName:i,icon:"mdi-open-in-new",indexer:r,description:n,action:()=>{window.open(o,"_blank")},order:0}},i={name:"launchBar.actions.bangumiSearch",displayName:"搜索栏 - 番剧跳转",async setup(i){let{addData:n}=i;n("launchBar.actions",(i=>{i.push({name:"bangumiSearchProvider",getActions:async i=>{const{match:n,type:r,id:o,indexer:a}=((e,t)=>{const i=e.match(t);if(!i)return{};const n=i[1],r=i[2];return{match:i,type:n,id:r,indexer:`${n}${r}`}})(i,/^(md|ss|ep)(\d+)$/);if(!n)return[];if("md"===r){const i=await(0,e.getJson)(`https://api.bilibili.com/pgc/review/user?media_id=${o}`),{title:n}=lodash.get(i,"result.media",{});return[t({name:n,description:"番剧详情跳转",link:`https://www.bilibili.com/bangumi/media/${a}`,indexer:a})]}if("ep"===r){const i=await(0,e.getJson)(`https://api.bilibili.com/pgc/view/web/season?ep_id=${o}`),n=lodash.get(i,"result.episodes",[]).find((e=>e.id.toString()===o));return[t({name:n?.share_copy,description:"番剧跳转",link:`https://www.bilibili.com/bangumi/play/${a}`,indexer:a})]}const s=await(0,e.getJson)(`https://api.bilibili.com/pgc/view/web/season?season_id=${o}`),{title:c}=lodash.get(s,"result",{});return[t({name:c,description:"番剧跳转",link:`https://www.bilibili.com/bangumi/play/${a}`,indexer:a})]}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(706);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,521,17)).then((e=>e.default))}})()}})(),o=o.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/bangumi-search"]=t():e["launch-bar/bangumi-search"]=t()}(globalThis,(()=>(()=>{var e,t,i={706:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=706,e.exports=t},521:e=>{"use strict";e.exports="在输入番剧的 ss 号 / ep 号, 或番剧详情的 md 号时, 提供对应的跳转选项.\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,r),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,r.d(o,a),o},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.d(o,{plugin:()=>i});const e=coreApis.ajax,t=e=>{const{name:t,displayName:i,description:n,indexer:r,link:o}=e;return{name:t||r,displayName:i,icon:"mdi-open-in-new",indexer:r,description:n,action:()=>{window.open(o,"_blank")},order:0}},i={name:"launchBar.actions.bangumiSearch",displayName:"搜索栏 - 番剧跳转",async setup(i){let{addData:n}=i;n("launchBar.actions",(i=>{i.push({name:"bangumiSearchProvider",getActions:async i=>{const{match:n,type:r,id:o,indexer:a}=((e,t)=>{const i=e.match(t);if(!i)return{};const n=i[1],r=i[2];return{match:i,type:n,id:r,indexer:`${n}${r}`}})(i,/^(md|ss|ep)(\d+)$/);if(!n)return[];if("md"===r){const i=await(0,e.getJson)(`https://api.bilibili.com/pgc/review/user?media_id=${o}`),{title:n}=lodash.get(i,"result.media",{});return[t({name:n,description:"番剧详情跳转",link:`https://www.bilibili.com/bangumi/media/${a}`,indexer:a})]}if("ep"===r){const i=await(0,e.getJson)(`https://api.bilibili.com/pgc/view/web/season?ep_id=${o}`),n=lodash.get(i,"result.episodes",[]).find((e=>e.id.toString()===o));return[t({name:n?.share_copy,description:"番剧跳转",link:`https://www.bilibili.com/bangumi/play/${a}`,indexer:a})]}const s=await(0,e.getJson)(`https://api.bilibili.com/pgc/view/web/season?season_id=${o}`),{title:c}=lodash.get(s,"result",{});return[t({name:c,description:"番剧跳转",link:`https://www.bilibili.com/bangumi/play/${a}`,indexer:a})]}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(706);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,521,17)).then((e=>e.default))}})()}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/cv-search.js b/registry/dist/plugins/launch-bar/cv-search.js index 23bbeb8c0..a1ecdd045 100644 --- a/registry/dist/plugins/launch-bar/cv-search.js +++ b/registry/dist/plugins/launch-bar/cv-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/cv-search"]=t():e["launch-bar/cv-search"]=t()}(globalThis,(()=>(()=>{var e,t,r={560:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=560,e.exports=t},436:e=>{"use strict";e.exports="在输入专栏的 cv 号或专栏文集的 rl 号时, 提供对应的跳转选项.\n"}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";i.d(o,{plugin:()=>r});const e=coreApis.ajax,t=e=>{const{name:t,displayName:r,description:n,indexer:i,link:o}=e;return{name:t||i,displayName:r,icon:"mdi-open-in-new",indexer:i,description:n,action:()=>{window.open(o,"_blank")},order:0}},r={name:"launchBar.actions.cvSearch",displayName:"搜索栏 - 专栏跳转",async setup(r){let{addData:n}=r;n("launchBar.actions",(r=>{r.push({name:"cvSearchProvider",getActions:async r=>{const{match:n,type:i,id:o,indexer:a}=((e,t)=>{const r=e.match(t);if(!r)return{};const n=r[1],i=r[2];return{match:r,type:n,id:i,indexer:`${n}${i}`}})(r,/^(cv|rl)(\d+)$/);if(!n)return[];if("rl"===i){const r=await(0,e.getJson)(`https://api.bilibili.com/x/article/list/web/articles?id=${o}`),{name:n}=lodash.get(r,"data.list",{});return[t({name:n,description:"文集跳转",link:`https://www.bilibili.com/read/readlist/${a}`,indexer:a})]}const c=await(0,e.getJson)(`https://api.bilibili.com/x/article/viewinfo?id=${o}`),{title:s}=lodash.get(c,"data",{});return[t({name:s,description:"专栏跳转",link:`https://www.bilibili.com/read/${a}`,indexer:a})]}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=i(560);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,436,17)).then((e=>e.default))}})()}})(),o=o.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/cv-search"]=t():e["launch-bar/cv-search"]=t()}(globalThis,(()=>(()=>{var e,t,r={560:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=560,e.exports=t},436:e=>{"use strict";e.exports="在输入专栏的 cv 号或专栏文集的 rl 号时, 提供对应的跳转选项.\n"}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";i.d(o,{plugin:()=>r});const e=coreApis.ajax,t=e=>{const{name:t,displayName:r,description:n,indexer:i,link:o}=e;return{name:t||i,displayName:r,icon:"mdi-open-in-new",indexer:i,description:n,action:()=>{window.open(o,"_blank")},order:0}},r={name:"launchBar.actions.cvSearch",displayName:"搜索栏 - 专栏跳转",async setup(r){let{addData:n}=r;n("launchBar.actions",(r=>{r.push({name:"cvSearchProvider",getActions:async r=>{const{match:n,type:i,id:o,indexer:a}=((e,t)=>{const r=e.match(t);if(!r)return{};const n=r[1],i=r[2];return{match:r,type:n,id:i,indexer:`${n}${i}`}})(r,/^(cv|rl)(\d+)$/);if(!n)return[];if("rl"===i){const r=await(0,e.getJson)(`https://api.bilibili.com/x/article/list/web/articles?id=${o}`),{name:n}=lodash.get(r,"data.list",{});return[t({name:n,description:"文集跳转",link:`https://www.bilibili.com/read/readlist/${a}`,indexer:a})]}const c=await(0,e.getJson)(`https://api.bilibili.com/x/article/viewinfo?id=${o}`),{title:s}=lodash.get(c,"data",{});return[t({name:s,description:"专栏跳转",link:`https://www.bilibili.com/read/${a}`,indexer:a})]}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=i(560);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(i.t.bind(i,436,17)).then((e=>e.default))}})()}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/number-search.js b/registry/dist/plugins/launch-bar/number-search.js index c19725714..31783d338 100644 --- a/registry/dist/plugins/launch-bar/number-search.js +++ b/registry/dist/plugins/launch-bar/number-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/number-search"]=t():e["launch-bar/number-search"]=t()}(globalThis,(()=>(()=>{var e,t,i={123:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=123,e.exports=t},731:e=>{"use strict";e.exports="在输入纯数字时, 提供以下选项:\n- 跳转至相应的视频 (视为 av 号)\n- 跳转至相应的专栏 (视为 cv 号)\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return i[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var a=Object.create(null);r.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&i;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>o[e]=()=>i[e]));return o.default=()=>i,r.d(a,o),a},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.d(a,{plugin:()=>i});const e=coreApis.ajax,t=e=>{const{name:t,displayName:i,description:n,indexer:r,link:a}=e;return{name:t||r,displayName:i,icon:"mdi-open-in-new",indexer:r,description:n,action:()=>{window.open(a,"_blank")},order:0}},i={name:"launchBar.actions.numberSearch",displayName:"搜索栏 - 数字联想",async setup(i){let{addData:n}=i;n("launchBar.actions",(i=>{i.push({name:"numberSearchProvider",getActions:async i=>{const{match:n,id:r,indexer:a}=((e,t)=>{const i=e.match(t);if(!i)return{};const n=i[1],r=i[2];return{match:i,type:n,id:r,indexer:`${n}${r}`}})(i,/^()(\d+)$/);if(!n)return[];const[o,c,d]=await Promise.all([await(0,e.getJsonWithCredentials)(`https://api.bilibili.com/x/web-interface/view?aid=${r}`),await(0,e.getJson)(`https://api.bilibili.com/x/article/viewinfo?id=${r}`),await(0,e.getJson)(`https://api.bilibili.com/x/web-interface/card?mid=${r}`)]),{title:s}=lodash.get(o,"data",{}),{title:l}=lodash.get(c,"data",{}),{name:p}=lodash.get(d,"data.card",{}),m=e=>e?`numberSearchAction.${e}`:e;return[t({name:m(s),displayName:s,description:"视频跳转",link:`https://www.bilibili.com/av${r}`,indexer:a}),t({name:m(r),displayName:r,description:"直播间跳转",link:`https://live.bilibili.com/${r}`,indexer:a}),t({name:m(l),displayName:l,description:"专栏跳转",link:`https://www.bilibili.com/read/cv${r}`,indexer:a}),t({name:m(p),displayName:p,description:"用户跳转",link:`https://space.bilibili.com/${r}`,indexer:a})]}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=r(123);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,731,17)).then((e=>e.default))}})()}})(),a=a.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/number-search"]=t():e["launch-bar/number-search"]=t()}(globalThis,(()=>(()=>{var e,t,i={123:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=123,e.exports=t},731:e=>{"use strict";e.exports="在输入纯数字时, 提供以下选项:\n- 跳转至相应的视频 (视为 av 号)\n- 跳转至相应的专栏 (视为 cv 号)\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,r),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&i;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,r.d(o,a),o},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.d(o,{plugin:()=>i});const e=coreApis.ajax,t=e=>{const{name:t,displayName:i,description:n,indexer:r,link:o}=e;return{name:t||r,displayName:i,icon:"mdi-open-in-new",indexer:r,description:n,action:()=>{window.open(o,"_blank")},order:0}},i={name:"launchBar.actions.numberSearch",displayName:"搜索栏 - 数字联想",async setup(i){let{addData:n}=i;n("launchBar.actions",(i=>{i.push({name:"numberSearchProvider",getActions:async i=>{const{match:n,id:r,indexer:o}=((e,t)=>{const i=e.match(t);if(!i)return{};const n=i[1],r=i[2];return{match:i,type:n,id:r,indexer:`${n}${r}`}})(i,/^()(\d+)$/);if(!n)return[];const[a,c,d]=await Promise.all([await(0,e.getJsonWithCredentials)(`https://api.bilibili.com/x/web-interface/view?aid=${r}`),await(0,e.getJson)(`https://api.bilibili.com/x/article/viewinfo?id=${r}`),await(0,e.getJson)(`https://api.bilibili.com/x/web-interface/card?mid=${r}`)]),{title:s}=lodash.get(a,"data",{}),{title:l}=lodash.get(c,"data",{}),{name:p}=lodash.get(d,"data.card",{}),m=e=>e?`numberSearchAction.${e}`:e;return[t({name:m(s),displayName:s,description:"视频跳转",link:`https://www.bilibili.com/av${r}`,indexer:o}),t({name:m(r),displayName:r,description:"直播间跳转",link:`https://live.bilibili.com/${r}`,indexer:o}),t({name:m(l),displayName:l,description:"专栏跳转",link:`https://www.bilibili.com/read/cv${r}`,indexer:o}),t({name:m(p),displayName:p,description:"用户跳转",link:`https://space.bilibili.com/${r}`,indexer:o})]}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=r(123);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,731,17)).then((e=>e.default))}})()}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/trending-search.js b/registry/dist/plugins/launch-bar/trending-search.js index f50c834b1..edfaf175d 100644 --- a/registry/dist/plugins/launch-bar/trending-search.js +++ b/registry/dist/plugins/launch-bar/trending-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/trending-search"]=t():e["launch-bar/trending-search"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,r={375:e=>{e.exports=coreApis.ajax}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var n=Object.create(null);a.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(n,i),n},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.d(n,{plugin:()=>e});const e={name:"launchBar.trendingSearch",displayName:"搜索栏 - 搜索推荐",description:'在脚本的搜索栏中默认显示类似 b 站搜索栏的搜索推荐词, 替代原来的 "搜索" 两字.',setup:e=>{let{addData:t}=e;t("launchBar.recommended",(async e=>{const{getJson:t}=await Promise.resolve().then(a.t.bind(a,375,23)),r=await t("https://api.bilibili.com/x/web-interface/search/default");if(0===r.code){let t;e.word=r.data.show_name,t=""!==r.data.url?r.data.url:r.data.name.startsWith("av")?`https://www.bilibili.com/${r.data.name}`:`https://search.bilibili.com/all?keyword=${r.data.name}`,e.href=t}else console.error("获取搜索推荐词失败")}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),n=n.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/trending-search"]=t():e["launch-bar/trending-search"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,r={375:e=>{e.exports=coreApis.ajax}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var n=Object.create(null);a.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(n,i),n},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.d(n,{plugin:()=>e});const e={name:"launchBar.trendingSearch",displayName:"搜索栏 - 搜索推荐",description:'在脚本的搜索栏中默认显示类似 b 站搜索栏的搜索推荐词, 替代原来的 "搜索" 两字.',setup:e=>{let{addData:t}=e;t("launchBar.recommended",(async e=>{const{getJson:t}=await Promise.resolve().then(a.t.bind(a,375,23)),r=await t("https://api.bilibili.com/x/web-interface/search/default");if(0===r.code){let t;e.word=r.data.show_name,t=""!==r.data.url?r.data.url:r.data.name.startsWith("av")?`https://www.bilibili.com/${r.data.name}`:`https://search.bilibili.com/all?keyword=${r.data.name}`,e.href=t}else console.error("获取搜索推荐词失败")}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),n=n.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/launch-bar/uid-search.js b/registry/dist/plugins/launch-bar/uid-search.js index 31e7b9ef4..6a5804905 100644 --- a/registry/dist/plugins/launch-bar/uid-search.js +++ b/registry/dist/plugins/launch-bar/uid-search.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/uid-search"]=t():e["launch-bar/uid-search"]=t()}(globalThis,(()=>(()=>{var e,t,r={272:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=272,e.exports=t},321:e=>{"use strict";e.exports="在输入 UID (用户 ID) 时, 提供对应的跳转选项.\n"}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{plugin:()=>r});const e=coreApis.ajax,t=e=>{const{name:t,displayName:r,description:n,indexer:o,link:i}=e;return{name:t||o,displayName:r,icon:"mdi-open-in-new",indexer:o,description:n,action:()=>{window.open(i,"_blank")},order:0}},r={name:"launchBar.actions.uidSearch",displayName:"搜索栏 - UID 跳转",async setup(r){let{addData:n}=r;n("launchBar.actions",(r=>{r.push({name:"uidSearchProvider",getActions:async r=>{const{match:n,id:o,indexer:i}=((e,t)=>{const r=e.match(t);if(!r)return{};const n=r[1],o=r[2];return{match:r,type:n,id:o,indexer:`${n}${o}`}})(r,/^(uid)(\d+)$/);if(!n)return[];const a=await(0,e.getJson)(`https://api.bilibili.com/x/space/wbi/acc/info?mid=${o}`),{name:c}=lodash.get(a,"data",{});return[t({name:c,description:"用户跳转",link:`https://space.bilibili.com/${o}`,indexer:i})]}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=o(272);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,321,17)).then((e=>e.default))}})()}})(),i=i.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["launch-bar/uid-search"]=t():e["launch-bar/uid-search"]=t()}(globalThis,(()=>(()=>{var e,t,r={272:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=272,e.exports=t},321:e=>{"use strict";e.exports="在输入 UID (用户 ID) 时, 提供对应的跳转选项.\n"}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{plugin:()=>r});const e=coreApis.ajax,t=e=>{const{name:t,displayName:r,description:n,indexer:o,link:i}=e;return{name:t||o,displayName:r,icon:"mdi-open-in-new",indexer:o,description:n,action:()=>{window.open(i,"_blank")},order:0}},r={name:"launchBar.actions.uidSearch",displayName:"搜索栏 - UID 跳转",async setup(r){let{addData:n}=r;n("launchBar.actions",(r=>{r.push({name:"uidSearchProvider",getActions:async r=>{const{match:n,id:o,indexer:i}=((e,t)=>{const r=e.match(t);if(!r)return{};const n=r[1],o=r[2];return{match:r,type:n,id:o,indexer:`${n}${o}`}})(r,/^(uid)(\d+)$/);if(!n)return[];const a=await(0,e.getJson)(`https://api.bilibili.com/x/space/wbi/acc/info?mid=${o}`),{name:c}=lodash.get(a,"data",{});return[t({name:c,description:"用户跳转",link:`https://space.bilibili.com/${o}`,indexer:i})]}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=o(272);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,321,17)).then((e=>e.default))}})()}})(),i=i.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/settings-panel/recent-components.js b/registry/dist/plugins/settings-panel/recent-components.js index 288910bc1..39dc18741 100644 --- a/registry/dist/plugins/settings-panel/recent-components.js +++ b/registry/dist/plugins/settings-panel/recent-components.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["settings-panel/recent-components"]=t():e["settings-panel/recent-components"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,n={986:e=>{e.exports=coreApis.settings}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return n[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(a,s),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.d(a,{plugin:()=>e});const e={name:"settingsPanel.tagFilters.recentComponents",displayName:'设置面板 - "最近使用" 类别',description:'在设置面板中添加 "最近使用" 类别, 方便检索最近操作过的组件.',setup:e=>{let{addData:t,addHook:n}=e;const o=async()=>{const{getGeneralSettings:e}=await Promise.resolve().then(r.t.bind(r,986,23)),t=e();return t.recentComponents||(t.recentComponents={}),t.recentComponents};n("settingsPanel.componentDetail.open",{after:async e=>{(await o())[e]=Number(new Date)}}),n("userComponents.add",{after:async(e,t,n)=>{(await o())[n.name]=Number(new Date)}}),n("userComponents.remove",{after:async e=>{delete(await o())[e.name]}}),t("settingsPanel.tagFilters",(async e=>{const t=await o();e.unshift((e=>{let{renderedComponents:n}=e;return{name:"recent",displayName:"最近",color:"inherit",icon:"mdi-clock-outline",order:0,count:n.length,filter:e=>lodash.sortBy(e,(e=>t[e.name]??0)).reverse()}}))}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),a=a.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["settings-panel/recent-components"]=t():e["settings-panel/recent-components"]=t()}(globalThis,(()=>(()=>{"use strict";var e,t,n={986:e=>{e.exports=coreApis.settings}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return n[e](a,a.exports,r),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(a,s),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.d(a,{plugin:()=>e});const e={name:"settingsPanel.tagFilters.recentComponents",displayName:'设置面板 - "最近使用" 类别',description:'在设置面板中添加 "最近使用" 类别, 方便检索最近操作过的组件.',setup:e=>{let{addData:t,addHook:n}=e;const o=async()=>{const{getGeneralSettings:e}=await Promise.resolve().then(r.t.bind(r,986,23)),t=e();return t.recentComponents||(t.recentComponents={}),t.recentComponents};n("settingsPanel.componentDetail.open",{after:async e=>{(await o())[e]=Number(new Date)}}),n("userComponents.add",{after:async(e,t,n)=>{(await o())[n.name]=Number(new Date)}}),n("userComponents.remove",{after:async e=>{delete(await o())[e.name]}}),t("settingsPanel.tagFilters",(async e=>{const t=await o();e.unshift((e=>{let{renderedComponents:n}=e;return{name:"recent",displayName:"最近",color:"inherit",icon:"mdi-clock-outline",order:0,count:n.length,filter:e=>lodash.sortBy(e,(e=>t[e.name]??0)).reverse()}}))}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),a=a.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/style/custom-navbar-channel.js b/registry/dist/plugins/style/custom-navbar-channel.js index ea76445f8..4747f1b05 100644 --- a/registry/dist/plugins/style/custom-navbar-channel.js +++ b/registry/dist/plugins/style/custom-navbar-channel.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/custom-navbar-channel"]=t():e["style/custom-navbar-channel"]=t()}(globalThis,(()=>(()=>{"use strict";var e={527:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"navbar-channel",attrs:{"data-channel-id":e.channelId}},[e._v("频道")])};o._withStripped=!0;const a=coreApis.ajax;var r=function(e,t,n,o,a,r,i,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(Vue.extend({data:()=>({channelId:null}),async created(){const{channel_id:e}=await(0,a.bilibiliApi)((0,a.getJsonWithCredentials)("https://api.bilibili.com/x/web-interface/web/channel/red"));e&&(this.channelId=e)}}),o,[],!1,null,null,null);const i=r.exports}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.d(o,{plugin:()=>t});const e=coreApis.settings,t={name:"customNavbar.items.channel",displayName:"自定义顶栏 - 频道",description:"为自定义顶栏添加一个频道入口.",async setup(t){let{addData:o}=t;o("customNavbar.items",(t=>{const o="https://www.bilibili.com/v/channel/",a="channel";t.push({name:"channel",displayName:"频道",content:()=>Promise.resolve().then(n.bind(n,527)),clickAction:()=>{const t=dq(".navbar-channel").getAttribute("data-channel-id");window.open(t?`${o}${t}`:o,(()=>{const{options:t}=(0,e.getComponentSettings)("customNavbar");return a in t.openInNewTabOverrides?t.openInNewTabOverrides[a]:t.openInNewTab})()?"_blank":"_self")}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/custom-navbar-channel"]=t():e["style/custom-navbar-channel"]=t()}(globalThis,(()=>(()=>{"use strict";var e={527:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"navbar-channel",attrs:{"data-channel-id":e.channelId}},[e._v("频道")])};o._withStripped=!0;const a=coreApis.ajax;var r=function(e,t,n,o,a,r,i,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(Vue.extend({data:()=>({channelId:null}),async created(){const{channel_id:e}=await(0,a.bilibiliApi)((0,a.getJsonWithCredentials)("https://api.bilibili.com/x/web-interface/web/channel/red"));e&&(this.channelId=e)}}),o,[],!1,null,null,null);const i=r.exports}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.d(o,{plugin:()=>t});const e=coreApis.settings,t={name:"customNavbar.items.channel",displayName:"自定义顶栏 - 频道",description:"为自定义顶栏添加一个频道入口.",async setup(t){let{addData:o}=t;o("customNavbar.items",(t=>{const o="https://www.bilibili.com/v/channel/",a="channel";t.push({name:"channel",displayName:"频道",content:()=>Promise.resolve().then(n.bind(n,527)),clickAction:()=>{const t=dq(".navbar-channel").getAttribute("data-channel-id");window.open(t?`${o}${t}`:o,(()=>{const{options:t}=(0,e.getComponentSettings)("customNavbar");return a in t.openInNewTabOverrides?t.openInNewTabOverrides[a]:t.openInNewTab})()?"_blank":"_self")}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/style/custom-navbar-dark-mode.js b/registry/dist/plugins/style/custom-navbar-dark-mode.js index e801be2b5..ec6840334 100644 --- a/registry/dist/plugins/style/custom-navbar-dark-mode.js +++ b/registry/dist/plugins/style/custom-navbar-dark-mode.js @@ -4,9 +4,9 @@ e.exports=function(e){var t=[];return t.toString=function(){return this.map((fun // eslint-disable-next-line func-names t.i=function(e,n,r){"string"==typeof e&&( // eslint-disable-next-line no-param-reassign -e=[[null,e,""]]);var a={};if(r)for(var o=0;o{"use strict";n.r(t),n.d(t,{default:()=>f});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"navbar-dark-mode",attrs:{title:e.dark?"关闭夜间模式":"开启夜间模式"}},[e.dark?t("svg",{staticStyle:{width:"18px"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47.96 47.96"}},[t("path",{attrs:{d:"M24,12A12,12,0,1,0,36,24,12,12,0,0,0,24,12Zm0,20a8,8,0,1,1,8-8A8,8,0,0,1,24,32Z"}}),e._v(" "),t("path",{attrs:{d:"M24,9a2,2,0,0,0,2-2V4a2,2,0,0,0-4,0V7A2,2,0,0,0,24,9Z"}}),e._v(" "),t("path",{attrs:{d:"M36,14a2,2,0,0,0,1.42-.59l2.12-2.12a2,2,0,1,0-2.83-2.83l-2.12,2.12A2,2,0,0,0,36,14Z"}}),e._v(" "),t("path",{attrs:{d:"M44,22H41a2,2,0,0,0,0,4h3a2,2,0,1,0,0-4Z"}}),e._v(" "),t("path",{attrs:{d:"M37.4,34.61a2,2,0,1,0-2.83,2.82l2.12,2.13a2,2,0,0,0,2.83-2.83Z"}}),e._v(" "),t("path",{attrs:{d:"M24,39a2,2,0,0,0-2,2v3a2,2,0,0,0,4,0V41A2,2,0,0,0,24,39Z"}}),e._v(" "),t("path",{attrs:{d:"M10.53,34.61,8.41,36.73a2,2,0,0,0,0,2.83,2,2,0,0,0,2.82,0l2.13-2.13a2,2,0,1,0-2.83-2.82Z"}}),e._v(" "),t("path",{attrs:{d:"M9,24a2,2,0,0,0-2-2H4a2,2,0,0,0,0,4H7A2,2,0,0,0,9,24Z"}}),e._v(" "),t("path",{attrs:{d:"M10.53,13.39a2,2,0,0,0,1.41.59,2,2,0,0,0,1.42-3.42L11.23,8.44a2,2,0,0,0-2.82,2.83Z"}})]):t("svg",{staticStyle:{width:"18px"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M24.48,42.18A18.66,18.66,0,0,1,22.11,5,2,2,0,0,1,23.56,8.6,11.32,11.32,0,1,0,39.4,24.44,2,2,0,0,1,43,25.89,18.68,18.68,0,0,1,24.48,42.18ZM16.36,11.32A14.66,14.66,0,1,0,36.68,31.64,15.35,15.35,0,0,1,15,17.68,15.2,15.2,0,0,1,16.36,11.32Z"}})])])};r._withStripped=!0;var a=n(986);const o=Vue.extend({data:()=>({dark:(0,a.getComponentSettings)("darkMode").enabled}),created(){(0,a.addComponentListener)("darkMode",(e=>{this.dark=e}))}});var i=n(332),s=n.n(i),d=n(713),c=n.n(d),l={insert:"head",singleton:!1};s()(c(),l);c().locals;var u=function(e,t,n,r,a,o,i,s){var d,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):a&&(d=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(c.functional){c._injectStyles=d;var l=c.render;c.render=function(e,t){return d.call(t),l(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:c}}(o,r,[],!1,null,null,null);const f=u.exports},332:(e,t,n)=>{"use strict";var r,a=function(){return void 0===r&&( +var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s{"use strict";n.r(t),n.d(t,{default:()=>f});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"navbar-dark-mode",attrs:{title:e.dark?"关闭夜间模式":"开启夜间模式"}},[e.dark?t("svg",{staticStyle:{width:"18px"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47.96 47.96"}},[t("path",{attrs:{d:"M24,12A12,12,0,1,0,36,24,12,12,0,0,0,24,12Zm0,20a8,8,0,1,1,8-8A8,8,0,0,1,24,32Z"}}),e._v(" "),t("path",{attrs:{d:"M24,9a2,2,0,0,0,2-2V4a2,2,0,0,0-4,0V7A2,2,0,0,0,24,9Z"}}),e._v(" "),t("path",{attrs:{d:"M36,14a2,2,0,0,0,1.42-.59l2.12-2.12a2,2,0,1,0-2.83-2.83l-2.12,2.12A2,2,0,0,0,36,14Z"}}),e._v(" "),t("path",{attrs:{d:"M44,22H41a2,2,0,0,0,0,4h3a2,2,0,1,0,0-4Z"}}),e._v(" "),t("path",{attrs:{d:"M37.4,34.61a2,2,0,1,0-2.83,2.82l2.12,2.13a2,2,0,0,0,2.83-2.83Z"}}),e._v(" "),t("path",{attrs:{d:"M24,39a2,2,0,0,0-2,2v3a2,2,0,0,0,4,0V41A2,2,0,0,0,24,39Z"}}),e._v(" "),t("path",{attrs:{d:"M10.53,34.61,8.41,36.73a2,2,0,0,0,0,2.83,2,2,0,0,0,2.82,0l2.13-2.13a2,2,0,1,0-2.83-2.82Z"}}),e._v(" "),t("path",{attrs:{d:"M9,24a2,2,0,0,0-2-2H4a2,2,0,0,0,0,4H7A2,2,0,0,0,9,24Z"}}),e._v(" "),t("path",{attrs:{d:"M10.53,13.39a2,2,0,0,0,1.41.59,2,2,0,0,0,1.42-3.42L11.23,8.44a2,2,0,0,0-2.82,2.83Z"}})]):t("svg",{staticStyle:{width:"18px"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M24.48,42.18A18.66,18.66,0,0,1,22.11,5,2,2,0,0,1,23.56,8.6,11.32,11.32,0,1,0,39.4,24.44,2,2,0,0,1,43,25.89,18.68,18.68,0,0,1,24.48,42.18ZM16.36,11.32A14.66,14.66,0,1,0,36.68,31.64,15.35,15.35,0,0,1,15,17.68,15.2,15.2,0,0,1,16.36,11.32Z"}})])])};r._withStripped=!0;var o=n(986);const a=Vue.extend({data:()=>({dark:(0,o.getComponentSettings)("darkMode").enabled}),created(){(0,o.addComponentListener)("darkMode",(e=>{this.dark=e}))}});var i=n(332),s=n.n(i),c=n(713),d=n.n(c),l={insert:"head",singleton:!1};s()(d(),l);d().locals;var u=function(e,t,n,r,o,a,i,s){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):o&&(c=s?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}(a,r,[],!1,null,null,null);const f=u.exports},332:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.settings}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,exports:{}};return n[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";a.d(o,{plugin:()=>e});const e={name:"customNavbar.items.darkMode",displayName:"自定义顶栏 - 夜间模式开关",description:"为自定义顶栏添加一个夜间模式开关, 方便快速切换夜间模式.",async setup(e){let{addData:t}=e;const{getComponentSettings:n}=await Promise.resolve().then(a.t.bind(a,986,23));t("customNavbar.items",(e=>{e.push({name:"darkMode",displayName:"夜间开关",content:()=>Promise.resolve().then(a.bind(a,179)),clickAction:()=>{const e=n("darkMode");e.enabled=!e.enabled}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file +r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.settings}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{plugin:()=>e});const e={name:"customNavbar.items.darkMode",displayName:"自定义顶栏 - 夜间模式开关",description:"为自定义顶栏添加一个夜间模式开关, 方便快速切换夜间模式.",async setup(e){let{addData:t}=e;const{getComponentSettings:n}=await Promise.resolve().then(o.t.bind(o,986,23));t("customNavbar.items",(e=>{e.push({name:"darkMode",displayName:"夜间开关",content:()=>Promise.resolve().then(o.bind(o,179)),clickAction:()=>{const e=n("darkMode");e.enabled=!e.enabled}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),a=a.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/utils/keymap-dark-mode.js b/registry/dist/plugins/utils/keymap-dark-mode.js index aa39a51ab..387301adb 100644 --- a/registry/dist/plugins/utils/keymap-dark-mode.js +++ b/registry/dist/plugins/utils/keymap-dark-mode.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["utils/keymap-dark-mode"]=o():e["utils/keymap-dark-mode"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var a in t)e.o(t,a)&&!e.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:t[a]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{plugin:()=>t});const t={name:"keymap.actions.darkMode",displayName:"快捷键扩展 - 夜间模式",description:'在快捷键的动作列表里添加一个 "夜间模式", 可以通过快捷键切换夜间模式',setup:e=>{let{addData:o,coreApis:{settings:t}}=e;o("keymap.actions",(e=>{e.darkMode={displayName:"夜间模式",run:()=>{const e=t.getComponentSettings("darkMode");e.enabled=!e.enabled}}})),o("keymap.presets",(e=>{e.darkMode=""}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return o=o.plugin})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["utils/keymap-dark-mode"]=o():e["utils/keymap-dark-mode"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var a in t)e.o(t,a)&&!e.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:t[a]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{plugin:()=>t});const t={name:"keymap.actions.darkMode",displayName:"快捷键扩展 - 夜间模式",description:'在快捷键的动作列表里添加一个 "夜间模式", 可以通过快捷键切换夜间模式',setup:e=>{let{addData:o,coreApis:{settings:t}}=e;o("keymap.actions",(e=>{e.darkMode={displayName:"夜间模式",run:()=>{const e=t.getComponentSettings("darkMode");e.enabled=!e.enabled}}})),o("keymap.presets",(e=>{e.darkMode=""}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/utils/keymap-empty-action.ts.js b/registry/dist/plugins/utils/keymap-empty-action.ts.js index aa0ef6590..54adb1d12 100644 --- a/registry/dist/plugins/utils/keymap-empty-action.ts.js +++ b/registry/dist/plugins/utils/keymap-empty-action.ts.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-empty-action.ts"]=t():e["utils/keymap-empty-action.ts"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>o});const o={name:"keymap.actions.empty",displayName:"快捷键扩展 - 无动作",description:'在快捷键的动作列表里添加一个 "无动作", 将按键绑定到这个上面就可以阻止原有的快捷键行为.',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.empty={displayName:"无动作",prevent:!0,run:none}})),t("keymap.presets",(e=>{e.empty=""}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-empty-action.ts"]=t():e["utils/keymap-empty-action.ts"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var p in o)e.o(o,p)&&!e.o(t,p)&&Object.defineProperty(t,p,{enumerable:!0,get:o[p]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>o});const o={name:"keymap.actions.empty",displayName:"快捷键扩展 - 无动作",description:'在快捷键的动作列表里添加一个 "无动作", 将按键绑定到这个上面就可以阻止原有的快捷键行为.',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.empty={displayName:"无动作",prevent:!0,run:none}})),t("keymap.presets",(e=>{e.empty=""}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/utils/keymap-toggle-danmaku-list.js b/registry/dist/plugins/utils/keymap-toggle-danmaku-list.js index 090f4a994..fbac069c0 100644 --- a/registry/dist/plugins/utils/keymap-toggle-danmaku-list.js +++ b/registry/dist/plugins/utils/keymap-toggle-danmaku-list.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-danmaku-list"]=t():e["utils/keymap-toggle-danmaku-list"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>a});const a={name:"keymap.actions.toggleDanmakuList",displayName:"快捷键扩展 - 开关弹幕列表",description:'在快捷键的动作列表里添加一个 "开关弹幕列表".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.toggleDanmakuList={displayName:"开关弹幕列表",run:async()=>{const e=dq(".bui-collapse-header");return e?.click(),e}}})),t("keymap.presets",((e,t)=>{e.toggleDanmakuList="shift d",t.HTML5Player.toggleDanmakuList="",t.PotPlayer.toggleDanmakuList=""}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-danmaku-list"]=t():e["utils/keymap-toggle-danmaku-list"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>a});const a={name:"keymap.actions.toggleDanmakuList",displayName:"快捷键扩展 - 开关弹幕列表",description:'在快捷键的动作列表里添加一个 "开关弹幕列表".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.toggleDanmakuList={displayName:"开关弹幕列表",run:async()=>{const e=dq(".bui-collapse-header");return e?.click(),e}}})),t("keymap.presets",((e,t)=>{e.toggleDanmakuList="shift d",t.HTML5Player.toggleDanmakuList="",t.PotPlayer.toggleDanmakuList=""}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/utils/keymap-toggle-player-light.js b/registry/dist/plugins/utils/keymap-toggle-player-light.js index e72f8df21..987eeba25 100644 --- a/registry/dist/plugins/utils/keymap-toggle-player-light.js +++ b/registry/dist/plugins/utils/keymap-toggle-player-light.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-player-light"]=t():e["utils/keymap-toggle-player-light"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>a});const o=coreApis.componentApis.video.playerLight,a={name:"keymap.actions.togglePlayerLight",displayName:"快捷键扩展 - 开关灯",description:'在快捷键的动作列表里添加一个 "开关灯".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.togglePlayerLight={displayName:"开关灯",run:async()=>{(0,o.toggleLight)()}}})),t("keymap.presets",(e=>{e.togglePlayerLight="shift l"}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-player-light"]=t():e["utils/keymap-toggle-player-light"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>i});const o=coreApis.componentApis.video.playerLight,i={name:"keymap.actions.togglePlayerLight",displayName:"快捷键扩展 - 开关灯",description:'在快捷键的动作列表里添加一个 "开关灯".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.togglePlayerLight={displayName:"开关灯",run:async()=>{(0,o.toggleLight)()}}})),t("keymap.presets",(e=>{e.togglePlayerLight="shift l"}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/utils/keymap-toggle-subtitle.js b/registry/dist/plugins/utils/keymap-toggle-subtitle.js index 9437a8a1f..9edd1bcb0 100644 --- a/registry/dist/plugins/utils/keymap-toggle-subtitle.js +++ b/registry/dist/plugins/utils/keymap-toggle-subtitle.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-subtitle"]=t():e["utils/keymap-toggle-subtitle"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>i});const o=coreApis.componentApis.video.playerAgent,i={name:"keymap.actions.toggleSubtitle",displayName:"快捷键扩展 - 开关 CC 字幕",description:'在快捷键的动作列表里添加一个 "开关 CC 字幕".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.toggleSubtitle={displayName:"开关 CC 字幕",run:async()=>{const e=o.playerAgent.query.control.buttons.subtitle.sync();return e?.click(),e}}})),t("keymap.presets",((e,t)=>{e.toggleSubtitle="shift c",t.YouTube.toggleSubtitle="c",t.YouTube.coin="",t.PotPlayer.toggleSubtitle="alt h"}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/keymap-toggle-subtitle"]=t():e["utils/keymap-toggle-subtitle"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>i});const o=coreApis.componentApis.video.playerAgent,i={name:"keymap.actions.toggleSubtitle",displayName:"快捷键扩展 - 开关 CC 字幕",description:'在快捷键的动作列表里添加一个 "开关 CC 字幕".',setup:e=>{let{addData:t}=e;t("keymap.actions",(e=>{e.toggleSubtitle={displayName:"开关 CC 字幕",run:async()=>{const e=o.playerAgent.query.control.buttons.subtitle.sync();return e?.click(),e}}})),t("keymap.presets",((e,t)=>{e.toggleSubtitle="shift c",t.YouTube.toggleSubtitle="c",t.YouTube.coin="",t.PotPlayer.toggleSubtitle="alt h"}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/v-loading/reimu.js b/registry/dist/plugins/v-loading/reimu.js index 7ebc85ebf..26b181fe7 100644 --- a/registry/dist/plugins/v-loading/reimu.js +++ b/registry/dist/plugins/v-loading/reimu.js @@ -9,4 +9,4 @@ A=[[null,A,""]]);var g={};if(C)for(var E=0;E{"use strict";Q.r(I),Q.d(I,{default:()=>h});var C=function(){this._self._c;return this._m(0)};C._withStripped=!0;var g=Q(332),E=Q.n(g),B=Q(615),M=Q.n(B),D={insert:"head",singleton:!1};E()(M(),D);M().locals;var i=function(A,I,Q,C,g,E,B,M){var D,i="function"==typeof A?A.options:A;if(I&&(i.render=I,i.staticRenderFns=Q,i._compiled=!0),C&&(i.functional=!0),E&&(i._scopeId="data-v-"+E),B?(D=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),g&&g.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(B)},i._ssrRegister=D):g&&(D=M?function(){g.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:g),D)if(i.functional){i._injectStyles=D;var h=i.render;i.render=function(A,I){return D.call(I),h(A,I)}}else{var w=i.beforeCreate;i.beforeCreate=w?[].concat(w,D):[D]}return{exports:A,options:i}}({},C,[function(){var A=this._self._c;return A("div",{staticClass:"reimu-loading"},[A("div",{staticClass:"reimu-icon"}),this._v("\n 少女祈祷中...\n")])}],!1,null,null,null);const h=i.exports},332:(A,I,Q)=>{"use strict";var C,g=function(){return void 0===C&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -C=Boolean(window&&document&&document.all&&!window.atob)),C},E=function(){var A={};return function(I){if(void 0===A[I]){var Q=document.querySelector(I);if(window.HTMLIFrameElement&&Q instanceof window.HTMLIFrameElement)try{Q=Q.contentDocument.head}catch(A){Q=null}A[I]=Q}return A[I]}}(),B=[];function M(A){for(var I=-1,Q=0;Q{var I=A&&A.__esModule?()=>A.default:()=>A;return Q.d(I,{a:I}),I},Q.d=(A,I)=>{for(var C in I)Q.o(I,C)&&!Q.o(A,C)&&Object.defineProperty(A,C,{enumerable:!0,get:I[C]})},Q.o=(A,I)=>Object.prototype.hasOwnProperty.call(A,I),Q.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var C={};return(()=>{"use strict";Q.d(C,{plugin:()=>A});const A={name:"vLoading.reimu",displayName:"加载提示 - 灵梦油库里",description:'用灵梦油库里代替脚本的所有 "加载中" 提示, 油库里素材来自[东方我乐多从志](https://cn.touhougarakuta.com/).',setup:A=>{let{addData:I}=A;I("vLoading",(A=>{A.content=()=>Promise.resolve().then(Q.bind(Q,814)).then((A=>A.default))}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),C=C.plugin})())); \ No newline at end of file +C=Boolean(window&&document&&document.all&&!window.atob)),C},E=function(){var A={};return function(I){if(void 0===A[I]){var Q=document.querySelector(I);if(window.HTMLIFrameElement&&Q instanceof window.HTMLIFrameElement)try{Q=Q.contentDocument.head}catch(A){Q=null}A[I]=Q}return A[I]}}(),B=[];function M(A){for(var I=-1,Q=0;Q{var I=A&&A.__esModule?()=>A.default:()=>A;return Q.d(I,{a:I}),I},Q.d=(A,I)=>{for(var C in I)Q.o(I,C)&&!Q.o(A,C)&&Object.defineProperty(A,C,{enumerable:!0,get:I[C]})},Q.o=(A,I)=>Object.prototype.hasOwnProperty.call(A,I),Q.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var C={};return(()=>{"use strict";Q.d(C,{plugin:()=>A});const A={name:"vLoading.reimu",displayName:"加载提示 - 灵梦油库里",description:'用灵梦油库里代替脚本的所有 "加载中" 提示, 油库里素材来自[东方我乐多从志](https://cn.touhougarakuta.com/).',setup:A=>{let{addData:I}=A;I("vLoading",(A=>{A.content=()=>Promise.resolve().then(Q.bind(Q,814)).then((A=>A.default))}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),C=C.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/aria2-output.js b/registry/dist/plugins/video/download/aria2-output.js index c322c7f6f..244408f01 100644 --- a/registry/dist/plugins/video/download/aria2-output.js +++ b/registry/dist/plugins/video/download/aria2-output.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var r={};if(o)for(var i=0;i{"use strict";n.r(t),n.d(t,{default:()=>P});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"rpc-config download-video-config-section"},[e.isRenaming?t("div",{staticClass:"profile-select"},[t("div",{staticClass:"profile-item-name"},[e._v("重命名 RPC 预设:")]),e._v(" "),t("TextBox",{ref:"renameInput",model:{value:e.profileRename,callback:function(t){e.profileRename=t},expression:"profileRename"}}),e._v(" "),t("VButton",{key:"check",attrs:{type:"transparent",title:"完成"},on:{click:function(t){return e.endRename()}}},[t("VIcon",{attrs:{icon:"mdi-check",size:16}})],1)],1):t("div",{staticClass:"profile-select"},[t("div",{staticClass:"profile-item-name"},[e._v("RPC 预设:")]),e._v(" "),t("VDropdown",{attrs:{items:e.rpcProfiles},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t.name)+"\n ")]}}]),model:{value:e.selectedRpcProfile,callback:function(t){e.selectedRpcProfile=t},expression:"selectedRpcProfile"}}),e._v(" "),t("VButton",{key:"edit",attrs:{type:"transparent",title:"重命名"},on:{click:function(t){return e.startRename()}}},[t("VIcon",{attrs:{icon:"mdi-pencil-outline",size:16}})],1),e._v(" "),t("VButton",{key:"new",attrs:{type:"transparent",title:"新建预设"},on:{click:function(t){return e.newProfile()}}},[t("VIcon",{attrs:{icon:"mdi-plus",size:16}})],1),e._v(" "),t("VButton",{key:"delete",attrs:{disabled:e.rpcProfiles.length<2,type:"transparent",title:"删除当前预设"},on:{click:function(t){return e.deleteProfile()}}},[t("VIcon",{attrs:{icon:"mdi-trash-can-outline",size:16}})],1)],1),e._v(" "),e.selectedRpcProfile?[t("div",{staticClass:"profile-secret-key"},[t("div",{staticClass:"profile-item-name"},[e._v("密钥:")]),e._v(" "),t("TextBox",{attrs:{"change-on-blur":""},model:{value:e.selectedRpcProfile.secretKey,callback:function(t){e.$set(e.selectedRpcProfile,"secretKey",t)},expression:"selectedRpcProfile.secretKey"}})],1),e._v(" "),t("div",{staticClass:"profile-dir"},[t("div",{staticClass:"profile-item-name"},[e._v("路径:")]),e._v(" "),t("TextBox",{attrs:{"change-on-blur":""},model:{value:e.selectedRpcProfile.dir,callback:function(t){e.$set(e.selectedRpcProfile,"dir",t)},expression:"selectedRpcProfile.dir"}})],1),e._v(" "),t("div",{staticClass:"profile-host"},[t("div",{staticClass:"profile-item-name"},[e._v("主机:")]),e._v(" "),t("TextBox",{attrs:{"change-on-blur":""},model:{value:e.selectedRpcProfile.host,callback:function(t){e.$set(e.selectedRpcProfile,"host",t)},expression:"selectedRpcProfile.host"}})],1),e._v(" "),t("div",{staticClass:"profile-port"},[t("div",{staticClass:"profile-item-name"},[e._v("端口:")]),e._v(" "),t("TextBox",{attrs:{"change-on-blur":""},model:{value:e.selectedRpcProfile.port,callback:function(t){e.$set(e.selectedRpcProfile,"port",t)},expression:"selectedRpcProfile.port"}})],1),e._v(" "),t("div",{staticClass:"profile-method"},[t("div",{staticClass:"profile-item-name"},[e._v("方法:")]),e._v(" "),t("VDropdown",{attrs:{items:["get","post"],"key-mapper":e=>e},scopedSlots:e._u([{key:"item",fn:function({item:t}){return[e._v("\n "+e._s(t)+"\n ")]}}],null,!1,883355439),model:{value:e.selectedRpcProfile.method,callback:function(t){e.$set(e.selectedRpcProfile,"method",t)},expression:"selectedRpcProfile.method"}})],1),e._v(" "),t("div",{staticClass:"profile-other"},[t("div",{staticClass:"profile-item-name"},[e._v("其他配置:")]),e._v(" "),t("TextArea",{attrs:{placeholder:"some-key=value","change-on-blur":""},model:{value:e.selectedRpcProfile.other,callback:function(t){e.$set(e.selectedRpcProfile,"other",t)},expression:"selectedRpcProfile.other"}})],1)]:e._e()],2)};o._withStripped=!0;const r=coreApis.settings;var i=n(391);const s=coreApis.ui,a={name:"未命名",secretKey:"",dir:"",host:"127.0.0.1",port:"6800",method:"get",other:""},{options:c}=(0,r.getComponentSettings)("downloadVideo"),l={...{rpcProfiles:[a],selectedRpcProfileName:a.name},...c},d=l.rpcProfiles.find((e=>e.name===l.selectedRpcProfileName))??(l.rpcProfiles.length<1?(l.rpcProfiles.push(a),a):l.rpcProfiles[0]);console.log(l,d);const p=Vue.extend({components:{TextBox:s.TextBox,VButton:s.VButton,VIcon:s.VIcon,VDropdown:s.VDropdown,TextArea:s.TextArea},data:()=>({isRenaming:!1,profileRename:"",rpcProfiles:l.rpcProfiles,selectedRpcProfile:d}),methods:{saveSettings(){l.selectedRpcProfileName=this.selectedRpcProfile.name,l.rpcProfiles=this.rpcProfiles,Object.assign(c,l)},async startRename(){this.profileRename=this.selectedRpcProfile.name,this.isRenaming=!0,await this.$nextTick(),this.$refs.renameInput?.focus()},endRename(){const e=this.profileRename;e?l.rpcProfiles.some((t=>t.name!==this.selectedRpcProfile.name&&t.name===e))?i.Toast.error("名称不得与其他预设重复","重命名 RPC 预设",2e3):(this.selectedRpcProfile.name=this.profileRename,this.isRenaming=!1,this.saveSettings()):i.Toast.error("名称不得为空","重命名 RPC 预设",2e3)},newProfile(){const e={...this.selectedRpcProfile},t={num:1,toString(){return`未命名${this.num}`}};for(;l.rpcProfiles.some((e=>e.name===t.toString()));)t.num++;e.name=t.toString(),l.rpcProfiles.push(e),this.selectedRpcProfile=e},deleteProfile(){if(l.rpcProfiles.length<2)return;const e=l.rpcProfiles.findIndex((e=>e.name===this.selectedRpcProfile.name));-1!==e&&confirm(`确认删除 RPC 预设 "${this.selectedRpcProfile.name}" 吗?`)&&(l.rpcProfiles.splice(e,1),this.selectedRpcProfile=l.rpcProfiles[0])}}});var f=n(332),u=n.n(f),m=n(375),h=n.n(m),v={insert:"head",singleton:!1};u()(h(),v);h().locals;var g=function(e,t,n,o,r,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(p,o,[],!1,null,null,null);const P=g.exports},332:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.toast}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>h});const e=coreApis.download,t=coreApis.utils.constants,r=coreApis.utils.title,i={name:"aria2",displayName:"aria2 Input",description:"使用 aria2 命令行输入文件开始下载. (aria2c -i xxx.txt)",runAction:async n=>{const{infos:o}=n,i=document.URL.replace(window.location.search,""),s=`\n# Generated by Bilibili Evolved Video Export\n# https://github.com/the1812/Bilibili-Evolved/\n${o.map((e=>e.titledFragments.map((e=>({url:e.url,params:{referer:i,userAgent:t.UserAgent,out:e.title}}))).flat().map((e=>{const t=Object.entries(e.params).map((e=>{let[t,n]=e;return` ${lodash.kebabCase(t)}=${n}`})).join("\n");return`${e.url}\n${t}`})))).flat().join("\n")}`.trim();await e.DownloadPackage.single(`${(0,r.getFriendlyTitle)()}.txt`,s)}},s=coreApis.ajax;var a=n(391);const c=coreApis.utils.log,l=e=>{const t=e.host.match(/^http[s]?:\/\//)?e.host:`http://${e.host}`;return{option:e,host:t,methodName:"aria2.addUri"}},d=async(e,t)=>{try{let n=await t();return"string"==typeof n&&(n=JSON.parse(n)),void 0!==n.error?1===n.error.code?{param:e,success:!1,message:"请求遭到拒绝, 请检查您的密钥相关设置."}:{param:e,success:!1,message:`请求发生错误, code = ${n.error.code}, message = ${n.error.message}`}:{param:e,success:!0,message:n.result}}catch(t){return{param:e,success:!1,message:`无法连接到RPC主机, error = ${t.toString()}`}}},p=async(e,t)=>{const{option:n,host:o,methodName:r}=l(e);return d(t,(async()=>{const e=window.btoa(unescape(encodeURIComponent(JSON.stringify(t.params)))),i=`${o}:${n.port}/jsonrpc?method=${r}&id=${t.id}¶ms=${e}`;return console.log(`RPC request: ${i}`),i.startsWith("http:")?(0,s.monkey)({method:"GET",url:i,responseType:"json"}):(0,s.getJson)(i)}))},f=async(e,t)=>{const{option:n,host:o,methodName:r}=l(e);return d(t,(async()=>{const e=`${o}:${n.port}/jsonrpc`,i={method:r,id:t.id,params:t.params};return e.startsWith("http:")?(0,s.monkey)({method:"POST",url:e,responseType:"json",data:JSON.stringify(i)}):(0,s.postJson)(e,i)}))},u=e=>{if(!e)return{};const t=e.split("\n").map((e=>{const[t,...n]=e.trim().split("=");return[t.trim(),n.join("=").trim()]})).filter((e=>Boolean(e[1])));return Object.fromEntries(t)},m={name:"aria2Rpc",displayName:"aria2 RPC",description:"使用 aria2 RPC 功能发送下载请求.",runAction:async(e,n)=>{const{infos:o}=e,{selectedRpcProfile:r}=n,{secretKey:i,dir:s,other:l}=r,d=document.URL.replace(window.location.search,""),m=o.map((e=>e.titledFragments.map((e=>{const n=[];i&&n.push(`token:${i}`),n.push([e.url]),n.push({referer:d,"user-agent":t.UserAgent,out:e.title,dir:s||void 0,...u(l)});return{params:n,id:encodeURIComponent(e.title)}})))).flat(),h=await(async(e,t)=>{const n=[];for(const o of t){let t;t="get"===e.method?await p(e,o):await f(e,o),n.push(t)}return n})(r,m);if(console.table(h),1===h.length){const e=h[0];e.success?a.Toast.success(`成功发送了请求, GID = ${e.message}`,"aria2 RPC",5e3):(0,c.logError)(e.message)}else{const e=h.filter((e=>e.success)).length,t=h.length-e;a.Toast.info(`发送了 ${h.length} 个请求, 成功 ${e} 个, 失败 ${t} 个.`,"aria2 RPC",5e3)}},component:()=>Promise.resolve().then(n.bind(n,841)).then((e=>e.default))},h={name:"downloadVideo.outputs.aria2",displayName:"下载视频 - aria2 输出支持",description:"为下载视频增加 aria2 文件导出和 RPC 输出支持.",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(i),e.push(m)}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";e.exports=coreApis.toast}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>h});const e=coreApis.download,t=coreApis.utils.constants,r=coreApis.utils.title,i={name:"aria2",displayName:"aria2 Input",description:"使用 aria2 命令行输入文件开始下载. (aria2c -i xxx.txt)",runAction:async n=>{const{infos:o}=n,i=document.URL.replace(window.location.search,""),s=`\n# Generated by Bilibili Evolved Video Export\n# https://github.com/the1812/Bilibili-Evolved/\n${o.map((e=>e.titledFragments.map((e=>({url:e.url,params:{referer:i,userAgent:t.UserAgent,out:e.title}}))).flat().map((e=>{const t=Object.entries(e.params).map((e=>{let[t,n]=e;return` ${lodash.kebabCase(t)}=${n}`})).join("\n");return`${e.url}\n${t}`})))).flat().join("\n")}`.trim();await e.DownloadPackage.single(`${(0,r.getFriendlyTitle)()}.txt`,s)}},s=coreApis.ajax;var a=n(391);const c=coreApis.utils.log,l=e=>{const t=e.host.match(/^http[s]?:\/\//)?e.host:`http://${e.host}`;return{option:e,host:t,methodName:"aria2.addUri"}},d=async(e,t)=>{try{let n=await t();return"string"==typeof n&&(n=JSON.parse(n)),void 0!==n.error?1===n.error.code?{param:e,success:!1,message:"请求遭到拒绝, 请检查您的密钥相关设置."}:{param:e,success:!1,message:`请求发生错误, code = ${n.error.code}, message = ${n.error.message}`}:{param:e,success:!0,message:n.result}}catch(t){return{param:e,success:!1,message:`无法连接到RPC主机, error = ${t.toString()}`}}},p=async(e,t)=>{const{option:n,host:o,methodName:r}=l(e);return d(t,(async()=>{const e=window.btoa(unescape(encodeURIComponent(JSON.stringify(t.params)))),i=`${o}:${n.port}/jsonrpc?method=${r}&id=${t.id}¶ms=${e}`;return console.log(`RPC request: ${i}`),i.startsWith("http:")?(0,s.monkey)({method:"GET",url:i,responseType:"json"}):(0,s.getJson)(i)}))},f=async(e,t)=>{const{option:n,host:o,methodName:r}=l(e);return d(t,(async()=>{const e=`${o}:${n.port}/jsonrpc`,i={method:r,id:t.id,params:t.params};return e.startsWith("http:")?(0,s.monkey)({method:"POST",url:e,responseType:"json",data:JSON.stringify(i)}):(0,s.postJson)(e,i)}))},u=e=>{if(!e)return{};const t=e.split("\n").map((e=>{const[t,...n]=e.trim().split("=");return[t.trim(),n.join("=").trim()]})).filter((e=>Boolean(e[1])));return Object.fromEntries(t)},m={name:"aria2Rpc",displayName:"aria2 RPC",description:"使用 aria2 RPC 功能发送下载请求.",runAction:async(e,n)=>{const{infos:o}=e,{selectedRpcProfile:r}=n,{secretKey:i,dir:s,other:l}=r,d=document.URL.replace(window.location.search,""),m=o.map((e=>e.titledFragments.map((e=>{const n=[];i&&n.push(`token:${i}`),n.push([e.url]),n.push({referer:d,"user-agent":t.UserAgent,out:e.title,dir:s||void 0,...u(l)});return{params:n,id:encodeURIComponent(e.title)}})))).flat(),h=await(async(e,t)=>{const n=[];for(const o of t){let t;t="get"===e.method?await p(e,o):await f(e,o),n.push(t)}return n})(r,m);if(console.table(h),1===h.length){const e=h[0];e.success?a.Toast.success(`成功发送了请求, GID = ${e.message}`,"aria2 RPC",5e3):(0,c.logError)(e.message)}else{const e=h.filter((e=>e.success)).length,t=h.length-e;a.Toast.info(`发送了 ${h.length} 个请求, 成功 ${e} 个, 失败 ${t} 个.`,"aria2 RPC",5e3)}},component:()=>Promise.resolve().then(n.bind(n,841)).then((e=>e.default))},h={name:"downloadVideo.outputs.aria2",displayName:"下载视频 - aria2 输出支持",description:"为下载视频增加 aria2 文件导出和 RPC 输出支持.",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(i),e.push(m)}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/empty-output.js b/registry/dist/plugins/video/download/empty-output.js index acf0b84fb..af584f88d 100644 --- a/registry/dist/plugins/video/download/empty-output.js +++ b/registry/dist/plugins/video/download/empty-output.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/download/empty-output"]=t():e["video/download/empty-output"]=t()}(globalThis,(()=>(()=>{var e,t,o={501:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=501,e.exports=t},532:e=>{"use strict";e.exports='提供一个 "空" 的输出选项, 只想获取下载视频的附带产物 (弹幕, 字幕等) 时可以使用此插件.\n'}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var d=r[e]={exports:{}};return o[e](d,d.exports,n),d.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var d=Object.create(null);n.r(d);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,n.d(d,i),d},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";n.d(d,{plugin:()=>e});const e={name:"downloadVideo.outputs.empty",displayName:"下载视频 - 空输出",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push({name:"empty",displayName:"空",description:"不输出视频本身, 仅获取下载视频的附带产物.",runAction:async()=>lodash.noop()})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8",description:(()=>{const e=n(501);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,532,17)).then((e=>e.default))}})()}})(),d=d.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/download/empty-output"]=t():e["video/download/empty-output"]=t()}(globalThis,(()=>(()=>{var e,t,o={501:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=501,e.exports=t},532:e=>{"use strict";e.exports='提供一个 "空" 的输出选项, 只想获取下载视频的附带产物 (弹幕, 字幕等) 时可以使用此插件.\n'}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var d=r[e]={exports:{}};return o[e](d,d.exports,n),d.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var d=Object.create(null);n.r(d);var i={};e=e||[null,t({}),t([]),t(t)];for(var p=2&r&&o;"object"==typeof p&&!~e.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,n.d(d,i),d},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";n.d(d,{plugin:()=>e});const e={name:"downloadVideo.outputs.empty",displayName:"下载视频 - 空输出",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push({name:"empty",displayName:"空",description:"不输出视频本身, 仅获取下载视频的附带产物.",runAction:async()=>lodash.noop()})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8",description:(()=>{const e=n(501);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(n.t.bind(n,532,17)).then((e=>e.default))}})()}})(),d=d.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/idm-output.js b/registry/dist/plugins/video/download/idm-output.js index 94ccdcd42..fbb9513ac 100644 --- a/registry/dist/plugins/video/download/idm-output.js +++ b/registry/dist/plugins/video/download/idm-output.js @@ -1 +1 @@ -!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/download/idm-output"]=o():e["video/download/idm-output"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{plugin:()=>a});const t=coreApis.download,n=coreApis.utils.constants,i=coreApis.utils.title,a={name:"downloadVideo.outputs.idm",displayName:"下载视频 - IDM 输出支持",description:"为下载视频增加 IDM 输出支持.",setup:e=>{let{addData:o}=e;o("downloadVideo.outputs",(e=>{e.push({name:"idm",displayName:"IDM",description:"使用 IDM 的 .ef2 格式导出, 可以在 IDM 中使用导入开始下载.",runAction:async e=>{const{infos:o}=e,a=document.URL.replace(window.location.search,""),d=o.map((e=>e.titledFragments.map((e=>`<\n${e.url}\nreferer: ${a}\nUser-Agent: ${n.UserAgent}\nfilename: ${e.title}\n>`.trim())))).flat().concat("").join("\n").replace(/([^\r])\n/g,"$1\r\n");await t.DownloadPackage.single(`${(0,i.getFriendlyTitle)()}.ef2`,d)}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return o=o.plugin})())); \ No newline at end of file +!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/download/idm-output"]=o():e["video/download/idm-output"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{plugin:()=>d});const t=coreApis.download,n=coreApis.utils.constants,i=coreApis.utils.title,d={name:"downloadVideo.outputs.idm",displayName:"下载视频 - IDM 输出支持",description:"为下载视频增加 IDM 输出支持.",setup:e=>{let{addData:o}=e;o("downloadVideo.outputs",(e=>{e.push({name:"idm",displayName:"IDM",description:"使用 IDM 的 .ef2 格式导出, 可以在 IDM 中使用导入开始下载.",runAction:async e=>{const{infos:o}=e,d=document.URL.replace(window.location.search,""),a=o.map((e=>e.titledFragments.map((e=>`<\n${e.url}\nreferer: ${d}\nUser-Agent: ${n.UserAgent}\nfilename: ${e.title}\n>`.trim())))).flat().concat("").join("\n").replace(/([^\r])\n/g,"$1\r\n");await t.DownloadPackage.single(`${(0,i.getFriendlyTitle)()}.ef2`,a)}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/manual-input.js b/registry/dist/plugins/video/download/manual-input.js index 9038911c3..a6c235666 100644 --- a/registry/dist/plugins/video/download/manual-input.js +++ b/registry/dist/plugins/video/download/manual-input.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>p});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manual-input download-video-config-section"},[t("TextArea",{attrs:{placeholder:"输入 av 号或 BV 号, 空格或换行分隔"},model:{value:e.inputText,callback:function(t){e.inputText=t},expression:"inputText"}}),e._v(" "),t("div",{staticClass:"manual-input-stats download-video-config-description"},[e._v("\n 已输入 "+e._s(e.ids.length)+" 个视频\n ")]),e._v(" "),t("div",{staticClass:"manual-input-description download-video-config-description"},[e._v("\n 手动输入可以自行输入要下载的视频编号, 但下面清晰度的选择依然是以当前视频为准的,\n 所以建议在高清的视频页面里操作. 批量命名格式至少需要包含 title 和 ep 变量.\n ")]),e._v(" "),t("div",{staticClass:"manual-input-description download-video-config-description"},[e._v("\n 一次最多 36 个视频, 请勿短时间进行大量下载, 以免遭到 b 站封禁.\n ")])],1)};i._withStripped=!0;const o=coreApis.ui,r=Vue.extend({components:{TextArea:o.TextArea},data:()=>({inputText:""}),computed:{ids(){const e=this.inputText,t=/(BV.+)|av(\d+)/i;return e.split(/\n| /).map((e=>{const t=e.trim();return/^\d+$/.test(t)?`av${t}`:t})).filter((e=>t.test(e))).map((e=>{const n=e.match(t);return n[1]??n[2]})).slice(0,36)}}});var a=n(332),s=n.n(a),l=n(308),c=n.n(l),d={insert:"head",singleton:!1};s()(c(),d);c().locals;var u=function(e,t,n,i,o,r,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}(r,i,[],!1,null,null,null);const p=u.exports},332:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{plugin:()=>l});const e=coreApis.ajax,t=coreApis.settings,o=coreApis.utils.formatters,r=coreApis.utils.log,a=coreApis.utils.title,s=coreApis.utils.urls,l={name:"downloadVideo.inputs.manual",displayName:"下载视频 - 手动输入",description:"为下载视频增加手动输入支持.",setup:i=>{let{addData:l}=i;l("downloadVideo.inputs",(i=>{i.push({name:"videoManual",displayName:"手动输入",match:s.videoUrls,batch:!0,getInputs:async n=>{const i=(0,r.useScopedConsole)("手动输入"),s=await Promise.allSettled(n.ids.map((t=>/av(\d+)/i.test(t)?(t=>{const n=`https://api.bilibili.com/x/web-interface/view?aid=${t}`;return(0,e.bilibiliApi)((0,e.getJsonWithCredentials)(n),`获取视频信息失败, aid = ${t}`)})(t):/BV(.+)/i.test(t)?(t=>{const n=`https://api.bilibili.com/x/web-interface/view?bvid=${t}`;return(0,e.bilibiliApi)((0,e.getJsonWithCredentials)(n),`获取视频信息失败, bvid = ${t}`)})(t):(i.error(`无效输入: ${t}`),null))));return s.filter((e=>"rejected"===e.status)).forEach((e=>{i.error(e.reason)})),s.filter((e=>"fulfilled"===e.status)).flatMap((e=>{const{aid:n,cid:i,bvid:r,title:s,pages:l}=e.value;if(l.length>1)return l.map(((e,i)=>({aid:n.toString(),cid:e.cid.toString(),bvid:r,allowQualityDrop:!0,title:(0,a.formatTitle)((0,t.getGeneralSettings)().batchFilenameFormat,!1,e.part?{title:s,n:(0,o.formatNumber)(i+1,l.length),ep:e.part}:{title:s})})));return{aid:n.toString(),cid:i.toString(),bvid:r,allowQualityDrop:!0,title:(0,a.formatTitle)((0,t.getGeneralSettings)().batchFilenameFormat,!1,{title:s})}}))},component:()=>Promise.resolve().then(n.bind(n,114)).then((e=>e.default))})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),i=i.plugin})())); \ No newline at end of file +i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.d(i,{plugin:()=>l});const e=coreApis.ajax,t=coreApis.settings,o=coreApis.utils.formatters,r=coreApis.utils.log,a=coreApis.utils.title,s=coreApis.utils.urls,l={name:"downloadVideo.inputs.manual",displayName:"下载视频 - 手动输入",description:"为下载视频增加手动输入支持.",setup:i=>{let{addData:l}=i;l("downloadVideo.inputs",(i=>{i.push({name:"videoManual",displayName:"手动输入",match:s.videoUrls,batch:!0,getInputs:async n=>{const i=(0,r.useScopedConsole)("手动输入"),s=await Promise.allSettled(n.ids.map((t=>/av(\d+)/i.test(t)?(t=>{const n=`https://api.bilibili.com/x/web-interface/view?aid=${t}`;return(0,e.bilibiliApi)((0,e.getJsonWithCredentials)(n),`获取视频信息失败, aid = ${t}`)})(t):/BV(.+)/i.test(t)?(t=>{const n=`https://api.bilibili.com/x/web-interface/view?bvid=${t}`;return(0,e.bilibiliApi)((0,e.getJsonWithCredentials)(n),`获取视频信息失败, bvid = ${t}`)})(t):(i.error(`无效输入: ${t}`),null))));return s.filter((e=>"rejected"===e.status)).forEach((e=>{i.error(e.reason)})),s.filter((e=>"fulfilled"===e.status)).flatMap((e=>{const{aid:n,cid:i,bvid:r,title:s,pages:l}=e.value;if(l.length>1)return l.map(((e,i)=>({aid:n.toString(),cid:e.cid.toString(),bvid:r,allowQualityDrop:!0,title:(0,a.formatTitle)((0,t.getGeneralSettings)().batchFilenameFormat,!1,e.part?{title:s,n:(0,o.formatNumber)(i+1,l.length),ep:e.part}:{title:s})})));return{aid:n.toString(),cid:i.toString(),bvid:r,allowQualityDrop:!0,title:(0,a.formatTitle)((0,t.getGeneralSettings)().batchFilenameFormat,!1,{title:s})}}))},component:()=>Promise.resolve().then(n.bind(n,114)).then((e=>e.default))})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),i=i.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/motrix-output.js b/registry/dist/plugins/video/download/motrix-output.js index 1e4d206bd..68b4bf0b7 100644 --- a/registry/dist/plugins/video/download/motrix-output.js +++ b/registry/dist/plugins/video/download/motrix-output.js @@ -1 +1 @@ -!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/download/motrix-output"]=e():o["video/download/motrix-output"]=e()}(globalThis,(()=>(()=>{"use strict";var o={d:(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e)},e={};o.d(e,{plugin:()=>r});const t=coreApis.toast,r={name:"downloadVideo.outputs.motrix",displayName:"下载视频 - Motrix 输出支持",description:"为下载视频增加 Motrix 输出支持.",setup:o=>{let{addData:e}=o;e("downloadVideo.outputs",(o=>{o.push({name:"motrix",displayName:"Motrix",description:"调用 Motrix 下载.",runAction:async o=>{const e=o.infos.flatMap((o=>o.titledFragments));try{const o=new URLSearchParams({uris:e.map((o=>o.url)).join("\n"),referer:document.URL.replace(window.location.search,"")});window.open(`motrix://new-task?${o.toString()}`,"_self")}catch(o){t.Toast.error(String(o),"发生错误")}}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file +!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/download/motrix-output"]=e():o["video/download/motrix-output"]=e()}(globalThis,(()=>(()=>{"use strict";var o={d:(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e)},e={};o.d(e,{plugin:()=>r});const t=coreApis.toast,r={name:"downloadVideo.outputs.motrix",displayName:"下载视频 - Motrix 输出支持",description:"为下载视频增加 Motrix 输出支持.",setup:o=>{let{addData:e}=o;e("downloadVideo.outputs",(o=>{o.push({name:"motrix",displayName:"Motrix",description:"调用 Motrix 下载.",runAction:async o=>{const e=o.infos.flatMap((o=>o.titledFragments));try{const o=new URLSearchParams({uris:e.map((o=>o.url)).join("\n"),referer:document.URL.replace(window.location.search,"")});window.open(`motrix://new-task?${o.toString()}`,"_self")}catch(o){t.Toast.error(String(o),"发生错误")}}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/mpv-output-ex.js b/registry/dist/plugins/video/download/mpv-output-ex.js index fee5ac89c..c05440a2f 100644 --- a/registry/dist/plugins/video/download/mpv-output-ex.js +++ b/registry/dist/plugins/video/download/mpv-output-ex.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var i={};if(o)for(var a=0;a{"use strict";n.r(t),n.d(t,{default:()=>v});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mpv-ex config"},[t("div",{staticClass:"config-item"},[t("span",{staticClass:"item-name"},[e._v("api_dev_key:")]),e._v(" "),t("TextBox",{on:{blur:e.onChange},model:{value:e.api_dev_key,callback:function(t){e.api_dev_key=t},expression:"api_dev_key"}})],1),e._v(" "),t("div",{staticClass:"config-item"},[t("span",{staticClass:"item-name"},[e._v("api_user_key:")]),e._v(" "),t("TextBox",{on:{blur:e.onChange},model:{value:e.api_user_key,callback:function(t){e.api_user_key=t},expression:"api_user_key"}})],1)])};o._withStripped=!0;const i=coreApis.settings,a=coreApis.ui,{options:r}=(0,i.getComponentSettings)("downloadVideo"),s=Vue.extend({components:{TextBox:a.TextBox},data:()=>({...lodash.pick(r,["api_dev_key","api_user_key"])}),methods:{onChange(){Object.assign(r,lodash.pick(this,["api_dev_key","api_user_key"]))}}});var c=n(332),l=n.n(c),d=n(804),p=n.n(d),u={insert:"head",singleton:!1};l()(p(),u);p().locals;var f=function(e,t,n,o,i,a,r,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(s,o,[],!1,null,null,null);const v=f.exports},332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function s(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>a});const e=coreApis.ajax,t=coreApis.utils.log,i={name:"mpv-ex",displayName:"MPV 输出支持加强版",description:'多文件时格式选择 flv,使用前请先阅读 README',runAction:async(n,o)=>{let i;const a='mpv://--http-header-fields="referer:https://www.bilibili.com/"';if(n.isSingleVideo){const e=n.infos[0].fragments;1===e.length?i=`${a} ${e[0].url}`:2===e.length&&(i=`${a} ${e[0].url} --audio-file=${e[1].url}`)}else{const r=n.infos.reduce(((e,t)=>`${e}#EXTINF:-1,${t.input.title}\n${t.fragments[0].url}\n`),"#EXTM3U\n");try{i=`${a} ${(await(async(t,n)=>{const o=new URLSearchParams;Object.entries({api_dev_key:n.api_dev_key,api_user_key:n.api_user_key,api_folder_key:"m3u",api_option:"paste",api_paste_code:t,api_paste_private:"1",api_paste_expire_date:"10M"}).forEach((e=>{let[t,n]=e;return o.append(t,n)}));const i=await(0,e.monkey)({url:"https://pastebin.com/api/api_post.php",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:o.toString(),nocache:!0,responseType:"text",fetch:!0});if(/^Bad API request,/.test(i))throw i;return i})(r,o)).replace(/^(https:\/\/pastebin.com)\/(.*)/,"$1/raw/$2?.m3u")}`}catch(e){return void(0,t.logError)(e)}}console.log(i),window.open(i)},component:()=>Promise.resolve().then(n.bind(n,522)).then((e=>e.default))},a={name:"downloadVideo.outputs.mpv-ex",displayName:"下载视频 - MPV 输出支持加强版",author:{name:"asuaaa",link:"https://github.com/Asukaaaaaa"},description:"为下载视频增加 MPV 输出,支持导出列表, 配置方式请参考 [README](https://github.com/Asukaaaaaa/tricks/blob/main/Bilibili-Evolved%20mpv-ex%20%E6%8F%92%E4%BB%B6.md)",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(i)}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function s(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>a});const e=coreApis.ajax,t=coreApis.utils.log,i={name:"mpv-ex",displayName:"MPV 输出支持加强版",description:'多文件时格式选择 flv,使用前请先阅读 README',runAction:async(n,o)=>{let i;const a='mpv://--http-header-fields="referer:https://www.bilibili.com/"';if(n.isSingleVideo){const e=n.infos[0].fragments;1===e.length?i=`${a} ${e[0].url}`:2===e.length&&(i=`${a} ${e[0].url} --audio-file=${e[1].url}`)}else{const r=n.infos.reduce(((e,t)=>`${e}#EXTINF:-1,${t.input.title}\n${t.fragments[0].url}\n`),"#EXTM3U\n");try{i=`${a} ${(await(async(t,n)=>{const o=new URLSearchParams;Object.entries({api_dev_key:n.api_dev_key,api_user_key:n.api_user_key,api_folder_key:"m3u",api_option:"paste",api_paste_code:t,api_paste_private:"1",api_paste_expire_date:"10M"}).forEach((e=>{let[t,n]=e;return o.append(t,n)}));const i=await(0,e.monkey)({url:"https://pastebin.com/api/api_post.php",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:o.toString(),nocache:!0,responseType:"text",fetch:!0});if(/^Bad API request,/.test(i))throw i;return i})(r,o)).replace(/^(https:\/\/pastebin.com)\/(.*)/,"$1/raw/$2?.m3u")}`}catch(e){return void(0,t.logError)(e)}}console.log(i),window.open(i)},component:()=>Promise.resolve().then(n.bind(n,522)).then((e=>e.default))},a={name:"downloadVideo.outputs.mpv-ex",displayName:"下载视频 - MPV 输出支持加强版",author:{name:"asuaaa",link:"https://github.com/Asukaaaaaa"},description:"为下载视频增加 MPV 输出,支持导出列表, 配置方式请参考 [README](https://github.com/Asukaaaaaa/tricks/blob/main/Bilibili-Evolved%20mpv-ex%20%E6%8F%92%E4%BB%B6.md)",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(i)}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/mpv-output-playlist.js b/registry/dist/plugins/video/download/mpv-output-playlist.js index 05b892192..bb8ab8888 100644 --- a/registry/dist/plugins/video/download/mpv-output-playlist.js +++ b/registry/dist/plugins/video/download/mpv-output-playlist.js @@ -9,4 +9,4 @@ e=[[null,e,""]]);var i={};if(o)for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"rpc-config download-video-config-section"},[t("div",{staticClass:"profile-dir"},[t("div",{staticClass:"profile-item-name"},[e._v("命令路径:")]),e._v(" "),t("TextBox",{on:{blur:e.saveInfo},model:{value:e.mpvInfo.dir,callback:function(t){e.$set(e.mpvInfo,"dir",t)},expression:"mpvInfo.dir"}})],1),e._v(" "),t("div",{staticClass:"profile-host"},[t("div",{staticClass:"profile-item-name"},[e._v("主机:")]),e._v(" "),t("TextBox",{on:{blur:e.saveInfo},model:{value:e.mpvInfo.host,callback:function(t){e.$set(e.mpvInfo,"host",t)},expression:"mpvInfo.host"}})],1),e._v(" "),t("div",{staticClass:"profile-port"},[t("div",{staticClass:"profile-item-name"},[e._v("端口:")]),e._v(" "),t("TextBox",{on:{blur:e.saveInfo},model:{value:e.mpvInfo.port,callback:function(t){e.$set(e.mpvInfo,"port",t)},expression:"mpvInfo.port"}})],1)])};o._withStripped=!0;const i=coreApis.settings,r=coreApis.ui,{options:s}=(0,i.getComponentSettings)("downloadVideo"),a={dir:"mpv",host:"127.0.0.1",port:"50000",...s},c=Vue.extend({components:{TextBox:r.TextBox},data:()=>({mpvInfo:a}),methods:{saveInfo(){Object.assign(s,a)}}});var l=n(332),d=n.n(l),p=n(552),u=n.n(p),f={insert:"head",singleton:!1};d()(u(),f);u().locals;var v=function(e,t,n,o,i,r,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(c,o,[],!1,null,null,null);const m=v.exports},332:(e,t,n)=>{"use strict";var o,i=function(){return void 0===o&&( // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // @see https://github.com/webpack-contrib/style-loader/issues/177 -o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>a});const e=coreApis.ajax,t=coreApis.toast,i=coreApis.utils.constants,r=coreApis.utils.log,s={name:"mpv-playlist",displayName:"MPV播放",description:"格式选择flv,千万不能选音画分离的dash。建议把mpv.exe所在目录加进环境变量。",runAction:async(n,o)=>{const{infos:s}=n,{mpvInfo:a}=o,c=s.flatMap((e=>e.titledFragments)).map((e=>e.url)),l=s.flatMap((e=>e.titledFragments)).map((e=>e.title)),d={dir:a.dir,referer:"https://www.bilibili.com/","user-agent":i.UserAgent,urls:c,titles:l},p=`http://${a.host}:${a.port}`,u=await(0,e.postJson)(p,d),f=JSON.parse(u);f.success?t.Toast.success(`成功发送了请求: ${f.message}`,"MPV播放",3e3):(0,r.logError)(f.message)},component:()=>Promise.resolve().then(n.bind(n,379)).then((e=>e.default))},a={name:"downloadVideo.outputs.mpv-playlist",displayName:"下载视频 - MPV 播放支持(列表)",author:{name:"wuliic",link:"https://github.com/wullic"},description:"为下载视频增加 MPV 输出支持,支持列表播放,配置方式请参考 [playwithmpv](https://github.com/videoanywhere/playwithmpv)",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(s)}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file +o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.d(o,{plugin:()=>a});const e=coreApis.ajax,t=coreApis.toast,i=coreApis.utils.constants,r=coreApis.utils.log,s={name:"mpv-playlist",displayName:"MPV播放",description:"格式选择flv,千万不能选音画分离的dash。建议把mpv.exe所在目录加进环境变量。",runAction:async(n,o)=>{const{infos:s}=n,{mpvInfo:a}=o,c=s.flatMap((e=>e.titledFragments)).map((e=>e.url)),l=s.flatMap((e=>e.titledFragments)).map((e=>e.title)),d={dir:a.dir,referer:"https://www.bilibili.com/","user-agent":i.UserAgent,urls:c,titles:l},p=`http://${a.host}:${a.port}`,u=await(0,e.postJson)(p,d),f=JSON.parse(u);f.success?t.Toast.success(`成功发送了请求: ${f.message}`,"MPV播放",3e3):(0,r.logError)(f.message)},component:()=>Promise.resolve().then(n.bind(n,379)).then((e=>e.default))},a={name:"downloadVideo.outputs.mpv-playlist",displayName:"下载视频 - MPV 播放支持(列表)",author:{name:"wuliic",link:"https://github.com/wullic"},description:"为下载视频增加 MPV 输出支持,支持列表播放,配置方式请参考 [playwithmpv](https://github.com/videoanywhere/playwithmpv)",setup:e=>{let{addData:t}=e;t("downloadVideo.outputs",(e=>{e.push(s)}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"}})(),o=o.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/mpv-output.js b/registry/dist/plugins/video/download/mpv-output.js index 102f4480b..f1248a6e3 100644 --- a/registry/dist/plugins/video/download/mpv-output.js +++ b/registry/dist/plugins/video/download/mpv-output.js @@ -1 +1 @@ -!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/download/mpv-output"]=e():o["video/download/mpv-output"]=e()}(globalThis,(()=>(()=>{"use strict";var o={d:(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e)},e={};o.d(e,{plugin:()=>i});const t=coreApis.toast,i={name:"downloadVideo.outputs.mpv",displayName:"下载视频 - MPV 输出支持",author:{name:"diannaojiang",link:"https://github.com/diannaojiang"},description:"为下载视频增加 MPV 输出支持, 配置方式请参考 [Bilibili-Playin-Mpv](https://github.com/diannaojiang/Bilibili-Playin-Mpv)",setup:o=>{let{addData:e}=o;e("downloadVideo.outputs",(o=>{o.push({name:"mpv",displayName:"MPV",description:"弹一条消息显示出播放按钮,点击即可使用MPV进行播放",runAction:async o=>{const e=o.infos.flatMap((o=>o.titledFragments)),i=e.map((o=>o.url)).join("\n"),a=`mpv://--http-header-fields="referer:https://www.bilibili.com/" "${e[0].url}" --audio-file="${e[1].url}"`;console.log(a),t.Toast.show(`播放`,"MPV播放"),console.log(i),console.log(o)}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file +!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/download/mpv-output"]=e():o["video/download/mpv-output"]=e()}(globalThis,(()=>(()=>{"use strict";var o={d:(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e)},e={};o.d(e,{plugin:()=>i});const t=coreApis.toast,i={name:"downloadVideo.outputs.mpv",displayName:"下载视频 - MPV 输出支持",author:{name:"diannaojiang",link:"https://github.com/diannaojiang"},description:"为下载视频增加 MPV 输出支持, 配置方式请参考 [Bilibili-Playin-Mpv](https://github.com/diannaojiang/Bilibili-Playin-Mpv)",setup:o=>{let{addData:e}=o;e("downloadVideo.outputs",(o=>{o.push({name:"mpv",displayName:"MPV",description:"弹一条消息显示出播放按钮,点击即可使用MPV进行播放",runAction:async o=>{const e=o.infos.flatMap((o=>o.titledFragments)),i=e.map((o=>o.url)).join("\n"),n=`mpv://--http-header-fields="referer:https://www.bilibili.com/" "${e[0].url}" --audio-file="${e[1].url}"`;console.log(n),t.Toast.show(`播放`,"MPV播放"),console.log(i),console.log(o)}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/download/wasm-output.js b/registry/dist/plugins/video/download/wasm-output.js index a7a4410ef..89eb2d4e3 100644 --- a/registry/dist/plugins/video/download/wasm-output.js +++ b/registry/dist/plugins/video/download/wasm-output.js @@ -1,4 +1,4 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/download/wasm-output"]=e():t["video/download/wasm-output"]=e()}(globalThis,(()=>(()=>{"use strict";var t={d:(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{plugin:()=>A});const a=coreApis.toast,o=coreApis.download,i=coreApis.meta;function n(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var o=a.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function r(t,e,a){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,a)}function s(t,e,a){return function(t,e,a){if(e.set)e.set.call(t,a);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=a}}(t,c(t,e,"set"),a),a}function l(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value} /* eslint-disable @typescript-eslint/naming-convention */(t,c(t,e,"get"))}function c(t,e,a){if(!e.has(t))throw new TypeError("attempted to "+a+" private field on non-instance");return e.get(t)}const d=(()=>{let t=0;return()=>t++})();var u=function(t){return t.LOAD="LOAD",t.EXEC="EXEC",t.WRITE_FILE="WRITE_FILE",t.READ_FILE="READ_FILE",t.ERROR="ERROR",t}(u||{}),p=new WeakMap,f=new WeakMap,h=new WeakMap,w=new WeakMap,m=new WeakMap;const g=coreApis.utils.formatters;function y(t,e){return(a,o)=>{t.message=`${e}: ${(0,g.formatFileSize)(a)}${o>0?` / ${(0,g.formatFileSize)(o)} @ ${(0,g.formatPercent)(a/o)}`:""}`}}async function b(t,e){const a=await fetch(t);if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);const o=a.body.getReader(),i=a.headers.get("Content-Encoding")?-1:parseInt(a.headers.get("Content-Length"));let n=0;const r=[]; // eslint-disable-next-line no-constant-condition -for(;;){const{done:t,value:a}=await o.read();if(t)break;r.push(a),n+=a.length,e(n,i)}const s=new Uint8Array(n);let l=0;for(const t of r)s.set(t,l),l+=t.length;return s}async function v(t,e,a){const o=await b(t,a),i=new Blob([o],{type:e});return URL.createObjectURL(i)}const E=new class{constructor(){var t=this;r(this,p,{writable:!0,value:null}),r(this,f,{writable:!0,value:{}}),r(this,h,{writable:!0,value:{}}),n(this,"loaded",!1),r(this,w,{writable:!0,value:()=>{l(this,p)&&(l(this,p).onmessage=t=>{let{data:{id:e,type:a,data:o}}=t;switch(a){case u.LOAD:this.loaded=!0,l(this,f)[e](o);break;case u.EXEC:case u.WRITE_FILE:case u.READ_FILE:l(this,f)[e](o);break;case u.ERROR:l(this,h)[e](o)}delete l(this,f)[e],delete l(this,h)[e]})}}),r(this,m,{writable:!0,value:function(e){let{type:a,data:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return l(t,p)?new Promise(((e,r)=>{const s=d();l(t,p)&&l(t,p).postMessage({id:s,type:a,data:o},i),l(t,f)[s]=e,l(t,h)[s]=r,n?.addEventListener("abort",(()=>{r(new DOMException(`Message # ${s} was aborted`,"AbortError"))}),{once:!0})})):Promise.reject(new Error("FFmpeg is not loaded"))}}),n(this,"load",((t,e)=>(l(this,p)||(s(this,p,new Worker(t.workerLoadURL,{type:"classic"})),l(this,w).call(this)),l(this,m).call(this,{type:u.LOAD,data:t},void 0,e)))),n(this,"exec",(function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=arguments.length>2?arguments[2]:void 0;return l(t,m).call(t,{type:u.EXEC,data:{args:e,timeout:a}},void 0,o)})),n(this,"terminate",(()=>{const t=Object.keys(l(this,h));for(const e of t)l(this,h)[e](new Error("FFmpeg terminated")),delete l(this,h)[e],delete l(this,f)[e];l(this,p)&&(l(this,p).terminate(),s(this,p,null),this.loaded=!1)})),n(this,"writeFile",((t,e,a)=>{const o=[];return o.push(e.buffer),l(this,m).call(this,{type:u.WRITE_FILE,data:{path:t,data:e}},o,a)})),n(this,"readFile",((t,e)=>l(this,m).call(this,{type:u.READ_FILE,data:{path:t,encoding:"binary"}},void 0,e)))}};async function F(t,e,a,n){E.loaded||await async function(t){await E.load({workerLoadURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.worker,"text/javascript",y(t,"正在加载 FFmpeg Worker")),coreURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.core,"text/javascript",y(t,"正在加载 FFmpeg Core")),wasmURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.wasm,"application/wasm",y(t,"正在加载 FFmpeg WASM"))})}(n),E.writeFile("video",await b(e,y(n,"正在下载视频流"))),E.writeFile("audio",await b(a,y(n,"正在下载音频流"))),n.message="混流中……",await E.exec(["-i","video","-i","audio","-c:v","copy","-c:a","copy","output.mp4"]);const r=await E.readFile("output.mp4"),s=new Blob([r],{type:"video/mp4"});n.message="完成!",n.duration=1500,await o.DownloadPackage.single(t,s)}const R="WASM 混流输出",L="使用 WASM 在浏览器中下载并合并音视频",A={name:"downloadVideo.outputs.wasm",displayName:`下载视频 - ${R}`,description:L,author:{name:"WakelessSloth56",link:"https://github.com/WakelessSloth56"},setup:t=>{let{addData:e}=t;e("downloadVideo.outputs",(t=>{t.push({name:"wasm",displayName:"WASM",description:`${L},运行过程中请勿关闭页面,初次使用或清除缓存后需要加载约 30 MB 的 WASM 文件`,runAction:async t=>{const e=t.infos.flatMap((t=>t.titledFragments));if(2!==e.length)a.Toast.error("仅支持 DASH 格式",R);else{const t=a.Toast.info("正在加载",R);try{await F(e[0].title,e[0].url,e[1].url,t)}catch(e){t.close(),a.Toast.error(String(e),R)}}}})}))},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file +for(;;){const{done:t,value:a}=await o.read();if(t)break;r.push(a),n+=a.length,e(n,i)}const s=new Uint8Array(n);let l=0;for(const t of r)s.set(t,l),l+=t.length;return s}async function v(t,e,a){const o=await b(t,a),i=new Blob([o],{type:e});return URL.createObjectURL(i)}const E=new class{constructor(){var t=this;r(this,p,{writable:!0,value:null}),r(this,f,{writable:!0,value:{}}),r(this,h,{writable:!0,value:{}}),n(this,"loaded",!1),r(this,w,{writable:!0,value:()=>{l(this,p)&&(l(this,p).onmessage=t=>{let{data:{id:e,type:a,data:o}}=t;switch(a){case u.LOAD:this.loaded=!0,l(this,f)[e](o);break;case u.EXEC:case u.WRITE_FILE:case u.READ_FILE:l(this,f)[e](o);break;case u.ERROR:l(this,h)[e](o)}delete l(this,f)[e],delete l(this,h)[e]})}}),r(this,m,{writable:!0,value:function(e){let{type:a,data:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return l(t,p)?new Promise(((e,r)=>{const s=d();l(t,p)&&l(t,p).postMessage({id:s,type:a,data:o},i),l(t,f)[s]=e,l(t,h)[s]=r,n?.addEventListener("abort",(()=>{r(new DOMException(`Message # ${s} was aborted`,"AbortError"))}),{once:!0})})):Promise.reject(new Error("FFmpeg is not loaded"))}}),n(this,"load",((t,e)=>(l(this,p)||(s(this,p,new Worker(t.workerLoadURL,{type:"classic"})),l(this,w).call(this)),l(this,m).call(this,{type:u.LOAD,data:t},void 0,e)))),n(this,"exec",(function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=arguments.length>2?arguments[2]:void 0;return l(t,m).call(t,{type:u.EXEC,data:{args:e,timeout:a}},void 0,o)})),n(this,"terminate",(()=>{const t=Object.keys(l(this,h));for(const e of t)l(this,h)[e](new Error("FFmpeg terminated")),delete l(this,h)[e],delete l(this,f)[e];l(this,p)&&(l(this,p).terminate(),s(this,p,null),this.loaded=!1)})),n(this,"writeFile",((t,e,a)=>{const o=[];return o.push(e.buffer),l(this,m).call(this,{type:u.WRITE_FILE,data:{path:t,data:e}},o,a)})),n(this,"readFile",((t,e)=>l(this,m).call(this,{type:u.READ_FILE,data:{path:t,encoding:"binary"}},void 0,e)))}};async function F(t,e,a,n){E.loaded||await async function(t){await E.load({workerLoadURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.worker,"text/javascript",y(t,"正在加载 FFmpeg Worker")),coreURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.core,"text/javascript",y(t,"正在加载 FFmpeg Core")),wasmURL:await v(i.meta.compilationInfo.altCdn.library.ffmpeg.wasm,"application/wasm",y(t,"正在加载 FFmpeg WASM"))})}(n),E.writeFile("video",await b(e,y(n,"正在下载视频流"))),E.writeFile("audio",await b(a,y(n,"正在下载音频流"))),n.message="混流中……",await E.exec(["-i","video","-i","audio","-c:v","copy","-c:a","copy","output.mp4"]);const r=await E.readFile("output.mp4"),s=new Blob([r],{type:"video/mp4"});n.message="完成!",n.duration=1500,await o.DownloadPackage.single(t,s)}const R="WASM 混流输出",L="使用 WASM 在浏览器中下载并合并音视频",A={name:"downloadVideo.outputs.wasm",displayName:`下载视频 - ${R}`,description:L,author:{name:"WakelessSloth56",link:"https://github.com/WakelessSloth56"},setup:t=>{let{addData:e}=t;e("downloadVideo.outputs",(t=>{t.push({name:"wasm",displayName:"WASM",description:`${L},运行过程中请勿关闭页面,初次使用或清除缓存后需要加载约 30 MB 的 WASM 文件`,runAction:async t=>{const e=t.infos.flatMap((t=>t.titledFragments));if(2!==e.length)a.Toast.error("仅支持 DASH 格式",R);else{const t=a.Toast.info("正在加载",R);try{await F(e[0].title,e[0].url,e[1].url,t)}catch(e){t.close(),a.Toast.error(String(e),R)}}}})}))},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return e=e.plugin})())); \ No newline at end of file diff --git a/registry/dist/plugins/video/player/speed.js b/registry/dist/plugins/video/player/speed.js index 59e13a365..0a64638b5 100644 --- a/registry/dist/plugins/video/player/speed.js +++ b/registry/dist/plugins/video/player/speed.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/speed"]=t():e["video/player/speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>X});const n=coreApis.toast,o=coreApis.componentApis.video.playerAgent,r=coreApis.lifeCycle,i=coreApis.observer,s=coreApis.utils,a=coreApis.utils.sort,l=coreApis.settings,c=e=>"function"==typeof e?{next:e}:e,d=e=>function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!1;const i=[],s=[];let a=!1;const d=()=>{for(;i.length;)i.pop()();s.length=0,a=!0},p=e=>{a||(s.forEach((t=>{t.error?.(e),(0,l.getGeneralSettings)().devMode&&console.error(e)})),d())},u=e=>{a||s.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{s.forEach((e=>{e.complete?.()})),d()},b=()=>{if(r)return;const e=t?.({next:u,error:p,complete:h});e&&i.push(e),r=!0},m=e=>null==e?null:(s.push(e),()=>{lodash.pull(s,e)}),f=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const t=m(c(e));return(o?.connect??b)(),t},pipe:f,next:u,error:p,complete:h,...o}:e(n[0],{subscribe:m},o||{connect:b,next:u}).pipe(...n.slice(1))};if(n){const e=t?.({subscribe:e=>n.subscribe({error:p,complete:h,...c(e)}),next:u,error:p,complete:h});e&&i.push(e)}return f()}(e),p=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:o}=e;t.forEach((e=>{n(e)})),o()}))},u=(e,t)=>d((n=>{let{next:o}=n;return e.addEventListener(t,o),()=>e.removeEventListener(t,o)})),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{let{next:o}=t;e(...n,o)}))},b=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:o}=e;const r=[...t],i=()=>{const e=r.shift();e||o(),e.subscribe({next:n,complete:()=>{i()}})};i()}))},m=e=>new Promise(((t,n)=>{const o=e.subscribe({next:e=>{t(e),o()},error:()=>{n(),o()},complete:()=>{n(),o()}})})),f=e=>t=>{let{subscribe:n,next:o,complete:r,error:i}=t;n(lodash.mapValues({next:o,complete:r,error:i},(t=>e(t))))},g=e=>function(){for(var t=arguments.length,n=new Array(t),o=0;oe(...n)))},v=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},y=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,error:o,complete:r}=e;return v((e=>{const i=[];let s=0;e(t.map(((e,a)=>e.pipe(f(g)).subscribe({next:e=>{i[a]=e,i.reduce((e=>e+1),0)===t.length&&n(i.slice())},complete:()=>{s++,s===t.length&&r()},error:o})))),e((()=>{i.length=0,s=0}))}))}))},x=e=>t=>{let{subscribe:n,next:o,error:r}=t;n(lodash.debounce((e=>{try{o(e)}catch(e){r(e)}}),e))},w=e=>t=>{let{subscribe:n,next:o}=t;n((t=>{e(t)&&o(t)}))},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,subscribe:o}=e,r=!1;o((e=>{r||t.forEach((e=>n(e))),n(e),r=!0}))}},E=coreApis.pluginApis.data,A=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),k=(e,t)=>{const n=t=>{(0,E.registerAndGetData)(e,t)[0]=t},o=(0,E.getData)(e);if(o.length)return[o[0],n];if(t){const e=t();return n(e),[e,n]}return[void 0,n]},V=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},C=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=o.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let $=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const T=(e,t,n)=>{const o=new MutationObserver(n);return o.observe(e,t),o},j=e=>{let[t,n]=e;if(!t)throw new Error("speed container element not found!");if(!n)throw new Error("video element not found!");const o=t.querySelector(N.custom.speedNameBtn.selector),r=t.querySelector(N.custom.speedMenuList.selector);let i,l,c;const p=d(),u=d().pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));u.pipe(S(void 0),(e=>{let{subscribe:t,next:n}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&n(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t,n]=e;l=t,i=n}));const h=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:u.next(C(e.data));break;case Node.ELEMENT_NODE:u.next(C(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},b=()=>{c=lodash([...r.children]).map((e=>lodash.attempt((()=>C(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,a.ascendingSort)()).value()};h(o),b();const m=T(r,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:n=[]}=lodash.groupBy(e,"type");n.length&&b(),p.next({attributes:t,childList:n})})),f=T(o,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;h(t)}))}));return{containerElement:t,videoElement:n,nameBtnElement:o,menuListElement:r,query:e=>(0,s.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(A).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(N.custom.speedMenuItem.selector)}) and normalize-space()="${V(e)}"]`,r),dispose:()=>{m.disconnect(),f.disconnect()},activeVideoSpeed$:u,menuListElementMutations$:p,getActiveVideoSpeed:()=>i,getOldActiveVideoSpeed:()=>l,getAvailableSpeedValues:()=>c}},M=e=>{const{videoElement:t,menuListElement:n}=e,o=u(n,"click").pipe((r=e=>{const{innerText:t,innerHTML:n}=e.target,o=t.trim()||n.trim();return lodash.attempt((()=>C(o)))},e=>{let{subscribe:t,next:n}=e;t((e=>{n(r(e))}))}),w((e=>!lodash.isError(e))));var r;const i=d((e=>{let{next:n}=e,o=t;do{o=Object.getPrototypeOf(o)}while(null===o||!Object.prototype.hasOwnProperty.call(o,"playbackRate"));const r=Object.getOwnPropertyDescriptor(o,"playbackRate");return Object.defineProperty(o,"playbackRate",{set(e){r.set.call(this,e),n(e)}}),()=>{Object.defineProperty(o,"playbackRate",r)}})),s=o.pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})),a=i.pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})),l=d((e=>{let{next:t}=e;const n=y(s,a);return n.subscribe((e=>{let[n,o]=e;n===o&&t(o)})),()=>n.complete()})).pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));let c;a.pipe(x(200),S(void 0),(e=>{let{subscribe:t,next:n}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&n(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t]=e;c=t}));const p={menuListElementClickSpeed$:o,menuListElementClickSpeedChange$:s,playbackRate$:i,playbackRateChange$:a,videoSpeedChange$:l};return{...e,...p,dispose:()=>{lodash.values(p).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>c}},[L]=k("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>V(e))),n=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${n}`),this.speed=e,O(this,"formattedSpeed",void 0),this.formattedSpeed=n}})),R=e=>{const{query:t,videoElement:n,videoSpeedChange$:o,getOldActiveVideoSpeed:r,getAvailableSpeedValues:i,getActiveVideoSpeed:s}=e,a=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const i=t(e);if(null==i)throw new L(e);i.click();const s=t=>{if((t??n.playbackRate)!==e)throw new Error(`failed to set ${V(e)} video speed.`)},a=[m(o.pipe(x(Math.max(0,r||0))))];r>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,r)))))),await Promise.all(a).then(s).catch(s)},l=async()=>{await a(1)},c=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===n.playbackRate?await a(r()):await l();else{const n=i();switch(t){case $.MIN:await a(n[e]);break;case $.MAX:await a(n[n.length-1+e]);break;case $.CURRENT:default:{const t=n.indexOf(s());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(n[t+e])}}}},d=async e=>{try{await c(e,$.CURRENT)}catch(e){if(console.warn(e),!(e instanceof L))throw e}};return Object.assign(e,{set:a,force:async e=>{n.playbackRate=e},reset:l,toggle:c,step:d,increase:async()=>{await d(1)},decrease:async()=>{await d(-1)}})},P=()=>k("speed.speedContext"),I=()=>k("speed.buildArguments$",(()=>{return d().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:n,next:o}=t;const r=new Set;return n((t=>{const n=r.size;e(t)?r.add(t):r.delete(t),r.size!==n&&o([...r])})),()=>{r.clear()}}));var e})),D=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,n]=P();if(t)return t;let o,s;const[a]=k("lifeCycleComponentLoaded$",(()=>u(unsafeWindow,r.LifeCycleEventTypes.ComponentsLoaded))),[l]=I(),[c]=k("speed.videoChange$",(()=>h(i.videoChange).pipe(w((e=>{let{aid:t,cid:n}=e;return t||n}))))),[f]=k("speed.speedContext$",(()=>d((t=>{let{next:n}=t;return y(c,b(p([]),l),a).subscribe((t=>{let[r,i]=t;const[a]=P();a?.dispose(),s?.("context update");const l=new Promise(((e,t)=>{o=e,s=t}));Promise.all([Promise.all([N.custom.speedContainer(),N.query.video.element()]).then(o),l]).then((e=>{let[,t]=e;return t})).then(j).then(M).then(R).then((e=>Object.assign(e,{videoIdObject:r,speedContext$:f,videoChange$:c}))).then(e(i)).then(n).catch((e=>console.error(e)))}))}))));return f.subscribe(n),m(f)},q=coreApis.utils.log,U=coreApis.pluginApis.hook;function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class H{constructor(e,t){this.entryContext=e,this.enabled$=t,B(this,"speedContext",void 0),B(this,"settings",void 0),B(this,"coreApis",void 0),B(this,"metadata",void 0),B(this,"options",void 0),B(this,"getVideoIdObject",void 0),B(this,"getAvailableSpeedValues",void 0),B(this,"getOldActiveVideoSpeed",void 0),B(this,"forceVideoSpeed",void 0),B(this,"getVideoSpeed",void 0),B(this,"setVideoSpeed",void 0),B(this,"resetVideoSpeed",void 0),B(this,"toggleVideoSpeed",void 0),B(this,"increaseVideoSpeed",void 0),B(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(H.contextMap,(e=>async function(){const t=await D(),n=lodash.get(t,e),o=lodash.isFunction(n)?await n(...arguments):n;return o})))}}B(H,"create",void 0),B(H,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),D((e=>t=>{const n=lodash.omit(t,"dispose"),o=e.map((e=>e.getSpeedContextMixin(n)));if(o.length>1){const e=lodash.intersection(...o.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(n,...o);const r=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,n)=>h(l.addComponentListener,`${e.metadata.name}.${n}`).pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();r.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,n,o)=>lodash.isSymbol(n)?Reflect.get(e,n,o):!Reflect.has(e,n)&&n.endsWith("$")?t[n]:Reflect.get(e,n,o)}),e.speedContext=n,e.onSpeedContext(n),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[n,o]=t;o.next(e.settings.options[n.slice(0,-1)])}))})),{...n,dispose:()=>{r.forEach((e=>e.complete())),t.dispose()}}})),H.create=function(e){const t=d().pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));return{...e,entry:n=>{const o=lodash.attempt((()=>new this(n,t)));if(o instanceof Error)return(0,q.logError)(o),null;const[r]=I();return t.subscribe((()=>{r.next(o)})),t.next(!0),(0,U.getHook)(`speed.component.${e.name}`).after(o),o},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const X={name:"speed.keymap",displayName:"快捷键扩展 - 视频倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:"\n\n为操作视频倍速提供快捷键支持:\n\n- 提高倍速\n- 降低倍速\n- 切换倍速\n\n若添加并启用了记忆倍速组件,则还会增加一个快捷键:\n\n- 清除倍速记忆\n ",setup:e=>{let{addData:t,addHook:o}=e;const r=e=>async t=>{const n=await D();return await e(n),t.showTip(V(n.videoElement.playbackRate),"mdi-fast-forward"),!0};t("keymap.actions",(e=>{Object.assign(e,{videoSpeedIncrease:{displayName:"提高倍速",run:r((e=>{let{increase:t}=e;return t()}))},videoSpeedDecrease:{displayName:"降低倍速",run:r((e=>{let{decrease:t}=e;return t()}))},videoSpeedToggle:{displayName:"切换倍速",run:r((e=>{let{toggle:t}=e;t()}))}})})),t("keymap.presets",(e=>{e.videoSpeedIncrease="shift > 》 arrowUp",e.videoSpeedDecrease="shift < 《 arrowDown",e.videoSpeedToggle="shift ? ?"})),o("speed.component.rememberVideoSpeed",{after:e=>{t("keymap.actions",(t=>{t.videoSpeedForget={displayName:"清除倍速记忆",run:lodash.debounce(r((async()=>{e.settings.enabled?e.options.individualRemember?(e.forgetSpeed(),await e.resetVideoSpeed(),n.Toast.success("已清除当前视频倍速记忆值",e.metadata.displayName,3e3)):n.Toast.error("选项「各视频分别记忆」已禁用,不能清除当前视频倍速记忆值",e.metadata.displayName,5e3):n.Toast.error("组件已禁用,不能清除当前视频倍速记忆值",e.metadata.displayName,5e3)})),200)}})),t("keymap.presets",(e=>{e.videoSpeedForget="shift : :"}))}})},commitHash:"3fed018af10aa7a5b4f4189da8f3d7936e6802e0",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/player/speed"]=t():e["video/player/speed"]=t()}(globalThis,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{plugin:()=>X});const n=coreApis.toast,o=coreApis.componentApis.video.playerAgent,r=coreApis.lifeCycle,i=coreApis.observer,s=coreApis.utils,a=coreApis.utils.sort,l=coreApis.settings,c=e=>"function"==typeof e?{next:e}:e,d=e=>function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!1;const i=[],s=[];let a=!1;const d=()=>{for(;i.length;)i.pop()();s.length=0,a=!0},p=e=>{a||(s.forEach((t=>{t.error?.(e),(0,l.getGeneralSettings)().devMode&&console.error(e)})),d())},u=e=>{a||s.forEach((t=>{try{t.next(e)}catch(e){p(e)}}))},h=()=>{s.forEach((e=>{e.complete?.()})),d()},b=()=>{if(r)return;const e=t?.({next:u,error:p,complete:h});e&&i.push(e),r=!0},m=e=>null==e?null:(s.push(e),()=>{lodash.pull(s,e)}),f=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const t=m(c(e));return(o?.connect??b)(),t},pipe:f,next:u,error:p,complete:h,...o}:e(n[0],{subscribe:m},o||{connect:b,next:u}).pipe(...n.slice(1))};if(n){const e=t?.({subscribe:e=>n.subscribe({error:p,complete:h,...c(e)}),next:u,error:p,complete:h});e&&i.push(e)}return f()}(e),p=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:o}=e;t.forEach((e=>{n(e)})),o()}))},u=(e,t)=>d((n=>{let{next:o}=n;return e.addEventListener(t,o),()=>e.removeEventListener(t,o)})),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{let{next:o}=t;e(...n,o)}))},b=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,complete:o}=e;const r=[...t],i=()=>{const e=r.shift();e||o(),e.subscribe({next:n,complete:()=>{i()}})};i()}))},m=e=>new Promise(((t,n)=>{const o=e.subscribe({next:e=>{t(e),o()},error:()=>{n(),o()},complete:()=>{n(),o()}})})),f=e=>t=>{let{subscribe:n,next:o,complete:r,error:i}=t;n(lodash.mapValues({next:o,complete:r,error:i},(t=>e(t))))},g=e=>function(){for(var t=arguments.length,n=new Array(t),o=0;oe(...n)))},v=e=>{const t=new Set;return e((e=>{lodash.castArray(e).forEach((e=>{t.add(e)}))})),()=>{t.forEach((e=>{e()}))}},y=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,error:o,complete:r}=e;return v((e=>{const i=[];let s=0;e(t.map(((e,a)=>e.pipe(f(g)).subscribe({next:e=>{i[a]=e,i.reduce((e=>e+1),0)===t.length&&n(i.slice())},complete:()=>{s++,s===t.length&&r()},error:o})))),e((()=>{i.length=0,s=0}))}))}))},x=e=>t=>{let{subscribe:n,next:o,error:r}=t;n(lodash.debounce((e=>{try{o(e)}catch(e){r(e)}}),e))},w=e=>t=>{let{subscribe:n,next:o}=t;n((t=>{e(t)&&o(t)}))},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{next:n,subscribe:o}=e,r=!1;o((e=>{r||t.forEach((e=>n(e))),n(e),r=!0}))}},E=coreApis.pluginApis.data,A=e=>e.split(",").map((e=>e.trim().replace(/^\./,""))).join(","),k=(e,t)=>{const n=t=>{(0,E.registerAndGetData)(e,t)[0]=t},o=(0,E.getData)(e);if(o.length)return[o[0],n];if(t){const e=t();return n(e),[e,n]}return[void 0,n]},V=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&1===e?"倍速":Math.trunc(e)===e?`${e}.0x`:`${e}x`},C=e=>{if("倍速"===e)return 1;const t=/([0-9]*[.]?[0-9]+)x/.exec(e);if(t)return parseFloat(t[1]);throw new Error(`unknown speed text: ${e}`)};function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=o.playerAgent.provideCustomQuery({video:{speedMenuList:".bilibili-player-video-btn-speed-menu,.bpx-player-ctrl-playbackrate-menu",speedMenuItem:".bilibili-player-video-btn-speed-menu-list,.bpx-player-ctrl-playbackrate-menu-item",speedNameBtn:".bilibili-player-video-btn-speed-name,.bpx-player-ctrl-playbackrate-result",speedContainer:".bilibili-player-video-btn-speed,.bpx-player-ctrl-playbackrate",active:".bilibili-player-active,.bpx-state-active",show:".bilibili-player-speed-show,.bpx-state-show"},bangumi:{speedMenuList:".squirtle-speed-select-list",speedMenuItem:".squirtle-select-item",speedNameBtn:".squirtle-speed-select-result",speedContainer:".squirtle-speed-wrap",active:".active",show:".bilibili-player-speed-show"}});let $=function(e){return e[e.MIN=0]="MIN",e[e.CURRENT=1]="CURRENT",e[e.MAX=2]="MAX",e}({});const T=(e,t,n)=>{const o=new MutationObserver(n);return o.observe(e,t),o},j=e=>{let[t,n]=e;if(!t)throw new Error("speed container element not found!");if(!n)throw new Error("video element not found!");const o=t.querySelector(N.custom.speedNameBtn.selector),r=t.querySelector(N.custom.speedMenuList.selector);let i,l,c;const p=d(),u=d().pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));u.pipe(S(void 0),(e=>{let{subscribe:t,next:n}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&n(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t,n]=e;l=t,i=n}));const h=e=>{if(e)switch(e.nodeType){case Node.TEXT_NODE:u.next(C(e.data));break;case Node.ELEMENT_NODE:u.next(C(e.innerHTML));break;default:console.warn("The target parameter of updateActiveVideoSpeed must be a Node, and the node type must be one of TEXT_NODE and ELEMENT_NODE")}},b=()=>{c=lodash([...r.children]).map((e=>lodash.attempt((()=>C(e.textContent))))).reject((e=>lodash.isError(e))).sort((0,a.ascendingSort)()).value()};h(o),b();const m=T(r,{childList:!0,attributes:!0},(e=>{const{attributes:t=[],childList:n=[]}=lodash.groupBy(e,"type");n.length&&b(),p.next({attributes:t,childList:n})})),f=T(o,{childList:!0,subtree:!0},(e=>{e.forEach((e=>{const[t]=e.addedNodes;h(t)}))}));return{containerElement:t,videoElement:n,nameBtnElement:o,menuListElement:r,query:e=>(0,s.des)(`./*[(${function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";return e.split(",").map(A).flat().map((e=>`contains(@class, "${e}")`)).join(` ${t} `)}(N.custom.speedMenuItem.selector)}) and normalize-space()="${V(e)}"]`,r),dispose:()=>{m.disconnect(),f.disconnect()},activeVideoSpeed$:u,menuListElementMutations$:p,getActiveVideoSpeed:()=>i,getOldActiveVideoSpeed:()=>l,getAvailableSpeedValues:()=>c}},M=e=>{const{videoElement:t,menuListElement:n}=e,o=u(n,"click").pipe((r=e=>{const{innerText:t,innerHTML:n}=e.target,o=t.trim()||n.trim();return lodash.attempt((()=>C(o)))},e=>{let{subscribe:t,next:n}=e;t((e=>{n(r(e))}))}),w((e=>!lodash.isError(e))));var r;const i=d((e=>{let{next:n}=e,o=t;do{o=Object.getPrototypeOf(o)}while(null===o||!Object.prototype.hasOwnProperty.call(o,"playbackRate"));const r=Object.getOwnPropertyDescriptor(o,"playbackRate");return Object.defineProperty(o,"playbackRate",{set(e){r.set.call(this,e),n(e)}}),()=>{Object.defineProperty(o,"playbackRate",r)}})),s=o.pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})),a=i.pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})),l=d((e=>{let{next:t}=e;const n=y(s,a);return n.subscribe((e=>{let[n,o]=e;n===o&&t(o)})),()=>n.complete()})).pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));let c;a.pipe(x(200),S(void 0),(e=>{let{subscribe:t,next:n}=e;const o=[];return t((e=>{2===o.length&&o.shift(),o.push(e),2===o.length&&n(o.slice())})),()=>{o.length=0}})).subscribe((e=>{let[t]=e;c=t}));const p={menuListElementClickSpeed$:o,menuListElementClickSpeedChange$:s,playbackRate$:i,playbackRateChange$:a,videoSpeedChange$:l};return{...e,...p,dispose:()=>{lodash.values(p).forEach((e=>{e.complete()})),e.dispose()},getOldPlaybackRate:()=>c}},[L]=k("speed.NoSuchSpeedMenuItemElementError",(()=>class extends Error{constructor(e){const t=lodash.attempt((()=>V(e))),n=lodash.isError(t)?String(e):String(t);super(`There is no such speed menu item as ${n}`),this.speed=e,O(this,"formattedSpeed",void 0),this.formattedSpeed=n}})),R=e=>{const{query:t,videoElement:n,videoSpeedChange$:o,getOldActiveVideoSpeed:r,getAvailableSpeedValues:i,getActiveVideoSpeed:s}=e,a=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const i=t(e);if(null==i)throw new L(e);i.click();const s=t=>{if((t??n.playbackRate)!==e)throw new Error(`failed to set ${V(e)} video speed.`)},a=[m(o.pipe(x(Math.max(0,r||0))))];r>0&&a.push(new Promise(((e,t)=>setTimeout((()=>setTimeout(t,r)))))),await Promise.all(a).then(s).catch(s)},l=async()=>{await a(1)},c=async(e,t)=>{if(lodash.isNil(e)&&(e=!1),"boolean"==typeof e)e||1===n.playbackRate?await a(r()):await l();else{const n=i();switch(t){case $.MIN:await a(n[e]);break;case $.MAX:await a(n[n.length-1+e]);break;case $.CURRENT:default:{const t=n.indexOf(s());if(-1===t)throw new Error("Unexpected Error: The available speed values do not include the active speed value, this should be a bug, please report the issue on github!");await a(n[t+e])}}}},d=async e=>{try{await c(e,$.CURRENT)}catch(e){if(console.warn(e),!(e instanceof L))throw e}};return Object.assign(e,{set:a,force:async e=>{n.playbackRate=e},reset:l,toggle:c,step:d,increase:async()=>{await d(1)},decrease:async()=>{await d(-1)}})},P=()=>k("speed.speedContext"),I=()=>k("speed.buildArguments$",(()=>{return d().pipe((e=e=>e.settings.enabled,t=>{let{subscribe:n,next:o}=t;const r=new Set;return n((t=>{const n=r.size;e(t)?r.add(t):r.delete(t),r.size!==n&&o([...r])})),()=>{r.clear()}}));var e})),D=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lodash.identity;const[t,n]=P();if(t)return t;let o,s;const[a]=k("lifeCycleComponentLoaded$",(()=>u(unsafeWindow,r.LifeCycleEventTypes.ComponentsLoaded))),[l]=I(),[c]=k("speed.videoChange$",(()=>h(i.videoChange).pipe(w((e=>{let{aid:t,cid:n}=e;return t||n}))))),[f]=k("speed.speedContext$",(()=>d((t=>{let{next:n}=t;return y(c,b(p([]),l),a).subscribe((t=>{let[r,i]=t;const[a]=P();a?.dispose(),s?.("context update");const l=new Promise(((e,t)=>{o=e,s=t}));Promise.all([Promise.all([N.custom.speedContainer(),N.query.video.element()]).then(o),l]).then((e=>{let[,t]=e;return t})).then(j).then(M).then(R).then((e=>Object.assign(e,{videoIdObject:r,speedContext$:f,videoChange$:c}))).then(e(i)).then(n).catch((e=>console.error(e)))}))}))));return f.subscribe(n),m(f)},q=coreApis.utils.log,U=coreApis.pluginApis.hook;function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class H{constructor(e,t){this.entryContext=e,this.enabled$=t,B(this,"speedContext",void 0),B(this,"settings",void 0),B(this,"coreApis",void 0),B(this,"metadata",void 0),B(this,"options",void 0),B(this,"getVideoIdObject",void 0),B(this,"getAvailableSpeedValues",void 0),B(this,"getOldActiveVideoSpeed",void 0),B(this,"forceVideoSpeed",void 0),B(this,"getVideoSpeed",void 0),B(this,"setVideoSpeed",void 0),B(this,"resetVideoSpeed",void 0),B(this,"toggleVideoSpeed",void 0),B(this,"increaseVideoSpeed",void 0),B(this,"decreaseVideoSpeed",void 0),lodash.assign(this,e,{options:e.settings.options}),this.migrate?.(),lodash.assign(this,lodash.mapValues(H.contextMap,(e=>async function(){const t=await D(),n=lodash.get(t,e),o=lodash.isFunction(n)?await n(...arguments):n;return o})))}}B(H,"create",void 0),B(H,"contextMap",{getVideoIdObject:"videoIdObject",getAvailableSpeedValues:"getAvailableSpeedValues",getOldActiveVideoSpeed:"getOldActiveVideoSpeed",getVideoSpeed:"videoElement.playbackRate",setVideoSpeed:"set",forceVideoSpeed:"force",resetVideoSpeed:"reset",toggleVideoSpeed:"toggle",increaseVideoSpeed:"increase",decreaseVideoSpeed:"decrease"}),D((e=>t=>{const n=lodash.omit(t,"dispose"),o=e.map((e=>e.getSpeedContextMixin(n)));if(o.length>1){const e=lodash.intersection(...o.map(Object.keys));if(e.length)throw new Error(`In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\nThe repeated key names are ${e.join(", ")}`)}lodash.assign(n,...o);const r=[];return e.forEach((e=>{const t=lodash(e.settings.options).mapValues(((t,n)=>h(l.addComponentListener,`${e.metadata.name}.${n}`).pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))})))).mapKeys(((e,t)=>`${t}$`)).value();r.push(...lodash.values(t)),e.options=new Proxy(e.settings.options,{get:(e,n,o)=>lodash.isSymbol(n)?Reflect.get(e,n,o):!Reflect.has(e,n)&&n.endsWith("$")?t[n]:Reflect.get(e,n,o)}),e.speedContext=n,e.onSpeedContext(n),e.settings.enabled&&lodash(t).entries().forEach((t=>{let[n,o]=t;o.next(e.settings.options[n.slice(0,-1)])}))})),{...n,dispose:()=>{r.forEach((e=>e.complete())),t.dispose()}}})),H.create=function(e){const t=d().pipe((e=>{let t,{subscribe:n,next:o}=e,r=!0;n((e=>{(r||t!==e)&&(r=!1,t=e,o(e))}))}));return{...e,entry:n=>{const o=lodash.attempt((()=>new this(n,t)));if(o instanceof Error)return(0,q.logError)(o),null;const[r]=I();return t.subscribe((()=>{r.next(o)})),t.next(!0),(0,U.getHook)(`speed.component.${e.name}`).after(o),o},reload:()=>t.next(!0),unload:()=>t.next(!1)}};const X={name:"speed.keymap",displayName:"快捷键扩展 - 视频倍速",author:{name:"JLoeve",link:"https://github.com/LonelySteve"},description:"\n\n为操作视频倍速提供快捷键支持:\n\n- 提高倍速\n- 降低倍速\n- 切换倍速\n\n若添加并启用了记忆倍速组件,则还会增加一个快捷键:\n\n- 清除倍速记忆\n ",setup:e=>{let{addData:t,addHook:o}=e;const r=e=>async t=>{const n=await D();return await e(n),t.showTip(V(n.videoElement.playbackRate),"mdi-fast-forward"),!0};t("keymap.actions",(e=>{Object.assign(e,{videoSpeedIncrease:{displayName:"提高倍速",run:r((e=>{let{increase:t}=e;return t()}))},videoSpeedDecrease:{displayName:"降低倍速",run:r((e=>{let{decrease:t}=e;return t()}))},videoSpeedToggle:{displayName:"切换倍速",run:r((e=>{let{toggle:t}=e;t()}))}})})),t("keymap.presets",(e=>{e.videoSpeedIncrease="shift > 》 arrowUp",e.videoSpeedDecrease="shift < 《 arrowDown",e.videoSpeedToggle="shift ? ?"})),o("speed.component.rememberVideoSpeed",{after:e=>{t("keymap.actions",(t=>{t.videoSpeedForget={displayName:"清除倍速记忆",run:lodash.debounce(r((async()=>{e.settings.enabled?e.options.individualRemember?(e.forgetSpeed(),await e.resetVideoSpeed(),n.Toast.success("已清除当前视频倍速记忆值",e.metadata.displayName,3e3)):n.Toast.error("选项「各视频分别记忆」已禁用,不能清除当前视频倍速记忆值",e.metadata.displayName,5e3):n.Toast.error("组件已禁用,不能清除当前视频倍速记忆值",e.metadata.displayName,5e3)})),200)}})),t("keymap.presets",(e=>{e.videoSpeedForget="shift : :"}))}})},commitHash:"9f446110e5ecf36dcf31bebc0c7f9c93c5d48de3",coreVersion:"2.8.8"};return t=t.plugin})())); \ No newline at end of file