first commit

This commit is contained in:
shenjianZ committed 2025-05-24 22:25:49 +08:00
commit bcdeef8892
150 files changed
+9734

No files matched your search

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{3632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(5155),n=r(6395);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3868:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(3632)}])},6395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(8229);let l=r(5155);r(2115);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[441,684,358],()=>t(3868)),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[220],{5550:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>d});var t=a(5155),r=a(2115),l=a(5060);function d(){let[e,s]=(0,r.useState)(!1),[a,d]=(0,r.useState)("用户"),[c,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),a=e.matches;s(a),a?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");let t=e=>{s(e.matches),e.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};e.addEventListener("change",t);let r=localStorage.getItem("username");return r&&d(r),()=>{e.removeEventListener("change",t)}},[]),(0,t.jsxs)("div",{className:"flex h-full",children:[(0,t.jsx)(l.A,{darkMode:e,username:a,isOpen:c,onToggle:()=>n(!c)}),(0,t.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white",children:[(0,t.jsx)("nav",{className:"border-b border-gray-100 dark:border-gray-800",children:(0,t.jsxs)("div",{className:"max-w-5xl mx-auto px-4 py-4 flex items-center",children:[(0,t.jsx)("button",{className:"md:hidden mr-4 text-gray-600 dark:text-gray-400",onClick:()=>n(!c),"aria-label":"打开菜单",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,t.jsx)("h1",{className:"text-xl font-medium",children:"关于"})]})}),(0,t.jsx)("main",{className:"max-w-5xl mx-auto px-4 py-8",children:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"VIP视频解析平台"}),(0,t.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[(0,t.jsx)("p",{className:"mb-4 text-gray-700 dark:text-gray-300",children:"本项目是一个基于Next.js开发的VIP视频解析平台,旨在为用户提供便捷的视频解析服务。通过集成多个解析接口,用户可以轻松观看各大视频平台的VIP内容。"}),(0,t.jsx)("p",{className:"mb-4 text-gray-700 dark:text-gray-300",children:"项目采用现代化前端技术栈,包括:"}),(0,t.jsxs)("ul",{className:"list-disc pl-5 mb-4 text-gray-700 dark:text-gray-300 space-y-1",children:[(0,t.jsx)("li",{children:"Next.js - React框架"}),(0,t.jsx)("li",{children:"Tailwind CSS - 实用工具优先的CSS框架"}),(0,t.jsx)("li",{children:"TypeScript - 类型安全的JavaScript超集"}),(0,t.jsx)("li",{children:"React Hooks - 状态管理和副作用处理"})]}),(0,t.jsx)("p",{className:"mb-4 text-gray-700 dark:text-gray-300",children:"主要功能:"}),(0,t.jsxs)("ul",{className:"list-disc pl-5 text-gray-700 dark:text-gray-300 space-y-1",children:[(0,t.jsx)("li",{children:"多接口解析 - 支持多个视频解析接口"}),(0,t.jsx)("li",{children:"历史记录 - 记录用户解析过的视频"}),(0,t.jsx)("li",{children:"收藏功能 - 收藏常用视频"}),(0,t.jsx)("li",{children:"暗色模式 - 支持亮色/暗色主题切换"}),(0,t.jsx)("li",{children:"响应式设计 - 适配不同设备屏幕"})]})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"text-lg font-medium mb-4",children:"免责声明"}),(0,t.jsx)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:(0,t.jsx)("p",{className:"text-gray-700 dark:text-gray-300",children:"本工具仅用于学习和研究,请勿用于非法用途。使用本工具产生的一切后果由用户自行承担。作者不对任何因使用本工具而导致的直接或间接损失负责。"})})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"text-lg font-medium mb-4",children:"版本信息"}),(0,t.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"当前版本:1.0.0"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:["最后更新:",new Date().toLocaleDateString()]})]})]})]})}),(0,t.jsx)("footer",{className:"border-t border-gray-100 dark:border-gray-800 py-6 mt-12",children:(0,t.jsx)("div",{className:"max-w-5xl mx-auto px-4 text-center text-sm text-gray-500 dark:text-gray-400",children:(0,t.jsx)("p",{children:"本工具仅用于学习和研究,请勿用于非法用途"})})})]})]})}},5687:(e,s,a)=>{Promise.resolve().then(a.bind(a,5550))}},e=>{var s=s=>e(e.s=s);e.O(0,[874,60,441,684,358],()=>s(5687)),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[379],{2072:(e,r,a)=>{Promise.resolve().then(a.bind(a,9137))},3717:(e,r,a)=>{"use strict";a.d(r,{B:()=>s,d:()=>t});let t={HISTORY:"videoHistory",CATEGORIES:"videoCategories",API_INDEX:"currentApiIndex",USERNAME:"username",THEME:"theme"},s=[{id:"movie",name:"电影",color:"#f43f5e"},{id:"tv",name:"电视剧",color:"#3b82f6"},{id:"variety",name:"综艺",color:"#10b981"},{id:"anime",name:"动漫",color:"#f97316"},{id:"education",name:"教育",color:"#8b5cf6"},{id:"other",name:"其他",color:"#6b7280"}]},9137:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>n});var t=a(5155),s=a(2115),l=a(5060),d=a(3717);function n(){let[e,r]=(0,s.useState)(!1),[a,n]=(0,s.useState)("用户"),[o,i]=(0,s.useState)(!1),[c,m]=(0,s.useState)([]),[x,g]=(0,s.useState)(!0),[h,b]=(0,s.useState)(!1),[u,y]=(0,s.useState)(""),[k,v]=(0,s.useState)("#6b7280"),[p,j]=(0,s.useState)(null),[N,f]=(0,s.useState)(""),[w,S]=(0,s.useState)("");(0,s.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),a=e.matches;r(a),a?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");let t=e=>{r(e.matches),e.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};e.addEventListener("change",t),g(!0);try{let e=localStorage.getItem(d.d.CATEGORIES);e?m(JSON.parse(e)):(m(d.B),localStorage.setItem(d.d.CATEGORIES,JSON.stringify(d.B)))}catch(e){console.error("加载分类失败:",e),m(d.B)}finally{g(!1)}let s=localStorage.getItem(d.d.USERNAME);return s&&n(s),()=>{e.removeEventListener("change",t)}},[]);let E=e=>{if(!N.trim()||!p)return;let r=c.map(r=>r.id===e?{...r,name:N.trim(),color:w}:r);m(r),localStorage.setItem(d.d.CATEGORIES,JSON.stringify(r)),j(null),f(""),S("")},C=e=>{if(!confirm("确定要删除此分类吗?该分类下的视频将变为未分类。"))return;let r=c.filter(r=>r.id!==e);m(r),localStorage.setItem(d.d.CATEGORIES,JSON.stringify(r))},L=e=>{j(e.id),f(e.name),S(e.color)},I=()=>{j(null),f(""),S("")};return(0,t.jsxs)("div",{className:"flex h-full",children:[(0,t.jsx)(l.A,{darkMode:e,username:a,isOpen:o,onToggle:()=>i(!o)}),(0,t.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white transition-all duration-300 ".concat(o?"md:translate-x-0":"translate-x-0"),children:[(0,t.jsx)("nav",{className:"border-b border-gray-100 dark:border-gray-800",children:(0,t.jsx)("div",{className:"max-w-5xl mx-auto px-4 py-4 flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("button",{className:"md:hidden mr-4 text-gray-600 dark:text-gray-400",onClick:()=>i(!o),"aria-label":"打开菜单",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,t.jsx)("h1",{className:"text-xl font-medium",children:"视频分类"})]})})}),(0,t.jsxs)("main",{className:"max-w-5xl mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"在这里管理视频分类,您可以添加、编辑或删除分类。这些分类可以在历史记录和收藏页面中使用。"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,t.jsxs)("button",{onClick:()=>b(!h),className:"px-4 py-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg shadow-sm flex items-center",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 mr-1",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),"添加新分类"]}),(0,t.jsxs)("button",{onClick:()=>{confirm("确定要重置为默认分类吗?这将删除所有自定义分类。")&&(m(d.B),localStorage.setItem(d.d.CATEGORIES,JSON.stringify(d.B)))},className:"px-4 py-2 bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-800 dark:text-gray-200 rounded-lg shadow-sm flex items-center",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 mr-1",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),"重置为默认"]})]}),h&&(0,t.jsxs)("div",{className:"mb-6 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700",children:[(0,t.jsx)("h3",{className:"text-lg font-medium mb-3",children:"添加新分类"}),(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("label",{className:"block text-sLine truncated
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[923],{6785:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var s=r(5155),a=r(2115),l=r(5060);let o={HISTORY:"videoHistory",CATEGORIES:"videoCategories",API_INDEX:"currentApiIndex",USERNAME:"username"},n=[{id:"movie",name:"电影",color:"#f43f5e"},{id:"tv",name:"电视剧",color:"#3b82f6"},{id:"variety",name:"综艺",color:"#10b981"},{id:"anime",name:"动漫",color:"#f97316"},{id:"education",name:"教育",color:"#8b5cf6"},{id:"other",name:"其他",color:"#6b7280"}],i=[{name:"接口1",url:"https://jx.xmflv.com/?url="},{name:"接口2",url:"https://jx.parwix.com:4433/player/?url="},{name:"接口3",url:"https://jx.iztyy.com/svip/?url="},{name:"接口4",url:"https://jx.bozrc.com:4433/player/?url="},{name:"接口5",url:"https://jx.4kdv.com/?url="}];function d(){let[e,t]=(0,a.useState)([]),[r,d]=(0,a.useState)([]),[c,m]=(0,a.useState)(!1),[x,u]=(0,a.useState)(0),[h,g]=(0,a.useState)(""),[p,v]=(0,a.useState)("用户"),[k,w]=(0,a.useState)(null),[b,j]=(0,a.useState)(""),[f,y]=(0,a.useState)(null),[N,L]=(0,a.useState)(""),[C,S]=(0,a.useState)(null),[I,E]=(0,a.useState)(null),[M,A]=(0,a.useState)(!1),[B,O]=(0,a.useState)([]),[R,T]=(0,a.useState)(null),[W,D]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),r=e.matches;m(r),r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");let s=e=>{m(e.matches),e.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};e.addEventListener("change",s);let a=localStorage.getItem(o.CATEGORIES);a?O(JSON.parse(a)):(O(n),localStorage.setItem(o.CATEGORIES,JSON.stringify(n)));let l=localStorage.getItem(o.HISTORY);if(l){let e=JSON.parse(l),r=e.filter(e=>e.isFavorite),s=!1,a=[...e];r.some(e=>void 0===e.order)&&[...r].sort((e,t)=>void 0!==e.order&&void 0!==t.order?e.order-t.order:void 0!==e.order?-1:void 0!==t.order?1:t.timestamp-e.timestamp).forEach((e,t)=>{let r=a.findIndex(t=>t.timestamp===e.timestamp);-1!==r&&(a[r].order=t,s=!0)}),s&&localStorage.setItem(o.HISTORY,JSON.stringify(a)),t(a),d(r)}let i=localStorage.getItem(o.API_INDEX);i&&u(parseInt(i,10));let c=localStorage.getItem(o.USERNAME);return c&&v(c),()=>{e.removeEventListener("change",s)}},[]);let H=e=>{t(e),localStorage.setItem(o.HISTORY,JSON.stringify(e)),d(e.filter(e=>e.isFavorite))},_=(t,r)=>{let s=[...e],a=s.findIndex(e=>e.timestamp===t);-1!==a&&(s[a].category=r||void 0,H(s)),D(null)},z=t=>{let r=[...e],s=r.findIndex(e=>e.timestamp===t.timestamp);-1!==s&&(r[s].isFavorite=!r[s].isFavorite,H(r))},F=t=>{H(e.filter(e=>e.timestamp!==t.timestamp))},J=e=>{try{let t=new URL(e);return t.origin+t.pathname}catch(t){return e}},Z=e=>{let t=i[x].url+encodeURIComponent(e);window.open(t,"_blank")},U=r.filter(e=>e.title.toLowerCase().includes(h.toLowerCase())||e.url.toLowerCase().includes(h.toLowerCase())),Y=e=>e?B.find(t=>t.id===e)||null:null,G=(e,t)=>{w(e),j(t)},P=t=>{if(b.trim()){let r=[...e],s=r.findIndex(e=>e.timestamp===t);-1!==s&&(r[s].title=b.trim(),H(r))}w(null)},V=()=>{w(null)},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";y(e),L(t)},q=t=>{let r=[...e],s=r.findIndex(e=>e.timestamp===t);-1!==s&&(r[s].description=N.trim()||void 0,H(r)),y(null)},K=()=>{y(null)},Q=(e,t)=>{e.dataTransfer.setData("text/plain",t.toString()),e.dataTransfer.effectAllowed="move",S(t)},$=()=>{S(null),E(null)},ee=e=>{e.preventDefault(),e.currentTarget.classList.add("bg-gray-50","dark:bg-gray-800")},et=e=>{e.currentTarget.classList.remove("bg-gray-50","dark:bg-gray-800")},er=(e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect="move",E(t)},es=(t,r)=>{var s,a;t.preventDefault(),t.currentTarget.classList.remove("bg-gray-50","dark:bg-gray-800");let l=Number(t.dataTransfer.getData("text/plain"));if(l===r)return;let o=U[l],n=U[r];if(!o||!n)return;let i=[...e],d=i.findIndex(e=>e.timestamp===o.timestamp),c=i.findIndex(e=>e.timestamp===n.timestamp);if(-1===d||-1===c)return;let m=null!=(s=i[d].order)?s:0,x=null!=(a=i[c].order)?a:0;i.forEach(e=>{var t;if(!e.isFavorite)return;let r=null!=(t=e.order)?t:0;m<x?r>m&&r<=x?e.order=r-1:e.timestamp===o.timestamp&&(e.order=x):m>x&&(r>=x&&r<m?e.order=r+1:e.timestamp===o.timestamp&&(e.order=x))}),H(i)},ea=[...U].sort((e,t)=>void 0!==e.order&&void 0!==t.order?e.order-t.order:void 0!==e.order?-1:void 0!==t.order?1:t.timestamp-e.timestamp);return(0,s.jsxs)("div",{className:"flex h-full",children:[(0,s.jsx)(l.A,{darkMode:c,username:p,isOpen:M,onToggle:()=>A(!M)}),(0,s.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white transition-all duration-300 ".concat(M?"md:translate-x-0":"translate-x-0"),children:[(0,s.jsx)("nav",{className:"border-b border-gray-100 dark:border-gray-800",children:(0,s.jsxs)("div",{className:"max-w-5xl mx-auto px-4 py-4 flex justify-between items-center",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("buttoLine truncated
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{2154:(e,t,r)=>{Promise.resolve().then(r.bind(r,7643))},3717:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,d:()=>s});let s={HISTORY:"videoHistory",CATEGORIES:"videoCategories",API_INDEX:"currentApiIndex",USERNAME:"username",THEME:"theme"},l=[{id:"movie",name:"电影",color:"#f43f5e"},{id:"tv",name:"电视剧",color:"#3b82f6"},{id:"variety",name:"综艺",color:"#10b981"},{id:"anime",name:"动漫",color:"#f97316"},{id:"education",name:"教育",color:"#8b5cf6"},{id:"other",name:"其他",color:"#6b7280"}]},7643:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var s=r(5155),l=r(2115),a=r(5060),o=r(3717);let n=[{name:"接口1",url:"https://jx.xmflv.com/?url="},{name:"接口2",url:"https://jx.parwix.com:4433/player/?url="},{name:"接口3",url:"https://jx.iztyy.com/svip/?url="},{name:"接口4",url:"https://jx.bozrc.com:4433/player/?url="},{name:"接口5",url:"https://jx.4kdv.com/?url="}];function i(){let[e,t]=(0,l.useState)([]),[r,i]=(0,l.useState)(!1),[d,c]=(0,l.useState)(0),[x,m]=(0,l.useState)(""),[h,u]=(0,l.useState)("用户"),[g,v]=(0,l.useState)(null),[w,p]=(0,l.useState)(""),[k,j]=(0,l.useState)(null),[b,y]=(0,l.useState)(""),[N,f]=(0,l.useState)(!1),[L,C]=(0,l.useState)([]),[S,M]=(0,l.useState)(null),[E,B]=(0,l.useState)(null),[I,A]=(0,l.useState)(null);(0,l.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),r=e.matches;i(r),r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");let s=e=>{i(e.matches),e.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};e.addEventListener("change",s);let l=localStorage.getItem(o.d.HISTORY);l&&t(JSON.parse(l));let a=localStorage.getItem(o.d.CATEGORIES);a?C(JSON.parse(a)):(C(o.B),localStorage.setItem(o.d.CATEGORIES,JSON.stringify(o.B)));let n=localStorage.getItem(o.d.API_INDEX);n&&c(parseInt(n,10));let d=localStorage.getItem(o.d.USERNAME);return d&&u(d),()=>{e.removeEventListener("change",s)}},[]);let W=e=>{t(e),localStorage.setItem(o.d.HISTORY,JSON.stringify(e))},R=(t,r)=>{let s=[...e];s[t].category=r||void 0,W(s),B(null)},O=t=>{let r=[...e];r[t].isFavorite=!r[t].isFavorite,W(r)},H=t=>{W(e.filter((e,r)=>r!==t))},F=e=>{try{let t=new URL(e);return t.origin+t.pathname}catch(t){return e}},_=e=>{let t=n[d].url+encodeURIComponent(e);window.open(t,"_blank")},T=e.filter(e=>e.title.toLowerCase().includes(x.toLowerCase())||e.url.toLowerCase().includes(x.toLowerCase())),Z=e=>e?L.find(t=>t.id===e)||null:null,z=(e,t)=>{v(e),p(t)},J=t=>{if(w.trim()){let r=[...e];r[t].title=w.trim(),W(r)}v(null)},U=()=>{v(null)},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";j(e),y(t)},G=t=>{let r=[...e];r[t].description=b.trim()||void 0,W(r),j(null)},P=()=>{j(null)},Y=t=>{B(t),A(e[t].category||null)};return(0,s.jsxs)("div",{className:"flex h-full",children:[(0,s.jsx)(a.A,{darkMode:r,username:h,isOpen:N,onToggle:()=>f(!N)}),(0,s.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white transition-all duration-300 ".concat(N?"md:translate-x-0":"translate-x-0"),children:[(0,s.jsx)("nav",{className:"border-b border-gray-100 dark:border-gray-800",children:(0,s.jsxs)("div",{className:"max-w-5xl mx-auto px-4 py-4 flex justify-between items-center",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("button",{className:"md:hidden mr-4 text-gray-600 dark:text-gray-400",onClick:()=>f(!N),"aria-label":"打开菜单",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,s.jsx)("h1",{className:"text-xl font-medium",children:"历史记录"})]}),(0,s.jsxs)("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:["当前接口: ",n[d].name]})]})}),(0,s.jsxs)("main",{className:"max-w-5xl mx-auto px-4 py-8",children:[(0,s.jsx)("div",{className:"mb-8",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-4",children:[(0,s.jsxs)("div",{className:"relative w-full sm:max-w-md",children:[(0,s.jsx)("input",{type:"text",placeholder:"搜索历史记录...",value:x,onChange:e=>m(e.target.value),className:"w-full py-2 px-3 pr-10 border border-gray-200 dark:border-gray-800 rounded-lg bg-white dark:bg-black focus:outline-none focus:ring-1 focus:ring-gray-400 dark:focus:ring-gray-500"}),(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})]}),(0,s.jsxs)("button",{onCLine truncated
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{255:(e,t,n)=>{"use strict";function r(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(5155),n(7650),n(5744),n(589)},347:()=>{},2146:(e,t,n)=>{"use strict";function r(e){let{reason:t,children:n}=e;return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(5262)},4054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{bindSnapshot:function(){return o},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return a}});let n=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let u="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return u?new u:new r}function o(e){return u?u.bind(e):r.bind(e)}function a(){return u?u.snapshot():function(e,...t){return e(...t)}}},5028:(e,t,n)=>{"use strict";n.d(t,{default:()=>u.a});var r=n(6645),u=n.n(r)},5744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(7828)},6645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(8229)._(n(7357));function u(e,t){var n;let u={};"function"==typeof e&&(u.loader=e);let l={...u,...t};return(0,r.default)({...l,modules:null==(n=l.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(5155),u=n(2115),l=n(2146);function o(e){return{default:e&&"default"in e?e.default:e}}n(255);let a={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},i=function(e){let t={...a,...e},n=(0,u.lazy)(()=>t.loader().then(o)),i=t.loading;function s(e){let o=i?(0,r.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,s=a?u.Suspense:u.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(s,{...a?{fallback:o}:{},children:c})}return s.displayName="LoadableComponent",s}},7577:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(5155);let u=(0,n(5028).default)(()=>n.e(856).then(n.bind(n,2856)),{loadableGenerated:{webpack:()=>[2856]},ssr:!1});function l(){return(0,r.jsx)(u,{})}},7758:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,347,23)),Promise.resolve().then(n.bind(n,7577))},7828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(4054).createAsyncLocalStorage)()}},e=>{var t=t=>e(e.s=t);e.O(0,[690,441,684,358],()=>t(7758)),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{255:(e,t,r)=>{"use strict";function a(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return a}}),r(5155),r(7650),r(5744),r(589)},2146:(e,t,r)=>{"use strict";function a(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}}),r(5262)},3792:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var a=r(5155),n=r(2115),s=r(5060),l=r(5028);let o=[{name:"接口1",url:"https://jx.xmflv.com/?url=",available:!0,tag:"可用"},{name:"接口2",url:"https://jx.parwix.com:4433/player/?url=",available:!1},{name:"接口3",url:"https://jx.iztyy.com/svip/?url=",available:!1},{name:"接口4",url:"https://jx.bozrc.com:4433/player/?url=",available:!1},{name:"接口5",url:"https://jx.4kdv.com/?url=",available:!1}],i=(0,l.default)(()=>r.e(873).then(r.bind(r,6873)),{loadableGenerated:{webpack:()=>[6873]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"pt-[56.25%] w-full bg-gray-800 rounded-lg overflow-hidden relative",children:(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsxs)("svg",{className:"animate-spin h-8 w-8 text-white mb-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,a.jsx)("span",{className:"text-white text-sm",children:"加载播放器中..."})]})})})});function c(){let[e,t]=(0,n.useState)(""),[r,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)([]),[x,g]=(0,n.useState)(0),[h,b]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!1),[y,v]=(0,n.useState)("用户"),[j,k]=(0,n.useState)(!1),[w,N]=(0,n.useState)(""),[S,L]=(0,n.useState)(!1),[_,C]=(0,n.useState)(""),[E,O]=(0,n.useState)(!1),[M,P]=(0,n.useState)(!0),[A,T]=(0,n.useState)(!1),[I,R]=(0,n.useState)(""),[B,W]=(0,n.useState)(""),[z,H]=(0,n.useState)(!0),[D,V]=(0,n.useState)(!1),[F,U]=(0,n.useState)(!1),G=(0,n.useRef)(null),J=(0,n.useRef)(null),X=(0,n.useRef)(null),q=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e.matches;p(t),t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");let r=e=>{p(e.matches),e.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem("playInNewTab");null!==e&&P("true"===e);let t=localStorage.getItem("username");t&&v(t)},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem("videoHistory");e&&m(JSON.parse(e))},[]),(0,n.useEffect)(()=>{function e(e){J.current&&!J.current.contains(e.target)&&b(!1),X.current&&X.current.contains(e.target),q.current&&q.current.contains(e.target)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let K=e=>{m(e),localStorage.setItem("videoHistory",JSON.stringify(e))},Q=e=>{try{let t=new URL(e);return t.origin+t.pathname}catch(t){return e}},Y=async t=>{t.preventDefault(),l(!0),d(""),V(!1),U(!1);try{try{new URL(e)}catch(e){throw Error("无效的视频链接")}let t=Q(e),r=t.split("/").pop()||"未知视频",a=w.trim()?w.trim():r,n={url:t,title:a,timestamp:Date.now(),isFavorite:!1,description:_.trim()||void 0};K([n,...u]),N(""),k(!1),C(""),L(!1);let s=o[x].url+encodeURIComponent(e);if(M)try{window.open(s,"_blank")}catch(t){console.error("打开新标签页失败:",t);let e=document.createElement("a");e.href=s,e.target="_blank",e.rel="noopener noreferrer",document.body.appendChild(e),e.click(),document.body.removeChild(e)}else H(!0),R(s),W(a),T(!0),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{H(!1),U(!0)},15e3),setTimeout(()=>{var e;null==(e=document.getElementById("video-player-section"))||e.scrollIntoView({behavior:"smooth"})},100)}catch(e){d(e instanceof Error?e.message:"解析失败,请稍后重试")}finally{l(!1)}},Z=e=>{g(e),b(!1)},$=()=>{if(I){console.log("在新标签页打开:",I);try{window.open(I,"_blank")}catch(t){console.error("打开新标签页失败:",t);let e=document.createElement("a");e.href=I,e.target="_blank",e.rel="noopener noreferrer",document.body.appendChild(e),e.click(),document.body.removeChild(e)}}};return(0,a.jsxs)("div",{className:"flex h-full",children:[(0,a.jsx)(s.A,{darkMode:f,username:y,isOpen:E,onToggle:()=>O(!E)}),(0,a.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white flex flex-col Line truncated
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{2608:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var a=s(5155),r=s(2115),l=s(5060);function n(){let[e,t]=(0,r.useState)(!1),[s,n]=(0,r.useState)(0),[d,i]=(0,r.useState)("用户"),[c,o]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),[h,g]=(0,r.useState)(!1),[u,j]=(0,r.useState)(!0);(0,r.useEffect)(()=>{let e=localStorage.getItem("theme"),s=window.matchMedia("(prefers-color-scheme: dark)").matches;"light"===e?(t(!1),document.documentElement.classList.remove("dark")):"dark"===e?(t(!0),document.documentElement.classList.add("dark")):(t(s),s?(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light")));let a=localStorage.getItem("currentApiIndex");a&&n(parseInt(a,10));let r=localStorage.getItem("username");r&&i(r);let l=localStorage.getItem("playInNewTab");null!==l&&j("true"===l)},[]);let k=e=>{n(e),localStorage.setItem("currentApiIndex",e.toString())};return(0,a.jsxs)("div",{className:"flex h-full",children:[(0,a.jsx)(l.A,{darkMode:e,username:d,isOpen:h,onToggle:()=>g(!h)}),(0,a.jsxs)("div",{className:"flex-1 md:ml-64 bg-white dark:bg-black min-h-screen text-black dark:text-white transition-all duration-300 ".concat(h?"md:translate-x-0":"translate-x-0"),children:[(0,a.jsx)("nav",{className:"border-b border-gray-100 dark:border-gray-800",children:(0,a.jsxs)("div",{className:"max-w-5xl mx-auto px-4 py-4 flex items-center",children:[(0,a.jsx)("button",{className:"md:hidden mr-4 text-gray-600 dark:text-gray-400",onClick:()=>g(!h),"aria-label":"打开菜单",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,a.jsx)("h1",{className:"text-xl font-medium",children:"设置"})]})}),(0,a.jsx)("main",{className:"max-w-5xl mx-auto px-4 py-8",children:(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{className:"text-lg font-medium mb-4",children:"个人信息"}),(0,a.jsx)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-4",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"用户名"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"修改您的显示名称"})]}),c?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{type:"text",value:m,onChange:e=>x(e.target.value),className:"px-2 py-1 text-sm border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-black dark:text-white",maxLength:20}),(0,a.jsx)("button",{onClick:()=>{m.trim()&&(i(m.trim()),localStorage.setItem("username",m.trim())),o(!1)},className:"p-1 text-green-600 dark:text-green-400",title:"保存",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})})}),(0,a.jsx)("button",{onClick:()=>{o(!1)},className:"p-1 text-red-600 dark:text-red-400",title:"取消",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:d}),(0,a.jsx)("button",{onClick:()=>{x(d),o(!0)},className:"p-1 text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white",title:"编辑",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})})})]})]})})]}),(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{className:"text-lg font-medium mb-4",children:"外观"}),(0,a.jsx)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-4",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"暗色模式"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"切换界面暗色/亮色模式"})]}),(0,a.jsx)("button",{onClick:()=>{t(!e),e?(document.documentElement.classList.remove("dark"),lLine truncated