PT种子列表瀑布流视图(Svelte重构)

PT种子列表无限下拉瀑布流视图(Svelte重构)

目前為 2024-04-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name            PT种子列表瀑布流视图(Svelte重构)
// @name:en         PT_Masonry_View_Svelte
// @namespace       https://github.com/KesaubeEire/PT_Masonry_View_Svelte
// @version         1.1.9
// @author          Kesa
// @description     PT种子列表无限下拉瀑布流视图(Svelte重构)
// @description:en  PT Masonry View by Svelte.
// @license         MIT
// @icon            https://avatars.githubusercontent.com/u/23617963
// @match           https://kamept.com/*
// @match           https://pterclub.com/*
// @match           https://kp.m-team.cc/*
// @match           https://xp.m-team.io/*
// @match           https://xp.m-team.cc/*
// @match           https://ap.m-team.cc/*
// @match           https://test2.m-team.cc/*
// @exclude         */offers.php*
// @exclude         */index.php*
// @exclude         */forums.php*
// @exclude         */viewrequests.php*
// @exclude         */seek.php*
// @grant           none
// ==/UserScript==

(t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(' #_Reload.svelte-1me98ya{position:fixed;top:0;left:0}div.waterfall{width:100%;padding-top:20px;padding-bottom:60px;border-radius:20px;height:100%;margin:20px auto;transition:height .3s}div.waterfall_newMT{padding-top:0;padding-bottom:0;margin:10px auto}button.debug{position:fixed;top:10px;right:10px;padding:4px;background-color:#333;color:#fff;border:none;border-radius:5px;cursor:pointer}button#toggle_oldTable{top:10px}button#btnReLayout{top:40px}button#btnSwitchMode{top:70px}button#sort_masonry{top:100px}.pic_error{height:100px;display:flex;justify-content:center;align-items:center}.ant-menu-submenu{z-index:12000}.svelte-zt6zlx.svelte-zt6zlx,.svelte-zt6zlx.svelte-zt6zlx:after,.svelte-zt6zlx.svelte-zt6zlx:before{box-sizing:content-box}.switch.svelte-zt6zlx.svelte-zt6zlx{width:100%;height:30px;display:flex;align-items:center;justify-content:space-between}.s_title.svelte-zt6zlx.svelte-zt6zlx{display:flex;align-items:center;font-size:14px;position:relative}.title_green.svelte-zt6zlx.svelte-zt6zlx{color:green;font-weight:800}.title_red.svelte-zt6zlx.svelte-zt6zlx{color:red;font-weight:800}.s_title.svelte-zt6zlx:has(.hint):hover ._hint.svelte-zt6zlx{display:block}._hint.svelte-zt6zlx.svelte-zt6zlx{display:none;position:absolute;bottom:28px;left:0;width:max-content;height:auto;background-color:#fff;border:1px solid black;border-radius:8px;padding:4px 8px;box-sizing:content-box;z-index:1}input[type=checkbox].svelte-zt6zlx.svelte-zt6zlx{width:0px;height:0px;display:none;visibility:hidden}label.svelte-zt6zlx.svelte-zt6zlx{width:48px;height:12px;display:inline-block;position:relative;background-color:#777;border:2px solid #555;border-radius:30px;transition:all .2s}label.svelte-zt6zlx.svelte-zt6zlx:after{content:"";display:block;width:24px;height:24px;background-color:#555;position:absolute;border-radius:50%;left:-2px;top:-6px;transition:transform .2s}input[type=checkbox].svelte-zt6zlx:checked~label.svelte-zt6zlx{background-color:#00a0fc;border-color:#006dc9}input[type=checkbox].svelte-zt6zlx:checked~label.svelte-zt6zlx:after{background-color:#0054b0;transform:translate(28px)}.sideP.svelte-kk96f3.svelte-kk96f3{position:fixed;opacity:.4;margin:4px 2px;border-radius:8px;overflow:hidden;z-index:40000;border:2px solid transparent}.sideP.svelte-kk96f3.svelte-kk96f3:hover{opacity:1;border:2px solid yellow}.sideP__title.svelte-kk96f3.svelte-kk96f3{width:100%;height:8px;background-color:#ff0}.sideP__title.svelte-kk96f3.svelte-kk96f3:hover{cursor:move}.sideP__out.svelte-kk96f3.svelte-kk96f3{display:flex;flex-direction:column}.sideP__btn.svelte-kk96f3.svelte-kk96f3{background-color:gray;color:#fff;padding:4px 8px;margin:4px;border-radius:8px;cursor:pointer;border:none}.sideP__btn.svelte-kk96f3.svelte-kk96f3:hover{background-color:#6531ff}.configP.svelte-kk96f3.svelte-kk96f3{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:0;margin:0;z-index:50000;background-color:#0003}.configP_holder.svelte-kk96f3.svelte-kk96f3{box-sizing:content-box;position:absolute;right:20px;top:20px;overflow-y:scroll;width:360px;max-height:calc(100vh - 40px);padding:0;margin:0;border-radius:24px;border:2px solid black;background-color:#d4e7ff}.configP_holder.svelte-kk96f3.svelte-kk96f3::-webkit-scrollbar{display:none}.configP_title.svelte-kk96f3.svelte-kk96f3{position:fixed;box-sizing:border-box;width:inherit;display:flex;justify-content:space-between;align-items:center;height:40px;padding:0 10px;border-top-left-radius:24px;border-top-right-radius:24px;border-bottom:2px solid black;background-color:#9ac6ff;z-index:2}.configP_title.svelte-kk96f3.svelte-kk96f3 p{font-size:18px;font-weight:500}.configP_title.svelte-kk96f3.svelte-kk96f3 button{border:none;padding:0;margin:0;background-color:transparent}.section.svelte-kk96f3.svelte-kk96f3{margin:16px 18px}.section.svelte-kk96f3.svelte-kk96f3 button{border-radius:10px;margin:4px;padding:12px 16px}.section.svelte-kk96f3.svelte-kk96f3 .s_title{text-align:center}.section.svelte-kk96f3.svelte-kk96f3 .s_panel{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.section.svelte-kk96f3.svelte-kk96f3 .s_checkbox{padding:12px;margin:4px;border-radius:10px;border:1px solid black;font-size:14px;display:flex;align-items:center}.configP_holder.svelte-kk96f3 .section.svelte-kk96f3:nth-child(2){margin-top:48px}#reset_panel_pos.svelte-kk96f3.svelte-kk96f3{width:100%;text-align:center;border:1px solid black;border-radius:16px}.card.svelte-4b9kml.svelte-4b9kml{border:1px solid rgba(255,255,255,.5);border-radius:16px;margin:6px 0;overflow:hidden;cursor:pointer;box-shadow:#0000004d 3px 3px,#0000001a -1px -1px;transition:box-shadow .2s}.card.svelte-4b9kml.svelte-4b9kml:hover{box-shadow:#7300ff4d 5px 5px,#0000001a -1px -1px}.card-title.svelte-4b9kml.svelte-4b9kml{padding:2px 0}.card-holder.svelte-4b9kml.svelte-4b9kml{background-color:#ffffff80;background:linear-gradient(to bottom,rgba(255,255,255,.4),rgba(255,255,255,0))}.card-category.svelte-4b9kml.svelte-4b9kml{text-align:center;letter-spacing:2px;font-weight:700}.card-line.svelte-4b9kml.svelte-4b9kml{margin-top:1px;margin-bottom:1px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-4b9kml.svelte-4b9kml{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}.two-lines.svelte-4b9kml.svelte-4b9kml:hover{-webkit-line-clamp:100}.cl-center.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:left;align-items:center;flex-wrap:wrap;gap:2px;transform:translate(4px)}.cl-tags.svelte-4b9kml.svelte-4b9kml:has(span){padding-top:2px}.card-details.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-4b9kml.svelte-4b9kml{height:100%;position:relative}.card-image.svelte-4b9kml img.svelte-4b9kml{width:100%;object-fit:cover}.card-alter.svelte-4b9kml.svelte-4b9kml{text-align:center;height:20px;display:flex;justify-content:center;align-items:center}.top_and_free.svelte-4b9kml.svelte-4b9kml{padding:2px;border-radius:4px;margin-bottom:2px;display:flex;justify-content:center;align-items:center;line-height:11px;height:11px;font-size:10px}._Free.svelte-4b9kml.svelte-4b9kml{color:#00f}._2XFree.svelte-4b9kml.svelte-4b9kml{color:green}.card-description.svelte-4b9kml.svelte-4b9kml{padding-left:4px;padding-right:4px}.card-index.svelte-4b9kml.svelte-4b9kml{position:absolute;top:0;left:0;padding-right:9px;padding-left:2px;margin:0;height:20px;line-height:16px;font-size:16px;background-color:#000;color:#ff0;border-top-right-radius:100px;border-bottom-right-radius:100px;display:flex;align-items:center;pointer-events:none}.hover-trigger.svelte-4b9kml.svelte-4b9kml{position:absolute;top:8px;right:8px;padding:0;width:42px;margin:0;height:40px;line-height:16px;font-size:16px;opacity:.75;border-radius:9999px;display:flex;align-items:center}.hover-trigger.svelte-4b9kml.svelte-4b9kml:hover{opacity:1}.btnCollet.svelte-4b9kml.svelte-4b9kml{padding:1px 2px;cursor:pointer}.hot.svelte-4b9kml.svelte-4b9kml,.new.svelte-4b9kml.svelte-4b9kml{padding:0 2px;border-radius:8px;background:white;margin:2px}#turnPage.svelte-kydsmq{width:100%;height:32px;border-radius:16px;line-height:20px;font-size:14px;position:absolute;bottom:0px}#_turnPage.svelte-1gtc1kh{width:100%;height:34px;border-radius:12px;line-height:20px;font-size:16px;margin:0;padding:0 10px}.card-category.svelte-rhfb99.svelte-rhfb99{height:18px;padding:0 2px;border:1px;background:black;color:#fff;font-weight:900;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}.card_category-img.svelte-rhfb99.svelte-rhfb99{height:32px;background-size:100% 141%;background-position:center top;padding-top:6px}.card.svelte-rhfb99.svelte-rhfb99{border:2px solid;border-radius:16px;margin:6px 0;overflow:hidden;box-shadow:#0000004d 0 6px,#0000001a -1px -1px;transition:box-shadow .2s}.card-title.svelte-rhfb99.svelte-rhfb99{padding:2px 0}.card-holder.svelte-rhfb99.svelte-rhfb99{background-color:#ffffff80}.card-line.svelte-rhfb99.svelte-rhfb99{margin-top:1px;margin-bottom:2px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-rhfb99.svelte-rhfb99{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s;color:#000}.two-lines.svelte-rhfb99.svelte-rhfb99:hover{-webkit-line-clamp:100}.cl-center.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px;padding-top:4px;padding-bottom:4px}.icon_holder.svelte-rhfb99.svelte-rhfb99{border-color:#2f4879;border-radius:100px;height:20px;width:20px;display:inline-flex;align-items:center;justify-content:center}.cl-btn.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;padding:1px 6px;border-radius:8px;background-color:#edf3ff}._tag.svelte-rhfb99.svelte-rhfb99{height:1.3em;line-height:1.3em;padding:0 .5em;border-radius:6px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}._tag_diy.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#5abd48}._tag_dub.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#5a3b14}._tag_sub.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#3b4a7f}._tag_discount_50.svelte-rhfb99.svelte-rhfb99{background-color:#f50;color:#fff}._tag_discount_free.svelte-rhfb99.svelte-rhfb99{background-color:#108ee9;color:#fff}.card-details.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-rhfb99.svelte-rhfb99{height:100%;position:relative}.card-image.svelte-rhfb99 img.svelte-rhfb99{width:100%;object-fit:cover}.card-description.svelte-rhfb99.svelte-rhfb99{padding:2px 4px}.card-description.svelte-rhfb99 a.svelte-rhfb99,.card-description.svelte-rhfb99 a.svelte-rhfb99:hover{color:#000}.card-index.svelte-rhfb99.svelte-rhfb99{position:absolute;top:0;left:0;padding-right:9px;padding-left:2px;margin:0;height:20px;line-height:16px;font-size:16px;background-color:#000;color:#ff0;border-top-right-radius:100px;border-bottom-right-radius:100px;display:flex;align-items:center;pointer-events:none}.hover-trigger.svelte-rhfb99.svelte-rhfb99{position:absolute;top:8px;right:8px;padding:0;width:42px;margin:0;height:40px;line-height:16px;font-size:16px;opacity:.75;border-radius:9999px;display:flex;align-items:center}.hover-trigger.svelte-rhfb99.svelte-rhfb99:hover{opacity:1}.masonry_Holder_unload_1st.svelte-11rmzun{height:96px;background:grey;position:relative}.masonry_Holder_loaded_1st.svelte-11rmzun{position:unset;background:transparent;padding:0}.masonry_Holder_unloaded.svelte-11rmzun{position:unset;background:transparent}.masonry_Holder_loaded.svelte-11rmzun{position:relative;background:transparent}.loading_Holder.svelte-11rmzun{background-color:#bccad6;position:absolute;width:100%;height:100%;z-index:10001;border-radius:8px;display:flex;justify-content:center}.loading_SubHolder.svelte-11rmzun{position:relative;padding:40px 0}.loading_Text.svelte-11rmzun{position:sticky;top:40px}div#_iframe.svelte-12ghpfg.svelte-12ghpfg{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0026269b;z-index:30000;display:flex}div._iframe.svelte-12ghpfg.svelte-12ghpfg{height:96%;margin:auto;position:relative}div._iframe.svelte-12ghpfg iframe.svelte-12ghpfg{height:100%;border-radius:20px}._iframeCloseBtn.svelte-12ghpfg.svelte-12ghpfg{width:40px;height:40px;background:white;position:absolute;top:10px;right:10px;border-radius:40px} ');

(function () {
    'use strict';

    function $(){}const hl=t=>t;function Xl(t,e){for(const i in e)t[i]=e[i];return t}function ql(t){return !!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function ml(t){return t()}function qi(){return Object.create(null)}function Ie(t){t.forEach(ml);}function pi(t){return typeof t=="function"}function xe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Ft;function me(t,e){return Ft||(Ft=document.createElement("a")),Ft.href=e,t===Ft.href}function xl(t){return Object.keys(t).length===0}function pl(t,...e){if(t==null)return $;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function At(t){let e;return pl(t,i=>e=i)(),e}function B(t,e,i){t.$$.on_destroy.push(pl(e,i));}function $l(t,e,i,n){if(t){const l=Ml(t,e,i,n);return t[0](l)}}function Ml(t,e,i,n){return t[1]&&n?Xl(i.ctx.slice(),t[1](n(e))):i.ctx}function eo(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],s=Math.max(e.dirty.length,l.length);for(let r=0;r<s;r+=1)o[r]=e.dirty[r]|l[r];return o}return e.dirty|l}return e.dirty}function to(t,e,i,n,l,o){if(l){const s=Ml(e,i,n,o);t.p(s,l);}}function io(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return -1}function _e(t,e,i){return t.set(i),e}const vl=typeof window<"u";let no=vl?()=>window.performance.now():()=>Date.now(),Mi=vl?t=>requestAnimationFrame(t):$;const Et=new Set;function Il(t){Et.forEach(e=>{e.c(t)||(Et.delete(e),e.f());}),Et.size!==0&&Mi(Il);}function lo(t){let e;return Et.size===0&&Mi(Il),{promise:new Promise(i=>{Et.add(e={c:t,f:i});}),abort(){Et.delete(e);}}}const oo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function _(t,e){t.appendChild(e);}function yl(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function so(t){const e=v("style");return ro(yl(t),e),e.sheet}function ro(t,e){return _(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null);}function w(t){t.parentNode&&t.parentNode.removeChild(t);}function bl(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e);}function v(t){return document.createElement(t)}function _t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function C(t){return document.createTextNode(t)}function S(){return C(" ")}function Be(){return C("")}function V(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function ao(t){return function(e){e.target===this&&t.call(this,e);}}function h(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i);}function ai(t){return t===""?null:+t}function co(t){return Array.from(t.childNodes)}function x(t,e){e=""+e,t.data!==e&&(t.data=e);}function jt(t,e){t.value=e??"";}function Y(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"");}function Je(t,e,i){t.classList[i?"add":"remove"](e);}function uo(t,e,{bubbles:i=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(t,i,n,e),l}class Ee{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null;}c(e){this.h(e);}m(e,i,n=null){this.e||(this.is_svg?this.e=_t(i.nodeName):this.e=v(i.nodeType===11?"TEMPLATE":i.nodeName),this.t=i.tagName!=="TEMPLATE"?i:i.content,this.c(e)),this.i(n);}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(e){for(let i=0;i<this.n.length;i+=1)T(this.t,this.n[i],e);}p(e){this.d(),this.h(e),this.i(this.a);}d(){this.n.forEach(w);}}const Kt=new Map;let Xt=0;function fo(t){let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return e>>>0}function _o(t,e){const i={stylesheet:so(e),rules:{}};return Kt.set(t,i),i}function xi(t,e,i,n,l,o,s,r=0){const u=16.666/n;let c=`{
`;for(let a=0;a<=1;a+=u){const p=e+(i-e)*o(a);c+=a*100+`%{${s(p,1-p)}}
`;}const f=c+`100% {${s(i,1-i)}}
}`,m=`__svelte_${fo(f)}_${r}`,g=yl(t),{stylesheet:d,rules:M}=Kt.get(g)||_o(g,t);M[m]||(M[m]=!0,d.insertRule(`@keyframes ${m} ${f}`,d.cssRules.length));const I=t.style.animation||"";return t.style.animation=`${I?`${I}, `:""}${m} ${n}ms linear ${l}ms 1 both`,Xt+=1,m}function go(t,e){const i=(t.style.animation||"").split(", "),n=i.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),l=i.length-n.length;l&&(t.style.animation=n.join(", "),Xt-=l,Xt||ho());}function ho(){Mi(()=>{Xt||(Kt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&w(e);}),Kt.clear());});}let Ut;function it(t){Ut=t;}function $t(){if(!Ut)throw new Error("Function called outside component initialization");return Ut}function ei(t){$t().$$.on_mount.push(t);}function mo(t){$t().$$.after_update.push(t);}function Nl(t){$t().$$.on_destroy.push(t);}const Lt=[],Ce=[];let zt=[];const _i=[],po=Promise.resolve();let gi=!1;function Mo(){gi||(gi=!0,po.then(vi));}function gt(t){zt.push(t);}function Ye(t){_i.push(t);}const ci=new Set;let kt=0;function vi(){if(kt!==0)return;const t=Ut;do{try{for(;kt<Lt.length;){const e=Lt[kt];kt++,it(e),vo(e.$$);}}catch(e){throw Lt.length=0,kt=0,e}for(it(null),Lt.length=0,kt=0;Ce.length;)Ce.pop()();for(let e=0;e<zt.length;e+=1){const i=zt[e];ci.has(i)||(ci.add(i),i());}zt.length=0;}while(Lt.length);for(;_i.length;)_i.pop()();gi=!1,ci.clear(),it(t);}function vo(t){if(t.fragment!==null){t.update(),Ie(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(gt);}}function Io(t){const e=[],i=[];zt.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),zt=e;}let Rt;function yo(){return Rt||(Rt=Promise.resolve(),Rt.then(()=>{Rt=null;})),Rt}function ui(t,e,i){t.dispatchEvent(uo(`${e?"intro":"outro"}${i}`));}const Jt=new Set;let nt;function Xe(){nt={r:0,c:[],p:nt};}function qe(){nt.r||Ie(nt.c),nt=nt.p;}function Z(t,e){t&&t.i&&(Jt.delete(t),t.i(e));}function q(t,e,i,n){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),nt.c.push(()=>{Jt.delete(t),n&&(i&&t.d(1),n());}),t.o(e);}else n&&n();}const bo={duration:0};function ht(t,e,i,n){const l={direction:"both"};let o=e(t,i,l),s=n?0:1,r=null,u=null,c=null;function f(){c&&go(t,c);}function m(d,M){const I=d.b-s;return M*=Math.abs(I),{a:s,b:d.b,d:I,duration:M,start:d.start,end:d.start+M,group:d.group}}function g(d){const{delay:M=0,duration:I=300,easing:a=hl,tick:p=$,css:y}=o||bo,b={start:no()+M,b:d};d||(b.group=nt,nt.r+=1),r||u?u=b:(y&&(f(),c=xi(t,s,d,I,M,a,y)),d&&p(0,1),r=m(b,I),gt(()=>ui(t,d,"start")),lo(N=>{if(u&&N>u.start&&(r=m(u,I),u=null,ui(t,r.b,"start"),y&&(f(),c=xi(t,s,r.b,r.duration,0,a,o.css))),r){if(N>=r.end)p(s=r.b,1-s),ui(t,r.b,"end"),u||(r.b?f():--r.group.r||Ie(r.group.c)),r=null;else if(N>=r.start){const O=N-r.start;s=r.a+r.d*a(O/r.duration),p(s,1-s);}}return !!(r||u)}));}return {run(d){pi(o)?yo().then(()=>{o=o(l),g(d);}):g(d);},end(){f(),r=u=null;}}}function qt(t,e){const i=e.token={};function n(l,o,s,r){if(e.token!==i)return;e.resolved=r;let u=e.ctx;s!==void 0&&(u=u.slice(),u[s]=r);const c=l&&(e.current=l)(u);let f=!1;e.block&&(e.blocks?e.blocks.forEach((m,g)=>{g!==o&&m&&(Xe(),q(m,1,1,()=>{e.blocks[g]===m&&(e.blocks[g]=null);}),qe());}):e.block.d(1),c.c(),Z(c,1),c.m(e.mount(),e.anchor),f=!0),e.block=c,e.blocks&&(e.blocks[o]=c),f&&vi();}if(ql(t)){const l=$t();if(t.then(o=>{it(l),n(e.then,1,e.value,o),it(null);},o=>{if(it(l),n(e.catch,2,e.error,o),it(null),!e.hasCatch)throw o}),e.current!==e.pending)return n(e.pending,0),!0}else {if(e.current!==e.then)return n(e.then,1,e.value,t),!0;e.resolved=t;}}function wl(t,e,i){const n=e.slice(),{resolved:l}=t;t.current===t.then&&(n[t.value]=l),t.current===t.catch&&(n[t.error]=l),t.block.p(n,i);}function Tl(t,e){q(t,1,1,()=>{e.delete(t.key);});}function Dl(t,e,i,n,l,o,s,r,u,c,f,m){let g=t.length,d=o.length,M=g;const I={};for(;M--;)I[t[M].key]=M;const a=[],p=new Map,y=new Map,b=[];for(M=d;M--;){const k=m(l,o,M),P=i(k);let D=s.get(P);D?n&&b.push(()=>D.p(k,e)):(D=c(P,k),D.c()),p.set(P,a[M]=D),P in I&&y.set(P,Math.abs(M-I[P]));}const N=new Set,O=new Set;function E(k){Z(k,1),k.m(r,f),s.set(k.key,k),f=k.first,d--;}for(;g&&d;){const k=a[d-1],P=t[g-1],D=k.key,A=P.key;k===P?(f=k.first,g--,d--):p.has(A)?!s.has(D)||N.has(D)?E(k):O.has(A)?g--:y.get(D)>y.get(A)?(O.add(D),E(k)):(N.add(A),g--):(u(P,s),g--);}for(;g--;){const k=t[g];p.has(k.key)||u(k,s);}for(;d;)E(a[d-1]);return Ie(b),a}function Ge(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]));}function ke(t){t&&t.c();}function be(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||gt(()=>{const s=t.$$.on_mount.map(ml).filter(pi);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ie(s),t.$$.on_mount=[];}),o.forEach(gt);}function Ne(t,e){const i=t.$$;i.fragment!==null&&(Io(i.after_update),Ie(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[]);}function No(t,e){t.$$.dirty[0]===-1&&(Lt.push(t),Mo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31;}function $e(t,e,i,n,l,o,s,r=[-1]){const u=Ut;it(t);const c=t.$$={fragment:null,ctx:[],props:o,update:$,not_equal:l,bound:qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:qi(),dirty:r,skip_bound:!1,root:e.target||u.$$.root};s&&s(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,g,...d)=>{const M=d.length?d[0]:g;return c.ctx&&l(c.ctx[m],c.ctx[m]=M)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](M),f&&No(t,m)),g}):[],c.update(),f=!0,Ie(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=co(e.target);c.fragment&&c.fragment.l(m),m.forEach(w);}else c.fragment&&c.fragment.c();e.intro&&Z(t.$$.fragment),be(t,e.target,e.anchor,e.customElement),vi();}it(u);}class et{$destroy(){Ne(this,1),this.$destroy=$;}$on(e,i){if(!pi(i))return $;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1);}}$set(e){this.$$set&&!xl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1);}}function wo(t){let e,i,n,l,o,s,r,u;return {c(){e=v("div"),i=v("button"),n=C("检测到种子列表"),l=v("br"),o=C("刷新以显示瀑布流"),h(i,"style",s=t[0]?"display: block":"display:none"),h(i,"id","_Reload"),h(i,"class","svelte-1me98ya");},m(c,f){T(c,e,f),_(e,i),_(i,n),_(i,l),_(i,o),r||(u=V(i,"click",To),r=!0);},p(c,[f]){f&1&&s!==(s=c[0]?"display: block":"display:none")&&h(i,"style",s);},i:$,o:$,d(c){c&&w(e),r=!1,u();}}}function To(){location.reload();}function Do(t,e,i){let n,l,o=!0,s=!1;o&&(n=location.pathname.includes("/browse"),o=!1);let r=setInterval(()=>{l=location.pathname.includes("/browse"),i(0,s=!n&&l);},2e3);return Nl(()=>{clearInterval(r);}),[s]}class ko extends et{constructor(e){super(),$e(this,e,Do,wo,xe,{});}}/*!
     * Masonry PACKAGED v4.2.2
     * Cascading grid layout library
     * https://masonry.desandro.com
     * MIT License
     * by David DeSandro
     */(function(t,e){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):t.jQueryBridget=e(t,t.jQuery);})(window,function(e,i){var n=Array.prototype.slice,l=e.console,o=typeof l>"u"?function(){}:function(u){l.error(u);};function s(u,c,f){if(f=f||i||e.jQuery,!f)return;c.prototype.option||(c.prototype.option=function(d){f.isPlainObject(d)&&(this.options=f.extend(!0,this.options,d));}),f.fn[u]=function(d){if(typeof d=="string"){var M=n.call(arguments,1);return m(this,d,M)}return g(this,d),this};function m(d,M,I){var a,p="$()."+u+'("'+M+'")';return d.each(function(y,b){var N=f.data(b,u);if(!N){o(u+" not initialized. Cannot call methods, i.e. "+p);return}var O=N[M];if(!O||M.charAt(0)=="_"){o(p+" is not a valid method");return}var E=O.apply(N,I);a=a===void 0?E:a;}),a!==void 0?a:d}function g(d,M){d.each(function(I,a){var p=f.data(a,u);p?(p.option(M),p._init()):(p=new c(a,M),f.data(a,u,p));});}r(f);}function r(u){!u||u&&u.bridget||(u.bridget=s);}return r(i||e.jQuery),s});(function(t,e){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",e):t.EvEmitter=e();})(typeof window<"u"?window:globalThis,function(){function t(){}var e=t.prototype;return e.on=function(i,n){if(!(!i||!n)){var l=this._events=this._events||{},o=l[i]=l[i]||[];return o.indexOf(n)==-1&&o.push(n),this}},e.once=function(i,n){if(!(!i||!n)){this.on(i,n);var l=this._onceEvents=this._onceEvents||{},o=l[i]=l[i]||{};return o[n]=!0,this}},e.off=function(i,n){var l=this._events&&this._events[i];if(!(!l||!l.length)){var o=l.indexOf(n);return o!=-1&&l.splice(o,1),this}},e.emitEvent=function(i,n){var l=this._events&&this._events[i];if(!(!l||!l.length)){l=l.slice(0),n=n||[];for(var o=this._onceEvents&&this._onceEvents[i],s=0;s<l.length;s++){var r=l[s],u=o&&o[r];u&&(this.off(i,r),delete o[r]),r.apply(this,n);}return this}},e.allOff=function(){delete this._events,delete this._onceEvents;},t});/*!
     * getSize v2.0.3
     * measure size of elements
     * MIT license
     */(function(t,e){typeof define=="function"&&define.amd?define("get-size/get-size",e):t.getSize=e();})(window,function(){function e(g){var d=parseFloat(g),M=g.indexOf("%")==-1&&!isNaN(d);return M&&d}function i(){}var n=typeof console>"u"?i:function(g){console.error(g);},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=l.length;function s(){for(var g={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},d=0;d<o;d++){var M=l[d];g[M]=0;}return g}function r(g){var d=getComputedStyle(g);return d||n("Style returned "+d+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),d}var u=!1,c;function f(){if(!u){u=!0;var g=document.createElement("div");g.style.width="200px",g.style.padding="1px 2px 3px 4px",g.style.borderStyle="solid",g.style.borderWidth="1px 2px 3px 4px",g.style.boxSizing="border-box";var d=document.body||document.documentElement;d.appendChild(g);var M=r(g);c=Math.round(e(M.width))==200,m.isBoxSizeOuter=c,d.removeChild(g);}}function m(g){if(f(),typeof g=="string"&&(g=document.querySelector(g)),!(!g||typeof g!="object"||!g.nodeType)){var d=r(g);if(d.display=="none")return s();var M={};M.width=g.offsetWidth,M.height=g.offsetHeight;for(var I=M.isBorderBox=d.boxSizing=="border-box",a=0;a<o;a++){var p=l[a],y=d[p],b=parseFloat(y);M[p]=isNaN(b)?0:b;}var N=M.paddingLeft+M.paddingRight,O=M.paddingTop+M.paddingBottom,E=M.marginLeft+M.marginRight,k=M.marginTop+M.marginBottom,P=M.borderLeftWidth+M.borderRightWidth,D=M.borderTopWidth+M.borderBottomWidth,A=I&&c,R=e(d.width);R!==!1&&(M.width=R+(A?0:N+P));var Q=e(d.height);return Q!==!1&&(M.height=Q+(A?0:O+D)),M.innerWidth=M.width-(N+P),M.innerHeight=M.height-(O+D),M.outerWidth=M.width+E,M.outerHeight=M.height+k,M}}return m});(function(t,e){typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",e):t.matchesSelector=e();})(window,function(){var e=function(){var i=window.Element.prototype;if(i.matches)return "matches";if(i.matchesSelector)return "matchesSelector";for(var n=["webkit","moz","ms","o"],l=0;l<n.length;l++){var o=n[l],s=o+"MatchesSelector";if(i[s])return s}}();return function(n,l){return n[e](l)}});(function(t,e){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):t.fizzyUIUtils=e(t,t.matchesSelector);})(window,function(e,i){var n={};n.extend=function(s,r){for(var u in r)s[u]=r[u];return s},n.modulo=function(s,r){return (s%r+r)%r};var l=Array.prototype.slice;n.makeArray=function(s){if(Array.isArray(s))return s;if(s==null)return [];var r=typeof s=="object"&&typeof s.length=="number";return r?l.call(s):[s]},n.removeFrom=function(s,r){var u=s.indexOf(r);u!=-1&&s.splice(u,1);},n.getParent=function(s,r){for(;s.parentNode&&s!=document.body;)if(s=s.parentNode,i(s,r))return s},n.getQueryElement=function(s){return typeof s=="string"?document.querySelector(s):s},n.handleEvent=function(s){var r="on"+s.type;this[r]&&this[r](s);},n.filterFindElements=function(s,r){s=n.makeArray(s);var u=[];return s.forEach(function(c){if(c instanceof HTMLElement){if(!r){u.push(c);return}i(c,r)&&u.push(c);for(var f=c.querySelectorAll(r),m=0;m<f.length;m++)u.push(f[m]);}}),u},n.debounceMethod=function(s,r,u){u=u||100;var c=s.prototype[r],f=r+"Timeout";s.prototype[r]=function(){var m=this[f];clearTimeout(m);var g=arguments,d=this;this[f]=setTimeout(function(){c.apply(d,g),delete d[f];},u);};},n.docReady=function(s){var r=document.readyState;r=="complete"||r=="interactive"?setTimeout(s):document.addEventListener("DOMContentLoaded",s);},n.toDashed=function(s){return s.replace(/(.)([A-Z])/g,function(r,u,c){return u+"-"+c}).toLowerCase()};var o=e.console;return n.htmlInit=function(s,r){n.docReady(function(){var u=n.toDashed(r),c="data-"+u,f=document.querySelectorAll("["+c+"]"),m=document.querySelectorAll(".js-"+u),g=n.makeArray(f).concat(n.makeArray(m)),d=c+"-options",M=e.jQuery;g.forEach(function(I){var a=I.getAttribute(c)||I.getAttribute(d),p;try{p=a&&JSON.parse(a);}catch(b){o&&o.error("Error parsing "+c+" on "+I.className+": "+b);return}var y=new s(I,p);M&&M.data(I,r,y);});});},n});(function(t,e){typeof define=="function"&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize));})(window,function(e,i){function n(I){for(var a in I)return !1;return a=null,!0}var l=document.documentElement.style,o=typeof l.transition=="string"?"transition":"WebkitTransition",s=typeof l.transform=="string"?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],u={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function c(I,a){I&&(this.element=I,this.layout=a,this.position={x:0,y:0},this._create());}var f=c.prototype=Object.create(e.prototype);f.constructor=c,f._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"});},f.handleEvent=function(I){var a="on"+I.type;this[a]&&this[a](I);},f.getSize=function(){this.size=i(this.element);},f.css=function(I){var a=this.element.style;for(var p in I){var y=u[p]||p;a[y]=I[p];}},f.getPosition=function(){var I=getComputedStyle(this.element),a=this.layout._getOption("originLeft"),p=this.layout._getOption("originTop"),y=I[a?"left":"right"],b=I[p?"top":"bottom"],N=parseFloat(y),O=parseFloat(b),E=this.layout.size;y.indexOf("%")!=-1&&(N=N/100*E.width),b.indexOf("%")!=-1&&(O=O/100*E.height),N=isNaN(N)?0:N,O=isNaN(O)?0:O,N-=a?E.paddingLeft:E.paddingRight,O-=p?E.paddingTop:E.paddingBottom,this.position.x=N,this.position.y=O;},f.layoutPosition=function(){var I=this.layout.size,a={},p=this.layout._getOption("originLeft"),y=this.layout._getOption("originTop"),b=p?"paddingLeft":"paddingRight",N=p?"left":"right",O=p?"right":"left",E=this.position.x+I[b];a[N]=this.getXValue(E),a[O]="";var k=y?"paddingTop":"paddingBottom",P=y?"top":"bottom",D=y?"bottom":"top",A=this.position.y+I[k];a[P]=this.getYValue(A),a[D]="",this.css(a),this.emitEvent("layout",[this]);},f.getXValue=function(I){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!a?I/this.layout.size.width*100+"%":I+"px"},f.getYValue=function(I){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&a?I/this.layout.size.height*100+"%":I+"px"},f._transitionTo=function(I,a){this.getPosition();var p=this.position.x,y=this.position.y,b=I==this.position.x&&a==this.position.y;if(this.setPosition(I,a),b&&!this.isTransitioning){this.layoutPosition();return}var N=I-p,O=a-y,E={};E.transform=this.getTranslate(N,O),this.transition({to:E,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0});},f.getTranslate=function(I,a){var p=this.layout._getOption("originLeft"),y=this.layout._getOption("originTop");return I=p?I:-I,a=y?a:-a,"translate3d("+I+"px, "+a+"px, 0)"},f.goTo=function(I,a){this.setPosition(I,a),this.layoutPosition();},f.moveTo=f._transitionTo,f.setPosition=function(I,a){this.position.x=parseFloat(I),this.position.y=parseFloat(a);},f._nonTransition=function(I){this.css(I.to),I.isCleaning&&this._removeStyles(I.to);for(var a in I.onTransitionEnd)I.onTransitionEnd[a].call(this);},f.transition=function(I){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(I);return}var a=this._transn;for(var p in I.onTransitionEnd)a.onEnd[p]=I.onTransitionEnd[p];for(p in I.to)a.ingProperties[p]=!0,I.isCleaning&&(a.clean[p]=!0);I.from&&(this.css(I.from),this.element.offsetHeight),this.enableTransition(I.to),this.css(I.to),this.isTransitioning=!0;};function m(I){return I.replace(/([A-Z])/g,function(a){return "-"+a.toLowerCase()})}var g="opacity,"+m(s);f.enableTransition=function(){if(!this.isTransitioning){var I=this.layout.options.transitionDuration;I=typeof I=="number"?I+"ms":I,this.css({transitionProperty:g,transitionDuration:I,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1);}},f.onwebkitTransitionEnd=function(I){this.ontransitionend(I);},f.onotransitionend=function(I){this.ontransitionend(I);};var d={"-webkit-transform":"transform"};f.ontransitionend=function(I){if(I.target===this.element){var a=this._transn,p=d[I.propertyName]||I.propertyName;if(delete a.ingProperties[p],n(a.ingProperties)&&this.disableTransition(),p in a.clean&&(this.element.style[I.propertyName]="",delete a.clean[p]),p in a.onEnd){var y=a.onEnd[p];y.call(this),delete a.onEnd[p];}this.emitEvent("transitionEnd",[this]);}},f.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1;},f._removeStyles=function(I){var a={};for(var p in I)a[p]="";this.css(a);};var M={transitionProperty:"",transitionDuration:"",transitionDelay:""};return f.removeTransitionStyles=function(){this.css(M);},f.stagger=function(I){I=isNaN(I)?0:I,this.staggerDelay=I+"ms";},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this]);},f.remove=function(){if(!o||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem();}),this.hide();},f.reveal=function(){delete this.isHidden,this.css({display:""});var I=this.layout.options,a={},p=this.getHideRevealTransitionEndProperty("visibleStyle");a[p]=this.onRevealTransitionEnd,this.transition({from:I.hiddenStyle,to:I.visibleStyle,isCleaning:!0,onTransitionEnd:a});},f.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal");},f.getHideRevealTransitionEndProperty=function(I){var a=this.layout.options[I];if(a.opacity)return "opacity";for(var p in a)return p},f.hide=function(){this.isHidden=!0,this.css({display:""});var I=this.layout.options,a={},p=this.getHideRevealTransitionEndProperty("hiddenStyle");a[p]=this.onHideTransitionEnd,this.transition({from:I.visibleStyle,to:I.hiddenStyle,isCleaning:!0,onTransitionEnd:a});},f.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"));},f.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""});},c});/*!
     * Outlayer v2.1.1
     * the brains and guts of a layout library
     * MIT license
     */(function(t,e){typeof define=="function"&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,l,o){return e(t,i,n,l,o)}):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item);})(window,function(e,i,n,l,o){var s=e.console,r=e.jQuery,u=function(){},c=0,f={};function m(a,p){var y=l.getQueryElement(a);if(!y){s&&s.error("Bad element for "+this.constructor.namespace+": "+(y||a));return}this.element=y,r&&(this.$element=r(this.element)),this.options=l.extend({},this.constructor.defaults),this.option(p);var b=++c;this.element.outlayerGUID=b,f[b]=this,this._create();var N=this._getOption("initLayout");N&&this.layout();}m.namespace="outlayer",m.Item=o,m.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var g=m.prototype;l.extend(g,i.prototype),g.option=function(a){l.extend(this.options,a);},g._getOption=function(a){var p=this.constructor.compatOptions[a];return p&&this.options[p]!==void 0?this.options[p]:this.options[a]},m.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},g._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),l.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize();},g.reloadItems=function(){this.items=this._itemize(this.element.children);},g._itemize=function(a){for(var p=this._filterFindItemElements(a),y=this.constructor.Item,b=[],N=0;N<p.length;N++){var O=p[N],E=new y(O,this);b.push(E);}return b},g._filterFindItemElements=function(a){return l.filterFindElements(a,this.options.itemSelector)},g.getItemElements=function(){return this.items.map(function(a){return a.element})},g.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),p=a!==void 0?a:!this._isLayoutInited;this.layoutItems(this.items,p),this._isLayoutInited=!0;},g._init=g.layout,g._resetLayout=function(){this.getSize();},g.getSize=function(){this.size=n(this.element);},g._getMeasurement=function(a,p){var y=this.options[a],b;y?(typeof y=="string"?b=this.element.querySelector(y):y instanceof HTMLElement&&(b=y),this[a]=b?n(b)[p]:y):this[a]=0;},g.layoutItems=function(a,p){a=this._getItemsForLayout(a),this._layoutItems(a,p),this._postLayout();},g._getItemsForLayout=function(a){return a.filter(function(p){return !p.isIgnored})},g._layoutItems=function(a,p){if(this._emitCompleteOnItems("layout",a),!(!a||!a.length)){var y=[];a.forEach(function(b){var N=this._getItemLayoutPosition(b);N.item=b,N.isInstant=p||b.isLayoutInstant,y.push(N);},this),this._processLayoutQueue(y);}},g._getItemLayoutPosition=function(){return {x:0,y:0}},g._processLayoutQueue=function(a){this.updateStagger(),a.forEach(function(p,y){this._positionItem(p.item,p.x,p.y,p.isInstant,y);},this);},g.updateStagger=function(){var a=this.options.stagger;if(a==null){this.stagger=0;return}return this.stagger=I(a),this.stagger},g._positionItem=function(a,p,y,b,N){b?a.goTo(p,y):(a.stagger(N*this.stagger),a.moveTo(p,y));},g._postLayout=function(){this.resizeContainer();},g.resizeContainer=function(){var a=this._getOption("resizeContainer");if(a){var p=this._getContainerSize();p&&(this._setContainerMeasure(p.width,!0),this._setContainerMeasure(p.height,!1));}},g._getContainerSize=u,g._setContainerMeasure=function(a,p){if(a!==void 0){var y=this.size;y.isBorderBox&&(a+=p?y.paddingLeft+y.paddingRight+y.borderLeftWidth+y.borderRightWidth:y.paddingBottom+y.paddingTop+y.borderTopWidth+y.borderBottomWidth),a=Math.max(a,0),this.element.style[p?"width":"height"]=a+"px";}},g._emitCompleteOnItems=function(a,p){var y=this;function b(){y.dispatchEvent(a+"Complete",null,[p]);}var N=p.length;if(!p||!N){b();return}var O=0;function E(){O++,O==N&&b();}p.forEach(function(k){k.once(a,E);});},g.dispatchEvent=function(a,p,y){var b=p?[p].concat(y):y;if(this.emitEvent(a,b),r)if(this.$element=this.$element||r(this.element),p){var N=r.Event(p);N.type=a,this.$element.trigger(N,y);}else this.$element.trigger(a,y);},g.ignore=function(a){var p=this.getItem(a);p&&(p.isIgnored=!0);},g.unignore=function(a){var p=this.getItem(a);p&&delete p.isIgnored;},g.stamp=function(a){a=this._find(a),a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this));},g.unstamp=function(a){a=this._find(a),a&&a.forEach(function(p){l.removeFrom(this.stamps,p),this.unignore(p);},this);},g._find=function(a){if(a)return typeof a=="string"&&(a=this.element.querySelectorAll(a)),a=l.makeArray(a),a},g._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this));},g._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),p=this.size;this._boundingRect={left:a.left+p.paddingLeft+p.borderLeftWidth,top:a.top+p.paddingTop+p.borderTopWidth,right:a.right-(p.paddingRight+p.borderRightWidth),bottom:a.bottom-(p.paddingBottom+p.borderBottomWidth)};},g._manageStamp=u,g._getElementOffset=function(a){var p=a.getBoundingClientRect(),y=this._boundingRect,b=n(a),N={left:p.left-y.left-b.marginLeft,top:p.top-y.top-b.marginTop,right:y.right-p.right-b.marginRight,bottom:y.bottom-p.bottom-b.marginBottom};return N},g.handleEvent=l.handleEvent,g.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0;},g.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1;},g.onresize=function(){this.resize();},l.debounceMethod(m,"onresize",100),g.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout();},g.needsResizeLayout=function(){var a=n(this.element),p=this.size&&a;return p&&a.innerWidth!==this.size.innerWidth},g.addItems=function(a){var p=this._itemize(a);return p.length&&(this.items=this.items.concat(p)),p},g.appended=function(a){var p=this.addItems(a);p.length&&(this.layoutItems(p,!0),this.reveal(p));},g.prepended=function(a){var p=this._itemize(a);if(p.length){var y=this.items.slice(0);this.items=p.concat(y),this._resetLayout(),this._manageStamps(),this.layoutItems(p,!0),this.reveal(p),this.layoutItems(y);}},g.reveal=function(a){if(this._emitCompleteOnItems("reveal",a),!(!a||!a.length)){var p=this.updateStagger();a.forEach(function(y,b){y.stagger(b*p),y.reveal();});}},g.hide=function(a){if(this._emitCompleteOnItems("hide",a),!(!a||!a.length)){var p=this.updateStagger();a.forEach(function(y,b){y.stagger(b*p),y.hide();});}},g.revealItemElements=function(a){var p=this.getItems(a);this.reveal(p);},g.hideItemElements=function(a){var p=this.getItems(a);this.hide(p);},g.getItem=function(a){for(var p=0;p<this.items.length;p++){var y=this.items[p];if(y.element==a)return y}},g.getItems=function(a){a=l.makeArray(a);var p=[];return a.forEach(function(y){var b=this.getItem(y);b&&p.push(b);},this),p},g.remove=function(a){var p=this.getItems(a);this._emitCompleteOnItems("remove",p),!(!p||!p.length)&&p.forEach(function(y){y.remove(),l.removeFrom(this.items,y);},this);},g.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(y){y.destroy();}),this.unbindResize();var p=this.element.outlayerGUID;delete f[p],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace);},m.data=function(a){a=l.getQueryElement(a);var p=a&&a.outlayerGUID;return p&&f[p]},m.create=function(a,p){var y=d(m);return y.defaults=l.extend({},m.defaults),l.extend(y.defaults,p),y.compatOptions=l.extend({},m.compatOptions),y.namespace=a,y.data=m.data,y.Item=d(o),l.htmlInit(y,a),r&&r.bridget&&r.bridget(a,y),y};function d(a){function p(){a.apply(this,arguments);}return p.prototype=Object.create(a.prototype),p.prototype.constructor=p,p}var M={ms:1,s:1e3};function I(a){if(typeof a=="number")return a;var p=a.match(/(^\d*\.?\d*)(\w*)/),y=p&&p[1],b=p&&p[2];if(!y.length)return 0;y=parseFloat(y);var N=M[b]||1;return y*N}return m.Item=o,m});/*!
     * Masonry v4.2.2
     * Cascading grid layout library
     * https://masonry.desandro.com
     * MIT License
     * by David DeSandro
     */(function(t,e){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize);})(window,function(e,i){var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var l=n.prototype;return l._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var o=0;o<this.cols;o++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0;},l.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var o=this.items[0],s=o&&o.element;this.columnWidth=s&&i(s).outerWidth||this.containerWidth;}var r=this.columnWidth+=this.gutter,u=this.containerWidth+this.gutter,c=u/r,f=r-u%r,m=f&&f<1?"round":"floor";c=Math[m](c),this.cols=Math.max(c,1);},l.getContainerWidth=function(){var o=this._getOption("fitWidth"),s=o?this.element.parentNode:this.element,r=i(s);this.containerWidth=r&&r.innerWidth;},l._getItemLayoutPosition=function(o){o.getSize();var s=o.size.outerWidth%this.columnWidth,r=s&&s<1?"round":"ceil",u=Math[r](o.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var c=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",f=this[c](u,o),m={x:this.columnWidth*f.col,y:f.y},g=f.y+o.size.outerHeight,d=u+f.col,M=f.col;M<d;M++)this.colYs[M]=g;return m},l._getTopColPosition=function(o){var s=this._getTopColGroup(o),r=Math.min.apply(Math,s);return {col:s.indexOf(r),y:r}},l._getTopColGroup=function(o){if(o<2)return this.colYs;for(var s=[],r=this.cols+1-o,u=0;u<r;u++)s[u]=this._getColGroupY(u,o);return s},l._getColGroupY=function(o,s){if(s<2)return this.colYs[o];var r=this.colYs.slice(o,o+s);return Math.max.apply(Math,r)},l._getHorizontalColPosition=function(o,s){var r=this.horizontalColIndex%this.cols,u=o>1&&r+o>this.cols;r=u?0:r;var c=s.size.outerWidth&&s.size.outerHeight;return this.horizontalColIndex=c?r+o:this.horizontalColIndex,{col:r,y:this._getColGroupY(r,o)}},l._manageStamp=function(o){var s=i(o),r=this._getElementOffset(o),u=this._getOption("originLeft"),c=u?r.left:r.right,f=c+s.outerWidth,m=Math.floor(c/this.columnWidth);m=Math.max(0,m);var g=Math.floor(f/this.columnWidth);g-=f%this.columnWidth?0:1,g=Math.min(this.cols-1,g);for(var d=this._getOption("originTop"),M=(d?r.top:r.bottom)+s.outerHeight,I=m;I<=g;I++)this.colYs[I]=Math.max(M,this.colYs[I]);},l._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var o={height:this.maxY};return this._getOption("fitWidth")&&(o.width=this._getContainerFitWidth()),o},l._getContainerFitWidth=function(){for(var o=0,s=this.cols;--s&&this.colYs[s]===0;)o++;return (this.cols-o)*this.columnWidth-this.gutter},l.needsResizeLayout=function(){var o=this.containerWidth;return this.getContainerWidth(),o!=this.containerWidth},n});function mt(t,{delay:e=0,duration:i=400,easing:n=hl}={}){const l=+getComputedStyle(t).opacity;return {delay:e,duration:i,easing:n,css:o=>`opacity: ${o*l}`}}const Ct=[];function Zt(t,e=$){let i;const n=new Set;function l(r){if(xe(t,r)&&(t=r,i)){const u=!Ct.length;for(const c of n)c[1](),Ct.push(c,t);if(u){for(let c=0;c<Ct.length;c+=2)Ct[c][0](Ct[c+1]);Ct.length=0;}}}function o(r){l(r(t));}function s(r,u=$){const c=[r,u];return n.add(c),n.size===1&&(i=e(l)||$),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null);}}return {set:l,update:o,subscribe:s}}const Ht={Call:0,Run:0};function kl(t,e){let i;return function(){const n=!i;i&&clearTimeout(i),i=setTimeout(()=>{i=null;},e),n&&t.apply(this,arguments);}}function Cl(t,e){let i,n=0;return function(...l){const o=Date.now(),s=o-n;!i&&s>e?(t.apply(this,l),n=o):(clearTimeout(i),i=setTimeout(()=>{t.apply(this,l),n=o,i=null;},e-s));}}const Co=Cl(Ii,1500),Ao=Cl(Ii,30);function Ii(){Ht.Run++,console.log(`呼叫整理次数: ${Ht.Call}   实际整理次数: ${Ht.Run}`),masonry.layout();}function ge(t="normal"){At(Bt)?(Ht.Call++,masonry&&(t==="fast"?Ao():Co())):(Ht.Call++,masonry&&Ii());}function Mt(){console.log("------------------------ NEXUS TOOLS Without jQuery ------------------------");function t(m,g){return Math.min(g.width/m.width,g.height/m.height)}function e(m,g){let d=g.naturalWidth??0,M=g.naturalHeight??0;const I=m.clientX,a=m.clientY,p=window.innerWidth,y=window.innerHeight,b=a,N=y-a,O=I,E=p-I,k={width:d,height:M},P={bot:{width:p,height:N},top:{width:p,height:b},right:{width:E,height:y},left:{width:O,height:y}};let D=0,A="";for(const z in P)if(Object.hasOwnProperty.call(P,z)){const H=P[z];t(k,H)>D&&(D=t(k,H),A=z);}const R={top:{left:0,top:0,width:p+"px",height:b+"px"},bot:{left:0,top:b+"px",width:p+"px",height:N+"px"},left:{left:0,top:0,width:O+"px",height:y+"px"},right:{left:O+"px",top:0,width:E+"px",height:y+"px"},default:{left:0,top:0,width:0,height:0}};return A!=""?R[A]:R.default}function i(m){const g=document.createElement("div");g.id="kp_container",g.style.backgroundColor=m,g.style.opacity="1",g.style.position="Fixed",g.style.zIndex="20000",g.style.pointerEvents="none",g.style.transition="all .3s";const d=document.createElement("img");d.className="kp_img",d.style.position="absolute",d.style.zIndex="20002",d.style.pointerEvents="none",d.style.width="100%",d.style.height="100%",d.style.objectFit="contain",g.appendChild(d);const M=document.createElement("img");return M.className="kp_img",M.style.position="absolute",M.style.zIndex="20001",M.style.pointerEvents="none",M.style.width="100%",M.style.height="100%",M.style.objectFit="cover",M.style.filter="blur(8px)",g.appendChild(M),g}let n;const l=document.getElementById("kp_container"),o=l||i("");document.body.appendChild(o);const s="img.preview_Kesa";let r=null;function u(m){n=At(vt)==0?m.target:m.relatedTarget,r=setTimeout(()=>{if(At(hi)){let g=n.getAttribute("src");g&&o&&o.querySelectorAll(".kp_img").forEach(I=>{I.setAttribute("src",g);});const d=e(m,n);o.style.left=d.left,o.style.top=d.top,o.style.width=d.width,o.style.height=d.height,o.style.display="block";}},At(mi));}function c(){o.style.display="none",r&&clearTimeout(r);}function f(m){const g=e(m,n);o.style.left=g.left,o.style.top=g.top,o.style.width=g.width,o.style.height=g.height;}if(document.body.addEventListener("mouseover",function(m){At(vt)==0&&m.target.matches(s)&&u(m),At(vt)==1&&m.target.matches("div.hover-trigger")&&u(m);}),document.body.addEventListener("mouseout",function(m){m.target.matches(s)&&c();}),document.body.addEventListener("mousemove",function(m){m.target.matches(s)&&f(m);}),"IntersectionObserver"in window){let m=[...document.querySelectorAll(".nexus-lazy-load_Kesa")];const g=new IntersectionObserver(d=>{d.forEach(M=>{const I=M.target;if(M.intersectionRatio,M.isIntersecting&&!I.classList.contains("preview_Kesa")){const a=I.dataset.src;I.src=a,I.classList.add("preview_Kesa"),ge();}});});m.forEach(d=>g.observe(d));}}const pt={};function Al(t){const e=localStorage.getItem(t);if(e)try{if(pt[t]){if(e===pt[t].string)return console.log("%c====> 读取 localstorage 缓存成功~","color: green;"),pt[t].object;console.log("%c====> 更新 localstorage 缓存~","color: orange;");}else pt[t]={};const i=JSON.parse(e);if(typeof i=="object"&&i!==null){for(const n in i)if(Object.hasOwnProperty.call(i,n)){const l=i[n];if(typeof l=="string")try{const o=JSON.parse(l);i[n]=o;}catch{}}return pt[t].string=e,pt[t].object=i,pt[t].timestamp=new Date().getTime(),i}else console.error("localStorage 中的值不是一个对象");}catch(i){console.error("无法解析 localStorage 中的值为 JSON:",i);}else console.error(`localStorage 中不存在 key 为 ${t} 的值, 可能是本站 api 改变了`);}window.parseLocalStorage=Al;const Yt="Kesa:Masonry";function Ze(t,e){localStorage.getItem(Yt)||localStorage.setItem(Yt,"{}");const n=JSON.parse(localStorage.getItem(Yt))[t]??e,l=Zt(n);return l.subscribe(o=>{const s=JSON.parse(localStorage.getItem(Yt))??{};s[t]=o,localStorage.setItem(Yt,JSON.stringify(s));}),localStorage.getItem(t)&&localStorage.removeItem(t),l}const Qt=Zt({}),We=Zt(0),lt=Zt("https://kamept.com/index.php"),yt=Ze("_domain",""),bt=Ze("_bgColor",""),St=Ze("_listViewMode",1),ft=Zt(!1),fi=Ze("_panelPos",{x:0,y:0}),Ot=Ze("_turnPage",!1),$i=Ze("_show_debug_btn",0),hi=Ze("_show_nexus_pic",1),vt=Ze("_trigger_nexus_pic",1),mi=Ze("_delay_nexus_pic",600),Bt=Ze("_animated",!0),Wt=Ze("_card_layout",{column:4,gap:20}),Lo={mt:{hide_gay:!0}},xt=Ze("_SITE_SETTING",Lo);let en=!1;xt.subscribe(t=>{en?(ge("fast"),ge("fast"),ge(),ge()):en=!0;});const Eo={all:!1,title:!0,free:!1,sub_title:!1,tags:!1,size_download_collect:!1,upload_time:!1,statistics:!1},Qe=Ze("_card_show",Eo);let tn=!1;Qe.subscribe(t=>{tn?(ge("fast"),ge("fast"),ge(),ge()):tn=!0;});function nn(t){let e,i,n,l,o;return {c(){e=_t("svg"),i=_t("path"),n=_t("circle"),l=S(),o=v("div"),h(i,"d","M102.6476822,65.245285l-40.2463036,40.1161652c-3.1256676,3.1155624-8.1839256,3.1114655-11.3045425-0.0091476  l-26.7890854-26.789093c-3.1289177-3.1289139-3.1234951-8.2035599,0.0121021-11.3257828l40.077301-39.9063568  C65.8964539,25.8381672,67.9261017,25,70.0419083,25H97c4.4182816,0,8,3.5817223,8,8v26.5792809  C105,61.7055016,104.1535873,63.7442589,102.6476822,65.245285z"),h(i,"fill","yellow"),h(i,"stroke","#000000"),h(i,"stroke-linecap","round"),h(i,"stroke-linejoin","round"),h(i,"stroke-miterlimit","10"),h(i,"stroke-width","4"),h(i,"class","svelte-zt6zlx"),h(n,"cx","85"),h(n,"cy","45"),h(n,"fill","red"),h(n,"r","8"),h(n,"stroke","#000000"),h(n,"stroke-linecap","round"),h(n,"stroke-linejoin","round"),h(n,"stroke-miterlimit","10"),h(n,"stroke-width","4"),h(n,"class","svelte-zt6zlx"),h(e,"enable-background","new 0 0 128 128"),h(e,"id","Layer_1"),h(e,"version","1.1"),h(e,"viewBox","0 0 128 128"),h(e,"xml:space","preserve"),h(e,"width","28"),h(e,"height","28"),h(e,"class","hint svelte-zt6zlx"),h(o,"class","_hint svelte-zt6zlx");},m(s,r){T(s,e,r),_(e,i),_(e,n),T(s,l,r),T(s,o,r),o.innerHTML=t[5];},p(s,r){r&32&&(o.innerHTML=s[5]);},d(s){s&&w(e),s&&w(l),s&&w(o);}}}function ln(t){let e,i;function n(s,r){return s[7]?Oo:s[0]?So:zo}let l=n(t),o=l(t);return {c(){e=C(`: 

      `),o.c(),i=Be();},m(s,r){T(s,e,r),o.m(s,r),T(s,i,r);},p(s,r){l===(l=n(s))&&o?o.p(s,r):(o.d(1),o=l(s),o&&(o.c(),o.m(i.parentNode,i)));},d(s){s&&w(e),o.d(s),s&&w(i);}}}function zo(t){let e,i;return {c(){e=v("span"),i=C(t[3]),h(e,"class","title_green svelte-zt6zlx");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l&8&&x(i,n[3]);},d(n){n&&w(e);}}}function So(t){let e,i;return {c(){e=v("span"),i=C(t[4]),h(e,"class","title_red svelte-zt6zlx");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l&16&&x(i,n[4]);},d(n){n&&w(e);}}}function Oo(t){let e;function i(o,s){return o[0]?Po:jo}let n=i(t),l=n(t);return {c(){l.c(),e=Be();},m(o,s){l.m(o,s),T(o,e,s);},p(o,s){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)));},d(o){l.d(o),o&&w(e);}}}function jo(t){let e,i;return {c(){e=v("span"),i=C(t[4]),h(e,"class","title_red svelte-zt6zlx");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l&16&&x(i,n[4]);},d(n){n&&w(e);}}}function Po(t){let e,i;return {c(){e=v("span"),i=C(t[3]),h(e,"class","title_green svelte-zt6zlx");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l&8&&x(i,n[3]);},d(n){n&&w(e);}}}function on(t){let e,i,n,l,o,s;return {c(){e=v("div"),i=v("input"),n=S(),l=v("label"),h(i,"type","checkbox"),h(i,"id","_t"+t[8]),h(i,"class","svelte-zt6zlx"),h(l,"for","_t"+t[8]),h(l,"class","svelte-zt6zlx"),h(e,"class","s_switch svelte-zt6zlx");},m(r,u){T(r,e,u),_(e,i),i.checked=t[0],_(e,n),_(e,l),o||(s=[V(i,"change",t[11]),V(i,"change",t[12])],o=!0);},p(r,u){u&1&&(i.checked=r[0]);},d(r){r&&w(e),o=!1,Ie(s);}}}function sn(t){let e;const i=t[10].default,n=$l(i,t,t[9],null);return {c(){n&&n.c();},m(l,o){n&&n.m(l,o),e=!0;},p(l,o){n&&n.p&&(!e||o&512)&&to(n,i,l,l[9],e?eo(i,l[9],o,null):io(l[9]),null);},i(l){e||(Z(n,l),e=!0);},o(l){q(n,l),e=!1;},d(l){n&&n.d(l);}}}function Ro(t){let e,i,n,l,o,s,r,u,c=t[5]&&nn(t),f=(t[3]||t[4])&&ln(t),m=t[1]=="switch"&&on(t),g=t[1]=="range"&&sn(t);return {c(){e=v("div"),i=v("div"),c&&c.c(),n=S(),l=C(t[2]),o=S(),f&&f.c(),s=S(),m&&m.c(),r=S(),g&&g.c(),h(i,"class","s_title svelte-zt6zlx"),h(i,"title",t[5]),h(e,"class","switch svelte-zt6zlx");},m(d,M){T(d,e,M),_(e,i),c&&c.m(i,null),_(i,n),_(i,l),_(i,o),f&&f.m(i,null),_(e,s),m&&m.m(e,null),_(e,r),g&&g.m(e,null),u=!0;},p(d,[M]){d[5]?c?c.p(d,M):(c=nn(d),c.c(),c.m(i,n)):c&&(c.d(1),c=null),(!u||M&4)&&x(l,d[2]),d[3]||d[4]?f?f.p(d,M):(f=ln(d),f.c(),f.m(i,null)):f&&(f.d(1),f=null),(!u||M&32)&&h(i,"title",d[5]),d[1]=="switch"?m?m.p(d,M):(m=on(d),m.c(),m.m(e,r)):m&&(m.d(1),m=null),d[1]=="range"?g?(g.p(d,M),M&2&&Z(g,1)):(g=sn(d),g.c(),Z(g,1),g.m(e,null)):g&&(Xe(),q(g,1,1,()=>{g=null;}),qe());},i(d){u||(Z(g),u=!0);},o(d){q(g),u=!1;},d(d){d&&w(e),c&&c.d(),f&&f.d(),m&&m.d(),g&&g.d();}}}function Yo(t,e,i){let{$$slots:n={},$$scope:l}=e,{type:o="switch"}=e,{title_fixed:s=""}=e,{title_green:r=""}=e,{title_red:u=""}=e,{label:c=""}=e,{func:f=null}=e;const m=Math.random().toFixed(8);let{checked:g=!1}=e,{green_state:d=!0}=e;function M(){g=this.checked,i(0,g);}const I=()=>{console.log(s,g),f!=null&&f();};return t.$$set=a=>{"type"in a&&i(1,o=a.type),"title_fixed"in a&&i(2,s=a.title_fixed),"title_green"in a&&i(3,r=a.title_green),"title_red"in a&&i(4,u=a.title_red),"label"in a&&i(5,c=a.label),"func"in a&&i(6,f=a.func),"checked"in a&&i(0,g=a.checked),"green_state"in a&&i(7,d=a.green_state),"$$scope"in a&&i(9,l=a.$$scope);},[g,o,s,r,u,c,f,d,m,l,n,M,I]}class Oe extends et{constructor(e){super(),$e(this,e,Yo,Ro,xe,{type:1,title_fixed:2,title_green:3,title_red:4,label:5,func:6,checked:0,green_state:7});}}function Go(t){let e,i,n;return {c(){e=v("div"),e.innerHTML=`<svg viewBox="0 0 32 32" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1 {
                  fill: none;
                  stroke: #000;
                  stroke-linecap: round;
                  stroke-linejoin: round;
                  stroke-width: 2px;
                }
              </style></defs><title></title><g data-name="43-browser" id="_43-browser"><rect class="cls-1" height="30" width="30" x="1" y="1"></rect><line class="cls-1" x1="1" x2="31" y1="9" y2="9"></line><line class="cls-1" x1="5" x2="7" y1="5" y2="5"></line><line class="cls-1" x1="11" x2="13" y1="5" y2="5"></line><line class="cls-1" x1="9" x2="25" y1="16" y2="16"></line><line class="cls-1" x1="7" x2="25" y1="20" y2="20"></line><line class="cls-1" x1="7" x2="25" y1="24" y2="24"></line></g></svg>`,i=S(),n=v("div"),n.textContent="原有列表";},m(l,o){T(l,e,o),T(l,i,o),T(l,n,o);},d(l){l&&w(e),l&&w(i),l&&w(n);}}}function Ho(t){let e,i,n;return {c(){e=v("div"),e.innerHTML='<svg enable-background="new 0 0 64 64" width="24" height="24" id="Layer_1" version="1.1" viewBox="0 0 64 64"><path d="M19,2.875H3.5c-0.829,0-1.5,0.671-1.5,1.5v19.979c0,0.829,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.671,1.5-1.5V4.375  C20.5,3.546,19.829,2.875,19,2.875z M17.5,22.854H5V5.875h12.5V22.854z" fill="white"></path><path d="M19,28.773H3.5c-0.829,0-1.5,0.671-1.5,1.5v6.166c0,0.828,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.672,1.5-1.5v-6.166  C20.5,29.445,19.829,28.773,19,28.773z M17.5,34.939H5v-3.166h12.5V34.939z" fill="white"></path><path d="M19,40.859H3.5c-0.829,0-1.5,0.672-1.5,1.5v17.266c0,0.828,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.672,1.5-1.5V42.359  C20.5,41.531,19.829,40.859,19,40.859z M17.5,58.125H5V43.859h12.5V58.125z" fill="white"></path><path d="M40,2.875H24.5c-0.829,0-1.5,0.671-1.5,1.5v14.25c0,0.829,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.671,1.5-1.5V4.375  C41.5,3.546,40.828,2.875,40,2.875z M38.5,17.125H26V5.875h12.5V17.125z" fill="white"></path><path d="M40,23.125H24.5c-0.829,0-1.5,0.671-1.5,1.5V46.5c0,0.828,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.672,1.5-1.5V24.625  C41.5,23.796,40.828,23.125,40,23.125z M38.5,45H26V26.125h12.5V45z" fill="white"></path><path d="M40,51H24.5c-0.829,0-1.5,0.672-1.5,1.5v7.125c0,0.828,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.672,1.5-1.5V52.5  C41.5,51.672,40.828,51,40,51z M38.5,58.125H26V54h12.5V58.125z" fill="white"></path><path d="M60.5,2.875H45c-0.828,0-1.5,0.671-1.5,1.5v35.171c0,0.828,0.672,1.5,1.5,1.5h15.5c0.828,0,1.5-0.672,1.5-1.5V4.375  C62,3.546,61.328,2.875,60.5,2.875z M59,38.046H46.5V5.875H59V38.046z" fill="white"></path><path d="M60.5,44.346H45c-0.828,0-1.5,0.672-1.5,1.5v13.779c0,0.828,0.672,1.5,1.5,1.5h15.5c0.828,0,1.5-0.672,1.5-1.5V45.846  C62,45.018,61.328,44.346,60.5,44.346z M59,58.125H46.5V47.346H59V58.125z" fill="white"></path></svg>',i=S(),n=v("div"),n.textContent="瀑布流";},m(l,o){T(l,e,o),T(l,i,o),T(l,n,o);},d(l){l&&w(e),l&&w(i),l&&w(n);}}}function rn(t){let e,i,n,l,o,s,r,u,c;return {c(){e=v("button"),e.textContent="[d]显示详情",i=S(),n=v("button"),l=C("[d]"),o=C(t[1]),s=S(),r=v("button"),r.textContent="[d]iframe",h(e,"class","sideP__btn svelte-kk96f3"),h(n,"class","sideP__btn svelte-kk96f3"),h(r,"class","sideP__btn svelte-kk96f3");},m(f,m){T(f,e,m),T(f,i,m),T(f,n,m),_(n,l),_(n,o),T(f,s,m),T(f,r,m),u||(c=[V(e,"click",t[19]),V(n,"click",t[20]),V(r,"click",t[21])],u=!0);},p(f,m){m[0]&2&&x(o,f[1]);},d(f){f&&w(e),f&&w(i),f&&w(n),f&&w(s),f&&w(r),u=!1,Ie(c);}}}function an(t){let e,i,n,l,o,s,r,u=t[9].includes("m-team"),c,f,m,g,d,M,I,a,p,y,b,N,O,E,k,P,D,A,R,Q,z,H,we,ae,Te,G,U,F,ne,X,W,te,le,de,ee,ie,he,He,ye,Re,De,Ae,Ke,pe,oe,Me,L,se,ce,Nt,Le,Ue,ot,wt,Ve,st,Tt,Fe,Dt,Pe,ve,J,ue,rt,ti,yi,at,ii,bi,ct,ni,ut,Pt,li,Ni,ze=u&&cn(t);function Pl(j){t[28](j);}let wi={title_fixed:"显示模式",title_green:"瀑布流",title_red:"原始表格",label:t[9].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页",func:t[27]};t[4]!==void 0&&(wi.checked=t[4]),M=new Oe({props:wi}),Ce.push(()=>Ge(M,"checked",Pl));function Rl(j){t[29](j);}let Ti={title_fixed:"加载下一页方式",title_green:"按钮(默认)",title_red:"滚动(谨慎使用)",label:"滚动模式下 MT 等网站频繁使用可能会导致 120",green_state:!1};t[2]!==void 0&&(Ti.checked=t[2]),b=new Oe({props:Ti}),Ce.push(()=>Ge(b,"checked",Rl));function Yl(j){t[30](j);}let Di={title_fixed:"卡片移动动画",title_green:"开启",title_red:"关闭",label:"开启关闭瀑布流卡片高度变化时的缓动动画",green_state:!0};t[11]!==void 0&&(Di.checked=t[11]),P=new Oe({props:Di}),Ce.push(()=>Ge(P,"checked",Yl));function Gl(j){t[31](j);}let ki={title_fixed:"悬浮预览大图",title_green:"默认开启",title_red:"核心功能->确定不用再关"};t[12]!==void 0&&(ki.checked=t[12]),z=new Oe({props:ki}),Ce.push(()=>Ge(z,"checked",Gl));function Hl(j){t[32](j);}let Ci={title_fixed:"预览大图方式",title_green:"局部悬浮预览区域",title_red:"全图悬浮预览",label:"开发中 <br> 为优化用户预览大图体验 <br> 鼠标放到图片上就显示大图会遮挡信息 <br> 指定在图片的局部 区域放大"};t[13]!==void 0&&(Ci.checked=t[13]),ae=new Oe({props:Ci}),Ce.push(()=>Ge(ae,"checked",Hl));let Se=t[12]&&un(t);function Wl(j){t[34](j);}let Ai={title_fixed:"侧边栏debug按钮",title_green:"隐藏(默认)",title_red:"显示(开发用)",green_state:!1};t[8]!==void 0&&(Ai.checked=t[8]),X=new Oe({props:Ai}),Ce.push(()=>Ge(X,"checked",Wl)),he=new Oe({props:{title_fixed:`卡片列数: ${t[15].column}`,label:"范围: 2~7 列",type:"range",$$slots:{default:[Uo]},$$scope:{ctx:t}}}),ye=new Oe({props:{title_fixed:`卡片间距: ${t[15].gap}px`,label:"范围: 2~100 px",type:"range",$$slots:{default:[Qo]},$$scope:{ctx:t}}});function Ul(j){t[37](j);}let Li={title_fixed:"卡片信息",title_green:"显示下方所选信息(精简)",title_red:"显示所有信息(较乱)",green_state:!1,func:ge};t[3].all!==void 0&&(Li.checked=t[3].all),oe=new Oe({props:Li}),Ce.push(()=>Ge(oe,"checked",Ul));function Ql(j){t[38](j);}let Ei={title_fixed:"显示种子名称",func:ge};t[3].title!==void 0&&(Ei.checked=t[3].title),Ue=new Oe({props:Ei}),Ce.push(()=>Ge(Ue,"checked",Ql));function Bl(j){t[39](j);}let zi={title_fixed:"显示置顶和免费",func:ge};t[3].free!==void 0&&(zi.checked=t[3].free),Ve=new Oe({props:zi}),Ce.push(()=>Ge(Ve,"checked",Bl));function Zl(j){t[40](j);}let Si={title_fixed:"显示副标题",func:ge};t[3].sub_title!==void 0&&(Si.checked=t[3].sub_title),Fe=new Oe({props:Si}),Ce.push(()=>Ge(Fe,"checked",Zl));function Vl(j){t[41](j);}let Oi={title_fixed:"显示标签",func:ge};t[3].tags!==void 0&&(Oi.checked=t[3].tags),ve=new Oe({props:Oi}),Ce.push(()=>Ge(ve,"checked",Vl));function Fl(j){t[42](j);}let ji={title_fixed:"显示 [大小/下载/收藏]",func:ge};t[3].size_download_collect!==void 0&&(ji.checked=t[3].size_download_collect),rt=new Oe({props:ji}),Ce.push(()=>Ge(rt,"checked",Fl));function Jl(j){t[43](j);}let Pi={title_fixed:"显示上传时间",func:ge};t[3].upload_time!==void 0&&(Pi.checked=t[3].upload_time),at=new Oe({props:Pi}),Ce.push(()=>Ge(at,"checked",Jl));function Kl(j){t[44](j);}let Ri={title_fixed:"显示 [评论/上传/下载/完成]",func:ge};return t[3].statistics!==void 0&&(Ri.checked=t[3].statistics),ct=new Oe({props:Ri}),Ce.push(()=>Ge(ct,"checked",Kl)),{c(){e=v("div"),i=v("div"),n=v("div"),l=v("p"),l.textContent="详细配置面板",o=S(),s=v("button"),s.innerHTML='<svg class="feather feather-x" fill="none" height="28" width="28" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24"><line x1="20" x2="6" y1="6" y2="20"></line><line x1="6" x2="20" y1="6" y2="20"></line></svg>',r=S(),ze&&ze.c(),c=S(),f=v("div"),m=v("h1"),m.textContent="常用配置",g=S(),d=v("div"),ke(M.$$.fragment),a=S(),p=v("br"),y=S(),ke(b.$$.fragment),O=S(),E=v("br"),k=S(),ke(P.$$.fragment),A=S(),R=v("br"),Q=S(),ke(z.$$.fragment),we=S(),ke(ae.$$.fragment),G=S(),Se&&Se.c(),U=S(),F=v("br"),ne=S(),ke(X.$$.fragment),te=S(),le=v("div"),de=v("h1"),de.textContent="卡片布局",ee=S(),ie=v("div"),ke(he.$$.fragment),He=S(),ke(ye.$$.fragment),Re=S(),De=v("div"),Ae=v("h1"),Ae.textContent="卡片信息",Ke=S(),pe=v("div"),ke(oe.$$.fragment),L=S(),se=v("div"),ce=v("h3"),ce.textContent="配置常驻卡片信息",Nt=S(),Le=v("div"),ke(Ue.$$.fragment),wt=S(),ke(Ve.$$.fragment),Tt=S(),ke(Fe.$$.fragment),Pe=S(),ke(ve.$$.fragment),ue=S(),ke(rt.$$.fragment),yi=S(),ke(at.$$.fragment),bi=S(),ke(ct.$$.fragment),Y(l,"margin","auto 0"),h(n,"class","configP_title svelte-kk96f3"),h(m,"class","s_title"),h(d,"class","s_panel"),h(f,"class","section svelte-kk96f3"),h(de,"class","s_title"),h(ie,"class","s_panel"),h(le,"class","section svelte-kk96f3"),h(Ae,"class","s_title"),h(pe,"class","s_panel"),h(ce,"class","s_title"),h(Le,"class","s_panel"),h(se,"class","section svelte-kk96f3"),h(De,"class","section svelte-kk96f3"),h(i,"class","configP_holder svelte-kk96f3"),h(e,"class","configP svelte-kk96f3");},m(j,re){T(j,e,re),_(e,i),_(i,n),_(n,l),_(n,o),_(n,s),_(i,r),ze&&ze.m(i,null),_(i,c),_(i,f),_(f,m),_(f,g),_(f,d),be(M,d,null),_(d,a),_(d,p),_(d,y),be(b,d,null),_(d,O),_(d,E),_(d,k),be(P,d,null),_(d,A),_(d,R),_(d,Q),be(z,d,null),_(d,we),be(ae,d,null),_(d,G),Se&&Se.m(d,null),_(d,U),_(d,F),_(d,ne),be(X,d,null),_(i,te),_(i,le),_(le,de),_(le,ee),_(le,ie),be(he,ie,null),_(ie,He),be(ye,ie,null),_(i,Re),_(i,De),_(De,Ae),_(De,Ke),_(De,pe),be(oe,pe,null),_(De,L),_(De,se),_(se,ce),_(se,Nt),_(se,Le),be(Ue,Le,null),_(Le,wt),be(Ve,Le,null),_(Le,Tt),be(Fe,Le,null),_(Le,Pe),be(ve,Le,null),_(Le,ue),be(rt,Le,null),_(Le,yi),be(at,Le,null),_(Le,bi),be(ct,Le,null),Pt=!0,li||(Ni=[V(s,"click",t[24]),V(e,"click",ao(t[45]))],li=!0);},p(j,re){re[0]&512&&(u=j[9].includes("m-team")),u?ze?(ze.p(j,re),re[0]&512&&Z(ze,1)):(ze=cn(j),ze.c(),Z(ze,1),ze.m(i,c)):ze&&(Xe(),q(ze,1,1,()=>{ze=null;}),qe());const oi={};re[0]&512&&(oi.label=j[9].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页"),!I&&re[0]&16&&(I=!0,oi.checked=j[4],Ye(()=>I=!1)),M.$set(oi);const Yi={};!N&&re[0]&4&&(N=!0,Yi.checked=j[2],Ye(()=>N=!1)),b.$set(Yi);const Gi={};!D&&re[0]&2048&&(D=!0,Gi.checked=j[11],Ye(()=>D=!1)),P.$set(Gi);const Hi={};!H&&re[0]&4096&&(H=!0,Hi.checked=j[12],Ye(()=>H=!1)),z.$set(Hi);const Wi={};!Te&&re[0]&8192&&(Te=!0,Wi.checked=j[13],Ye(()=>Te=!1)),ae.$set(Wi),j[12]?Se?(Se.p(j,re),re[0]&4096&&Z(Se,1)):(Se=un(j),Se.c(),Z(Se,1),Se.m(d,U)):Se&&(Xe(),q(Se,1,1,()=>{Se=null;}),qe());const Ui={};!W&&re[0]&256&&(W=!0,Ui.checked=j[8],Ye(()=>W=!1)),X.$set(Ui);const si={};re[0]&32768&&(si.title_fixed=`卡片列数: ${j[15].column}`),re[0]&32768|re[1]&8388608&&(si.$$scope={dirty:re,ctx:j}),he.$set(si);const ri={};re[0]&32768&&(ri.title_fixed=`卡片间距: ${j[15].gap}px`),re[0]&32768|re[1]&8388608&&(ri.$$scope={dirty:re,ctx:j}),ye.$set(ri);const Qi={};!Me&&re[0]&8&&(Me=!0,Qi.checked=j[3].all,Ye(()=>Me=!1)),oe.$set(Qi);const Bi={};!ot&&re[0]&8&&(ot=!0,Bi.checked=j[3].title,Ye(()=>ot=!1)),Ue.$set(Bi);const Zi={};!st&&re[0]&8&&(st=!0,Zi.checked=j[3].free,Ye(()=>st=!1)),Ve.$set(Zi);const Vi={};!Dt&&re[0]&8&&(Dt=!0,Vi.checked=j[3].sub_title,Ye(()=>Dt=!1)),Fe.$set(Vi);const Fi={};!J&&re[0]&8&&(J=!0,Fi.checked=j[3].tags,Ye(()=>J=!1)),ve.$set(Fi);const Ji={};!ti&&re[0]&8&&(ti=!0,Ji.checked=j[3].size_download_collect,Ye(()=>ti=!1)),rt.$set(Ji);const Ki={};!ii&&re[0]&8&&(ii=!0,Ki.checked=j[3].upload_time,Ye(()=>ii=!1)),at.$set(Ki);const Xi={};!ni&&re[0]&8&&(ni=!0,Xi.checked=j[3].statistics,Ye(()=>ni=!1)),ct.$set(Xi);},i(j){Pt||(Z(ze),Z(M.$$.fragment,j),Z(b.$$.fragment,j),Z(P.$$.fragment,j),Z(z.$$.fragment,j),Z(ae.$$.fragment,j),Z(Se),Z(X.$$.fragment,j),Z(he.$$.fragment,j),Z(ye.$$.fragment,j),Z(oe.$$.fragment,j),Z(Ue.$$.fragment,j),Z(Ve.$$.fragment,j),Z(Fe.$$.fragment,j),Z(ve.$$.fragment,j),Z(rt.$$.fragment,j),Z(at.$$.fragment,j),Z(ct.$$.fragment,j),gt(()=>{Pt&&(ut||(ut=ht(e,mt,{duration:100},!0)),ut.run(1));}),Pt=!0);},o(j){q(ze),q(M.$$.fragment,j),q(b.$$.fragment,j),q(P.$$.fragment,j),q(z.$$.fragment,j),q(ae.$$.fragment,j),q(Se),q(X.$$.fragment,j),q(he.$$.fragment,j),q(ye.$$.fragment,j),q(oe.$$.fragment,j),q(Ue.$$.fragment,j),q(Ve.$$.fragment,j),q(Fe.$$.fragment,j),q(ve.$$.fragment,j),q(rt.$$.fragment,j),q(at.$$.fragment,j),q(ct.$$.fragment,j),ut||(ut=ht(e,mt,{duration:100},!1)),ut.run(0),Pt=!1;},d(j){j&&w(e),ze&&ze.d(),Ne(M),Ne(b),Ne(P),Ne(z),Ne(ae),Se&&Se.d(),Ne(X),Ne(he),Ne(ye),Ne(oe),Ne(Ue),Ne(Ve),Ne(Fe),Ne(ve),Ne(rt),Ne(at),Ne(ct),j&&ut&&ut.end(),li=!1,Ie(Ni);}}}function cn(t){let e,i,n,l,o,s,r;function u(f){t[26](f);}let c={title_fixed:"隐藏Gay分区卡片",title_green:"隐藏(默认)",title_red:"显示(狠人)",func:t[25]};return t[10].mt.hide_gay!==void 0&&(c.checked=t[10].mt.hide_gay),o=new Oe({props:c}),Ce.push(()=>Ge(o,"checked",u)),{c(){e=v("div"),i=v("h1"),i.textContent="MT专用配置",n=S(),l=v("div"),ke(o.$$.fragment),h(i,"class","s_title"),h(l,"class","s_panel"),h(e,"class","section svelte-kk96f3");},m(f,m){T(f,e,m),_(e,i),_(e,n),_(e,l),be(o,l,null),r=!0;},p(f,m){const g={};!s&&m[0]&1024&&(s=!0,g.checked=f[10].mt.hide_gay,Ye(()=>s=!1)),o.$set(g);},i(f){r||(Z(o.$$.fragment,f),r=!0);},o(f){q(o.$$.fragment,f),r=!1;},d(f){f&&w(e),Ne(o);}}}function un(t){let e,i;return e=new Oe({props:{title_fixed:`悬浮预览延迟${t[14]?":"+t[14]+"ms":""}`,title_red:`${t[14]?"":"无延迟"}`,label:"防止无意滑动时大图打开妨碍预览",type:"range",$$slots:{default:[Wo]},$$scope:{ctx:t}}}),{c(){ke(e.$$.fragment);},m(n,l){be(e,n,l),i=!0;},p(n,l){const o={};l[0]&16384&&(o.title_fixed=`悬浮预览延迟${n[14]?":"+n[14]+"ms":""}`),l[0]&16384&&(o.title_red=`${n[14]?"":"无延迟"}`),l[0]&16384|l[1]&8388608&&(o.$$scope={dirty:l,ctx:n}),e.$set(o);},i(n){i||(Z(e.$$.fragment,n),i=!0);},o(n){q(e.$$.fragment,n),i=!1;},d(n){Ne(e,n);}}}function Wo(t){let e,i,n;return {c(){e=v("input"),h(e,"type","range"),h(e,"min","0"),h(e,"max","1500"),h(e,"step","100"),h(e,"list","values");},m(l,o){T(l,e,o),jt(e,t[14]),i||(n=[V(e,"change",t[33]),V(e,"input",t[33])],i=!0);},p(l,o){o[0]&16384&&jt(e,l[14]);},d(l){l&&w(e),i=!1,Ie(n);}}}function Uo(t){let e,i,n;return {c(){e=v("input"),h(e,"type","range"),h(e,"min","2"),h(e,"max","7"),h(e,"step","1"),h(e,"list","values");},m(l,o){T(l,e,o),jt(e,t[15].column),i||(n=[V(e,"change",t[35]),V(e,"input",t[35]),V(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&jt(e,l[15].column);},d(l){l&&w(e),i=!1,Ie(n);}}}function Qo(t){let e,i,n;return {c(){e=v("input"),h(e,"type","range"),h(e,"min","2"),h(e,"max","100"),h(e,"step","1"),h(e,"list","values");},m(l,o){T(l,e,o),jt(e,t[15].gap),i||(n=[V(e,"change",t[36]),V(e,"input",t[36]),V(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&jt(e,l[15].gap);},d(l){l&&w(e),i=!1,Ie(n);}}}function Bo(t){let e,i,n,l,o,s,r,u,c,f,m,g,d,M;function I(N,O){return N[4]?Ho:Go}let a=I(t),p=a(t),y=t[8]&&rn(t),b=t[7]&&an(t);return {c(){e=v("div"),i=v("div"),n=S(),l=v("div"),o=v("button"),p.c(),s=S(),r=v("button"),r.innerHTML=`<div><svg width="24" height="24" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1 {
                fill: none;
                stroke: #fff;
                stroke-linecap: round;
                stroke-linejoin: round;
                stroke-width: 2px;
              }
            </style></defs><title></title><g data-name="80-setting" id="_80-setting"><circle class="cls-1" cx="10" cy="6" r="3"></circle><circle class="cls-1" cx="22" cy="16" r="3"></circle><circle class="cls-1" cx="10" cy="26" r="3"></circle><line class="cls-1" x1="7" x2="1" y1="6" y2="6"></line><line class="cls-1" x1="15" x2="1" y1="16" y2="16"></line><line class="cls-1" x1="7" x2="1" y1="26" y2="26"></line><line class="cls-1" x1="31" x2="17" y1="26" y2="26"></line><line class="cls-1" x1="31" x2="25" y1="16" y2="16"></line><line class="cls-1" x1="31" x2="17" y1="6" y2="6"></line></g></svg></div> 
      <div>详细配置</div>`,u=S(),y&&y.c(),c=S(),b&&b.c(),f=S(),m=v("div"),m.textContent="重置瀑布流配置边栏位置",h(i,"class","sideP__title svelte-kk96f3"),h(o,"class","sideP__btn svelte-kk96f3"),h(r,"class","sideP__btn svelte-kk96f3"),h(l,"class","sideP__out svelte-kk96f3"),h(e,"class","sideP svelte-kk96f3"),Y(e,"top",t[5].y+"px"),Y(e,"left",t[5].x+"px"),Y(e,"background-color",t[6]),h(m,"id","reset_panel_pos"),h(m,"class","svelte-kk96f3");},m(N,O){T(N,e,O),_(e,i),_(e,n),_(e,l),_(l,o),p.m(o,null),_(l,s),_(l,r),_(l,u),y&&y.m(l,null),t[23](e),T(N,c,O),b&&b.m(N,O),T(N,f,O),T(N,m,O),g=!0,d||(M=[V(i,"mousedown",t[16]),V(o,"click",t[18]),V(r,"click",t[22]),V(m,"click",t[17])],d=!0);},p(N,O){a!==(a=I(N))&&(p.d(1),p=a(N),p&&(p.c(),p.m(o,null))),N[8]?y?y.p(N,O):(y=rn(N),y.c(),y.m(l,null)):y&&(y.d(1),y=null),(!g||O[0]&32)&&Y(e,"top",N[5].y+"px"),(!g||O[0]&32)&&Y(e,"left",N[5].x+"px"),(!g||O[0]&64)&&Y(e,"background-color",N[6]),N[7]?b?(b.p(N,O),O[0]&128&&Z(b,1)):(b=an(N),b.c(),Z(b,1),b.m(f.parentNode,f)):b&&(Xe(),q(b,1,1,()=>{b=null;}),qe());},i(N){g||(Z(b),g=!0);},o(N){q(b),g=!1;},d(N){N&&w(e),p.d(),y&&y.d(),t[23](null),N&&w(c),b&&b.d(N),N&&w(f),N&&w(m),d=!1,Ie(M);}}}function fn(t,e,i){return t<=e&&(t=e),t>=i&&(t=i),t}function Zo(t,e,i){let n,l,o,s,r,u,c,f,m,g,d,M,I,a,p;B(t,We,L=>i(49,n=L)),B(t,Ot,L=>i(2,l=L)),B(t,Qe,L=>i(3,o=L)),B(t,Qt,L=>i(50,L)),B(t,St,L=>i(4,s=L)),B(t,fi,L=>i(5,r=L)),B(t,bt,L=>i(6,u=L)),B(t,ft,L=>i(7,c=L)),B(t,$i,L=>i(8,f=L)),B(t,yt,L=>i(9,m=L)),B(t,xt,L=>i(10,g=L)),B(t,Bt,L=>i(11,d=L)),B(t,hi,L=>i(12,M=L)),B(t,vt,L=>i(13,I=L)),B(t,mi,L=>i(14,a=L)),B(t,Wt,L=>i(15,p=L));let y,b=!1,N=0,O=0;const E=L=>{L.preventDefault(),b=!0,N=L.clientX-y.getBoundingClientRect().left,O=L.clientY-y.getBoundingClientRect().top;},k=L=>{if(!b)return;const se=fn(L.clientX-N,0,window.innerWidth-(y.getBoundingClientRect().width+5)),ce=fn(L.clientY-O,0,window.innerHeight-(y.getBoundingClientRect().height+5));_e(fi,r={x:se,y:ce},r);},P=()=>{b=!1;};function D(){r.x==0&&r.y==0&&alert("无需重置瀑布流边栏位置"),_e(fi,r={x:0,y:0},r);}function A(){_e(St,s=!s,s),window.CHANGE_CARD_LAYOUT&&window.CHANGE_CARD_LAYOUT();}function R(){_e(Qe,o.all=!o.all,o),setTimeout(()=>{ge();},0);}let Q=l?"滚动加载":"按钮加载";function z(){_e(Ot,l=!l,l),i(1,Q=l?"滚动加载":"按钮加载");}function H(){_e(We,n=n==0?1:0,n);}ei(()=>(window.addEventListener("mousemove",k),window.addEventListener("mouseup",P),()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",P);}));const we=()=>{_e(ft,c=!c,c);};function ae(L){Ce[L?"unshift":"push"](()=>{y=L,i(0,y);});}const Te=()=>_e(ft,c=!1,c),G=()=>{window.NEXUS_TOOLS();};function U(L){t.$$.not_equal(g.mt.hide_gay,L)&&(g.mt.hide_gay=L,xt.set(g));}const F=()=>{window.CHANGE_CARD_LAYOUT();};function ne(L){s=L,St.set(s);}function X(L){l=L,Ot.set(l);}function W(L){d=L,Bt.set(d);}function te(L){M=L,hi.set(M);}function le(L){I=L,vt.set(I);}function de(){a=ai(this.value),mi.set(a);}function ee(L){f=L,$i.set(f);}function ie(){p.column=ai(this.value),Wt.set(p);}function he(){p.gap=ai(this.value),Wt.set(p);}function He(L){t.$$.not_equal(o.all,L)&&(o.all=L,Qe.set(o));}function ye(L){t.$$.not_equal(o.title,L)&&(o.title=L,Qe.set(o));}function Re(L){t.$$.not_equal(o.free,L)&&(o.free=L,Qe.set(o));}function De(L){t.$$.not_equal(o.sub_title,L)&&(o.sub_title=L,Qe.set(o));}function Ae(L){t.$$.not_equal(o.tags,L)&&(o.tags=L,Qe.set(o));}function Ke(L){t.$$.not_equal(o.size_download_collect,L)&&(o.size_download_collect=L,Qe.set(o));}function pe(L){t.$$.not_equal(o.upload_time,L)&&(o.upload_time=L,Qe.set(o));}function oe(L){t.$$.not_equal(o.statistics,L)&&(o.statistics=L,Qe.set(o));}return [y,Q,l,o,s,r,u,c,f,m,g,d,M,I,a,p,E,D,A,R,z,H,we,ae,Te,G,U,F,ne,X,W,te,le,de,ee,ie,he,He,ye,Re,De,Ae,Ke,pe,oe,()=>_e(ft,c=!1,c)]}class Ll extends et{constructor(e){super(),$e(this,e,Zo,Bo,xe,{},null,[-1,-1]);}}const tt={torrentListTable:"table.torrents",TORRENT_LIST_TO_JSON:Vo,LOADING_PIC:"pic/logo2_100.png",ICON:{},CATEGORY:{410:"#FF66FF",413:"#FF66FF",414:"#FF66FF",417:"#59CD90",433:"#59CD90",434:"#59CD90",424:"#59CD90",435:"#59CD90",411:"#FAC05E",419:"#FAC05E",423:"#FAC05E",420:"#3FA7D6",421:"#3FA7D6",422:"#3FA7D6",437:"#3FA7D6",415:"#EE6352",418:"#EE6352"},INDEX:0,Iframe_Width:1260,get_bg_color:function(){const t=document.querySelector("table.mainouter");return window.getComputedStyle(t)["background-color"]},special:function(){function t(n){return document.getElementById(n)}t("ksearchboxmain")&&(t("ksearchboxmain").style.display="none");const e=document.querySelector('a[href="?sort=7&type=asc&seeders_begin=1"]');e&&(e.childNodes[0].style.color="black");let i=document.querySelector("img#nexus-preview");i&&(i.style.zIndex=12e3),dn();},pageLoaded:function(){var t=document.createElement("script");t.src="https://kamept.com/js/nexus.js",document.head.appendChild(t),dn();}};function dn(){Array.from(document.querySelectorAll(".torrentname")).forEach(e=>e.addEventListener("click",function(i){i.preventDefault(),We.set(1),lt.set(e.children[0].children[0].children[1].querySelector("a").href+"#kdescr");}));}function Vo(t){const e=t.querySelectorAll("tbody tr"),i=[];return e.forEach(n=>{const l=n.querySelector("td:nth-child(1) > a > img"),o=l?l.alt:"";if(!o)return;const r=l.parentNode.href,u=r.slice(-3),c=l.cloneNode(!0);c.className="card-category-img";const f=tt.INDEX++,m=n.querySelector(".torrentname a"),g=m?m.textContent.trim():"",d=m.href,M=/id=(\d+)&hit/,I=d.match(M),a=I?parseInt(I[1]):null,p=n.querySelector(".torrentname img").getAttribute("data-src"),y=n.querySelector(".torrentname td:nth-child(2)"),b=y.childNodes.length-1,N=y.childNodes[b],O=N.nodeName=="#text"?N.textContent.trim():"",E=n.querySelectorAll(".torrentname img.sticky"),k=E[0]?E[0].title:"",P=Array.from(n.querySelectorAll(".torrentname font")),D=n.querySelector('img[class^="pro_"]'),A=D?"_"+D.alt.replace(/\s+/g,""):"",R=A?P.pop():"",Q=R?R.innerText:"",z=n.querySelectorAll(".torrentname span"),H=Array.from(z);let we=z?H.map(Ae=>Ae.textContent.trim()):[];Q!=""&&(we.shift(),H.shift());const ae=H.map(Ae=>Ae.outerHTML).join(""),Te=`download.php?id=${a}`,G=`javascript: bookmark(${a},${f});`,F=n.querySelector(".torrentname a[id^='bookmark']").children[0].alt,ne=n.querySelector("td.rowfollow:nth-child(3) a"),X=ne?parseInt(ne.textContent):0,W=n.querySelector("td:nth-child(4) span"),te=W?W.title:"",le=n.querySelector("td:nth-child(5)"),de=le?le.textContent.trim():"",ee=n.querySelector("td:nth-child(6) a"),ie=ee?parseInt(ee.textContent):0,he=n.querySelector("td:nth-child(7)"),He=he?parseInt(he.textContent):0,ye=n.querySelector("td:nth-child(8) a"),Re=ye?parseInt(ye.textContent):0,De={torrentIndex:f,_categoryImg:c,category:o,categoryLink:r,categoryNumber:u,torrent_name:g,torrentLink:d,torrentId:a,picLink:p,place_at_the_top:E,pattMsg:k,downloadLink:Te,collectLink:G,collectState:F,tempTagDom:P,freeTypeImg:D,free_type:A,free_remaining_time:Q,raw_tags:ae,tagsDOM:H,tags:we,description:O,upload_date:te,comments:X,size:de,seeders:ie,leechers:He,snatched:Re};i.push(De);}),i}const Fo="data:image/svg+xml;base64,PHN2ZyAKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBmaWxsPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIwIgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBoZWlnaHQ9IjI1IgogIHdpZHRoPSIyNSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgc3R5bGU9IgogICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsgCiAgICAtLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6IGN1cnJlbnRDb2xvcjsgCiAgICAtLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogY3VycmVudENvbG9yOyIKPgogIDxwYXRoIAogICAgZD0iTTEyIDVjLTMuODU5IDAtNyAzLjE0MS03IDdzMy4xNDEgNyA3IDcgNy0zLjE0MSA3LTctMy4xNDEtNy03LTd6bTAgMTJjLTIuNzU3IDAtNS0yLjI0My01LTVzMi4yNDMtNSA1LTUgNSAyLjI0MyA1IDUtMi4yNDMgNS01IDV6Ij4KICA8L3BhdGg+CiAgPHBhdGggCiAgICBkPSJNMTIgOWMtMS42MjcgMC0zIDEuMzczLTMgM3MxLjM3MyAzIDMgMyAzLTEuMzczIDMtMy0xLjM3My0zLTMtM3oiPgogIDwvcGF0aD4KPC9zdmc+",Jo="data:image/svg+xml;base64,PHN2ZyAKICBzdHJva2U9ImN1cnJlbnRDb2xvciIgCiAgZmlsbD0iY3VycmVudENvbG9yIiAKICBzdHJva2Utd2lkdGg9IjAiIAogIHZpZXdCb3g9IjAgMCAyNCAyNCIgCiAgaGVpZ2h0PSIxOCIgCiAgd2lkdGg9IjE4IiAKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyIKPgogIDxwYXRoIAogICAgZD0iTTcgN2gxMHYySDd6bTAgNGg3djJIN3oiPgogIDwvcGF0aD4KICA8cGF0aCAKICAgIGQ9Ik0yMCAySDRjLTEuMTAzIDAtMiAuODk3LTIgMnYxOGw1LjMzMy00SDIwYzEuMTAzIDAgMi0uODk3IDItMlY0YzAtMS4xMDMtLjg5Ny0yLTItMnptMCAxNEg2LjY2N0w0IDE4VjRoMTZ2MTJ6Ij4KICA8L3BhdGg+Cjwvc3ZnPg==",Ko="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249ImFycm93LXVwIiAKICB3aWR0aD0iMWVtIiAKICBoZWlnaHQ9IjFlbSIgCiAgZmlsbD0iZ3JlZW4iIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPgogIDxwYXRoIGQ9Ik04NjggNTQ1LjVMNTM2LjEgMTYzYTMxLjk2IDMxLjk2IDAgMDAtNDguMyAwTDE1NiA1NDUuNWE3Ljk3IDcuOTcgMCAwMDYgMTMuMmg4MWM0LjYgMCA5LTIgMTIuMS01LjVMNDc0IDMwMC45Vjg2NGMwIDQuNCAzLjYgOCA4IDhoNjBjNC40IDAgOC0zLjYgOC04VjMwMC45bDIxOC45IDI1Mi4zYzMgMy41IDcuNCA1LjUgMTIuMSA1LjVoODFjNi44IDAgMTAuNS04IDYtMTMuMnoiPgogIDwvcGF0aD4KPC9zdmc+",Xo="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249ImFycm93LWRvd24iIAogIHdpZHRoPSIxZW0iIAogIGhlaWdodD0iMWVtIiAKICBmaWxsPSJyZWQiIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPgogIDxwYXRoIGQ9Ik04NjIgNDY1LjNoLTgxYy00LjYgMC05IDItMTIuMSA1LjVMNTUwIDcyMy4xVjE2MGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2NTYzLjFMMjU1LjEgNDcwLjhjLTMtMy41LTcuNC01LjUtMTIuMS01LjVoLTgxYy02LjggMC0xMC41IDguMS02IDEzLjJMNDg3LjkgODYxYTMxLjk2IDMxLjk2IDAgMDA0OC4zIDBMODY4IDQ3OC41YzQuNS01LjIuOC0xMy4yLTYtMTMuMnoiPgogIDwvcGF0aD4KPC9zdmc+",qo="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IgogIGZvY3VzYWJsZT0iZmFsc2UiCiAgZGF0YS1pY29uPSJkb3dubG9hZCIKICB3aWR0aD0iMWVtIgogIGhlaWdodD0iMWVtIgogIGZpbGw9ImN1cnJlbnRDb2xvciIKICBhcmlhLWhpZGRlbj0idHJ1ZSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogID4KICA8cGF0aCAKICAgIGQ9Ik01MDUuNyA2NjFhOCA4IDAgMDAxMi42IDBsMTEyLTE0MS43YzQuMS01LjIuNC0xMi45LTYuMy0xMi45aC03NC4xVjE2OGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MzM4LjNINDAwYy02LjcgMC0xMC40IDcuNy02LjMgMTIuOWwxMTIgMTQxLjh6TTg3OCA2MjZoLTYwYy00LjQgMC04IDMuNi04IDh2MTU0SDIxNFY2MzRjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djE5OGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2ODRjMTcuNyAwIDMyLTE0LjMgMzItMzJWNjM0YzAtNC40LTMuNi04LTgtOHoiPgogIDwvcGF0aD4KPC9zdmc+",xo="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249InN0YXIiIAogIHdpZHRoPSIxZW0iIAogIGhlaWdodD0iMWVtIiAKICBmaWxsPSJjdXJyZW50Q29sb3IiIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgCj4KICA8cGF0aCAKICAgIGQ9Ik05MDguMSAzNTMuMWwtMjUzLjktMzYuOUw1NDAuNyA4Ni4xYy0zLjEtNi4zLTguMi0xMS40LTE0LjUtMTQuNS0xNS44LTcuOC0zNS0xLjMtNDIuOSAxNC41TDM2OS44IDMxNi4ybC0yNTMuOSAzNi45Yy03IDEtMTMuNCA0LjMtMTguMyA5LjNhMzIuMDUgMzIuMDUgMCAwMC42IDQ1LjNsMTgzLjcgMTc5LjEtNDMuNCAyNTIuOWEzMS45NSAzMS45NSAwIDAwNDYuNCAzMy43TDUxMiA3NTRsMjI3LjEgMTE5LjRjNi4yIDMuMyAxMy40IDQuNCAyMC4zIDMuMiAxNy40LTMgMjkuMS0xOS41IDI2LjEtMzYuOWwtNDMuNC0yNTIuOSAxODMuNy0xNzkuMWM1LTQuOSA4LjMtMTEuMyA5LjMtMTguMyAyLjctMTcuNS05LjUtMzMuNy0yNy0zNi4zeiI+CiAgPC9wYXRoPgo8L3N2Zz4=",$o="data:image/svg+xml;base64,PHN2ZyBzdHJva2U9ImN1cnJlbnRDb2xvciIgCiAgZmlsbD0iY3VycmVudENvbG9yIiAKICBzdHJva2Utd2lkdGg9IjAiIAogIHZpZXdCb3g9IjAgMCAyNCAyNCIgCiAgY2xhc3M9Ii10cmFuc2xhdGUteS1bMnB4XSIgCiAgaGVpZ2h0PSIxOCIgCiAgd2lkdGg9IjE4IiAKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyI+CiAgPHBhdGggZD0iTTEyIDJDNi40ODYgMiAyIDYuNDg2IDIgMTJzNC40ODYgMTAgMTAgMTAgMTAtNC40ODYgMTAtMTBTMTcuNTE0IDIgMTIgMnptMCAxOGMtNC40MTEgMC04LTMuNTg5LTgtOHMzLjU4OS04IDgtOCA4IDMuNTg5IDggOC0zLjU4OSA4LTggOHoiPgogIDwvcGF0aD4KICA8cGF0aCBkPSJNMTMgN2gtMnY2aDZ2LTJoLTR6Ij4KICA8L3BhdGg+Cjwvc3ZnPg==",El="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMXtmaWxsOiMyZWIxYjc7fQogICAgICAuY2xzLTJ7ZmlsbDojNTZiNTRlO30KICAgICAgLmNscy0ze2ZpbGw6IzVkYzZkMTt9CiAgICAgIC5jbHMtNHtmaWxsOiM2MGNjNWE7fQogICAgICAuY2xzLTV7ZmlsbDojZmZjZTY5O30KICAgICAgLmNscy02e2ZpbGw6IzZjMmU3Yzt9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iSWNvbnMiPgogICAgPHJlY3QgY2xhc3M9ImNscy0xIiBoZWlnaHQ9IjIyIiByeD0iNCIgd2lkdGg9IjIyIiB4PSIxIiB5PSIxIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yMywxOHYxYTQsNCwwLDAsMS00LDRINWE0LDQsMCwwLDEtMy45LTMuMWw3LjE5LTcuMTlhMS4wMDgsMS4wMDgsMCwwLDEsMS40MiwwbDEuOCwxLjhhMSwxLDAsMCwwLDEuNDYtLjA1bDIuMzMtMi42NWExLDEsMCwwLDEsMS40Ni0uMDVaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0yMyw1djlhNC4wMjUsNC4wMjUsMCwwLDEtMS4xNywyLjgzbC01LjA3LTUuMDdhMSwxLDAsMCwwLTEuNDYuMDVsLTIuMzMsMi42NWExLDEsMCwwLDEtMS40Ni4wNWwtMS44LTEuOGExLjAwOCwxLjAwOCwwLDAsMC0xLjQyLDBMMy4zNiwxNy42NEEzLjk4OCwzLjk4OCwwLDAsMSwxLDE0VjVBNCw0LDAsMCwxLDUsMUgxOUE0LDQsMCwwLDEsMjMsNVoiLz4KICAgIDxwYXRoIGNsYXNzPSJjbHMtNCIgZD0iTTIxLjgzLDE2LjgzQTQuMDI1LDQuMDI1LDAsMCwxLDE5LDE4SDVhMy45MzEsMy45MzEsMCwwLDEtMS42NC0uMzZsNC45My00LjkzYTEuMDA4LDEuMDA4LDAsMCwxLDEuNDIsMGwxLjgsMS44YTEsMSwwLDAsMCwxLjQ2LS4wNWwyLjMzLTIuNjVhMSwxLDAsMCwxLDEuNDYtLjA1WiIvPgogICAgPGNpcmNsZSBjbGFzcz0iY2xzLTUiIGN4PSI3IiBjeT0iNyIgcj0iMiIvPgogIDwvZz4KICA8ZyBkYXRhLW5hbWU9IkxheWVyIDQiIGlkPSJMYXllcl80Ij4KICAgIDxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTE5LDBINUE1LjAwNiw1LjAwNiwwLDAsMCwwLDVWMTlhNS4wMDYsNS4wMDYsMCwwLDAsNSw1SDE5YTUuMDA2LDUuMDA2LDAsMCwwLDUtNVY1QTUuMDA2LDUuMDA2LDAsMCwwLDE5LDBabTMsMTlhMywzLDAsMCwxLTMsM0g1YTMsMywwLDAsMS0zLTNWNUEzLDMsMCwwLDEsNSwySDE5YTMsMywwLDAsMSwzLDNaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTYiIGQ9Ik03LDEwQTMsMywwLDEsMCw0LDcsMywzLDAsMCwwLDcsMTBaTTcsNkExLDEsMCwxLDEsNiw3LDEsMSwwLDAsMSw3LDZaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTYiIGQ9Ik0xNi43MDcsMTAuMjkzYS45NTYuOTU2LDAsMCwwLS43NC0uMjkzLDEuMDA2LDEuMDA2LDAsMCwwLS43Mi4zNDFMMTIuMjE3LDEzLjhsLTIuNTEtMi41MTFhMSwxLDAsMCwwLTEuNDE0LDBsLTQsNGExLDEsMCwxLDAsMS40MTQsMS40MTRMOSwxMy40MTRsMS45LDEuOUw4LjI0NywxOC4zNDFhMSwxLDAsMCwwLDEuNTA2LDEuMzE4bDMuMjE4LTMuNjc4LjAwNiwwLC4wMDctLjAxMSwzLjA2NS0zLjUsMi4yNDQsMi4yNDRhMSwxLDAsMCwwLDEuNDE0LTEuNDE0WiIvPgogIDwvZz4KPC9zdmc+",fe={noneNexusPHP:!0,architecture:"NEW_MT",torrentListTable:"div.app-content__inner",LOADING_PIC:"/static/media/logo.80b63235eaf702e44a8d.png",HOST:"https://test2.m-team.cc",API:{search:{url:"/api/torrent/search",method:"POST"},genDlToken:{url:"/api/torrent/genDlToken",method:"POST"},collection:{url:"/api/torrent/collection",method:"POST"}},ICON:{SIZE:Fo,COMMENT:Jo,SEEDERS:Ko,LEECHERS:Xo,DOWNLOAD:qo,COLLECTION:xo,PIN:"/static/trans.gif",TIME:$o,PREVIEW:El},CATEGORY_COLOR:{410:"#f52bcb",429:"#f52bcb",424:"#db55a9",430:"#db55a9",437:"#f77afa",426:"#f77afa",431:"#19a7ec",432:"#19a7ec",440:"#f52bcb",436:"#bb1e9a",425:"#bb1e9a",433:"#bb1e9a",411:"#f49800",412:"#f49800",413:"#f49800",401:"#c74854",419:"#c01a20",420:"#c74854",421:"#00a0e9",439:"#1b2a51",403:"#c74854",402:"#276fb8",435:"#4dbebd ",438:"#1897d6",404:"#23ac38",405:"#996c34",407:"#23ac38",422:"#f39800",423:"#f39800",427:"#f39800",409:"#996c34",406:"#8a57a1",408:"#8a57a1",434:"#8a57a1"},CATEGORY_NAME:{410:" 有码 HD",429:" 无码 HD",424:" 有码 Xvid",430:" 无码 Xvid",437:" 有码 DVD",426:" 无码 DVD",431:" 有码 BluRay",432:" 无码 BluRay",440:" GAY",436:" 0 day",425:" 写真 video",433:" 写真 pic",411:" H-Game",412:" H-Anime",413:" H-Comic",401:"Movie SD",419:"Movie HD",420:"Movie DVD    ",421:"Movie BluRay",439:"Movie Remux",403:"TV SD",402:"TV HD",435:" TV DVD",438:"TV BluRay",404:"纪录教育",405:"Anime",407:"Sport",422:"Software",423:"Game",427:"EBook",409:"Other",406:"MV",408:"Music AAC/ALAC",434:"Music 无损"},INDEX:0,Iframe_Width:1260,get_bg_color:function(){return getComputedStyle(document.documentElement).getPropertyValue("--bg-3")},special:function(){console.log("======= M-Team 特殊操作 =======");let t=0,e;_n=setInterval(()=>{e=es(),t++,console.log(`[${t}]原表格点击标题显示 iframe List: ${e}`),ts(),e&&clearInterval(_n);},750);},pageLoaded:function(){}};let _n;function es(){const t=Array.from(document.querySelectorAll(".ant-table-row-level-0 .ant-col a[href]"));return t.forEach(function(e){e.addEventListener("click",function(i){i.preventDefault(),We.set(1),lt.set(e.href);});}),t.length}function ts(){Array.from(document.querySelectorAll(".ant-image")).forEach(e=>{e.classList+=" preview_Origin";});}const je={"kamept.com":tt,"kp.m-team.cc":fe,"xp.m-team.io":fe,"xp.m-team.cc":fe,"ap.m-team.cc":fe,"test2.m-team.cc":fe};function Vt(){return window.location.hostname}let di;function It(){var i;if(di)return di;const t=Vt();console.log("|-> 当前站点: ",t),console.log("|-> 当前页面: ",window.location.pathname);const e=((i=je[t])==null?void 0:i.torrentListTable)??null;return console.log("|-> 站点selector:",e),di=e,e}function is(){var e,i;const t=Vt();return console.log("PT架构:	",(e=je[t])==null?void 0:e.architecture),(i=je[t])==null?void 0:i.architecture}function zl(){var e;const t=Vt();return (e=je[t])==null?void 0:e.get_bg_color()}const dt={CARD_BORDER:0,CARD_INDEX:0,PIC_HOVER_STYLE:0},K={GAP:3e3,DISTANCE:300,DISTANCE_newMT:900,IS_ORIGIN:!0,PAGE_ORIGIN:0,PAGE_CURRENT:0,PAGE_NEXT:0,NEXT_URL:"",SWITCH_MODE:"Button",$getCurrentPage:()=>(K.PAGE_CURRENT=K.PAGE_CURRENT??0,K.PAGE_NEXT=K.PAGE_CURRENT+1,K.PAGE_CURRENT),$getNextPage:()=>K.PAGE_NEXT,$turnPage:()=>{K.PAGE_CURRENT=K.PAGE_NEXT,K.PAGE_NEXT=K.PAGE_CURRENT+1;},$setPage:t=>{K.PAGE_CURRENT=t,K.PAGE_NEXT=K.PAGE_CURRENT+1;}},ns={SIZE:'<img class="size" src="pic/trans.gif" style=" transform: translateY(-0.4px);" alt="size" title="大小">',COMMENT:'<img class="comments" src="pic/trans.gif" alt="comments" title="评论数">',SEEDERS:'<img class="seeders" src="pic/trans.gif" alt="seeders" title="种子数">',LEECHERS:'<img class="leechers" src="pic/trans.gif" alt="leechers" title="下载数">',SNATCHED:'<img class="snatched" src="pic/trans.gif" alt="snatched" title="完成数">',DOWNLOAD:'<img class="download" src="pic/trans.gif" style=" transform: translateY(1px);" alt="download" title="下载本种">',COLLET:'<img class="delbookmark" src="pic/trans.gif" alt="Unbookmarked" title="收藏">',COLLETED:'<img class="bookmark" src="pic/trans.gif" alt="Bookmarked">',PREVIEW:El},Sl="data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSIyNTZweCIKICBoZWlnaHQ9IjI1NnB4IgogIHZpZXdCb3g9IjAgMCAyNC4wMCAyNC4wMCIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAwLCAwKSIKPgogIDxnCiAgICBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiCiAgICBzdHJva2Utd2lkdGg9IjAiCiAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDApLCBzY2FsZSgxKSIKICAvPgogIDxnCiAgICBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIgogICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogICAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKICAgIHN0cm9rZT0iI0NDQ0NDQyIKICAgIHN0cm9rZS13aWR0aD0iMC4wNDgiCiAgLz4KICA8ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+CiAgICA8cGF0aAogICAgICBkPSJNMTMgM0wxMy43MDcxIDIuMjkyODlDMTMuNTE5NiAyLjEwNTM2IDEzLjI2NTIgMiAxMyAyVjNaTTE0IDIyQzE0LjU1MjMgMjIgMTUgMjEuNTUyMyAxNSAyMUMxNSAyMC40NDc3IDE0LjU1MjMgMjAgMTQgMjBWMjJaTTE5IDlIMjBDMjAgOC43MzQ3OCAxOS44OTQ2IDguNDgwNDMgMTkuNzA3MSA4LjI5Mjg5TDE5IDlaTTE4IDEwQzE4IDEwLjU1MjMgMTguNDQ3NyAxMSAxOSAxMUMxOS41NTIzIDExIDIwIDEwLjU1MjMgMjAgMTBIMThaTTUuMjE3OTkgMTkuOTA4TDQuMzI2OTggMjAuMzYySDQuMzI2OThMNS4yMTc5OSAxOS45MDhaTTYuMDkyMDIgMjAuNzgyTDYuNTQ2MDEgMTkuODkxTDYuNTQ2MDEgMTkuODkxTDYuMDkyMDIgMjAuNzgyWk02LjA5MjAyIDMuMjE3OTlMNS42MzgwMyAyLjMyNjk4TDUuNjM4MDMgMi4zMjY5OEw2LjA5MjAyIDMuMjE3OTlaTTUuMjE3OTkgNC4wOTIwMkw0LjMyNjk4IDMuNjM4MDNMNC4zMjY5OCAzLjYzODAzTDUuMjE3OTkgNC4wOTIwMlpNMTMuMTA5IDguNDUzOTlMMTQgOFY4TDEzLjEwOSA4LjQ1Mzk5Wk0xMy41NDYgOC44OTEwMUwxNCA4TDEzLjU0NiA4Ljg5MTAxWk0xNy4yMjk5IDE3Ljc5MjlDMTYuODM5NCAxOC4xODM0IDE2LjgzOTQgMTguODE2NiAxNy4yMjk5IDE5LjIwNzFDMTcuNjIwNCAxOS41OTc2IDE4LjI1MzYgMTkuNTk3NiAxOC42NDQxIDE5LjIwNzFMMTcuMjI5OSAxNy43OTI5Wk0xNS4wMzE2IDE1LjI1MDdDMTQuODkzOSAxNS43ODU2IDE1LjIxNTkgMTYuMzMwOCAxNS43NTA3IDE2LjQ2ODRDMTYuMjg1NiAxNi42MDYxIDE2LjgzMDggMTYuMjg0MSAxNi45Njg0IDE1Ljc0OTNMMTUuMDMxNiAxNS4yNTA3Wk0xNy45Mzc1IDIwQzE3LjM4NTIgMjAgMTYuOTM3NSAyMC40NDc3IDE2LjkzNzUgMjFDMTYuOTM3NSAyMS41NTIzIDE3LjM4NTIgMjIgMTcuOTM3NSAyMlYyMFpNMTcuOTQ3NSAyMkMxOC40OTk4IDIyIDE4Ljk0NzUgMjEuNTUyMyAxOC45NDc1IDIxQzE4Ljk0NzUgMjAuNDQ3NyAxOC40OTk4IDIwIDE3Ljk0NzUgMjBWMjJaTTEzIDJIOC4yVjRIMTNWMlpNNCA2LjJWMTcuOEg2VjYuMkg0Wk04LjIgMjJIMTRWMjBIOC4yVjIyWk0xOS43MDcxIDguMjkyODlMMTMuNzA3MSAyLjI5Mjg5TDEyLjI5MjkgMy43MDcxMUwxOC4yOTI5IDkuNzA3MTFMMTkuNzA3MSA4LjI5Mjg5Wk0yMCAxMFY5SDE4VjEwSDIwWk00IDE3LjhDNCAxOC4zNDM2IDMuOTk5MjIgMTguODExNCA0LjAzMDU3IDE5LjE5NUM0LjA2Mjg3IDE5LjU5MDQgNC4xMzQxOSAxOS45ODM2IDQuMzI2OTggMjAuMzYyTDYuMTA4OTkgMTkuNDU0QzYuMDgzOCAxOS40MDQ1IDYuMDQ2MTIgMTkuMzAzOCA2LjAyMzkzIDE5LjAzMjJDNi4wMDA3OCAxOC43NDg4IDYgMTguMzc2NiA2IDE3LjhINFpNOC4yIDIwQzcuNjIzNDUgMjAgNy4yNTExNyAxOS45OTkyIDYuOTY3ODQgMTkuOTc2MUM2LjY5NjE3IDE5Ljk1MzkgNi41OTU0NSAxOS45MTYyIDYuNTQ2MDEgMTkuODkxTDUuNjM4MDMgMjEuNjczQzYuMDE2NDEgMjEuODY1OCA2LjQwOTYzIDIxLjkzNzEgNi44MDQ5NyAyMS45Njk0QzcuMTg4NjQgMjIuMDAwOCA3LjY1NjQ1IDIyIDguMiAyMlYyMFpNNC4zMjY5OCAyMC4zNjJDNC42MTQ2IDIwLjkyNjUgNS4wNzM1NCAyMS4zODU0IDUuNjM4MDMgMjEuNjczTDYuNTQ2MDEgMTkuODkxQzYuMzU3ODUgMTkuNzk1MSA2LjIwNDg3IDE5LjY0MjIgNi4xMDg5OSAxOS40NTRMNC4zMjY5OCAyMC4zNjJaTTguMiAyQzcuNjU2NDUgMiA3LjE4ODY0IDEuOTk5MjIgNi44MDQ5NyAyLjAzMDU3QzYuNDA5NjMgMi4wNjI4NyA2LjAxNjQxIDIuMTM0MTkgNS42MzgwMyAyLjMyNjk4TDYuNTQ2MDEgNC4xMDg5OUM2LjU5NTQ1IDQuMDgzOCA2LjY5NjE3IDQuMDQ2MTIgNi45Njc4NCA0LjAyMzkzQzcuMjUxMTcgNC4wMDA3OCA3LjYyMzQ1IDQgOC4yIDRWMlpNNiA2LjJDNiA1LjYyMzQ1IDYuMDAwNzggNS4yNTExNyA2LjAyMzkzIDQuOTY3ODRDNi4wNDYxMiA0LjY5NjE3IDYuMDgzOCA0LjU5NTQ1IDYuMTA4OTkgNC41NDYwMUw0LjMyNjk4IDMuNjM4MDNDNC4xMzQxOSA0LjAxNjQxIDQuMDYyODcgNC40MDk2MyA0LjAzMDU3IDQuODA0OTdDMy45OTkyMiA1LjE4ODY0IDQgNS42NTY0NSA0IDYuMkg2Wk01LjYzODAzIDIuMzI2OThDNS4wNzM1NCAyLjYxNDYgNC42MTQ2IDMuMDczNTQgNC4zMjY5OCAzLjYzODAzTDYuMTA4OTkgNC41NDYwMUM2LjIwNDg3IDQuMzU3ODUgNi4zNTc4NSA0LjIwNDg3IDYuNTQ2MDEgNC4xMDg5OUw1LjYzODAzIDIuMzI2OThaTTEyIDNWNy40SDE0VjNIMTJaTTE0LjYgMTBIMTlWOEgxNC42VjEwWk0xMiA3LjRDMTIgNy42NjM1MyAxMS45OTkyIDcuOTIxMzEgMTIuMDE2OSA4LjEzODIzQzEyLjAzNTYgOC4zNjY4MiAxMi4wNzk3IDguNjM2NTYgMTIuMjE4IDguOTA3OThMMTQgOEMxNC4wMjkzIDguMDU3NTEgMTQuMDE4OSA4LjA4MDI4IDE0LjAxMDMgNy45NzUzN0MxNC4wMDA4IDcuODU4NzggMTQgNy42OTY1MyAxNCA3LjRIMTJaTTE0LjYgOEMxNC4zMDM1IDggMTQuMTQxMiA3Ljk5OTIyIDE0LjAyNDYgNy45ODk3QzEzLjkxOTcgNy45ODExMyAxMy45NDI1IDcuOTcwNyAxNCA4TDEzLjA5MiA5Ljc4MjAxQzEzLjM2MzQgOS45MjAzMSAxMy42MzMyIDkuOTY0MzggMTMuODYxOCA5Ljk4MzA1QzE0LjA3ODcgMTAuMDAwOCAxNC4zMzY1IDEwIDE0LjYgMTBWOFpNMTIuMjE4IDguOTA3OThDMTIuNDA5NyA5LjI4NDMgMTIuNzE1NyA5LjU5MDI3IDEzLjA5MiA5Ljc4MjAxTDE0IDhWOEwxMi4yMTggOC45MDc5OFpNMTguOTM3IDE2QzE4LjkzNyAxNi4xNzMyIDE4Ljg5MTUgMTYuMzA1MyAxOC42MTc1IDE2LjU2OTdDMTguNDYzOCAxNi43MTggMTguMjgyOCAxNi44NjUzIDE4LjAzMTkgMTcuMDc0QzE3Ljc5MzYgMTcuMjcyMyAxNy41MTQxIDE3LjUwODcgMTcuMjI5OSAxNy43OTI5TDE4LjY0NDEgMTkuMjA3MUMxOC44NiAxOC45OTEzIDE5LjA4MDUgMTguODAzMyAxOS4zMTA5IDE4LjYxMTZDMTkuNTI4NyAxOC40MzA1IDE5Ljc4NTIgMTguMjIyMyAyMC4wMDY1IDE4LjAwODdDMjAuNDgyNSAxNy41NDkzIDIwLjkzNyAxNi45MzE0IDIwLjkzNyAxNkgxOC45MzdaTTE3LjkzNyAxNUMxOC40ODkzIDE1IDE4LjkzNyAxNS40NDc3IDE4LjkzNyAxNkgyMC45MzdDMjAuOTM3IDE0LjM0MzEgMTkuNTkzOCAxMyAxNy45MzcgMTNWMTVaTTE2Ljk2ODQgMTUuNzQ5M0MxNy4wNzk1IDE1LjMxNzcgMTcuNDcyNCAxNSAxNy45MzcgMTVWMTNDMTYuNTM3NyAxMyAxNS4zNjQ1IDEzLjk1NyAxNS4wMzE2IDE1LjI1MDdMMTYuOTY4NCAxNS43NDkzWk0xNy45Mzc1IDIySDE3Ljk0NzVWMjBIMTcuOTM3NVYyMloiCiAgICAgIGZpbGw9IiNjMDAwMDAiCiAgICAvPgogIDwvZz4KPC9zdmc+";function gn(t){let e,i,n,l=(t[0].tempTagDom?t[0].tempTagDom.map(Sn).join("&nbsp;"):"")+"",o,s,r=t[0].torrent_name+"",u,c;return {c(){e=v("div"),i=v("a"),n=new Ee(!1),o=S(),s=v("b"),u=C(r),n.a=o,h(i,"class","two-lines svelte-4b9kml"),h(i,"href",c=t[0].torrentLink),h(i,"target","_blank"),h(e,"class","card-title svelte-4b9kml");},m(f,m){T(f,e,m),_(e,i),n.m(l,i),_(i,o),_(i,s),_(s,u);},p(f,m){m&1&&l!==(l=(f[0].tempTagDom?f[0].tempTagDom.map(Sn).join("&nbsp;"):"")+"")&&n.p(l),m&1&&r!==(r=f[0].torrent_name+"")&&x(u,r),m&1&&c!==(c=f[0].torrentLink)&&h(i,"href",c);},d(f){f&&w(e);}}}function ls(t){let e,i,n,l,o,s,r,u;return {c(){e=v("div"),i=v("div"),n=v("img"),o=S(),s=v("div"),s.textContent="图片加载失败",Y(n,"height","100%"),Y(n,"width","100px"),me(n.src,l=Sl)||h(n,"src",l),h(n,"alt","pic error"),h(n,"class","svelte-4b9kml"),h(e,"class","pic_error"),h(e,"style","");},m(c,f){T(c,e,f),_(e,i),_(i,n),_(e,o),_(e,s),r||(u=V(n,"load",t[8]),r=!0);},p:$,d(c){c&&w(e),r=!1,u();}}}function os(t){let e,i,n,l,o,s;return {c(){e=v("img"),h(e,"class","nexus-lazy-load_Kesa svelte-4b9kml"),me(e.src,i=tt.LOADING_PIC)||h(e,"src",i),h(e,"data-src",n=t[0].picLink),h(e,"alt",l=t[0].torrentName);},m(r,u){T(r,e,u),o||(s=[V(e,"load",t[8]),V(e,"error",t[13])],o=!0);},p(r,u){u&1&&n!==(n=r[0].picLink)&&h(e,"data-src",n),u&1&&l!==(l=r[0].torrentName)&&h(e,"alt",l);},d(r){r&&w(e),o=!1,Ie(s);}}}function hn(t){let e,i,n;return {c(){e=v("div"),i=v("img"),Y(i,"pointer-events","none"),me(i.src,n=t[2].PREVIEW)||h(i,"src",n),h(i,"alt","PREVIEW"),h(i,"class","svelte-4b9kml"),h(e,"class","hover-trigger svelte-4b9kml");},m(l,o){T(l,e,o),_(e,i);},p(l,o){o&4&&!me(i.src,n=l[2].PREVIEW)&&h(i,"src",n);},d(l){l&&w(e);}}}function mn(t){let e,i,n,l=t[0].tagsDOM.map(t[14]).join("")+"",o,s,r,u,c,f=t[2].SIZE+"",m,g=t[0].size+"",d,M,I,a,p=t[2].DOWNLOAD+"",y,b,N,O,E,k,P,D,A,R=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",Q,z,H,we,ae,Te,G,U=t[0].upload_date+"",F,ne,X,W,te=t[2].COMMENT+"",le,de,ee=t[0].comments+"",ie,he,He,ye=t[2].SEEDERS+"",Re,De,Ae=t[0].seeders+"",Ke,pe,oe,Me=t[2].LEECHERS+"",L,se,ce=t[0].leechers+"",Nt,Le,Ue,ot=t[2].SNATCHED+"",wt,Ve,st=t[0].snatched+"",Tt,Fe,Dt,Pe=(t[0].free_type||t[0].pattMsg)&&pn(t),ve=t[0].description&&yn(t);return {c(){Pe&&Pe.c(),e=S(),ve&&ve.c(),i=S(),n=v("div"),o=S(),s=v("div"),r=v("div"),u=v("div"),c=new Ee(!1),m=C(" "),d=C(g),M=C(`

          
            
          `),I=v("div"),a=new Ee(!1),y=C(` 
            `),b=v("b"),N=v("a"),O=C("下载"),k=C(`

          
            
          `),P=v("div"),D=v("div"),A=new Ee(!1),Q=C(`
               `),z=v("b"),z.textContent="收藏",we=S(),ae=v("div"),Te=v("b"),Te.textContent="上传时间:",G=S(),F=C(U),ne=S(),X=v("div"),W=new Ee(!1),le=C(" "),de=v("b"),ie=C(ee),he=C(`  
          `),He=new Ee(!1),Re=C(" "),De=v("b"),Ke=C(Ae),pe=C(`  
          `),oe=new Ee(!1),L=C(" "),se=v("b"),Nt=C(ce),Le=C(`  
          `),Ue=new Ee(!1),wt=C(" "),Ve=v("b"),Tt=C(st),h(n,"class","cl-tags svelte-4b9kml"),c.a=m,h(u,"class","cl-center svelte-4b9kml"),a.a=y,h(N,"href",E=t[0].downloadLink),h(I,"class","cl-center svelte-4b9kml"),A.a=Q,h(D,"class","btnCollet cl-center svelte-4b9kml"),h(D,"id",H="tI_"+t[0].torrentIndex),h(P,"class","cl-center svelte-4b9kml"),h(r,"class","card-line svelte-4b9kml"),h(ae,"class","card-line svelte-4b9kml"),W.a=le,He.a=Re,oe.a=L,Ue.a=wt,h(X,"class","card-line svelte-4b9kml"),h(s,"class","card-details svelte-4b9kml");},m(J,ue){Pe&&Pe.m(J,ue),T(J,e,ue),ve&&ve.m(J,ue),T(J,i,ue),T(J,n,ue),n.innerHTML=l,T(J,o,ue),T(J,s,ue),_(s,r),_(r,u),c.m(f,u),_(u,m),_(u,d),_(r,M),_(r,I),a.m(p,I),_(I,y),_(I,b),_(b,N),_(N,O),_(r,k),_(r,P),_(P,D),A.m(R,D),_(D,Q),_(D,z),_(s,we),_(s,ae),_(ae,Te),_(ae,G),_(ae,F),_(s,ne),_(s,X),W.m(te,X),_(X,le),_(X,de),_(de,ie),_(X,he),He.m(ye,X),_(X,Re),_(X,De),_(De,Ke),_(X,pe),oe.m(Me,X),_(X,L),_(X,se),_(se,Nt),_(X,Le),Ue.m(ot,X),_(X,wt),_(X,Ve),_(Ve,Tt),Fe||(Dt=V(D,"click",t[15]),Fe=!0);},p(J,ue){J[0].free_type||J[0].pattMsg?Pe?Pe.p(J,ue):(Pe=pn(J),Pe.c(),Pe.m(e.parentNode,e)):Pe&&(Pe.d(1),Pe=null),J[0].description?ve?ve.p(J,ue):(ve=yn(J),ve.c(),ve.m(i.parentNode,i)):ve&&(ve.d(1),ve=null),ue&1&&l!==(l=J[0].tagsDOM.map(J[14]).join("")+"")&&(n.innerHTML=l),ue&4&&f!==(f=J[2].SIZE+"")&&c.p(f),ue&1&&g!==(g=J[0].size+"")&&x(d,g),ue&4&&p!==(p=J[2].DOWNLOAD+"")&&a.p(p),ue&1&&E!==(E=J[0].downloadLink)&&h(N,"href",E),ue&5&&R!==(R=(J[0].collectState=="Unbookmarked"?J[2].COLLET:J[2].COLLETED)+"")&&A.p(R),ue&1&&H!==(H="tI_"+J[0].torrentIndex)&&h(D,"id",H),ue&1&&U!==(U=J[0].upload_date+"")&&x(F,U),ue&4&&te!==(te=J[2].COMMENT+"")&&W.p(te),ue&1&&ee!==(ee=J[0].comments+"")&&x(ie,ee),ue&4&&ye!==(ye=J[2].SEEDERS+"")&&He.p(ye),ue&1&&Ae!==(Ae=J[0].seeders+"")&&x(Ke,Ae),ue&4&&Me!==(Me=J[2].LEECHERS+"")&&oe.p(Me),ue&1&&ce!==(ce=J[0].leechers+"")&&x(Nt,ce),ue&4&&ot!==(ot=J[2].SNATCHED+"")&&Ue.p(ot),ue&1&&st!==(st=J[0].snatched+"")&&x(Tt,st);},d(J){Pe&&Pe.d(J),J&&w(e),ve&&ve.d(J),J&&w(i),J&&w(n),J&&w(o),J&&w(s),Fe=!1,Dt();}}}function pn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&Mn(t),r=t[0].freeTypeImg&&vn(t),u=t[0].free_remaining_time&&In(t);return {c(){e=v("div"),i=v("div"),s&&s.c(),n=S(),r&&r.c(),l=S(),u&&u.c(),h(i,"class",o="top_and_free "+t[0].free_type+" svelte-4b9kml"),h(e,"class","card-alter svelte-4b9kml");},m(c,f){T(c,e,f),_(e,i),s&&s.m(i,null),_(i,n),r&&r.m(i,null),_(i,l),u&&u.m(i,null);},p(c,f){c[0].place_at_the_top.length!=0?s?s.p(c,f):(s=Mn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,f):(r=vn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?u?u.p(c,f):(u=In(c),u.c(),u.m(i,null)):u&&(u.d(1),u=null),f&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-4b9kml")&&h(i,"class",o);},d(c){c&&w(e),s&&s.d(),r&&r.d(),u&&u.d();}}}function Mn(t){let e,i=Array.from(t[0].place_at_the_top).map(On)+"&nbsp;",n;return {c(){e=new Ee(!1),n=Be(),e.a=n;},m(l,o){e.m(i,l,o),T(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(On)+"&nbsp;")&&e.p(i);},d(l){l&&w(n),l&&e.d();}}}function vn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new Ee(!1),n=Be(),e.a=n;},m(l,o){e.m(i,l,o),T(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&w(n),l&&e.d();}}}function In(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=C(" "),i=v("b"),l=C(n);},m(o,s){T(o,e,s),T(o,i,s),_(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&x(l,n);},d(o){o&&w(e),o&&w(i);}}}function yn(t){let e,i=t[0].description+"",n,l;return {c(){e=v("a"),n=C(i),h(e,"class","card-description svelte-4b9kml"),h(e,"href",l=t[0].torrentLink);},m(o,s){T(o,e,s),_(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&x(n,i),s&1&&l!==(l=o[0].torrentLink)&&h(e,"href",l);},d(o){o&&w(e);}}}function bn(t){let e,i,n,l,o,s,r=t[6].free&&(t[0].free_type||t[0].pattMsg)&&Nn(t),u=t[6].sub_title&&t[0].description&&kn(t),c=t[6].tags&&Cn(t),f=t[6].size_download_collect&&An(t),m=t[6].upload_time&&Ln(t),g=t[6].statistics&&En(t);return {c(){r&&r.c(),e=S(),u&&u.c(),i=S(),c&&c.c(),n=S(),l=v("div"),f&&f.c(),o=S(),m&&m.c(),s=S(),g&&g.c(),h(l,"class","card-details svelte-4b9kml");},m(d,M){r&&r.m(d,M),T(d,e,M),u&&u.m(d,M),T(d,i,M),c&&c.m(d,M),T(d,n,M),T(d,l,M),f&&f.m(l,null),_(l,o),m&&m.m(l,null),_(l,s),g&&g.m(l,null);},p(d,M){d[6].free&&(d[0].free_type||d[0].pattMsg)?r?r.p(d,M):(r=Nn(d),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),d[6].sub_title&&d[0].description?u?u.p(d,M):(u=kn(d),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null),d[6].tags?c?c.p(d,M):(c=Cn(d),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),d[6].size_download_collect?f?f.p(d,M):(f=An(d),f.c(),f.m(l,o)):f&&(f.d(1),f=null),d[6].upload_time?m?m.p(d,M):(m=Ln(d),m.c(),m.m(l,s)):m&&(m.d(1),m=null),d[6].statistics?g?g.p(d,M):(g=En(d),g.c(),g.m(l,null)):g&&(g.d(1),g=null);},d(d){r&&r.d(d),d&&w(e),u&&u.d(d),d&&w(i),c&&c.d(d),d&&w(n),d&&w(l),f&&f.d(),m&&m.d(),g&&g.d();}}}function Nn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&wn(t),r=t[0].freeTypeImg&&Tn(t),u=t[0].free_remaining_time&&Dn(t);return {c(){e=v("div"),i=v("div"),s&&s.c(),n=S(),r&&r.c(),l=S(),u&&u.c(),h(i,"class",o="top_and_free "+t[0].free_type+" svelte-4b9kml"),h(e,"class","card-alter svelte-4b9kml");},m(c,f){T(c,e,f),_(e,i),s&&s.m(i,null),_(i,n),r&&r.m(i,null),_(i,l),u&&u.m(i,null);},p(c,f){c[0].place_at_the_top.length!=0?s?s.p(c,f):(s=wn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,f):(r=Tn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?u?u.p(c,f):(u=Dn(c),u.c(),u.m(i,null)):u&&(u.d(1),u=null),f&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-4b9kml")&&h(i,"class",o);},d(c){c&&w(e),s&&s.d(),r&&r.d(),u&&u.d();}}}function wn(t){let e,i=Array.from(t[0].place_at_the_top).map(jn)+"&nbsp;",n;return {c(){e=new Ee(!1),n=Be(),e.a=n;},m(l,o){e.m(i,l,o),T(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(jn)+"&nbsp;")&&e.p(i);},d(l){l&&w(n),l&&e.d();}}}function Tn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new Ee(!1),n=Be(),e.a=n;},m(l,o){e.m(i,l,o),T(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&w(n),l&&e.d();}}}function Dn(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=C(" "),i=v("b"),l=C(n);},m(o,s){T(o,e,s),T(o,i,s),_(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&x(l,n);},d(o){o&&w(e),o&&w(i);}}}function kn(t){let e,i=t[0].description+"",n,l;return {c(){e=v("a"),n=C(i),h(e,"class","card-description svelte-4b9kml"),h(e,"href",l=t[0].torrentLink);},m(o,s){T(o,e,s),_(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&x(n,i),s&1&&l!==(l=o[0].torrentLink)&&h(e,"href",l);},d(o){o&&w(e);}}}function Cn(t){let e,i=t[0].tagsDOM.map(t[16]).join("")+"";return {c(){e=v("div"),h(e,"class","cl-tags svelte-4b9kml");},m(n,l){T(n,e,l),e.innerHTML=i;},p(n,l){l&1&&i!==(i=n[0].tagsDOM.map(n[16]).join("")+"")&&(e.innerHTML=i);},d(n){n&&w(e);}}}function An(t){let e,i,n,l=t[2].SIZE+"",o,s=t[0].size+"",r,u,c,f,m=t[2].DOWNLOAD+"",g,d,M,I,a,p,y,b,N,O=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",E,k,P,D,A;return {c(){e=v("div"),i=v("div"),n=new Ee(!1),o=C(" "),r=C(s),u=C(`

            
              
            `),c=v("div"),f=new Ee(!1),g=C(` 
              `),d=v("b"),M=v("a"),I=C("下载"),p=C(`

            
              
            `),y=v("div"),b=v("div"),N=new Ee(!1),E=C(`
                 `),k=v("b"),k.textContent="收藏",n.a=o,h(i,"class","cl-center svelte-4b9kml"),f.a=g,h(M,"href",a=t[0].downloadLink),h(c,"class","cl-center svelte-4b9kml"),N.a=E,h(b,"class","btnCollet cl-center svelte-4b9kml"),h(b,"id",P="tI_"+t[0].torrentIndex),h(y,"class","cl-center svelte-4b9kml"),h(e,"class","card-line svelte-4b9kml");},m(R,Q){T(R,e,Q),_(e,i),n.m(l,i),_(i,o),_(i,r),_(e,u),_(e,c),f.m(m,c),_(c,g),_(c,d),_(d,M),_(M,I),_(e,p),_(e,y),_(y,b),N.m(O,b),_(b,E),_(b,k),D||(A=V(b,"click",t[17]),D=!0);},p(R,Q){Q&4&&l!==(l=R[2].SIZE+"")&&n.p(l),Q&1&&s!==(s=R[0].size+"")&&x(r,s),Q&4&&m!==(m=R[2].DOWNLOAD+"")&&f.p(m),Q&1&&a!==(a=R[0].downloadLink)&&h(M,"href",a),Q&5&&O!==(O=(R[0].collectState=="Unbookmarked"?R[2].COLLET:R[2].COLLETED)+"")&&N.p(O),Q&1&&P!==(P="tI_"+R[0].torrentIndex)&&h(b,"id",P);},d(R){R&&w(e),D=!1,A();}}}function Ln(t){let e,i,n,l=t[0].upload_date+"",o;return {c(){e=v("div"),i=v("b"),i.textContent="上传时间:",n=S(),o=C(l),h(e,"class","card-line svelte-4b9kml");},m(s,r){T(s,e,r),_(e,i),_(e,n),_(e,o);},p(s,r){r&1&&l!==(l=s[0].upload_date+"")&&x(o,l);},d(s){s&&w(e);}}}function En(t){let e,i,n=t[2].COMMENT+"",l,o,s=t[0].comments+"",r,u,c,f=t[2].SEEDERS+"",m,g,d=t[0].seeders+"",M,I,a,p=t[2].LEECHERS+"",y,b,N=t[0].leechers+"",O,E,k,P=t[2].SNATCHED+"",D,A,R=t[0].snatched+"",Q;return {c(){e=v("div"),i=new Ee(!1),l=C(" "),o=v("b"),r=C(s),u=C(`  
            `),c=new Ee(!1),m=C(" "),g=v("b"),M=C(d),I=C(`  
            `),a=new Ee(!1),y=C(" "),b=v("b"),O=C(N),E=C(`  
            `),k=new Ee(!1),D=C(" "),A=v("b"),Q=C(R),i.a=l,c.a=m,a.a=y,k.a=D,h(e,"class","card-line svelte-4b9kml");},m(z,H){T(z,e,H),i.m(n,e),_(e,l),_(e,o),_(o,r),_(e,u),c.m(f,e),_(e,m),_(e,g),_(g,M),_(e,I),a.m(p,e),_(e,y),_(e,b),_(b,O),_(e,E),k.m(P,e),_(e,D),_(e,A),_(A,Q);},p(z,H){H&4&&n!==(n=z[2].COMMENT+"")&&i.p(n),H&1&&s!==(s=z[0].comments+"")&&x(r,s),H&4&&f!==(f=z[2].SEEDERS+"")&&c.p(f),H&1&&d!==(d=z[0].seeders+"")&&x(M,d),H&4&&p!==(p=z[2].LEECHERS+"")&&a.p(p),H&1&&N!==(N=z[0].leechers+"")&&x(O,N),H&4&&P!==(P=z[2].SNATCHED+"")&&k.p(P),H&1&&R!==(R=z[0].snatched+"")&&x(Q,R);},d(z){z&&w(e);}}}function ss(t){let e,i,n,l=t[0].category+"",o,s,r,u,c,f,m,g=t[0].torrentIndex+1+"",d,M,I,a,p,y,b=(t[6].title||t[3])&&gn(t);function N(A,R){return A[4]?ls:os}let O=N(t),E=O(t),k=t[7]&&hn(t),P=(t[6].all||t[3])&&mn(t),D=!(t[6].all||t[3])&&bn(t);return {c(){e=v("div"),i=v("div"),n=v("div"),o=C(l),r=S(),b&&b.c(),u=S(),c=v("div"),E.c(),f=S(),m=v("div"),d=C(g),M=S(),k&&k.c(),I=S(),P&&P.c(),a=S(),D&&D.c(),h(n,"class","card-category svelte-4b9kml"),h(n,"data-href",s=t[0].categoryLink),Y(n,"background-color",tt.CATEGORY[t[0].categoryNumber]??"transparent"),Y(n,"color",tt.CATEGORY[t[0].categoryNumber]?zn(tt.CATEGORY[t[0].categoryNumber]):"black"),h(m,"class","card-index svelte-4b9kml"),h(c,"class","card-image svelte-4b9kml"),h(i,"class","card-holder svelte-4b9kml"),h(e,"class","card svelte-4b9kml"),Y(e,"width",t[1]+"px"),Y(e,"z-index",1e4-t[0].torrentIndex),Y(e,"background-color",t[5]);},m(A,R){T(A,e,R),_(e,i),_(i,n),_(n,o),_(i,r),b&&b.m(i,null),_(i,u),_(i,c),E.m(c,null),_(c,f),_(c,m),_(m,d),_(c,M),k&&k.m(c,null),_(i,I),P&&P.m(i,null),_(i,a),D&&D.m(i,null),p||(y=[V(c,"click",t[10]),V(i,"mouseenter",t[11]),V(i,"mouseleave",t[12])],p=!0);},p(A,[R]){R&1&&l!==(l=A[0].category+"")&&x(o,l),R&1&&s!==(s=A[0].categoryLink)&&h(n,"data-href",s),R&1&&Y(n,"background-color",tt.CATEGORY[A[0].categoryNumber]??"transparent"),R&1&&Y(n,"color",tt.CATEGORY[A[0].categoryNumber]?zn(tt.CATEGORY[A[0].categoryNumber]):"black"),A[6].title||A[3]?b?b.p(A,R):(b=gn(A),b.c(),b.m(i,u)):b&&(b.d(1),b=null),O===(O=N(A))&&E?E.p(A,R):(E.d(1),E=O(A),E&&(E.c(),E.m(c,f))),R&1&&g!==(g=A[0].torrentIndex+1+"")&&x(d,g),A[7]?k?k.p(A,R):(k=hn(A),k.c(),k.m(c,null)):k&&(k.d(1),k=null),A[6].all||A[3]?P?P.p(A,R):(P=mn(A),P.c(),P.m(i,a)):P&&(P.d(1),P=null),A[6].all||A[3]?D&&(D.d(1),D=null):D?D.p(A,R):(D=bn(A),D.c(),D.m(i,null)),R&2&&Y(e,"width",A[1]+"px"),R&1&&Y(e,"z-index",1e4-A[0].torrentIndex),R&32&&Y(e,"background-color",A[5]);},i:$,o:$,d(A){A&&w(e),b&&b.d(),E.d(),k&&k.d(),P&&P.d(),D&&D.d(),p=!1,Ie(y);}}}function zn(t){const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),l=parseInt(e.substr(4,2),16);return (i*299+n*587+l*114)/1e3<128?"white":"black"}const Sn=t=>t.outerHTML,On=t=>t.outerHTML,jn=t=>t.outerHTML;function rs(t,e,i){let n,l,o,s,r;B(t,lt,k=>i(18,n=k)),B(t,We,k=>i(19,l=k)),B(t,bt,k=>i(5,o=k)),B(t,Qe,k=>i(6,s=k)),B(t,vt,k=>i(7,r=k));function u(){ge();}function c(k,P){try{window.location.href=k,i(0,m.collectState=m.collectState=="Unbookmarked"?"Bookmarked":"Unbookmarked",m),console.log(`执行脚本${k}成功, 已经收藏或者取消~`);}catch(D){console.error(D);}}function f(){_e(We,l=1,l),_e(lt,n=m.torrentLink+"#kdescr",n);}let{torrentInfo:m}=e,{cardWidth:g}=e,{ICON:d}=e,M=!1;function I(){i(3,M=!0);}function a(){i(3,M=!1);}let p=!1;const y=()=>{i(4,p=!0);},b=k=>{const P=document.createElement("div");return P.innerHTML=k.outerHTML,P.outerHTML},N=()=>c(m.collectLink,"tI_"+m.torrentIndex),O=k=>{const P=document.createElement("div");return P.innerHTML=k.outerHTML,P.outerHTML},E=()=>c(m.collectLink,"tI_"+m.torrentIndex);return t.$$set=k=>{"torrentInfo"in k&&i(0,m=k.torrentInfo),"cardWidth"in k&&i(1,g=k.cardWidth),"ICON"in k&&i(2,d=k.ICON);},[m,g,d,M,p,o,s,r,u,c,f,I,a,y,b,N,O,E]}class as extends et{constructor(e){super(),$e(this,e,rs,ss,xe,{torrentInfo:0,cardWidth:1,ICON:2});}}function Pn(t,e,i){const n=t.slice();return n[23]=e[i],n}function cs(t){let e;return {c(){e=v("div"),e.textContent="else";},m(i,n){T(i,e,n);},p:$,i:$,o:$,d(i){i&&w(e);}}}function us(t){let e=[],i=new Map,n,l,o=t[2];const s=r=>r[23].torrentIndex;for(let r=0;r<o.length;r+=1){let u=Pn(t,o,r),c=s(u);i.set(c,e[r]=Rn(c,u));}return {c(){for(let r=0;r<e.length;r+=1)e[r].c();n=Be();},m(r,u){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(r,u);T(r,n,u),l=!0;},p(r,u){u&5&&(o=r[2],Xe(),e=Dl(e,u,s,1,r,o,i,n.parentNode,Tl,Rn,n,Pn),qe());},i(r){if(!l){for(let u=0;u<o.length;u+=1)Z(e[u]);l=!0;}},o(r){for(let u=0;u<e.length;u+=1)q(e[u]);l=!1;},d(r){for(let u=0;u<e.length;u+=1)e[u].d(r);r&&w(n);}}}function Rn(t,e){let i,n,l;return n=new as({props:{torrentInfo:e[23],cardWidth:e[0].CARD_WIDTH,ICON:ns}}),{key:t,first:null,c(){i=Be(),ke(n.$$.fragment),this.first=i;},m(o,s){T(o,i,s),be(n,o,s),l=!0;},p(o,s){e=o;const r={};s&4&&(r.torrentInfo=e[23]),s&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(Z(n.$$.fragment,o),l=!0);},o(o){q(n.$$.fragment,o),l=!1;},d(o){o&&w(i),Ne(n,o);}}}function fs(t){let e=t[5].normal+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function ds(t){let e=t[5].suspend+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function _s(t){let e=t[5].disable+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function gs(t){let e,i,n,l,o,s,r,u,c;const f=[us,cs],m=[];function g(a,p){return a[3]=="kamept.com"?0:1}e=g(t),i=m[e]=f[e](t);function d(a,p){return a[4]?_s:a[1]?ds:fs}let M=d(t),I=M(t);return {c(){i.c(),n=S(),l=v("div"),o=v("button"),I.c(),h(o,"id","turnPage"),o.disabled=s=t[4]||t[1],h(o,"class","svelte-kydsmq");},m(a,p){m[e].m(a,p),T(a,n,p),T(a,l,p),_(l,o),I.m(o,null),r=!0,u||(c=V(o,"click",t[6]),u=!0);},p(a,[p]){let y=e;e=g(a),e===y?m[e].p(a,p):(Xe(),q(m[y],1,1,()=>{m[y]=null;}),qe(),i=m[e],i?i.p(a,p):(i=m[e]=f[e](a),i.c()),Z(i,1),i.m(n.parentNode,n)),M===(M=d(a))&&I?I.p(a,p):(I.d(1),I=M(a),I&&(I.c(),I.m(o,null))),(!r||p&18&&s!==(s=a[4]||a[1]))&&(o.disabled=s);},i(a){r||(Z(i),r=!0);},o(a){q(i),r=!1;},d(a){m[e].d(a),a&&w(n),a&&w(l),I.d(),u=!1,c();}}}function hs(t,e,i){var P;let n,l,o,s,r,u;B(t,Qt,D=>i(15,n=D)),B(t,Wt,D=>i(10,l=D)),B(t,Bt,D=>i(11,o=D)),B(t,yt,D=>i(3,s=D)),B(t,Ot,D=>i(4,r=D)),B(t,bt,D=>i(16,u=D));let{originTable:c}=e,{waterfallNode:f}=e;window.NEXUS_TOOLS=Mt;function m(){g(l.column,l.gap),ge("fast"),ge("fast");}window.CHANGE_CARD_LAYOUT=m;function g(D,A=10){if(D<=1||A<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const Q=(document.querySelector("div.waterfall").clientWidth-(D-1)*A)/D;return Array.from(document.querySelectorAll(".card")).forEach(z=>z.style.width=Q+"px"),N&&(i(9,N.options.columnWidth=Q,N),i(9,N.options.gutter=A,N),N.layout()),Q}let d=!1,M=!1;const I={normal:"点击加载下一页",suspend:`下一页加载CD: ${K.GAP} ms`,disable:"不可用"};function a(D){D&&D.preventDefault(),r||O(),d||(i(1,d=!0),setTimeout(()=>{i(1,d=!1);},K.GAP));}window.$$$turnPage=a,_e(yt,s=Vt(),s);const p=zl();_e(bt,u=p,u),console.log("背景颜色:",p);const y=je[s];let b=[];b=[...b,...y.TORRENT_LIST_TO_JSON(c)],console.log("---> 环境:	","production"),(P=je[s])==null||P.special();let N,O;function E(){const D=document.body.scrollHeight,A=document.documentElement.clientHeight;(document.documentElement.scrollTop||document.body.scrollTop)+A>=D-K.DISTANCE&&(r?O():console.log("加载模式: 按钮"),ge());}O=kl(k,K.GAP);function k(){console.log("到页面底部啦!!! Scrolled to bottom!");const D=new URLSearchParams(window.location.search);K.PAGE_CURRENT=K.IS_ORIGIN?Number(D.get("page")):K.PAGE_CURRENT,K.IS_ORIGIN&&(K.PAGE_ORIGIN=K.PAGE_CURRENT),K.PAGE_CURRENT?console.log("当前页数: "+K.PAGE_CURRENT):(console.log("网页链接没有page参数, 无法跳转下一页, 生成PAGE.PAGE_CURRENT为0"),K.PAGE_CURRENT=0),K.PAGE_NEXT=parseInt(K.PAGE_CURRENT)+1,D.set("page",K.PAGE_NEXT),K.NEXT_URL=window.location.origin+window.location.pathname+"?"+D.toString(),console.log("New URL:",K.NEXT_URL),fetch(K.NEXT_URL).then(A=>A.text()).then(A=>{var we,ae;const z=new DOMParser().parseFromString(A,"text/html").querySelector(It()),H=Array.from(z.cloneNode(!0).children[0].children);H[0].children[1].textContent=`
        ↓ 新加载第${K.PAGE_NEXT-K.PAGE_ORIGIN}页`,console.log(K.PAGE_ORIGIN),c.children[0].append(...H),typeof((we=je[s])==null?void 0:we.pageLoaded)=="function"&&((ae=je[s])==null||ae.pageLoaded()),i(2,b=[...b,...y.TORRENT_LIST_TO_JSON(z)]),K.IS_ORIGIN=!1,K.PAGE_CURRENT=K.PAGE_NEXT,M=!0,setTimeout(()=>{M=!1;},1e3);}).catch(A=>{console.warn("获取不到下页信息, 可能到头了"),console.warn(A);});}return ei(()=>{i(9,N=new Masonry(f,{itemSelector:".card",columnWidth:g(l.column,l.gap),gutter:l.gap,transitionDuration:o?.4:0})),g(l.column,l.gap),window.masonry=N,_e(Qt,n=N,n),N.layout("fast"),N.layout("fast"),f.addEventListener("click",D=>{D.target===D.currentTarget&&(N&&N.layout(),console.log("Masonry 已整理~"));}),window.addEventListener("scroll",function(){E();}),Mt();}),mo(()=>{N&&M&&(N.reloadItems(),N.layout(),N.once("layoutComplete",()=>{Mt();}));}),t.$$set=D=>{"originTable"in D&&i(7,c=D.originTable),"waterfallNode"in D&&i(8,f=D.waterfallNode);},t.$$.update=()=>{t.$$.dirty&2560&&N&&i(9,N.options.transitionDuration=o?"0.4s":"0",N),t.$$.dirty&1537&&N&&(i(0,dt.CARD_WIDTH=g(l.column,l.gap),dt),console.log("卡片宽度:	",dt.CARD_WIDTH),m());},[dt,d,b,s,r,I,a,c,f,N,l,o]}class ms extends et{constructor(e){super(),$e(this,e,hs,gs,xe,{originTable:7,waterfallNode:8});}}function ps(t){let e=t[2].normal+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function Ms(t){let e=t[2].suspend+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function vs(t){let e=t[2].disable+"",i;return {c(){i=C(e);},m(n,l){T(n,i,l);},p:$,d(n){n&&w(i);}}}function Is(t){let e,i,n,l,o;function s(c,f){return c[1]?vs:c[0]?Ms:ps}let r=s(t),u=r(t);return {c(){e=v("div"),i=v("button"),u.c(),h(i,"id","_turnPage"),i.disabled=n=t[1]||t[0],h(i,"class","svelte-1gtc1kh");},m(c,f){T(c,e,f),_(e,i),u.m(i,null),l||(o=V(i,"click",t[3]),l=!0);},p(c,[f]){r===(r=s(c))&&u?u.p(c,f):(u.d(1),u=r(c),u&&(u.c(),u.m(i,null))),f&3&&n!==(n=c[1]||c[0])&&(i.disabled=n);},i:$,o:$,d(c){c&&w(e),u.d(),l=!1,o();}}}const Yn=3e3;function ys(t,e,i){let n;B(t,Ot,r=>i(1,n=r));let l=!1;const o={normal:"点击加载下一页",suspend:`下一页加载CD: ${Yn} ms`,disable:"不可用"};function s(r){r.preventDefault(),window.$$$turnPage(),l||(i(0,l=!0),setTimeout(()=>{i(0,l=!1);},Yn));}return [l,n,o,s]}class Ol extends et{constructor(e){super(),$e(this,e,ys,Is,xe,{});}}function Gn(t){let e,i,n,l,o,s,r,u,c,f;return {c(){e=v("div"),i=v("div"),n=v("iframe"),o=S(),s=v("div"),s.innerHTML='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_iconCarrier"><circle cx="12" cy="12" r="10" stroke="#1C274C" stroke-width="1.5"></circle><path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path></g></svg>',me(n.src,l=t[1])||h(n,"src",l),h(n,"frameborder","0"),h(n,"title","wow"),Y(n,"width",(je[t[2]]?je[t[2]].Iframe_Width:1e3)+"px"),h(n,"class","svelte-12ghpfg"),h(s,"class","_iframeCloseBtn svelte-12ghpfg"),h(i,"class","_iframe svelte-12ghpfg"),h(e,"id","_iframe"),h(e,"class","svelte-12ghpfg");},m(m,g){T(m,e,g),_(e,i),_(i,n),_(i,o),_(i,s),u=!0,c||(f=[V(s,"click",t[3]),V(e,"click",t[3])],c=!0);},p(m,g){(!u||g&2&&!me(n.src,l=m[1]))&&h(n,"src",l),(!u||g&4)&&Y(n,"width",(je[m[2]]?je[m[2]].Iframe_Width:1e3)+"px");},i(m){u||(gt(()=>{u&&(r||(r=ht(e,mt,{duration:300},!0)),r.run(1));}),u=!0);},o(m){r||(r=ht(e,mt,{duration:300},!1)),r.run(0),u=!1;},d(m){m&&w(e),m&&r&&r.end(),c=!1,Ie(f);}}}function bs(t){let e,i,n,l,o=t[0]&&Gn(t);return {c(){o&&o.c(),e=Be();},m(s,r){o&&o.m(s,r),T(s,e,r),i=!0,n||(l=V(window,"keydown",t[4],!0),n=!0);},p(s,[r]){s[0]?o?(o.p(s,r),r&1&&Z(o,1)):(o=Gn(s),o.c(),Z(o,1),o.m(e.parentNode,e)):o&&(Xe(),q(o,1,1,()=>{o=null;}),qe());},i(s){i||(Z(o),i=!0);},o(s){q(o),i=!1;},d(s){o&&o.d(s),s&&w(e),n=!1,l();}}}function Ns(t,e,i){let n,l,o,s,r;B(t,ft,M=>i(9,n=M)),B(t,We,M=>i(0,l=M)),B(t,St,M=>i(5,o=M)),B(t,lt,M=>i(1,s=M)),B(t,yt,M=>i(2,r=M)),console.log(`[${new Date().toLocaleTimeString()}]<--------------------------HMR-------------------------->`);const u=document.querySelector(It());for(;!Masonry;)console.log("等待初始化......");const c=u.parentNode,f=document.createElement("div");f.classList.add("waterfall"),c.insertBefore(f,u.nextSibling);const m=document.createElement("div");m.classList.add("nextPage"),c.insertBefore(m,u.nextSibling);function g(){_e(We,l=0,l);}function d(M){M.key==="Escape"&&(console.log(M),_e(We,l=0,l),_e(ft,n=!1,n));}return ei(()=>{new Ll({target:document.body}),new ms({target:f,props:{originTable:u,waterfallNode:f}}),new Ol({target:m});}),t.$$.update=()=>{t.$$.dirty&32&&(u.style.display=o?"none":"block",m.style.display=o?"none":"block",f.style.display=o?"block":"none");},[l,s,r,g,d,o]}class ws extends et{constructor(e){super(),$e(this,e,Ns,bs,xe,{});}}const Ts="data:image/svg+xml;base64,PHN2ZwogIHZpZXdCb3g9Ii0yLjQgLTIuNCAyOC44MCAyOC44MCIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICBzdHJva2U9IiMwMDAwMDAiCj4KICA8ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIgLz4KICA8ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+CiAgICA8cGF0aAogICAgICBkPSJNMTUuNiAxNS42QzE1LjYgMTUuNiAxNC4yNSAxMy44IDEyIDEzLjhDOS43NSAxMy44IDguNCAxNS42IDguNCAxNS42TTE0LjcgOS4zSDE0LjcwOU05LjMgOS4zSDkuMzA5TTIxIDEyQzIxIDE2Ljk3MDYgMTYuOTcwNiAyMSAxMiAyMUM3LjAyOTQ0IDIxIDMgMTYuOTcwNiAzIDEyQzMgNy4wMjk0NCA3LjAyOTQ0IDMgMTIgM0MxNi45NzA2IDMgMjEgNy4wMjk0NCAyMSAxMlpNMTUuMTUgOS4zQzE1LjE1IDkuNTQ4NTMgMTQuOTQ4NSA5Ljc1IDE0LjcgOS43NUMxNC40NTE1IDkuNzUgMTQuMjUgOS41NDg1MyAxNC4yNSA5LjNDMTQuMjUgOS4wNTE0NyAxNC40NTE1IDguODUgMTQuNyA4Ljg1QzE0Ljk0ODUgOC44NSAxNS4xNSA5LjA1MTQ3IDE1LjE1IDkuM1pNOS43NSA5LjNDOS43NSA5LjU0ODUzIDkuNTQ4NTMgOS43NSA5LjMgOS43NUM5LjA1MTQ3IDkuNzUgOC44NSA5LjU0ODUzIDguODUgOS4zQzguODUgOS4wNTE0NyA5LjA1MTQ3IDguODUgOS4zIDguODVDOS41NDg1MyA4Ljg1IDkuNzUgOS4wNTE0NyA5Ljc1IDkuM1oiCiAgICAgIHN0cm9rZT0iIzAwMDAwMCIKICAgICAgc3Ryb2tlLXdpZHRoPSIxLjgiCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICAgICAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKICAgIC8+CiAgPC9nPgo8L3N2Zz4=";function Hn(t,e,i){const n=t.slice();return n[38]=e[i],n[2]=i,n}function Wn(t,e,i){const n=t.slice();return n[38]=e[i],n[2]=i,n}function Un(t){let e,i,n,l=t[0].name+"",o,s;return {c(){e=v("div"),i=v("a"),n=v("b"),o=C(l),h(i,"class","two-lines svelte-rhfb99"),h(i,"href",s="/detail/"+t[0].id),h(i,"target","_blank"),h(e,"class","card-title svelte-rhfb99");},m(r,u){T(r,e,u),_(e,i),_(i,n),_(n,o);},p(r,u){u[0]&1&&l!==(l=r[0].name+"")&&x(o,l),u[0]&1&&s!==(s="/detail/"+r[0].id)&&h(i,"href",s);},d(r){r&&w(e);}}}function Ds(t){let e,i,n,l,o,s,r,u;return {c(){e=v("div"),i=v("div"),n=v("img"),o=S(),s=v("div"),s.textContent="图片加载失败",Y(n,"height","100%"),Y(n,"width","100px"),me(n.src,l=Sl)||h(n,"src",l),h(n,"alt","pic error"),h(n,"class","svelte-rhfb99"),h(e,"class","pic_error"),h(e,"style","");},m(c,f){T(c,e,f),_(e,i),_(i,n),_(e,o),_(e,s),r||(u=V(n,"load",t[13]),r=!0);},p:$,d(c){c&&w(e),r=!1,u();}}}function ks(t){let e;function i(o,s){return o[0].category=="440"&&o[11].mt.hide_gay==!0?As:Cs}let n=i(t),l=n(t);return {c(){l.c(),e=Be();},m(o,s){l.m(o,s),T(o,e,s);},p(o,s){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)));},d(o){l.d(o),o&&w(e);}}}function Cs(t){let e;function i(o,s){return o[0].imageList[0]?Es:Ls}let n=i(t),l=n(t);return {c(){l.c(),e=Be();},m(o,s){l.m(o,s),T(o,e,s);},p(o,s){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)));},d(o){l.d(o),o&&w(e);}}}function As(t){let e,i,n,l,o,s,r,u;return {c(){e=v("div"),i=v("div"),n=v("img"),o=S(),s=v("div"),s.innerHTML="GAY WARNING<br/>同志警告",Y(n,"height","100%"),Y(n,"width","60px"),Y(n,"border-radius","20px"),me(n.src,l=Ws)||h(n,"src",l),h(n,"alt","pic error"),h(n,"class","svelte-rhfb99"),Y(s,"color","white"),Y(s,"font-weight","600"),Y(s,"font-size","16px"),h(e,"class","pic_error"),Y(e,"height","auto"),Y(e,"padding","10px"),Y(e,"gap","10px"),Y(e,"line-height","24px"),Y(e,"background-color",t[24]);},m(c,f){T(c,e,f),_(e,i),_(i,n),_(e,o),_(e,s),r||(u=V(n,"load",t[13]),r=!0);},p:$,d(c){c&&w(e),r=!1,u();}}}function Ls(t){let e,i,n,l,o,s,r,u;return {c(){e=v("div"),i=v("div"),n=v("img"),o=S(),s=v("div"),s.textContent="本种没有图片",Y(n,"height","100%"),Y(n,"width","100px"),me(n.src,l=Ts)||h(n,"src",l),h(n,"alt","no pic"),h(n,"class","svelte-rhfb99"),h(e,"class","pic_error"),h(e,"style","");},m(c,f){T(c,e,f),_(e,i),_(i,n),_(e,o),_(e,s),r||(u=V(n,"load",t[13]),r=!0);},p:$,d(c){c&&w(e),r=!1,u();}}}function Es(t){let e,i,n,l,o;return {c(){e=v("img"),h(e,"class","nexus-lazy-load_Kesa svelte-rhfb99"),me(e.src,i=fe.LOADING_PIC)||h(e,"src",i),h(e,"data-src",t[25]),h(e,"alt",n=t[0].name);},m(s,r){T(s,e,r),l||(o=[V(e,"load",t[13]),V(e,"error",t[26])],l=!0);},p(s,r){r[0]&1&&n!==(n=s[0].name)&&h(e,"alt",n);},d(s){s&&w(e),l=!1,Ie(o);}}}function Qn(t){let e,i,n;return {c(){e=v("div"),i=v("img"),Y(i,"pointer-events","none"),me(i.src,n=fe.ICON.PREVIEW)||h(i,"src",n),h(i,"alt","PREVIEW"),h(i,"class","svelte-rhfb99"),h(e,"class","hover-trigger svelte-rhfb99");},m(l,o){T(l,e,o),_(e,i);},p:$,d(l){l&&w(e);}}}function Bn(t){let e,i,n,l,o,s,r,u,c,f=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G",m,g,d,M,I,a,p,y,b,N,O,E,k=`${t[19].day} 日`,P,D,A=t[19].hour?`${t[19].hour} 时`:"",R,Q,z,H,we,ae,Te,G=t[0].status.comments+"",U,F,ne,X,W,te,le=t[0].status.seeders+"",de,ee,ie,he,He,ye,Re=t[0].status.leechers+"",De,Ae,Ke,pe=t[0].smallDescr&&Zn(t),oe=(t[0].status.discount||t[0].status.toppingLevel)&&Vn(t),Me=t[0].labels!=0&&Kn(t),L={ctx:t,current:null,token:null,hasCatch:!0,pending:js,then:Os,catch:Ss,value:36,error:37};return qt(p=t[5],L),{c(){pe&&pe.c(),e=S(),oe&&oe.c(),i=S(),Me&&Me.c(),n=S(),l=v("div"),o=v("div"),s=v("div"),r=v("div"),u=v("span"),u.innerHTML='<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="25" width="25" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle; --darkreader-inline-fill: currentColor; --darkreader-inline-stroke: currentColor;"><path d="M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path><path d="M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z"></path></svg>',c=C(`
               `),m=C(f),g=C(`

            
              
            
            `),d=v("div"),d.innerHTML='<span class="icon_holder svelte-rhfb99"><svg viewBox="64 64 896 896" focusable="false" data-icon="download" width="1em" height="1em" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"></path></svg></span>',M=C(`

            
              
            
            `),I=v("div"),a=v("span"),L.block.c(),y=S(),b=v("div"),N=v("img"),E=C(`
           `),P=C(k),D=S(),R=C(A),Q=S(),z=v("div"),H=v("img"),ae=C(`
           
          `),Te=v("b"),U=C(G),F=C(`
            
          `),ne=v("img"),W=C(`
           
          `),te=v("b"),de=C(le),ee=C(`
            
          `),ie=v("img"),He=C(`
           
          `),ye=v("b"),De=C(Re),h(u,"class","icon_holder svelte-rhfb99"),h(r,"class","cl-btn svelte-rhfb99"),h(d,"class","cl-btn svelte-rhfb99"),Y(d,"cursor","pointer"),h(a,"class","icon_holder svelte-rhfb99"),h(I,"class","cl-btn svelte-rhfb99"),Y(I,"cursor","pointer"),h(s,"class","cl-center svelte-rhfb99"),h(o,"class","card-line svelte-rhfb99"),me(N.src,O=fe.ICON.TIME)||h(N,"src",O),h(N,"alt","SVG_Time"),h(b,"class","card-line cl-btn svelte-rhfb99"),me(H.src,we=fe.ICON.COMMENT)||h(H,"src",we),h(H,"alt","SVG_Comment"),me(ne.src,X=fe.ICON.SEEDERS)||h(ne,"src",X),h(ne,"alt","SVG_Seeders"),me(ie.src,he=fe.ICON.LEECHERS)||h(ie,"src",he),h(ie,"alt","SVG_Leechers"),h(z,"class","card-line svelte-rhfb99"),h(l,"class","card-details svelte-rhfb99");},m(se,ce){pe&&pe.m(se,ce),T(se,e,ce),oe&&oe.m(se,ce),T(se,i,ce),Me&&Me.m(se,ce),T(se,n,ce),T(se,l,ce),_(l,o),_(o,s),_(s,r),_(r,u),_(r,c),_(r,m),_(s,g),_(s,d),_(s,M),_(s,I),_(I,a),L.block.m(a,L.anchor=null),L.mount=()=>a,L.anchor=null,_(l,y),_(l,b),_(b,N),_(b,E),_(b,P),_(b,D),_(b,R),_(l,Q),_(l,z),_(z,H),_(z,ae),_(z,Te),_(Te,U),_(z,F),_(z,ne),_(z,W),_(z,te),_(te,de),_(z,ee),_(z,ie),_(z,He),_(z,ye),_(ye,De),Ae||(Ke=[V(d,"click",t[20]),V(I,"click",t[21])],Ae=!0);},p(se,ce){t=se,t[0].smallDescr?pe?pe.p(t,ce):(pe=Zn(t),pe.c(),pe.m(e.parentNode,e)):pe&&(pe.d(1),pe=null),t[0].status.discount||t[0].status.toppingLevel?oe?oe.p(t,ce):(oe=Vn(t),oe.c(),oe.m(i.parentNode,i)):oe&&(oe.d(1),oe=null),t[0].labels!=0?Me?Me.p(t,ce):(Me=Kn(t),Me.c(),Me.m(n.parentNode,n)):Me&&(Me.d(1),Me=null),ce[0]&1&&f!==(f=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G")&&x(m,f),L.ctx=t,ce[0]&32&&p!==(p=t[5])&&qt(p,L)||wl(L,t,ce),ce[0]&1&&G!==(G=t[0].status.comments+"")&&x(U,G),ce[0]&1&&le!==(le=t[0].status.seeders+"")&&x(de,le),ce[0]&1&&Re!==(Re=t[0].status.leechers+"")&&x(De,Re);},d(se){pe&&pe.d(se),se&&w(e),oe&&oe.d(se),se&&w(i),Me&&Me.d(se),se&&w(n),se&&w(l),L.block.d(),L.token=null,L=null,Ae=!1,Ie(Ke);}}}function Zn(t){let e,i,n=t[0].smallDescr+"",l,o;return {c(){e=v("div"),i=v("a"),l=C(n),h(i,"href",o=t[0].torrentLink),h(i,"class","svelte-rhfb99"),h(e,"class","card-description svelte-rhfb99");},m(s,r){T(s,e,r),_(e,i),_(i,l);},p(s,r){r[0]&1&&n!==(n=s[0].smallDescr+"")&&x(l,n),r[0]&1&&o!==(o=s[0].torrentLink)&&h(i,"href",o);},d(s){s&&w(e);}}}function Vn(t){let e,i,n=t[0].status.toppingLevel&&Fn(t),l=t[15]!="NORMAL"&&zs(t);return {c(){e=v("div"),n&&n.c(),i=S(),l&&l.c(),h(e,"class","cl-tags svelte-rhfb99");},m(o,s){T(o,e,s),n&&n.m(e,null),_(e,i),l&&l.m(e,null);},p(o,s){o[0].status.toppingLevel?n?n.p(o,s):(n=Fn(o),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[15]!="NORMAL"&&l.p(o,s);},d(o){o&&w(e),n&&n.d(),l&&l.d();}}}function Fn(t){let e,i=t[3],n=[];for(let l=0;l<i.length;l+=1)n[l]=Jn(Wn(t,i,l));return {c(){for(let l=0;l<n.length;l+=1)n[l].c();e=C(`
             `);},m(l,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(l,o);T(l,e,o);},p(l,o){if(o[0]&8){i=l[3];let s;for(s=0;s<i.length;s+=1){const r=Wn(l,i,s);n[s]?n[s].p(r,o):(n[s]=Jn(),n[s].c(),n[s].m(e.parentNode,e));}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length;}},d(l){bl(n,l),l&&w(e);}}}function Jn(t){let e,i;return {c(){e=v("img"),Y(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),Y(e,"height","14px"),Y(e,"width","14px"),me(e.src,i=fe.ICON.PIN)||h(e,"src",i),h(e,"alt","PIN");},m(n,l){T(n,e,l);},p:$,d(n){n&&w(e);}}}function zs(t){let e;return {c(){e=v("div"),e.textContent=`${t[17][t[15]]}${t[16]?" : "+t[18]()+" 小时":""}`,h(e,"class","_tag svelte-rhfb99"),Je(e,"_tag_discount_free",t[15]=="FREE"),Je(e,"_tag_discount_50",t[15]=="PERCENT_50");},m(i,n){T(i,e,n);},p:$,d(i){i&&w(e);}}}function Kn(t){let e,i,n,l=(t[0].labels&1)===1&&Xn(),o=(t[0].labels&2)===2&&qn(),s=(t[0].labels&4)===4&&xn();return {c(){e=v("div"),l&&l.c(),i=S(),o&&o.c(),n=S(),s&&s.c(),h(e,"class","cl-tags svelte-rhfb99");},m(r,u){T(r,e,u),l&&l.m(e,null),_(e,i),o&&o.m(e,null),_(e,n),s&&s.m(e,null);},p(r,u){(r[0].labels&1)===1?l||(l=Xn(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[0].labels&2)===2?o||(o=qn(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[0].labels&4)===4?s||(s=xn(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&w(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function Xn(t){let e;return {c(){e=v("div"),e.textContent="DIY",h(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function qn(t){let e;return {c(){e=v("div"),e.textContent="国配",h(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function xn(t){let e;return {c(){e=v("div"),e.textContent="中字",h(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function Ss(t){let e,i=t[37].message+"",n;return {c(){e=v("p"),n=C(i),Y(e,"color","red");},m(l,o){T(l,e,o),_(e,n);},p(l,o){o[0]&32&&i!==(i=l[37].message+"")&&x(n,i);},d(l){l&&w(e);}}}function Os(t){let e,i;return {c(){e=_t("svg"),i=_t("path"),h(i,"d","M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"),h(e,"viewBox","64 64 896 896"),h(e,"focusable","false"),h(e,"data-icon","star"),h(e,"width","1em"),h(e,"height","1em"),h(e,"fill","currentColor"),h(e,"aria-hidden","true"),Y(e,"color",t[4]?"orange":"black"),h(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l[0]&16&&Y(e,"color",n[4]?"orange":"black");},d(n){n&&w(e);}}}function js(t){let e;return {c(){e=v("span"),e.textContent="···",Y(e,"display","flex"),Y(e,"align-items","center");},m(i,n){T(i,e,n);},p:$,d(i){i&&w(e);}}}function $n(t){let e,i,n,l,o,s,r=t[10].free&&(t[0].status.discount||t[0].status.toppingLevel)&&el(t),u=t[10].sub_title&&t[0].smallDescr&&nl(t),c=t[10].tags&&t[0].labels!=0&&ll(t),f=t[10].size_download_collect&&al(t),m=t[10].upload_time&&cl(t),g=t[10].statistics&&ul(t);return {c(){r&&r.c(),e=S(),u&&u.c(),i=S(),c&&c.c(),n=S(),l=v("div"),f&&f.c(),o=S(),m&&m.c(),s=S(),g&&g.c(),h(l,"class","card-details svelte-rhfb99");},m(d,M){r&&r.m(d,M),T(d,e,M),u&&u.m(d,M),T(d,i,M),c&&c.m(d,M),T(d,n,M),T(d,l,M),f&&f.m(l,null),_(l,o),m&&m.m(l,null),_(l,s),g&&g.m(l,null);},p(d,M){d[10].free&&(d[0].status.discount||d[0].status.toppingLevel)?r?r.p(d,M):(r=el(d),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),d[10].sub_title&&d[0].smallDescr?u?u.p(d,M):(u=nl(d),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null),d[10].tags&&d[0].labels!=0?c?c.p(d,M):(c=ll(d),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),d[10].size_download_collect?f?f.p(d,M):(f=al(d),f.c(),f.m(l,o)):f&&(f.d(1),f=null),d[10].upload_time?m?m.p(d,M):(m=cl(d),m.c(),m.m(l,s)):m&&(m.d(1),m=null),d[10].statistics?g?g.p(d,M):(g=ul(d),g.c(),g.m(l,null)):g&&(g.d(1),g=null);},d(d){r&&r.d(d),d&&w(e),u&&u.d(d),d&&w(i),c&&c.d(d),d&&w(n),d&&w(l),f&&f.d(),m&&m.d(),g&&g.d();}}}function el(t){let e,i,n=t[0].status.toppingLevel&&tl(t),l=t[15]!="NORMAL"&&Ps(t);return {c(){e=v("div"),n&&n.c(),i=S(),l&&l.c(),h(e,"class","cl-tags svelte-rhfb99");},m(o,s){T(o,e,s),n&&n.m(e,null),_(e,i),l&&l.m(e,null);},p(o,s){o[0].status.toppingLevel?n?n.p(o,s):(n=tl(o),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[15]!="NORMAL"&&l.p(o,s);},d(o){o&&w(e),n&&n.d(),l&&l.d();}}}function tl(t){let e,i=t[3],n=[];for(let l=0;l<i.length;l+=1)n[l]=il(Hn(t,i,l));return {c(){for(let l=0;l<n.length;l+=1)n[l].c();e=C(`
             `);},m(l,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(l,o);T(l,e,o);},p(l,o){if(o[0]&8){i=l[3];let s;for(s=0;s<i.length;s+=1){const r=Hn(l,i,s);n[s]?n[s].p(r,o):(n[s]=il(),n[s].c(),n[s].m(e.parentNode,e));}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length;}},d(l){bl(n,l),l&&w(e);}}}function il(t){let e,i;return {c(){e=v("img"),Y(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),Y(e,"height","14px"),Y(e,"width","14px"),me(e.src,i=fe.ICON.PIN)||h(e,"src",i),h(e,"alt","PIN");},m(n,l){T(n,e,l);},p:$,d(n){n&&w(e);}}}function Ps(t){let e;return {c(){e=v("div"),e.textContent=`${t[17][t[15]]}${t[16]?" : "+t[18]()+" 小时":""}`,h(e,"class","_tag svelte-rhfb99"),Je(e,"_tag_discount_free",t[15]=="FREE"),Je(e,"_tag_discount_50",t[15]=="PERCENT_50");},m(i,n){T(i,e,n);},p:$,d(i){i&&w(e);}}}function nl(t){let e,i,n=t[0].smallDescr+"",l,o;return {c(){e=v("div"),i=v("a"),l=C(n),h(i,"href",o=t[0].torrentLink),h(i,"class","svelte-rhfb99"),h(e,"class","card-description svelte-rhfb99");},m(s,r){T(s,e,r),_(e,i),_(i,l);},p(s,r){r[0]&1&&n!==(n=s[0].smallDescr+"")&&x(l,n),r[0]&1&&o!==(o=s[0].torrentLink)&&h(i,"href",o);},d(s){s&&w(e);}}}function ll(t){let e,i,n,l=(t[0].labels&1)===1&&ol(),o=(t[0].labels&2)===2&&sl(),s=(t[0].labels&4)===4&&rl();return {c(){e=v("div"),l&&l.c(),i=S(),o&&o.c(),n=S(),s&&s.c(),h(e,"class","cl-tags svelte-rhfb99");},m(r,u){T(r,e,u),l&&l.m(e,null),_(e,i),o&&o.m(e,null),_(e,n),s&&s.m(e,null);},p(r,u){(r[0].labels&1)===1?l||(l=ol(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[0].labels&2)===2?o||(o=sl(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[0].labels&4)===4?s||(s=rl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&w(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function ol(t){let e;return {c(){e=v("div"),e.textContent="DIY",h(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function sl(t){let e;return {c(){e=v("div"),e.textContent="国配",h(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function rl(t){let e;return {c(){e=v("div"),e.textContent="中字",h(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){T(i,e,n);},d(i){i&&w(e);}}}function al(t){let e,i,n,l,o,s=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G",r,u,c,f,m,g,d,M,I,a={ctx:t,current:null,token:null,hasCatch:!0,pending:Gs,then:Ys,catch:Rs,value:36,error:37};return qt(d=t[5],a),{c(){e=v("div"),i=v("div"),n=v("div"),l=v("span"),l.innerHTML='<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="25" width="25" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle; --darkreader-inline-fill: currentColor; --darkreader-inline-stroke: currentColor;"><path d="M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path><path d="M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z"></path></svg>',o=C(`
                 `),r=C(s),u=C(`

              
                
              
              `),c=v("div"),c.innerHTML='<span class="icon_holder svelte-rhfb99"><svg viewBox="64 64 896 896" focusable="false" data-icon="download" width="1em" height="1em" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"></path></svg></span>',f=C(`

              
                
              
              `),m=v("div"),g=v("span"),a.block.c(),h(l,"class","icon_holder svelte-rhfb99"),h(n,"class","cl-btn svelte-rhfb99"),h(c,"class","cl-btn svelte-rhfb99"),Y(c,"cursor","pointer"),h(g,"class","icon_holder svelte-rhfb99"),h(m,"class","cl-btn svelte-rhfb99"),Y(m,"cursor","pointer"),h(i,"class","cl-center svelte-rhfb99"),h(e,"class","card-line svelte-rhfb99");},m(p,y){T(p,e,y),_(e,i),_(i,n),_(n,l),_(n,o),_(n,r),_(i,u),_(i,c),_(i,f),_(i,m),_(m,g),a.block.m(g,a.anchor=null),a.mount=()=>g,a.anchor=null,M||(I=[V(c,"click",t[20]),V(m,"click",t[21])],M=!0);},p(p,y){t=p,y[0]&1&&s!==(s=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G")&&x(r,s),a.ctx=t,y[0]&32&&d!==(d=t[5])&&qt(d,a)||wl(a,t,y);},d(p){p&&w(e),a.block.d(),a.token=null,a=null,M=!1,Ie(I);}}}function Rs(t){let e,i=t[37].message+"",n;return {c(){e=v("p"),n=C(i),Y(e,"color","red");},m(l,o){T(l,e,o),_(e,n);},p(l,o){o[0]&32&&i!==(i=l[37].message+"")&&x(n,i);},d(l){l&&w(e);}}}function Ys(t){let e,i;return {c(){e=_t("svg"),i=_t("path"),h(i,"d","M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"),h(e,"viewBox","64 64 896 896"),h(e,"focusable","false"),h(e,"data-icon","star"),h(e,"width","1em"),h(e,"height","1em"),h(e,"fill","currentColor"),h(e,"aria-hidden","true"),Y(e,"color",t[4]?"orange":"black"),h(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){T(n,e,l),_(e,i);},p(n,l){l[0]&16&&Y(e,"color",n[4]?"orange":"black");},d(n){n&&w(e);}}}function Gs(t){let e;return {c(){e=v("span"),e.textContent="···",Y(e,"display","flex"),Y(e,"align-items","center");},m(i,n){T(i,e,n);},p:$,d(i){i&&w(e);}}}function cl(t){let e,i,n,l,o=`${t[19].day} 日`,s,r,u=t[19].hour?`${t[19].hour} 时`:"",c;return {c(){e=v("div"),i=v("img"),l=C(`
             `),s=C(o),r=S(),c=C(u),me(i.src,n=fe.ICON.TIME)||h(i,"src",n),h(i,"alt","SVG_Time"),h(e,"class","card-line cl-btn svelte-rhfb99");},m(f,m){T(f,e,m),_(e,i),_(e,l),_(e,s),_(e,r),_(e,c);},p:$,d(f){f&&w(e);}}}function ul(t){let e,i,n,l,o,s=t[0].status.comments+"",r,u,c,f,m,g,d=t[0].status.seeders+"",M,I,a,p,y,b,N=t[0].status.leechers+"",O;return {c(){e=v("div"),i=v("img"),l=C(`
             
            `),o=v("b"),r=C(s),u=C(`
              
            `),c=v("img"),m=C(`
             
            `),g=v("b"),M=C(d),I=C(`
              
            `),a=v("img"),y=C(`
             
            `),b=v("b"),O=C(N),me(i.src,n=fe.ICON.COMMENT)||h(i,"src",n),h(i,"alt","SVG_Comment"),me(c.src,f=fe.ICON.SEEDERS)||h(c,"src",f),h(c,"alt","SVG_Seeders"),me(a.src,p=fe.ICON.LEECHERS)||h(a,"src",p),h(a,"alt","SVG_Leechers"),h(e,"class","card-line svelte-rhfb99");},m(E,k){T(E,e,k),_(e,i),_(e,l),_(e,o),_(o,r),_(e,u),_(e,c),_(e,m),_(e,g),_(g,M),_(e,I),_(e,a),_(e,y),_(e,b),_(b,O);},p(E,k){k[0]&1&&s!==(s=E[0].status.comments+"")&&x(r,s),k[0]&1&&d!==(d=E[0].status.seeders+"")&&x(M,d),k[0]&1&&N!==(N=E[0].status.leechers+"")&&x(O,N);},d(E){E&&w(e);}}}function Hs(t){let e,i,n,l,o,s,r=fe.CATEGORY_NAME[t[0].category]+"",u,c,f,m,g,d,M,I=t[2]+1+"",a,p,y,b,N,O,E=(t[10].title||t[6])&&Un(t);function k(z,H){return z[7]?Ds:ks}let P=k(t),D=P(t),A=t[12]&&!t[7]&&!(t[0].category=="440"&&t[11].mt.hide_gay==!0)&&t[0].imageList[0]&&Qn(),R=(t[10].all||t[6])&&Bn(t),Q=!(t[10].all||t[6])&&!(t[0].category=="440"&&t[11].mt.hide_gay==!0)&&$n(t);return {c(){e=v("div"),i=v("div"),n=v("div"),l=v("img"),s=S(),u=C(r),f=S(),E&&E.c(),m=S(),g=v("div"),D.c(),d=S(),M=v("div"),a=C(I),p=S(),A&&A.c(),y=S(),R&&R.c(),b=S(),Q&&Q.c(),h(l,"class","card_category-img svelte-rhfb99"),me(l.src,o=t[0]._categoryImg)||h(l,"src",o),h(l,"alt",""),h(n,"class","card-category svelte-rhfb99"),h(n,"data-href",c=`https://${location.host}/browse?cat=`+t[0].category),Y(n,"background-color",t[24]??"transparent"),Y(n,"color",t[24]?Us(t[24]):"black"),h(M,"class","card-index svelte-rhfb99"),h(g,"class","card-image svelte-rhfb99"),h(i,"class","card-holder svelte-rhfb99"),Y(i,"background","linear-gradient (to bottom, "+(t[24]??Gt)+" 18px, rgba(255, 255, 255, 0.4) 18px, rgba(255, 255, 255, 0))"),h(e,"class","card svelte-rhfb99"),Y(e,"width",t[1]+"px"),Y(e,"z-index",1e4-t[2]),Y(e,"border-color",t[24]??Gt),Y(e,"background-color",t[9]),Y(e,"background","linear-gradient( to bottom, "+(t[24]??Gt)+" 18px, "+t[9]+" 18px)");},m(z,H){T(z,e,H),_(e,i),_(i,n),_(n,l),_(n,s),_(n,u),_(i,f),E&&E.m(i,null),_(i,m),_(i,g),D.m(g,null),_(g,d),_(g,M),_(M,a),_(g,p),A&&A.m(g,null),_(i,y),R&&R.m(i,null),_(i,b),Q&&Q.m(i,null),t[27](e),N||(O=[V(g,"click",t[14]),V(i,"mouseenter",t[22]),V(i,"mouseleave",t[23])],N=!0);},p(z,H){H[0]&1&&!me(l.src,o=z[0]._categoryImg)&&h(l,"src",o),H[0]&1&&r!==(r=fe.CATEGORY_NAME[z[0].category]+"")&&x(u,r),H[0]&1&&c!==(c=`https://${location.host}/browse?cat=`+z[0].category)&&h(n,"data-href",c),z[10].title||z[6]?E?E.p(z,H):(E=Un(z),E.c(),E.m(i,m)):E&&(E.d(1),E=null),P===(P=k(z))&&D?D.p(z,H):(D.d(1),D=P(z),D&&(D.c(),D.m(g,d))),H[0]&4&&I!==(I=z[2]+1+"")&&x(a,I),z[12]&&!z[7]&&!(z[0].category=="440"&&z[11].mt.hide_gay==!0)&&z[0].imageList[0]?A?A.p(z,H):(A=Qn(),A.c(),A.m(g,null)):A&&(A.d(1),A=null),z[10].all||z[6]?R?R.p(z,H):(R=Bn(z),R.c(),R.m(i,b)):R&&(R.d(1),R=null),!(z[10].all||z[6])&&!(z[0].category=="440"&&z[11].mt.hide_gay==!0)?Q?Q.p(z,H):(Q=$n(z),Q.c(),Q.m(i,null)):Q&&(Q.d(1),Q=null),H[0]&2&&Y(e,"width",z[1]+"px"),H[0]&4&&Y(e,"z-index",1e4-z[2]),H[0]&512&&Y(e,"background-color",z[9]),H[0]&512&&Y(e,"background","linear-gradient( to bottom, "+(z[24]??Gt)+" 18px, "+z[9]+" 18px)");},i:$,o:$,d(z){z&&w(e),E&&E.d(),D.d(),A&&A.d(),R&&R.d(),Q&&Q.d(),t[27](null),N=!1,Ie(O);}}}const Gt="rgba(255, 255, 255, 0.5)",Ws="/static/cate/gayhd.gif";function Us(t){const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),l=parseInt(e.substr(4,2),16);return (i*299+n*587+l*114)/1e3<128?"white":"black"}function Qs(t,e,i){let n,l,o,s,r,u;B(t,lt,W=>i(28,n=W)),B(t,We,W=>i(29,l=W)),B(t,bt,W=>i(9,o=W)),B(t,Qe,W=>i(10,s=W)),B(t,xt,W=>i(11,r=W)),B(t,vt,W=>i(12,u=W));function c(W,te,le){if(!fe.API[W]){console.warn(`没有名为 ${W} 的 API 接口.`);return}const de=location.origin+fe.API[W].url,ee=fe.API[W].method;fetch(de,{method:ee,body:te}).then(ie=>ie.json()).then(ie=>{le(ie);}).catch(ie=>console.error(ie));}window.fetchData=c;function f(){ge();}function m(){_e(We,l=1,l),_e(lt,n=d.torrentLink+"#kdescr",n),_e(lt,n=`https://${location.host}/detail/`+d.id,n);}let{index:g}=e,{torrentInfo:d}=e,{cardWidth:M}=e;const I=d.status.discount,a=d.status.discountEndTime,p={FREE:"免费",PERCENT_50:"50%"},y=()=>{const W=new Date,te=new Date(a);return Math.floor((te.getTime()-W.getTime())/(1e3*3600))},b=d.status.createdDate,O=(()=>{const W=new Date,te=new Date(b),le=W.getTime()-te.getTime(),de=Math.floor(le/(1e3*3600*24)),ee=Math.floor(le%(1e3*3600*24)/(1e3*3600));return {day:de,hour:ee}})();function E(){const W=new FormData;W.append("id",d.id),c("genDlToken",W,te=>{console.log(te),te.data&&window.open(te.data,"_blank");});}let k;d.status.toppingLevel&&(k=Array(d.status.toppingLevel).fill());let P=!!d.collection;const D=new FormData;D.append("id",d.id),D.append("make",!P);let A;async function R(W,te,le){if(!fe.API[W]){console.warn(`没有名为 ${W} 的 API 接口.`);return}const de=location.origin+fe.API[W].url,ee=fe.API[W].method,ie=await fetch(de,{method:ee,body:te}),he=await ie.json();if(ie.ok)return le(he),he;throw new Error(he)}function Q(){i(5,A=R("collection",D,z));}function z(W){console.log(W),i(4,P=!P);}let H=!1;function we(){i(6,H=!0),i(8,U.style.boxShadow=`
    ${G??Gt} 5px 5px 0px, 
    rgba(0, 0, 0, 0.1) -1px -1px 0px`,U);}function ae(){i(6,H=!1),i(8,U.style.boxShadow="",U);}let Te=!1;const G=fe.CATEGORY_COLOR[d.category];let U;const F=d.imageList[0]?d.imageList[0]:"",ne=()=>{i(7,Te=!0);};function X(W){Ce[W?"unshift":"push"](()=>{U=W,i(8,U);});}return t.$$set=W=>{"index"in W&&i(2,g=W.index),"torrentInfo"in W&&i(0,d=W.torrentInfo),"cardWidth"in W&&i(1,M=W.cardWidth);},[d,M,g,k,P,A,H,Te,U,o,s,r,u,f,m,I,a,p,y,O,E,Q,we,ae,G,F,ne,X]}class Bs extends et{constructor(e){super(),$e(this,e,Qs,Hs,xe,{index:2,torrentInfo:0,cardWidth:1},null,[-1,-1]);}}function fl(t,e,i){const n=t.slice();return n[33]=e[i],n[35]=i,n}function dl(t){let e,i,n;return {c(){e=v("div"),e.innerHTML='<div class="loading_SubHolder svelte-11rmzun"><div class="loading_Text svelte-11rmzun">页面切换加载中...</div></div>',h(e,"class","loading_Holder svelte-11rmzun");},m(l,o){T(l,e,o),n=!0;},i(l){n||(gt(()=>{n&&(i||(i=ht(e,mt,{duration:600},!0)),i.run(1));}),n=!0);},o(l){i||(i=ht(e,mt,{duration:600},!1)),i.run(0),n=!1;},d(l){l&&w(e),l&&i&&i.end();}}}function _l(t,e){let i,n,l;return n=new Bs({props:{index:e[35],torrentInfo:e[33],cardWidth:e[0].CARD_WIDTH}}),{key:t,first:null,c(){i=Be(),ke(n.$$.fragment),this.first=i;},m(o,s){T(o,i,s),be(n,o,s),l=!0;},p(o,s){e=o;const r={};s[0]&8&&(r.index=e[35]),s[0]&8&&(r.torrentInfo=e[33]),s[0]&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(Z(n.$$.fragment,o),l=!0);},o(o){q(n.$$.fragment,o),l=!1;},d(o){o&&w(i),Ne(n,o);}}}function Zs(t){let e,i,n=[],l=new Map,o,s=!t[1]&&dl(),r=t[3];const u=c=>c[33].id+c[35];for(let c=0;c<r.length;c+=1){let f=fl(t,r,c),m=u(f);l.set(m,n[c]=_l(m,f));}return {c(){e=v("div"),s&&s.c(),i=S();for(let c=0;c<n.length;c+=1)n[c].c();h(e,"class","svelte-11rmzun"),Je(e,"masonry_Holder_unload_1st",!t[1]&&t[2]),Je(e,"masonry_Holder_loaded_1st",t[1]&&t[2]),Je(e,"masonry_Holder_unloaded",!t[1]&&!t[2]),Je(e,"masonry_Holder_loaded",t[1]&&!t[2]);},m(c,f){T(c,e,f),s&&s.m(e,null),_(e,i);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);o=!0;},p(c,f){c[1]?s&&(Xe(),q(s,1,1,()=>{s=null;}),qe()):s?f[0]&2&&Z(s,1):(s=dl(),s.c(),Z(s,1),s.m(e,i)),f[0]&9&&(r=c[3],Xe(),n=Dl(n,f,u,1,c,r,l,e,Tl,_l,null,fl),qe()),(!o||f[0]&6)&&Je(e,"masonry_Holder_unload_1st",!c[1]&&c[2]),(!o||f[0]&6)&&Je(e,"masonry_Holder_loaded_1st",c[1]&&c[2]),(!o||f[0]&6)&&Je(e,"masonry_Holder_unloaded",!c[1]&&!c[2]),(!o||f[0]&6)&&Je(e,"masonry_Holder_loaded",c[1]&&!c[2]);},i(c){if(!o){Z(s);for(let f=0;f<r.length;f+=1)Z(n[f]);o=!0;}},o(c){q(s);for(let f=0;f<n.length;f+=1)q(n[f]);o=!1;},d(c){c&&w(e),s&&s.d();for(let f=0;f<n.length;f+=1)n[f].d();}}}function Vs(t,e,i){let n,l,o,s,r,u,c;B(t,yt,G=>i(11,n=G)),B(t,St,G=>i(12,l=G)),B(t,Qt,G=>i(13,o=G)),B(t,Wt,G=>i(8,s=G)),B(t,Bt,G=>i(9,r=G)),B(t,Ot,G=>i(14,u=G)),B(t,bt,G=>i(15,c=G));let{waterfallNode:f}=e,{waterfallParentNode:m}=e,{update_ORIGIN_TL_Node:g}=e;const d=location.origin+fe.API.search.url;window.NEXUS_TOOLS=Mt;let M,I=!1,a=!0;m.style.height="116px",_e(yt,n=Vt(),n);const p=zl();_e(bt,c=p,c),console.log("背景颜色:",p);const y=It();function b(){const G=document.querySelector(y),U=document.querySelector(".nextPage"),F=document.querySelector(".waterfall.waterfall_newMT");G&&(G.style.display=l?"none":"block"),U.style.display=l?"block":"none",F.style.display=l?"block":"none";}function N(){b(),O(s.column,s.gap),ge("fast"),ge("fast");}window.CHANGE_CARD_LAYOUT=N;function O(G,U=10){if(G<=1||U<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const ne=(document.querySelector("div.waterfall").clientWidth-(G-1)*U)/G;return Array.from(document.querySelectorAll(".card")).forEach(X=>X.style.width=ne+"px"),M&&(i(7,M.options.columnWidth=ne,M),i(7,M.options.gutter=U,M),M.layout()),ne}let E=[];function k(){console.log("当前页面 path:	",location.pathname);const U={pageNumber:1,pageSize:D(),visible:1};Object.assign(U,A()),console.log(U),fetch(d,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(U)}).then(F=>F.json()).then(F=>{console.log(F);const ne=F.data.data;i(3,E=[...ne]);}).then(()=>{K.$setPage(U.pageNumber),M.reloadItems(),i(2,a=!1),i(1,I=!0),i(4,m.style.height="auto",m),M.once("layoutComplete",()=>{Mt();});}).catch(F=>{console.error("网络请求错误:",F);});}function P(G,U=null){console.log("当前页面 path:	",location.pathname),fetch(d,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(G)}).then(F=>F.json()).then(F=>{console.log(F);const ne=F.data.data;i(3,E=[...ne]);}).then(()=>{M.reloadItems(),i(1,I=!0),M.once("layoutComplete",()=>{Mt();}),U&&U();}).catch(F=>{console.error("网络请求错误:",F);});}function D(G=100){const U=Al("persist:persist").sysinfo;return !U.pageSize||!U.pageSize.torrent?G:Number(U.pageSize.torrent)}function A(G=location.href){let U=G;G.indexOf("/browse")==0&&(U=location.origin+G),console.log(`url 补全: ${U}`);let F=new URL(U),ne=F.pathname.split("/")[2],X=F.searchParams.getAll("cat"),W=F.searchParams.getAll("stand"),te=Number(F.searchParams.get("pageNumber"))||1,le=D(100),de=F.searchParams.get("sort"),ee={};if(ne?ee.mode=ne:ee.mode="normal",X&&(ee.categories=X),W.length&&(ee.standards=W),te&&(ee.pageNumber=te),le&&(ee.pageSize=le),de){let ie=de.split(":")[0].toUpperCase();ie.includes("DATE")&&(ee.sortField="CREATED_DATE"),ie.includes("SIZE")&&(ee.sortField="SIZE"),ie.includes("SEEDER")&&(ee.sortField="SEEDERS"),ie.includes("LEECHER")&&(ee.sortField="LEECHERS"),ie.includes("TIME")&&(ee.sortField="TIMES_COMPLETED");let he=de.split(":")[1].toUpperCase();he.includes("ASC")&&(ee.sortDirection="ASC"),he.includes("DESC")&&(ee.sortDirection="DESC");}return ee}const R=history.pushState;function Q(){history.pushState=function(G,U,F){var ne;if(i(1,I=!1),console.log(`%c ====> URL跳转劫持: %c${F}`,"color: cyan","color: white"),F.includes("/browse")||F=="/browse"){console.log("--->属于 browse 范围, search 启动"),i(4,m.style.display="block",m);const X=A(F),te={pageNumber:1,pageSize:D(),visible:1};Object.assign(te,X),console.log(te),P(te,()=>{K.$setPage(te.pageNumber),g();}),b();}else i(4,m.style.display="none",m),document.querySelector(y).style.display="block";(ne=je[n])==null||ne.special(),R.apply(history,arguments);};}K.$setPage(1);let z;z=kl(ae,K.GAP);const H=document.querySelector(".ant-layout");function we(){const G=H.scrollHeight,U=H.clientHeight;(H.scrollTop||H.scrollTop)+U>=G-K.DISTANCE_newMT&&(u?z():console.log("加载模式: 按钮"),ge());}function ae(){const G={pageNumber:K.$getCurrentPage()+1,pageSize:D(),visible:1};Object.assign(G,A()),Object.assign(G,{pageNumber:K.$getCurrentPage()+1}),console.log(G),fetch(d,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(G)}).then(U=>U.json()).then(U=>{console.log(U);const F=U.data.data;i(3,E=[...E,...F]);}).then(()=>{M.reloadItems(),M.once("layoutComplete",()=>{Mt();}),K.$turnPage();}).catch(U=>{console.error("网络请求错误:",U);});}function Te(){u||z();}return window.$$$turnPage=Te,ei(()=>{var G;i(7,M=new Masonry(f,{itemSelector:".card",columnWidth:O(s.column,s.gap),gutter:s.gap,transitionDuration:r?.4:0})),O(s.column,s.gap),window.masonry=M,_e(Qt,o=M,o),M.layout("fast"),M.layout("fast"),f.addEventListener("click",U=>{U.target===U.currentTarget&&(M&&M.layout(),console.log("Masonry 已整理~"));}),H.addEventListener("scroll",function(){l&&we();}),k(),(G=je[n])==null||G.special(),Q();}),t.$$set=G=>{"waterfallNode"in G&&i(5,f=G.waterfallNode),"waterfallParentNode"in G&&i(4,m=G.waterfallParentNode),"update_ORIGIN_TL_Node"in G&&i(6,g=G.update_ORIGIN_TL_Node);},t.$$.update=()=>{t.$$.dirty[0]&640&&M&&i(7,M.options.transitionDuration=r?"0.4s":"0",M),t.$$.dirty[0]&385&&M&&(i(0,dt.CARD_WIDTH=O(s.column,s.gap),dt),console.log("卡片宽度:	",dt.CARD_WIDTH),N());},[dt,I,a,E,m,f,g,M,s,r]}class Fs extends et{constructor(e){super(),$e(this,e,Vs,Zs,xe,{waterfallNode:5,waterfallParentNode:4,update_ORIGIN_TL_Node:6},null,[-1,-1]);}}const{window:Js}=oo;function gl(t){let e,i,n,l,o,s,r,u,c,f;return {c(){e=v("div"),i=v("div"),n=v("iframe"),o=S(),s=v("div"),s.innerHTML='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_iconCarrier"><circle cx="12" cy="12" r="10" stroke="#1C274C" stroke-width="1.5"></circle><path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path></g></svg>',me(n.src,l=t[2])||h(n,"src",l),h(n,"frameborder","0"),h(n,"title","wow"),Y(n,"width",(je[t[3]]?je[t[3]].Iframe_Width:1e3)+"px"),h(n,"class","svelte-12ghpfg"),h(s,"class","_iframeCloseBtn svelte-12ghpfg"),h(i,"class","_iframe svelte-12ghpfg"),h(e,"id","_iframe"),h(e,"class","svelte-12ghpfg");},m(m,g){T(m,e,g),_(e,i),_(i,n),t[7](n),_(i,o),_(i,s),u=!0,c||(f=[V(n,"load",t[5]),V(s,"click",t[4]),V(e,"click",t[4])],c=!0);},p(m,g){(!u||g&4&&!me(n.src,l=m[2]))&&h(n,"src",l),(!u||g&8)&&Y(n,"width",(je[m[3]]?je[m[3]].Iframe_Width:1e3)+"px");},i(m){u||(gt(()=>{u&&(r||(r=ht(e,mt,{duration:300},!0)),r.run(1));}),u=!0);},o(m){r||(r=ht(e,mt,{duration:300},!1)),r.run(0),u=!1;},d(m){m&&w(e),t[7](null),m&&r&&r.end(),c=!1,Ie(f);}}}function Ks(t){let e,i,n,l,o=t[1]&&gl(t);return {c(){o&&o.c(),e=Be();},m(s,r){o&&o.m(s,r),T(s,e,r),i=!0,n||(l=V(Js,"keydown",t[6],!0),n=!0);},p(s,[r]){s[1]?o?(o.p(s,r),r&2&&Z(o,1)):(o=gl(s),o.c(),Z(o,1),o.m(e.parentNode,e)):o&&(Xe(),q(o,1,1,()=>{o=null;}),qe());},i(s){i||(Z(o),i=!0);},o(s){q(o),i=!1;},d(s){o&&o.d(s),s&&w(e),n=!1,l();}}}function jl(t,e=5,i=200,n=l=>{}){const l=document.querySelector(t);if(l)return n(l),l;e>0?setTimeout(()=>{jl(t,e-1,i,n);},i):console.log(`无法找到元素: ${t}`);}function Xs(t,e,i){let n,l,o,s,r;B(t,ft,b=>i(13,n=b)),B(t,We,b=>i(1,l=b)),B(t,St,b=>i(14,o=b)),B(t,lt,b=>i(2,s=b)),B(t,yt,b=>i(3,r=b)),console.log(`[${new Date().toLocaleTimeString()}]<----------------------HMR_NewMT---------------------->`);let u=document.querySelector(It());window._ORIGIN_TL_Node=u;function c(){console.log("--------> 更新 _ORIGIN_TL_Node"),document.querySelector(It())!=u&&(console.log("--------> 已替换 _ORIGIN_TL_Node"),u=document.querySelector(It()),u.style.display=o?"none":"block");}let f;function m(){_e(We,l=0,l);}function g(){let b=0;d=setInterval(()=>{var E;const N=(E=f==null?void 0:f.contentDocument)==null?void 0:E.querySelector(".app-content__inner");b+=1;const O=f.contentDocument.querySelector(".ant-descriptions-view .ant-descriptions-item-label span");console.log(O.textContent,O.textContent.length),N&&N.scrollIntoView(),console.log(`[${b}] iframeJump2Info -----`),O.textContent.length&&clearInterval(d);},500);}let d;Nl(()=>{clearInterval(d);});function M(b){b.key==="Escape"&&(console.log(b),_e(We,l=0,l),_e(ft,n=!1,n));}for(;!Masonry;)console.log("等待初始化......");let I,a,p;jl(".ant-card.ant-card-small",5,200,b=>{const N=b.parentNode;I=document.createElement("div"),I.classList.add("waterfall"),I.classList.add("waterfall_newMT"),a=document.createElement("div"),a.classList.add("waterfallParent"),a.append(I),N.insertBefore(a,b.nextSibling),p=document.createElement("div"),p.classList.add("nextPage"),a.append(p),new Ll({target:document.body}),new Fs({target:I,props:{waterfallNode:I,waterfallParentNode:a,update_ORIGIN_TL_Node:c}}),new Ol({target:p});});function y(b){Ce[b?"unshift":"push"](()=>{f=b,i(0,f);});}return [f,l,s,r,m,g,M,y]}class qs extends et{constructor(e){super(),$e(this,e,Xs,Ks,xe,{});}}console.log("________PT-TorrentList-Masonry________");if(is()=="NEW_MT")location.pathname.includes("/browse")&&new qs({target:(()=>{const t=document.createElement("div");return document.body.append(t),t})()}),new ko({target:document.body});else {const t=It(),e=document.querySelector(t);t&&e?new ws({target:(()=>{const i=document.createElement("div");return document.body.append(i),i})()}):console.log("未识别到种子列表捏~");}

})();