import{d as ut,o as xt,l as Mn,i as d,c as f,m as _e,a as h,n as ot,t as p,j as ze,b as A,F as Z,r as se,p as zt,g as M,q as K,_ as ct,v as Ht,e as x,w as j,f as An,k as te,x as Ue,y as Rn,h as fe,s as Sn,z as Pn,E as Xe,u as Nn,A as Ln}from"./index-CBf4dz4k.js";import{C as Yt,a as Ie,b as jt}from"./index-Bn7NwETH.js";import{a as Dn,s as Un,b as Vn,q as Fn,c as qn,d as zn}from"./index-DXp3oW3R.js";var Re={},Hn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Gt={},ne={};let dt;const Kn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ne.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};ne.getSymbolTotalCodewords=function(t){return Kn[t]};ne.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};ne.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');dt=t};ne.isKanjiModeEnabled=function(){return typeof dt<"u"};ne.toSJIS=function(t){return dt(t)};var Oe={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+a)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,n){if(e.isValid(s))return s;try{return t(s)}catch{return n}}})(Oe);function Qt(){this.buffer=[],this.length=0}Qt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let a=0;a>>t-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var On=Qt;function Se(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Se.prototype.set=function(e,t,a,s){const n=e*this.size+t;this.data[n]=a,s&&(this.reservedBit[n]=!0)};Se.prototype.get=function(e,t){return this.data[e*this.size+t]};Se.prototype.xor=function(e,t,a){this.data[e*this.size+t]^=a};Se.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Jn=Se,Xt={};(function(e){const t=ne.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const n=Math.floor(s/7)+2,o=t(s),i=o===145?26:Math.ceil((o-13)/(2*n-2))*2,r=[o-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const o=n.size;let i=0,r=0,u=0,v=null,g=null;for(let L=0;L=5&&(i+=t.N1+(r-5)),v=m,r=1),m=n.get(E,L),m===g?u++:(u>=5&&(i+=t.N1+(u-5)),g=m,u=1)}r>=5&&(i+=t.N1+(r-5)),u>=5&&(i+=t.N1+(u-5))}return i},e.getPenaltyN2=function(n){const o=n.size;let i=0;for(let r=0;r=10&&(r===1488||r===93)&&i++,u=u<<1&2047|n.get(g,v),g>=10&&(u===1488||u===93)&&i++}return i*t.N3},e.getPenaltyN4=function(n){let o=0;const i=n.data.length;for(let u=0;u=0;){const i=o[0];for(let u=0;u0){const o=new Uint8Array(this.degree);return o.set(s,n),o}return s};var xn=ft,nn={},ge={},ht={};ht.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ie={};const sn="[0-9]+",Yn="[A-Z $%*+\\-./:]+";let Ae="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ae=Ae.replace(/u/g,"\\u");const jn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ae+`)(?:.|[\r ]))+`;ie.KANJI=new RegExp(Ae,"g");ie.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ie.BYTE=new RegExp(jn,"g");ie.NUMERIC=new RegExp(sn,"g");ie.ALPHANUMERIC=new RegExp(Yn,"g");const Gn=new RegExp("^"+Ae+"$"),Qn=new RegExp("^"+sn+"$"),Xn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ie.testKanji=function(t){return Gn.test(t)};ie.testNumeric=function(t){return Qn.test(t)};ie.testAlphanumeric=function(t){return Xn.test(t)};(function(e){const t=ht,a=ie;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return a.testNumeric(o)?e.NUMERIC:a.testAlphanumeric(o)?e.ALPHANUMERIC:a.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(o,i){if(e.isValid(o))return o;try{return s(o)}catch{return i}}})(ge);(function(e){const t=ne,a=Je,s=Oe,n=ge,o=ht,i=7973,r=t.getBCHDigit(i);function u(E,m,I){for(let T=1;T<=40;T++)if(m<=e.getCapacity(T,I,E))return T}function v(E,m){return n.getCharCountIndicator(E,m)+4}function g(E,m){let I=0;return E.forEach(function(T){const F=v(T.mode,m);I+=F+T.getBitsLength()}),I}function L(E,m){for(let I=1;I<=40;I++)if(g(E,I)<=e.getCapacity(I,m,n.MIXED))return I}e.from=function(m,I){return o.isValid(m)?parseInt(m,10):I},e.getCapacity=function(m,I,T){if(!o.isValid(m))throw new Error("Invalid QR Code version");typeof T>"u"&&(T=n.BYTE);const F=t.getSymbolTotalCodewords(m),_=a.getTotalCodewordsCount(m,I),C=(F-_)*8;if(T===n.MIXED)return C;const w=C-v(T,m);switch(T){case n.NUMERIC:return Math.floor(w/10*3);case n.ALPHANUMERIC:return Math.floor(w/11*2);case n.KANJI:return Math.floor(w/13);case n.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(m,I){let T;const F=s.from(I,s.M);if(Array.isArray(m)){if(m.length>1)return L(m,F);if(m.length===0)return 1;T=m[0]}else T=m;return u(T.mode,T.getLength(),F)},e.getEncodedBits=function(m){if(!o.isValid(m)||m<7)throw new Error("Invalid QR Code version");let I=m<<12;for(;t.getBCHDigit(I)-r>=0;)I^=i<=0;)n^=an<0&&(s=this.data.substr(a),n=parseInt(s,10),t.put(n,o*3+1))};var es=we;const ts=ge,Ze=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ke(e){this.mode=ts.ALPHANUMERIC,this.data=e}ke.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ke.prototype.getLength=function(){return this.data.length};ke.prototype.getBitsLength=function(){return ke.getBitsLength(this.data.length)};ke.prototype.write=function(t){let a;for(a=0;a+2<=this.data.length;a+=2){let s=Ze.indexOf(this.data[a])*45;s+=Ze.indexOf(this.data[a+1]),t.put(s,11)}this.data.length%2&&t.put(Ze.indexOf(this.data[a]),6)};var ns=ke;const ss=ge;function be(e){this.mode=ss.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}be.getBitsLength=function(t){return t*8};be.prototype.getLength=function(){return this.data.length};be.prototype.getBitsLength=function(){return be.getBitsLength(this.data.length)};be.prototype.write=function(e){for(let t=0,a=this.data.length;t=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),e.put(a,13)}};var is=Ce,rn={exports:{}};(function(e){var t={single_source_shortest_paths:function(a,s,n){var o={},i={};i[s]=0;var r=t.PriorityQueue.make();r.push(s,0);for(var u,v,g,L,E,m,I,T,F;!r.empty();){u=r.pop(),v=u.value,L=u.cost,E=a[v]||{};for(g in E)E.hasOwnProperty(g)&&(m=E[g],I=L+m,T=i[g],F=typeof i[g]>"u",(F||T>I)&&(i[g]=I,r.push(g,I),o[g]=v))}if(typeof n<"u"&&typeof i[n]>"u"){var _=["Could not find a path from ",s," to ",n,"."].join("");throw new Error(_)}return o},extract_shortest_path_from_predecessor_list:function(a,s){for(var n=[],o=s;o;)n.push(o),a[o],o=a[o];return n.reverse(),n},find_path:function(a,s,n){var o=t.single_source_shortest_paths(a,s,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(a){var s=t.PriorityQueue,n={},o;a=a||{};for(o in s)s.hasOwnProperty(o)&&(n[o]=s[o]);return n.queue=[],n.sorter=a.sorter||s.default_sorter,n},default_sorter:function(a,s){return a.cost-s.cost},push:function(a,s){var n={value:a,cost:s};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(rn);var rs=rn.exports;(function(e){const t=ge,a=es,s=ns,n=os,o=is,i=ie,r=ne,u=rs;function v(_){return unescape(encodeURIComponent(_)).length}function g(_,C,w){const k=[];let N;for(;(N=_.exec(w))!==null;)k.push({data:N[0],index:N.index,mode:C,length:N[0].length});return k}function L(_){const C=g(i.NUMERIC,t.NUMERIC,_),w=g(i.ALPHANUMERIC,t.ALPHANUMERIC,_);let k,N;return r.isKanjiModeEnabled()?(k=g(i.BYTE,t.BYTE,_),N=g(i.KANJI,t.KANJI,_)):(k=g(i.BYTE_KANJI,t.BYTE,_),N=[]),C.concat(w,k,N).sort(function(V,b){return V.index-b.index}).map(function(V){return{data:V.data,mode:V.mode,length:V.length}})}function E(_,C){switch(C){case t.NUMERIC:return a.getBitsLength(_);case t.ALPHANUMERIC:return s.getBitsLength(_);case t.KANJI:return o.getBitsLength(_);case t.BYTE:return n.getBitsLength(_)}}function m(_){return _.reduce(function(C,w){const k=C.length-1>=0?C[C.length-1]:null;return k&&k.mode===w.mode?(C[C.length-1].data+=w.data,C):(C.push(w),C)},[])}function I(_){const C=[];for(let w=0;w<_.length;w++){const k=_[w];switch(k.mode){case t.NUMERIC:C.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:C.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:C.push([k,{data:k.data,mode:t.BYTE,length:v(k.data)}]);break;case t.BYTE:C.push([{data:k.data,mode:t.BYTE,length:v(k.data)}])}}return C}function T(_,C){const w={},k={start:{}};let N=["start"];for(let B=0;B<_.length;B++){const V=_[B],b=[];for(let R=0;R=0&&r<=6&&(u===0||u===6)||u>=0&&u<=6&&(r===0||r===6)||r>=2&&r<=4&&u>=2&&u<=4?e.set(o+r,i+u,!0,!0):e.set(o+r,i+u,!1,!0))}}function ms(e){const t=e.size;for(let a=8;a>r&1)===1,e.set(n,o,i,!0),e.set(o,n,i,!0)}function tt(e,t,a){const s=e.size,n=gs.getEncodedBits(t,a);let o,i;for(o=0;o<15;o++)i=(n>>o&1)===1,o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(s-15+o,8,i,!0),o<8?e.set(8,s-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(s-8,8,1,!0)}function ws(e,t){const a=e.size;let s=-1,n=a-1,o=7,i=0;for(let r=a-1;r>0;r-=2)for(r===6&&r--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,r-u)){let v=!1;i>>o&1)===1),e.set(n,r-u,v),o--,o===-1&&(i++,o=7)}if(n+=s,n<0||a<=n){n-=s,s=-s;break}}}function ks(e,t,a){const s=new us;a.forEach(function(u){s.put(u.mode.bit,4),s.put(u.getLength(),vs.getCharCountIndicator(u.mode,e)),u.write(s)});const n=xe.getSymbolTotalCodewords(e),o=it.getTotalCodewordsCount(e,t),i=(n-o)*8;for(s.getLengthInBits()+4<=i&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const r=(i-s.getLengthInBits())/8;for(let u=0;u=7&&_s(u,t),ws(u,i),isNaN(s)&&(s=lt.getBestMask(u,tt.bind(null,u,a))),lt.applyMask(s,u),tt(u,a,s),{modules:u,version:t,errorCorrectionLevel:a,maskPattern:s,segments:n}}Gt.create=function(t,a){if(typeof t>"u"||t==="")throw new Error("No input text");let s=$e.M,n,o;return typeof a<"u"&&(s=$e.from(a.errorCorrectionLevel,$e.M),n=Ke.from(a.version),o=lt.from(a.maskPattern),a.toSJISFunc&&xe.setToSJISFunction(a.toSJISFunc)),Cs(t,n,s,o)};var un={},gt={};(function(e){function t(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw new Error("Color should be defined as hex string");let s=a.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+a);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const n=parseInt(s.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const n=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,i=s.scale||4;return{width:o,scale:o?4:i,margin:n,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,n){return n.width&&n.width>=s+n.margin*2?n.width/(s+n.margin*2):n.scale},e.getImageWidth=function(s,n){const o=e.getScale(s,n);return Math.floor((s+n.margin*2)*o)},e.qrToImageData=function(s,n,o){const i=n.modules.size,r=n.modules.data,u=e.getScale(i,o),v=Math.floor((i+o.margin*2)*u),g=o.margin*u,L=[o.color.light,o.color.dark];for(let E=0;E=g&&m>=g&&E"u"&&(!i||!i.getContext)&&(u=i,i=void 0),i||(v=s()),u=t.getOptions(u);const g=t.getImageWidth(o.modules.size,u),L=v.getContext("2d"),E=L.createImageData(g,g);return t.qrToImageData(E.data,o,u),a(L,v,g),L.putImageData(E,0,0),v},e.renderToDataURL=function(o,i,r){let u=r;typeof u>"u"&&(!i||!i.getContext)&&(u=i,i=void 0),u||(u={});const v=e.render(o,i,u),g=u.type||"image/png",L=u.rendererOpts||{};return v.toDataURL(g,L.quality)}})(un);var cn={};const Es=gt;function Jt(e,t){const a=e.a/255,s=t+'="'+e.hex+'"';return a<1?s+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':s}function nt(e,t,a){let s=e+t;return typeof a<"u"&&(s+=" "+a),s}function Ts(e,t,a){let s="",n=0,o=!1,i=0;for(let r=0;r0&&u>0&&e[r-1]||(s+=o?nt("M",u+a,.5+v+a):nt("m",n,0),n=0,o=!1),u+1':"",v="',g='viewBox="0 0 '+r+" "+r+'"',E=''+u+v+` `;return typeof s=="function"&&s(null,E),E};const Bs=Hn,rt=Gt,dn=un,Is=cn;function vt(e,t,a,s,n){const o=[].slice.call(arguments,1),i=o.length,r=typeof o[i-1]=="function";if(!r&&!Bs())throw new Error("Callback required as last argument");if(r){if(i<2)throw new Error("Too few arguments provided");i===2?(n=a,a=t,t=s=void 0):i===3&&(t.getContext&&typeof n>"u"?(n=s,s=void 0):(n=s,s=a,a=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(a=t,t=s=void 0):i===2&&!t.getContext&&(s=a,a=t,t=void 0),new Promise(function(u,v){try{const g=rt.create(a,s);u(e(g,t,s))}catch(g){v(g)}})}try{const u=rt.create(a,s);n(null,e(u,t,s))}catch(u){n(u)}}Re.create=rt.create;Re.toCanvas=vt.bind(null,dn.render);Re.toDataURL=vt.bind(null,dn.renderToDataURL);Re.toString=vt.bind(null,function(e,t,a){return Is.render(e,a)});const Ms={class:"card-cover"},As=["src","alt"],Rs=["src"],Ss={class:"placeholder-icon"},Ps=["src"],Ns={key:1},Ls={class:"card-body"},Ds=["title"],Us={class:"card-time"},Vs={key:0,class:"meta-size"},Fs={key:0,class:"card-tags"},qs={class:"card-bottom-row"},zs={class:"bottom-left"},Hs=["title"],Ks={class:"bottom-right"},Os=1e4,Js=ut({__name:"ResultCard",props:{data:{},fallbackTags:{},fallbackImage:{},loggedIn:{type:Boolean},cloudTypeMap:{}},emits:["save"],setup(e,{emit:t}){const a=e,s=t,n=M(!1),o=M(!1),i=M(!1);let r=null;xt(()=>{if(a.data.cover&&!n.value){i.value=!0;const b=new Image;let R=!1;r=setTimeout(()=>{R||(R=!0,i.value=!1)},Os),b.onload=()=>{R||(R=!0,n.value=!0,i.value=!1,r&&clearTimeout(r))},b.onerror=()=>{R||(R=!0,i.value=!1,r&&clearTimeout(r))},b.src=a.data.cover}}),Mn(()=>{r&&clearTimeout(r)});function u(){n.value=!1}function v(){o.value=!0}const g=K(()=>{var R,q;return((q=(R=a.cloudTypeMap)==null?void 0:R[a.data.cloud_type])==null?void 0:q.icon)||jt[a.data.cloud_type]||"📁"}),L=K(()=>({quark:"linear-gradient(135deg, #e8f5e9, #c8e6c9)",baidu:"linear-gradient(135deg, #e3f2fd, #bbdefb)",aliyun:"linear-gradient(135deg, #fff3e0, #ffe0b2)",115:"linear-gradient(135deg, #f3e5f5, #e1bee7)",xunlei:"linear-gradient(135deg, #e8f5e9, #a5d6a7)",magnet:"linear-gradient(135deg, #e8eaf6, #c5cae9)"})[a.data.cloud_type]||"linear-gradient(135deg, #f5f5f5, #e0e0e0)");function E(b){if(!b)return"";const R=Date.now(),q=new Date(b);if(isNaN(q.getTime()))return b.slice(0,10);const Y=R-q.getTime();if(Y<0)return b.slice(0,10);const O=Math.floor(Y/1e3);if(O<60)return"刚刚";const z=Math.floor(O/60);if(z<60)return`${z} 分钟前`;const X=Math.floor(z/60);if(X<24)return`${X} 小时前`;const oe=Math.floor(X/24);return oe<30?`${oe} 天前`:oe<365?`${Math.floor(oe/30)} 个月前`:`${Math.floor(oe/365)} 年前`}const m=K(()=>E(a.data.update_time||a.data.datetime)),I=K(()=>{const b=a.data.source||"";return b?b.startsWith("tg:")?"@"+b.slice(3):b.startsWith("plugin:")?b.slice(7):b:""}),T=K(()=>{const b=a.data.source||"";return b.startsWith("tg:")?"📢":b.startsWith("plugin:")?"🔌":"📎"}),F=[/^\[夸克网盘\][::]?\s*/,/^【#电影名称:】\s*/,/^【#电影名称[::]】\s*/,/^【[^】]*[网盘|分享|电影|下载|资源]】[::]?\s*/,/^\[[^\]]*[网盘|分享|电影|下载|资源]\]\s*/,/^[##]电影名称[::]?\s*/,/^[##]资源名称[::]?\s*/,/^[##]标题[::]?\s*/,/^【[^】]*资源名称[^】]*】\s*/,/^【影片名称】\s*/,/^【资源名称】\s*/,/^【标题】\s*/],_=K(()=>{let b=a.data.title||"";for(const R of F)b=b.replace(R,"");return b=b.replace(/【[^】]+】/g,"").trim(),b||a.data.title}),C=new Set(["4K","1080P","2160P","720P","480P","HDR","HDR10","HDR10+","DV","杜比视界","杜比全景声","高码率","BluRay","REMUX","HEVC","x264","x265","AVC","内封简繁英字幕","内嵌中英字幕","内封简繁","内嵌字幕","字幕","中文字幕","简繁字幕","中英字幕","内封字幕","臻彩","高清","WEB-DL","WEBRip","蓝光"]),w=[/\b(4K)\b/,/\b(1080[Pp])\b/,/\b(2160[Pp])\b/,/\b(720[Pp])\b/,/\b(HDR10?\+?)\b/i,/\b(DV)\b/i,/\b(BluRay|蓝光)\b/i,/\b(REMUX)\b/i,/\b(HEVC)\b/i,/\b(x264)\b/i,/\b(x265)\b/i,/\b(WEB-DL)\b/i,/\b(WEBRip)\b/i],k=K(()=>{const b=a.data.title||"",R=[],q=b.matchAll(/【([^】]+)】/g);for(const O of q){const X=O[1].split(/[.·、,,\/\\|]/);for(const oe of X){const ue=oe.trim();ue&&C.has(ue)&&!R.includes(ue)&&R.push(ue)}}for(const O of w){const z=b.match(O);if(z){const X=z[1];R.includes(X)||R.push(X)}}const Y=["杜比视界","杜比全景声","高码率","内封简繁英字幕","内嵌中英字幕","内封简繁","内嵌字幕","中文字幕","简繁字幕","中英字幕","内封字幕","臻彩"];for(const O of Y)b.includes(O)&&!R.includes(O)&&R.push(O);return R.length===0&&a.fallbackTags&&a.fallbackTags.length>0?a.fallbackTags.slice(0,6):R.slice(0,10)});function N(b){return["4K","1080P","2160P","720P","480P","HDR","HDR10","HDR10+","DV","杜比视界","BluRay","REMUX","HEVC","x264","x265","臻彩","高清","WEB-DL","WEBRip"].includes(b)?"quality":b.includes("字幕")||b==="杜比全景声"||b==="高码率"?"subtitle":"default"}function B(){s("save",a.data)}function V(){a.data.share_url&&window.open(a.data.share_url,"_blank")}return(b,R)=>(d(),f("div",{class:_e(["result-card",{clickable:e.loggedIn}]),onClick:R[0]||(R[0]=q=>e.loggedIn&&V())},[h("div",Ms,[n.value?(d(),f("img",{key:0,src:e.data.cover,alt:e.data.title,onError:u,loading:"lazy",fetchpriority:"low"},null,40,As)):e.fallbackImage&&!o.value?(d(),f("img",{key:1,src:e.fallbackImage,alt:"cover",class:"fallback-img",onError:v},null,40,Rs)):(d(),f("div",{key:2,class:"cover-placeholder",style:ot({background:L.value})},[h("span",Ss,[g.value.startsWith("data:")||g.value.startsWith("http")||g.value.startsWith("/")?(d(),f("img",{key:0,src:g.value,style:{width:"36px",height:"36px"}},null,8,Ps)):(d(),f("span",Ns,p(g.value),1))])],4)),h("span",{class:"cover-tag",style:ot({background:ze(Yt)[e.data.cloud_type]})},p(ze(Ie)[e.data.cloud_type]),5)]),h("div",Ls,[h("div",{class:"card-title",title:e.data.title},p(_.value),9,Ds),h("div",Us,[h("span",null,"🕐 "+p(m.value),1),e.data.file_size?(d(),f("span",Vs,"📦 "+p(e.data.file_size),1)):A("",!0)]),k.value.length>0?(d(),f("div",Fs,[(d(!0),f(Z,null,se(k.value,(q,Y)=>(d(),f("span",{key:Y,class:_e(["tag","tag-"+N(q)])},p(q),3))),128))])):A("",!0),h("div",qs,[h("div",zs,[I.value?(d(),f("span",{key:0,class:"meta-source",title:e.data.source},p(T.value)+" "+p(I.value),9,Hs)):A("",!0)]),h("div",Ks,[e.data.share_url&&!e.loggedIn?(d(),f("button",{key:0,class:"action-btn get-link-btn",onClick:zt(B,["stop"])}," 🔗 获取分享链接 ")):A("",!0),e.data.share_url&&e.loggedIn?(d(),f("button",{key:1,class:"action-btn open-link-btn",onClick:zt(V,["stop"])}," 🔗 打开链接 ")):A("",!0)])])])],2))}}),Wt=ct(Js,[["__scopeId","data-v-862af59b"]]),Ws={class:"video-card"},xs={class:"video-cover"},Ys=["src","alt"],js={class:"platform-tag"},Gs={class:"video-info"},Qs={key:0,class:"video-author"},Xs={key:1,class:"video-desc"},Zs=ut({__name:"VideoResultCard",props:{data:{}},emits:["save"],setup(e,{emit:t}){const a=e,s=t;function n(){s("save",a.data)}return(o,i)=>(d(),f("div",Ws,[h("div",xs,[h("img",{src:e.data.cover,alt:e.data.title},null,8,Ys),i[0]||(i[0]=h("div",{class:"play-icon"},"▶",-1)),h("span",js,p(e.data.platform),1)]),h("div",Gs,[h("h4",null,p(e.data.title),1),e.data.author?(d(),f("p",Qs,"👤 "+p(e.data.author),1)):A("",!0),e.data.description?(d(),f("p",Xs,p(e.data.description),1)):A("",!0)]),h("div",{class:"video-actions"},[h("button",{class:"save-btn",onClick:n},"📥 保存到云盘并获取下载链接")])]))}}),$s=ct(Zs,[["__scopeId","data-v-c6df203e"]]),eo={class:"search-result-page"},to={class:"top-search-bar"},no={class:"search-bar-inner"},so=["src","alt"],oo={key:1,class:"logo-text-only"},ao={key:2,class:"logo-icon"},lo={class:"search-box-inner"},io={key:0,class:"marquee-bar"},ro={class:"marquee-track"},uo={class:"marquee-text"},co={class:"result-content"},fo={key:0,class:"result-info-bar"},ho={class:"info-left"},go={key:0,class:"info-item info-count"},vo={key:1,class:"info-item info-type"},po={key:2,class:"filter-badge"},mo={key:3,class:"skip-badge"},yo={class:"info-right"},_o={key:0,class:"info-item info-time"},wo={key:1,class:"info-hasmore"},ko={key:1,class:"loading-section"},bo={class:"progress-track"},Co={class:"progress-label"},Eo={key:0},To={key:1},Bo={key:0,class:"validate-count"},Io={key:2},Mo={class:"progress-time"},Ao={key:2,class:"cloud-tabs"},Ro=["onClick"],So=["src"],Po={key:1,class:"tab-icon"},No={key:2,class:"tab-count"},Lo={key:3,class:"media-strip"},Do=["href"],Uo={key:0,class:"strip-thumb"},Vo=["src"],Fo={key:1,class:"strip-thumb strip-thumb-fallback"},qo={class:"strip-title"},zo={key:2,class:"strip-year"},Ho={key:3,class:"strip-rating"},Ko={key:4,class:"strip-genres"},Oo={key:5,class:"strip-tags"},Jo={key:1,class:"media-strip-inner"},Wo={key:0,class:"strip-thumb"},xo=["src"],Yo={key:1,class:"strip-thumb strip-thumb-fallback"},jo={class:"strip-title"},Go={key:2,class:"strip-year"},Qo={key:3,class:"strip-rating"},Xo={key:4,class:"strip-genres"},Zo={key:5,class:"strip-tags"},$o={key:0,class:"result-list flat-list"},ea={key:0,class:"load-more-inline"},ta={key:1,class:"result-list channel-list"},na={class:"channel-header"},sa=["src"],oa={key:1,class:"channel-icon"},aa={class:"channel-label"},la={class:"channel-total-badge"},ia={key:2,class:"channel-time"},ra=["onClick"],ua={class:"channel-load-more-text"},ca={key:2,class:"no-match-tip"},da={key:5,class:"result-list"},fa={key:6,class:"empty-wrapper"},ha={class:"empty-hint"},ga={key:0,class:"empty-tips"},va={key:7,class:"load-more"},pa={class:"dialog-title-bold"},ma={class:"result-dialog-content"},ya={key:0,class:"progress-flow"},_a={class:"step-dot"},wa={key:0,class:"step-check"},ka={key:1,class:"step-num"},ba={class:"step-body"},Ca={class:"step-title"},Ea={key:0,class:"step-status loading"},Ta={key:1,class:"step-status done"},Ba={class:"step-dot"},Ia={key:0,class:"step-check"},Ma={key:1,class:"step-num"},Aa={class:"step-body"},Ra={key:0,class:"step-status loading"},Sa={key:1,class:"step-status done"},Pa={key:2,class:"step-status pending"},Na={class:"step-dot"},La={key:0,class:"step-check"},Da={key:1,class:"step-num"},Ua={class:"step-body"},Va={key:0,class:"step-status loading"},Fa={key:1,class:"step-status done"},qa={key:2,class:"step-status pending"},za={key:1,class:"save-error"},Ha={key:2,class:"rename-info-bar"},Ka={style:{"font-size":"13px"}},Oa={key:3,class:"share-result"},Ja={class:"share-layout"},Wa={class:"qr-left"},xa={class:"qr-hint"},Ya={class:"link-right"},ja={class:"success-header"},Ga={class:"success-text"},Qa={class:"link-row"},Xa={key:0,class:"share-pwd-row"},Za={class:"share-tip"},$a={class:"share-tip-text"},el={class:"dialog-actions"},tl={key:0,class:"site-footer"},nl={class:"footer-inner"},sl={class:"footer-actions"},st=30,qe=20,ol=ut({__name:"SearchResult",setup(e){const t=Rn(),a=Nn(),s=M(""),n=M(!1),o=M(!1),i=M(null),r=M([]),u=M([]),v=M([]),g=M([]),L=M(0),E=M(0),m=M(!1),I=M(1),T=M(0),F=M(0),_=M(""),C=M(0),w=M("search"),k=M(0),N=M(0),B=M(null),V=M([]),b=K(()=>R.value||q.value||""),R=M(""),q=M(""),Y=M(""),O=M(""),z=M(""),X=M(!1),oe=M(new Map),ue=M([]),Ee=M(st),ve=M({}),Pe=M({});function pt(c){var l;return((l=Pe.value[c])==null?void 0:l.icon)||jt[c]||"📁"}async function fn(){try{const c=await Vn(),l={};for(const P of c.types)l[P.type]={label:P.label,icon:P.icon};Pe.value=l}catch{}}xt(async()=>{try{const l=await Dn();l.site_logo&&(q.value=l.site_logo),l.site_name&&(Y.value=l.site_name),l.site_disclaimer&&(O.value=l.site_disclaimer),l.site_marquee&&(z.value=l.site_marquee)}catch{}const c=t.query.q||"";c&&(s.value=c,De(c)),fn()});const Ye=K(()=>{const c={};for(const H of r.value){const $=H.cloud_type||"others";c[$]=(c[$]||0)+1}const l=[];l.push({type:"",label:"全部",count:r.value.length,icon:"📋"});const P={quark:1,baidu:2,aliyun:3,115:4,tianyi:5,"123pan":6,uc:7,xunlei:8,pikpak:9,magnet:10,ed2k:11,others:12},D=Object.keys(Ie).sort((H,$)=>(P[H]??99)-(P[$]??99));for(const H of D)l.push({type:H,label:Ie[H],count:c[H]||0,icon:pt(H)});return l}),mt=K(()=>Ye.value.filter(c=>c.count>0));function hn(){const c=Ye.value.find(l=>l.type===_.value);return(c==null?void 0:c.label)||_.value||""}const je=K(()=>{const c=[];for(const l of g.value)c.push(...l.items);return c.sort((l,P)=>{const S=l.update_time||l.datetime||"",D=P.update_time||P.datetime||"";return!S&&!D?0:S?D?D.localeCompare(S):-1:1})}),yt=K(()=>je.value.slice(0,Ee.value)),gn=K(()=>Ee.value{const c=s.value.trim();return c?c.length<2?`「${c}」太短了,试试输入更完整的关键词`:c.length>30?"关键词太长啦,试试用几个核心词代替整句话":(c.match(/[\u4e00-\u9fff]/g)||[]).length===0?"网盘资源通常以中文命名,试试用中文搜索":`「${c}」暂时没找到匹配的资源`:"请输入关键词进行搜索"}),_t=K(()=>{const c=s.value.trim();if(!c)return["输入电视剧/电影/文件名称试试"];const l=[];c.length<2&&l.push("输入至少 2 个字符,试试完整的资源名称"),c.length>30&&l.push("缩短到 2-10 个字,用核心关键词搜索更精准");const P=(c.match(/[\u4e00-\u9fff]/g)||[]).length;return P===0&&l.push("国内网盘资源标题大多是中文,试试转换为中文名称"),P>0&&P=2&&l.push("混合了太多非中文字符,提取核心中文关键词试试"),(c.includes(" ")||c.includes(" "))&&l.push("搜索词中包含了空格,试试去掉空格连续输入"),["的","了","是","在","有","我","他","她","它","这","那","和","与","及","或","但","而","且"].filter($=>c.includes($)).length>=2&&c.length>6&&l.push("看起来像是一句话,试着只保留资源核心名称(去掉「的」「了」「我」等词)"),(c.match(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`《》【】!@#¥%……&*()——+|]/g)||[]).length>2&&l.push("特殊符号过多,试试只用中英文和数字"),c.length===1&&P===1&&l.push("单个汉字过于宽泛,试试完整的剧名或文件名"),l.length===0&&(l.push("试试更换关键词或减短搜索词"),l.push("检查一下是否输入了正确的资源名称")),l.slice(0,4)});function pn(){Ee.value+=st}function wt(c){const l=ve.value[c.cloud_type]||qe;return(c.items||[]).slice(0,l)}function mn(c){const l=ve.value[c.cloud_type]||qe;return(c.items||[]).length>l}function yn(c){ve.value={...ve.value,[c]:(ve.value[c]||qe)+qe}}function _n(){ve.value={}}const kt=K(()=>{let c=g.value;return _.value&&(c=c.filter(l=>l.cloud_type===_.value)),c}),wn=K(()=>T.value<=0?1:Math.ceil(T.value/20)),bt=K(()=>Ye.value.filter(c=>c.type!==""&&c.count>0).length);function kn(){s.value.trim()&&De(s.value.trim())}function bn(){C.value=0,w.value="search";const c=Date.now();F.value=0;const l=setInterval(()=>{if(!n.value){C.value=100,clearInterval(l);return}F.value=Date.now()-c,C.value<60?C.value+=1+Math.random()*3:C.value<85?(w.value="validate",C.value+=.5+Math.random()*1):C.value<98&&(C.value+=.2+Math.random()*.5)},200);return l}function Ge(c){const l=c.map(P=>P.update_time||P.datetime||"").filter(Boolean).sort().reverse();return l.length===0?"":Cn(l[0])}function Cn(c){if(!c)return"";const l=Date.now(),P=new Date(c);if(isNaN(P.getTime()))return c.slice(0,10);const S=l-P.getTime();if(S<0)return c.slice(0,10);const D=Math.floor(S/6e4);if(D<60)return D<=1?"刚刚":`${D} 分钟前`;const H=Math.floor(D/60);if(H<24)return`${H} 小时前`;const $=Math.floor(H/24);return $<30?`${$} 天前`:`${Math.floor($/30)} 个月前`}function Te(c){return pt(c)}Ht(()=>t.query.q,c=>{c&&c!==s.value&&(s.value=c,De(c))});const pe=M(!1),Ne=M(null),me=M(!1),re=M(!1),ce=M(null),ae=M(""),Be=M(""),ye=M([]),Qe=M(null),J=M(0),Le=K(()=>{var l;const c=((l=Ne.value)==null?void 0:l.cloud_type)||"quark";return Ie[c]||"夸克网盘"}),En=K(()=>{var P;const c=((P=Ne.value)==null?void 0:P.title)||"";return c.replace(/【[^】]+】/g,"").trim()||c||"资源"});async function De(c){n.value=!0;const l=Date.now();Ee.value=st,I.value=1,r.value=[],u.value=[],v.value=[],g.value=[],ue.value=[],oe.value=new Map,L.value=0,E.value=0,m.value=!1,_.value="",F.value=0,X.value=!1,z.value="",_n();const P=bn();try{i.value="SEARCH";let S=0,D=0;const H=new Map;let $=!1;await Un(c,{onStats:U=>{if(F.value=Date.now()-l,T.value=U.total,B.value=U.content_info||null,V.value=U.content_tags||[],U.fallback_image){R.value=U.fallback_image;const G=new Image;G.onload=()=>{},G.onerror=()=>{R.value=""},G.src=U.fallback_image}if(U.site_logo&&(q.value=U.site_logo),U.site_name&&(Y.value=U.site_name),U.site_disclaimer&&(O.value=U.site_disclaimer),U.site_marquee&&(z.value=U.site_marquee),w.value="validate",U.channels){const G=new Map,ee=[];for(const W of U.channels)for(const le of W.items||[])G.set(le.id,le),ee.push(le);oe.value=G,v.value=ee}U.link_validation&&(k.value=U.total)},onResult:(U,G)=>{if(S++,N.value=S,F.value=Date.now()-l,G){const ee=oe.value.get(U);ee&&(ue.value.push(ee),r.value=[...ue.value],g.value=Ct(r.value).map(W=>({...W,newestTime:Ge(W.items)})))}},onComplete:U=>{F.value=Date.now()-l;const G=U.results||[];T.value=G.length,L.value=U.filtered||0,E.value=U.skipped||0,m.value=!1,N.value=k.value,r.value=G,g.value=(U.channels||[]).map(W=>({...W,newestTime:Ge(W.items)}));const ee={};for(const W of G){const le=W.cloud_type||"others";ee[le]||(ee[le]=[]),ee[le].push(W)}g.value=g.value.map(W=>({...W,count:(ee[W.cloud_type]||[]).length,items:ee[W.cloud_type]||[]})).filter(W=>W.count>0),v.value=G,n.value=!1,w.value="done",C.value=100,clearInterval(P)},onError:U=>{console.error("搜索失败",U),n.value=!1,w.value="done",C.value=100,clearInterval(P)}})}catch(S){console.error("搜索异常",S),n.value=!1,w.value="done",C.value=100,clearInterval(P)}}function Ct(c){const l={},P={quark:1,baidu:2,aliyun:3,115:4,tianyi:5,"123pan":6,uc:7,xunlei:8,pikpak:9,magnet:10,ed2k:11,others:12};for(const S of c){const D=S.cloud_type||"others";l[D]||(l[D]=[]),l[D].push(S)}return Object.entries(l).sort((S,D)=>(P[S[0]]??99)-(P[D[0]]??99)).map(([S,D])=>({cloud_type:S,label:Ie[S]||S,color:Yt[S]||"#95a5a6",count:D.length,items:D,newestTime:Ge(D)}))}async function Et(){o.value=!0,I.value++;try{const c=await Fn(s.value,I.value),l=c.results;r.value.push(...l),T.value=c.total,m.value=c.total>r.value.length,L.value+=c.filtered||0,g.value=Ct(r.value)}catch(c){console.error("加载更多失败",c)}finally{o.value=!1}}function Tt(){const c=s.value.trim();c&&(a.replace("/search?q="+encodeURIComponent(c)),De(c))}async function Bt(c){var P;Ne.value=c,re.value=!1,ce.value=null,ae.value="",Be.value="",ye.value=[],pe.value=!0,me.value=!0,J.value=1;const l=c.cloud_type||"quark";try{const S=await qn({type:"search",source:c,target_cloud:l});ce.value=S,re.value=S.success,S.success&&(((P=S.renamed)==null?void 0:P.length)>0&&(ye.value=S.renamed),J.value=2,await new Promise(D=>setTimeout(D,600)),J.value=3,await new Promise(D=>setTimeout(D,400)),S.share_url&&(ae.value=S.share_url,Be.value=S.share_pwd||S.sharePwd||"",await new Promise(D=>setTimeout(D,300))),J.value=4)}catch(S){ce.value={success:!1,share_url:"",file_name:"",file_size:"",message:S.message||"保存请求失败"},re.value=!1}finally{pe.value=!1}}async function Tn(c){Ne.value=c,re.value=!1,ce.value=null,ae.value="",Be.value="",ye.value=[],pe.value=!0,me.value=!0;try{const l=await zn({video_url:c.video_url,title:c.title,target_cloud:"quark"});ce.value=l,re.value=l.success,l.success&&l.share_url&&(ae.value=l.share_url)}catch(l){ce.value={success:!1,share_url:"",file_name:"",file_size:"",message:l.message||"保存请求失败"},re.value=!1}finally{pe.value=!1}}Ht([ae,pe],async([c,l])=>{c&&!l&&me.value&&(await Ln(),Qe.value&&Re.toCanvas(Qe.value,c,{width:180,margin:1}))});function Bn(){if(!ae.value)return;const c=ae.value;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(c).then(()=>{Xe.success("链接已复制")}).catch(()=>{Mt(c)}):Mt(c)}function It(){window.open("/disclaimer/","_blank")}function Mt(c){const l=document.createElement("textarea");l.value=c,l.style.position="fixed",l.style.left="-9999px",l.style.top="-9999px",l.style.opacity="0",document.body.appendChild(l),l.select();try{document.execCommand("copy"),Xe.success("链接已复制")}catch{Xe.warning("复制失败,请手动复制链接")}document.body.removeChild(l)}return(c,l)=>{var W,le,At,Rt,St,Pt,Nt,Lt,Dt,Ut,Vt,Ft,qt;const P=fe("router-link"),S=fe("el-icon"),D=fe("el-input"),H=fe("el-button"),$=fe("el-skeleton"),U=fe("el-alert"),G=fe("el-tag"),ee=fe("el-dialog");return d(),f(Z,null,[h("div",eo,[h("div",to,[h("div",no,[x(P,{to:"/",class:"logo-link",title:"返回首页"},{default:j(()=>[q.value?(d(),f("img",{key:0,src:q.value,alt:Y.value||"首页",class:"logo-img",onError:l[0]||(l[0]=y=>y.target.style.display="none")},null,40,so)):Y.value?(d(),f("div",oo,p(Y.value),1)):(d(),f("div",ao,[...l[7]||(l[7]=[h("svg",{viewBox:"0 0 28 28",width:"28",height:"28",fill:"none"},[h("circle",{cx:"14",cy:"14",r:"13",stroke:"var(--primary-color)","stroke-width":"2"}),h("path",{d:"M8 14l4 4 8-8",stroke:"var(--primary-color)","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]))]),_:1}),h("div",lo,[x(D,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=y=>s.value=y),placeholder:"搜索网盘资源,或粘贴视频/网盘链接...",size:"large",clearable:"",onKeyup:An(Tt,["enter"])},{prefix:j(()=>[x(S,null,{default:j(()=>[x(ze(Sn))]),_:1})]),_:1},8,["modelValue"]),x(H,{type:"primary",size:"large",onClick:Tt,class:"result-search-btn"},{default:j(()=>[...l[8]||(l[8]=[te("搜 索",-1)])]),_:1})])])]),z.value?(d(),f("div",io,[l[9]||(l[9]=h("span",{class:"marquee-icon marquee-icon-left"},"📢",-1)),h("div",ro,[h("span",uo,p(z.value),1)]),l[10]||(l[10]=h("span",{class:"marquee-icon marquee-icon-right"},"📢",-1))])):A("",!0),h("div",co,[i.value==="SEARCH"&&!n.value?(d(),f("div",fo,[h("div",ho,[T.value>0?(d(),f("span",go,"已为您挑选到最符合 "+p(T.value)+" 条结果",1)):A("",!0),bt.value>0?(d(),f("span",vo,"📂 "+p(bt.value)+" 个网盘",1)):A("",!0),L.value>0?(d(),f("span",po,"❌ 失效 "+p(L.value),1)):A("",!0),E.value>0?(d(),f("span",mo,"⏭ 跳过 "+p(E.value),1)):A("",!0)]),h("div",yo,[F.value>0?(d(),f("span",_o,"⏱ "+p(F.value)+"ms",1)):A("",!0),m.value?(d(),f("span",wo,"📄 第 "+p(I.value)+" 页",1)):A("",!0),h("button",{class:"refresh-btn",onClick:kn,title:"强制刷新"},"🔄 刷新")])])):A("",!0),n.value?(d(),f("div",ko,[h("div",bo,[h("div",{class:"progress-bar",style:ot({width:C.value+"%"})},null,4)]),h("div",Co,[w.value==="search"?(d(),f("span",Eo,"🔍 正在搜索中...")):w.value==="validate"?(d(),f("span",To,[l[11]||(l[11]=te(" ✅ 正在验证链接有效性 ",-1)),k.value>0?(d(),f("span",Bo," ("+p(N.value)+" / "+p(k.value)+") ",1)):A("",!0)])):(d(),f("span",Io,"⏳ 加载中...")),h("span",Mo,"⏱ "+p(F.value)+"ms",1)]),x($,{rows:3,animated:"",class:"loading-skeleton"})])):A("",!0),i.value==="SEARCH"&&mt.value.length>0&&!n.value?(d(),f("div",Ao,[(d(!0),f(Z,null,se(mt.value,y=>(d(),f("div",{key:y.type||"all",class:_e(["cloud-tab",{active:_.value===(y.type||"")}]),onClick:Q=>_.value=y.type||""},[y.icon&&(y.icon.startsWith("data:")||y.icon.startsWith("http")||y.icon.startsWith("/"))?(d(),f("img",{key:0,src:y.icon,class:"tab-icon-img"},null,8,So)):y.icon?(d(),f("span",Po,p(y.icon),1)):A("",!0),te(" "+p(y.label)+" ",1),y.count>0?(d(),f("span",No,p(y.count),1)):A("",!0)],10,Ro))),128))])):A("",!0),!n.value&&(B.value||V.value.length>0)&&i.value==="SEARCH"?(d(),f("div",Lo,[(W=B.value)!=null&&W.tmdb_url?(d(),f("a",{key:0,href:B.value.tmdb_url,target:"_blank",class:"media-strip-inner",rel:"noopener"},[(le=B.value)!=null&&le.cover&&!X.value?(d(),f("span",Uo,[h("img",{src:B.value.cover,onError:l[2]||(l[2]=y=>X.value=!0)},null,40,Vo)])):(d(),f("span",Fo,"🎬")),h("span",qo,p(((At=B.value)==null?void 0:At.title)||s.value),1),(Rt=B.value)!=null&&Rt.year?(d(),f("span",zo,p(B.value.year),1)):A("",!0),(St=B.value)!=null&&St.rating?(d(),f("span",Ho,"⭐ "+p(B.value.rating),1)):A("",!0),(Nt=(Pt=B.value)==null?void 0:Pt.genres)!=null&&Nt.length?(d(),f("span",Ko,[(d(!0),f(Z,null,se(B.value.genres.slice(0,3),(y,Q)=>(d(),f("span",{key:Q,class:"strip-genre"},p(y),1))),128))])):A("",!0),V.value.length>0?(d(),f("span",Oo,[(d(!0),f(Z,null,se(V.value.slice(0,3),y=>(d(),f("span",{key:y,class:"strip-tag"},p(y),1))),128))])):A("",!0),l[12]||(l[12]=h("span",{class:"strip-right"},"信息来源 TMDB · 更多详情 →",-1))],8,Do)):(d(),f("div",Jo,[(Lt=B.value)!=null&&Lt.cover&&!X.value?(d(),f("span",Wo,[h("img",{src:B.value.cover,onError:l[3]||(l[3]=y=>X.value=!0)},null,40,xo)])):(d(),f("span",Yo,"🎬")),h("span",jo,p(((Dt=B.value)==null?void 0:Dt.title)||s.value),1),(Ut=B.value)!=null&&Ut.year?(d(),f("span",Go,p(B.value.year),1)):A("",!0),(Vt=B.value)!=null&&Vt.rating?(d(),f("span",Qo,"⭐ "+p(B.value.rating),1)):A("",!0),(qt=(Ft=B.value)==null?void 0:Ft.genres)!=null&&qt.length?(d(),f("span",Xo,[(d(!0),f(Z,null,se(B.value.genres.slice(0,3),(y,Q)=>(d(),f("span",{key:Q,class:"strip-genre"},p(y),1))),128))])):A("",!0),V.value.length>0?(d(),f("span",Zo,[(d(!0),f(Z,null,se(V.value.slice(0,3),y=>(d(),f("span",{key:y,class:"strip-tag"},p(y),1))),128))])):A("",!0),l[13]||(l[13]=h("span",{class:"strip-right"},"信息来源 TMDB · 更多详情 →",-1))]))])):A("",!0),!n.value&&i.value==="SEARCH"?(d(),f(Z,{key:4},[!_.value&&yt.value.length>0?(d(),f("div",$o,[(d(!0),f(Z,null,se(yt.value,(y,Q)=>(d(),Ue(Wt,{key:"flat-"+Q,data:y,fallbackTags:V.value,fallbackImage:b.value,loggedIn:!1,cloudTypeMap:Pe.value,onSave:Bt},null,8,["data","fallbackTags","fallbackImage","cloudTypeMap"]))),128)),gn.value?(d(),f("div",ea,[x(H,{onClick:pn,loading:o.value,class:"load-more-btn"},{default:j(()=>[te(" 加载更多 (已显示 "+p(Ee.value)+" / "+p(je.value.length)+") ",1)]),_:1},8,["loading"])])):A("",!0)])):_.value&&kt.value.length>0?(d(),f("div",ta,[(d(!0),f(Z,null,se(kt.value,(y,Q)=>(d(),f("div",{key:"ch-"+y.cloud_type,class:"channel-section"},[h("span",na,[Te(y.cloud_type).startsWith("data:")||Te(y.cloud_type).startsWith("http")||Te(y.cloud_type).startsWith("/")?(d(),f("img",{key:0,src:Te(y.cloud_type),class:"channel-icon-img"},null,8,sa)):(d(),f("span",oa,p(Te(y.cloud_type)),1)),h("span",aa,p(y.label),1),h("span",la,p(y.count)+" 条资源",1),y.newestTime?(d(),f("span",ia,"🕐 "+p(y.newestTime),1)):A("",!0)]),(d(!0),f(Z,null,se(wt(y),(de,In)=>(d(),Ue(Wt,{key:"ch-"+Q+"-"+In,data:de,fallbackTags:V.value,fallbackImage:b.value,loggedIn:!1,cloudTypeMap:Pe.value,onSave:Bt},null,8,["data","fallbackTags","fallbackImage","cloudTypeMap"]))),128)),mn(y)?(d(),f("div",{key:0,class:"channel-load-more",onClick:de=>yn(y.cloud_type)},[h("span",ua," 展开更多 (已显示 "+p(wt(y).length)+" / "+p(y.count)+") ",1)],8,ra)):A("",!0)]))),128))])):T.value>0&&_.value?(d(),f("div",ca,[h("span",null,"当前页暂无「"+p(hn())+"」资源",1),m.value?(d(),Ue(H,{key:0,size:"small",onClick:Et,loading:o.value},{default:j(()=>[...l[14]||(l[14]=[te(" 加载更多试试 ",-1)])]),_:1},8,["loading"])):A("",!0)])):A("",!0)],64)):!n.value&&i.value==="VIDEO_PARSE"?(d(),f("div",da,[(d(!0),f(Z,null,se(u.value,(y,Q)=>(d(),Ue($s,{key:Q,data:y,onSave:Tn},null,8,["data"]))),128))])):A("",!0),!n.value&&!o.value&&T.value===0&&v.value.length===0?(d(),f("div",fa,[l[15]||(l[15]=h("div",{class:"empty-icon"},"🔍",-1)),l[16]||(l[16]=h("div",{class:"empty-title"},"没有找到相关资源",-1)),h("div",ha,p(vn.value),1),_t.value.length>0?(d(),f("div",ga,[(d(!0),f(Z,null,se(_t.value,(y,Q)=>(d(),f("div",{key:Q,class:"empty-tip-item"},"💡 "+p(y),1))),128))])):A("",!0)])):A("",!0),m.value&&i.value==="SEARCH"&&!n.value?(d(),f("div",va,[x(H,{loading:o.value,onClick:Et},{default:j(()=>[te("加载更多 ("+p(I.value)+"/"+p(wn.value)+")",1)]),_:1},8,["loading"])])):A("",!0)]),x(ee,{modelValue:me.value,"onUpdate:modelValue":l[6]||(l[6]=y=>me.value=y),width:"650px","close-on-click-modal":!1,class:"save-dialog"},{header:j(()=>[h("strong",pa,p(En.value),1)]),default:j(()=>{var y,Q;return[h("div",ma,[pe.value?(d(),f("div",ya,[h("div",{class:_e(["progress-step",{active:J.value>=1,done:J.value>1}])},[h("div",_a,[J.value>1?(d(),f("span",wa,"✓")):(d(),f("span",ka,"1"))]),h("div",ba,[h("span",Ca,"正在转存到"+p(Le.value)+"...",1),J.value===1?(d(),f("span",Ea,"进行中")):(d(),f("span",Ta,"已完成"))])],2),h("div",{class:_e(["progress-step",{active:J.value>=2,done:J.value>2}])},[h("div",Ba,[J.value>2?(d(),f("span",Ia,"✓")):(d(),f("span",Ma,"2"))]),h("div",Aa,[l[17]||(l[17]=h("span",{class:"step-title"},"正在重命名文件(防和谐)...",-1)),J.value===2?(d(),f("span",Ra,"进行中")):J.value>2?(d(),f("span",Sa,"已完成")):(d(),f("span",Pa,"等待中"))])],2),h("div",{class:_e(["progress-step",{active:J.value>=3,done:J.value>3}])},[h("div",Na,[J.value>3?(d(),f("span",La,"✓")):(d(),f("span",Da,"3"))]),h("div",Ua,[l[18]||(l[18]=h("span",{class:"step-title"},"正在生成分享链接...",-1)),J.value===3?(d(),f("span",Va,"进行中")):J.value>3?(d(),f("span",Fa,"已完成")):(d(),f("span",qa,"等待中"))])],2)])):re.value?A("",!0):(d(),f("div",za,[x(U,{type:"error",title:((y=ce.value)==null?void 0:y.message)||((Q=ce.value)==null?void 0:Q.error)||"保存失败","show-icon":"",closable:!1},null,8,["title"])])),re.value&&ye.value.length>0&&ae.value?(d(),f("div",Ha,[x(U,{type:"warning",closable:!1,"show-icon":""},{title:j(()=>[h("span",Ka,"已对 "+p(ye.value.length)+" 个文件执行防和谐重命名",1)]),default:j(()=>[(d(!0),f(Z,null,se(ye.value,de=>(d(),f("div",{key:de,class:"rename-item"},p(de),1))),128))]),_:1})])):A("",!0),re.value&&ae.value?(d(),f("div",Oa,[h("div",Ja,[h("div",Wa,[h("canvas",{ref_key:"qrCanvasRef",ref:Qe,class:"qr-canvas"},null,512),h("p",xa,p(Le.value)+"APP扫码转存",1),l[19]||(l[19]=h("p",{class:"qr-subhint"},"保存到你自己网盘",-1)),l[20]||(l[20]=h("div",{class:"qr-disclaimer-short"},[h("span",null,"⚠️ 本站资源仅供学习交流,请于24h内删除")],-1))]),h("div",Ya,[h("div",ja,[x(S,{class:"success-icon",size:20,color:"#67c23a"},{default:j(()=>[x(ze(Pn))]),_:1}),h("span",Ga,[te("【"+p(Le.value)+"】",1),l[21]||(l[21]=h("strong",null,"分享链接已生成!",-1))])]),h("div",Qa,[x(D,{modelValue:ae.value,"onUpdate:modelValue":l[4]||(l[4]=de=>ae.value=de),readonly:"",class:"share-input"},null,8,["modelValue"])]),Be.value?(d(),f("div",Xa,[l[22]||(l[22]=h("span",{class:"pwd-label"},"🔑 提取密码:",-1)),x(G,{type:"warning"},{default:j(()=>[te(p(Be.value),1)]),_:1}),l[23]||(l[23]=h("span",{class:"pwd-hint"},"打开链接后需输入密码",-1))])):A("",!0),h("div",Za,[l[28]||(l[28]=h("span",{class:"share-tip-warn"},"⚠️",-1)),h("div",$a,[l[24]||(l[24]=h("strong",null,"请尽快复制链接到浏览器打开",-1)),l[25]||(l[25]=te(" 或 ",-1)),h("strong",null,"用"+p(Le.value)+"APP扫码",1),l[26]||(l[26]=h("br",null,null,-1)),l[27]||(l[27]=h("strong",null,"转存至您的网盘,以免资源被官方和谐",-1))])]),l[32]||(l[32]=h("div",{class:"warnings-box"},[h("p",{class:"warning-item"},"郑重警告一:网盘内除您所需资源外,不要打开任何不相关内容。"),h("p",{class:"warning-item"},"郑重警告二:网盘内除您所需资源外,不要打开任何不相关内容。"),h("p",{class:"warning-item"},"郑重警告三:网盘内除您所需资源外,不要打开任何不相关内容。"),h("p",{class:"warning-item"},"郑重警告四:以上警告说三遍,你还要明知故犯吗?")],-1)),h("div",el,[x(H,{class:"disclaimer-btn",onClick:It},{default:j(()=>[...l[29]||(l[29]=[te("📜 免责声明",-1)])]),_:1}),x(H,{onClick:l[5]||(l[5]=de=>me.value=!1)},{default:j(()=>[...l[30]||(l[30]=[te("关闭",-1)])]),_:1}),x(H,{type:"primary",onClick:Bn},{default:j(()=>[...l[31]||(l[31]=[te("一键复制链接",-1)])]),_:1})])])])])):A("",!0)])]}),_:1},8,["modelValue"])]),O.value?(d(),f("div",tl,[h("div",nl,p(O.value),1),h("div",sl,[x(H,{class:"footer-disclaimer-btn",size:"small",onClick:It},{default:j(()=>[...l[33]||(l[33]=[te("📜 免责声明",-1)])]),_:1})])])):A("",!0)],64)}}}),rl=ct(ol,[["__scopeId","data-v-c1c441df"]]);export{rl as default};