// ==UserScript== // @name PT种子列表瀑布流视图(Svelte重构) // @name:en PT_Masonry_View_Svelte // @namespace https://github.com/KesaubeEire/PT_Masonry_View_Svelte // @version 1.1.13b // @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://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* // @exclude *m-team*/detail/* // @grant none // @downloadURL none // ==/UserScript== (t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(' 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-popup{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-gqty0r.svelte-gqty0r{position:fixed;opacity:.4;margin:4px 2px;border-radius:8px;overflow:hidden;z-index:40000;border:2px solid transparent}.sideP.svelte-gqty0r.svelte-gqty0r:hover{opacity:1;border:2px solid yellow}.sideP__title.svelte-gqty0r.svelte-gqty0r{width:100%;height:8px;background-color:#ff0}.sideP__title.svelte-gqty0r.svelte-gqty0r:hover{cursor:move}.sideP__out.svelte-gqty0r.svelte-gqty0r{display:flex;flex-direction:column}.sideP__btn.svelte-gqty0r.svelte-gqty0r{width:72px;font-size:14px;background-color:gray;color:#fff;padding:4px 8px;margin:4px;border-radius:8px;cursor:pointer;border:none}.sideP__btn.svelte-gqty0r.svelte-gqty0r:hover{background-color:#6531ff}.configP.svelte-gqty0r.svelte-gqty0r{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:0;margin:0;z-index:50000;color:#000;background-color:#0003}.configP_holder.svelte-gqty0r.svelte-gqty0r{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-gqty0r.svelte-gqty0r::-webkit-scrollbar{display:none}.configP_title.svelte-gqty0r.svelte-gqty0r{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-gqty0r.svelte-gqty0r p{font-size:18px;font-weight:500}.configP_title.svelte-gqty0r.svelte-gqty0r button{border:none;padding:0;margin:0;background-color:transparent}.section.svelte-gqty0r.svelte-gqty0r{margin:16px 18px}.section.svelte-gqty0r.svelte-gqty0r button{border-radius:10px;margin:4px;padding:12px 16px}.section.svelte-gqty0r.svelte-gqty0r .s_title{text-align:center}.section.svelte-gqty0r.svelte-gqty0r .s_panel{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.section.svelte-gqty0r.svelte-gqty0r .s_checkbox{padding:12px;margin:4px;border-radius:10px;border:1px solid black;font-size:14px;display:flex;align-items:center}.section.svelte-gqty0r.svelte-gqty0r h1{font-size:14pt}.configP_holder.svelte-gqty0r .section.svelte-gqty0r:nth-child(2){margin-top:48px}#reset_panel_pos.svelte-gqty0r.svelte-gqty0r{width:100%;text-align:center;border:1px solid black;border-radius:16px}.card.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t:hover{box-shadow:#7300ff4d 5px 5px,#0000001a -1px -1px}.card-title.svelte-1d0ss3t.svelte-1d0ss3t{padding:2px 0}.card-holder.svelte-1d0ss3t.svelte-1d0ss3t{background-color:#ffffff80;background:linear-gradient(to bottom,rgba(255,255,255,.4),rgba(255,255,255,0))}.card-category.svelte-1d0ss3t.svelte-1d0ss3t{text-align:center;letter-spacing:2px;font-weight:700}.card-line.svelte-1d0ss3t.svelte-1d0ss3t{margin-top:1px;margin-bottom:1px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-1d0ss3t.svelte-1d0ss3t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}.two-lines.svelte-1d0ss3t.svelte-1d0ss3t:hover{-webkit-line-clamp:100}.cl-center.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:left;align-items:center;flex-wrap:wrap;gap:2px;transform:translate(4px)}.cl-tags.svelte-1d0ss3t.svelte-1d0ss3t:has(span){padding-top:2px}.card-details.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-1d0ss3t.svelte-1d0ss3t{height:100%;position:relative}.card-image.svelte-1d0ss3t img.svelte-1d0ss3t{width:100%;object-fit:cover;margin-bottom:-3px}.card-alter.svelte-1d0ss3t.svelte-1d0ss3t{text-align:center;height:20px;display:flex;justify-content:center;align-items:center}.top_and_free.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t{color:#00f}._2XFree.svelte-1d0ss3t.svelte-1d0ss3t{color:green}.card-description.svelte-1d0ss3t.svelte-1d0ss3t{padding-left:4px;padding-right:4px}.card-index.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t:hover{opacity:1}.btnCollet.svelte-1d0ss3t.svelte-1d0ss3t{padding:1px 2px;cursor:pointer}.hot.svelte-1d0ss3t.svelte-1d0ss3t,.new.svelte-1d0ss3t.svelte-1d0ss3t{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-1exar3b.svelte-1exar3b{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0026269b;z-index:30000;display:flex}div._iframe.svelte-1exar3b.svelte-1exar3b{height:96%;margin:auto;position:relative}div._iframe.svelte-1exar3b iframe.svelte-1exar3b{height:100%;border-radius:20px}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b{width:40px;height:40px;background:white;position:absolute;top:10px;right:10px;border-radius:40px;transition:all .5s}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b:hover{opacity:.7;transform:scale(1.2)}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b:active{opacity:.9;transform:scale(1.9)} '); (function () { 'use strict'; function B(){}const bl=t=>t;function go(t,e){for(const i in e)t[i]=e[i];return t}function _o(t){return !!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Dl(t){return t()}function on(){return Object.create(null)}function Ae(t){t.forEach(Dl);}function vi(t){return typeof t=="function"}function Pe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Xt;function De(t,e){return Xt||(Xt=document.createElement("a")),Xt.href=e,t===Xt.href}function ho(t){return Object.keys(t).length===0}function Ll(t,...e){if(t==null)return B;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function it(t){let e;return Ll(t,i=>e=i)(),e}function X(t,e,i){t.$$.on_destroy.push(Ll(e,i));}function mo(t,e,i,n){if(t){const l=Tl(t,e,i,n);return t[0](l)}}function Tl(t,e,i,n){return t[1]&&n?go(i.ctx.slice(),t[1](n(e))):i.ctx}function po(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;r32){const e=[],i=t.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),wi=Al?t=>requestAnimationFrame(t):B;const jt=new Set;function Cl(t){jt.forEach(e=>{e.c(t)||(jt.delete(e),e.f());}),jt.size!==0&&wi(Cl);}function yo(t){let e;return jt.size===0&&wi(Cl),{promise:new Promise(i=>{jt.add(e={c:t,f:i});}),abort(){jt.delete(e);}}}const vo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function g(t,e){t.appendChild(e);}function El(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function wo(t){const e=N("style");return bo(El(t),e),e.sheet}function bo(t,e){return g(t.head||t,e),e.sheet}function D(t,e,i){t.insertBefore(e,i||null);}function b(t){t.parentNode&&t.parentNode.removeChild(t);}function Sl(t,e){for(let i=0;it.removeEventListener(e,i,n)}function Do(t){return function(e){e.target===this&&t.call(this,e);}}function a(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i);}function ci(t){return t===""?null:+t}function Lo(t){return Array.from(t.childNodes)}function q(t,e){e=""+e,t.data!==e&&(t.data=e);}function Rt(t,e){t.value=e??"";}function G(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"");}function ot(t,e,i){t.classList[i?"add":"remove"](e);}function To(t,e,{bubbles:i=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(t,i,n,e),l}class Oe{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=he(i.nodeName):this.e=N(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>>0}function Co(t,e){const i={stylesheet:wo(e),rules:{}};return $t.set(t,i),i}function sn(t,e,i,n,l,o,s,r=0){const f=16.666/n;let c=`{ `;for(let u=0;u<=1;u+=f){const h=e+(i-e)*o(u);c+=u*100+`%{${s(h,1-h)}} `;}const d=c+`100% {${s(i,1-i)}} }`,p=`__svelte_${Ao(d)}_${r}`,_=El(t),{stylesheet:I,rules:m}=$t.get(_)||Co(_,t);m[p]||(m[p]=!0,I.insertRule(`@keyframes ${p} ${d}`,I.cssRules.length));const M=t.style.animation||"";return t.style.animation=`${M?`${M}, `:""}${p} ${n}ms linear ${l}ms 1 both`,Kt+=1,p}function Eo(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(", "),Kt-=l,Kt||So());}function So(){wi(()=>{Kt||($t.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&b(e);}),$t.clear());});}let Zt;function ct(t){Zt=t;}function ei(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function ti(t){ei().$$.on_mount.push(t);}function ko(t){ei().$$.after_update.push(t);}function kl(t){ei().$$.on_destroy.push(t);}const kt=[],je=[];let zt=[];const hi=[],jo=Promise.resolve();let mi=!1;function zo(){mi||(mi=!0,jo.then(bi));}function It(t){zt.push(t);}function Fe(t){hi.push(t);}const ui=new Set;let Et=0;function bi(){if(Et!==0)return;const t=Zt;do{try{for(;Ett.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),zt=e;}let Qt;function Ro(){return Qt||(Qt=Promise.resolve(),Qt.then(()=>{Qt=null;})),Qt}function fi(t,e,i){t.dispatchEvent(To(`${e?"intro":"outro"}${i}`));}const Jt=new Set;let ut;function Ve(){ut={r:0,c:[],p:ut};}function xe(){ut.r||Ae(ut.c),ut=ut.p;}function Y(t,e){t&&t.i&&(Jt.delete(t),t.i(e));}function Z(t,e,i,n){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),ut.c.push(()=>{Jt.delete(t),n&&(i&&t.d(1),n());}),t.o(e);}else n&&n();}const Yo={duration:0};function Mt(t,e,i,n){const l={direction:"both"};let o=e(t,i,l),s=n?0:1,r=null,f=null,c=null;function d(){c&&Eo(t,c);}function p(I,m){const M=I.b-s;return m*=Math.abs(M),{a:s,b:I.b,d:M,duration:m,start:I.start,end:I.start+m,group:I.group}}function _(I){const{delay:m=0,duration:M=300,easing:u=bl,tick:h=B,css:y}=o||Yo,v={start:No()+m,b:I};I||(v.group=ut,ut.r+=1),r||f?f=v:(y&&(d(),c=sn(t,s,I,M,m,u,y)),I&&h(0,1),r=p(v,M),It(()=>fi(t,I,"start")),yo(w=>{if(f&&w>f.start&&(r=p(f,M),f=null,fi(t,r.b,"start"),y&&(d(),c=sn(t,s,r.b,r.duration,0,u,o.css))),r){if(w>=r.end)h(s=r.b,1-s),fi(t,r.b,"end"),f||(r.b?d():--r.group.r||Ae(r.group.c)),r=null;else if(w>=r.start){const S=w-r.start;s=r.a+r.d*u(S/r.duration),h(s,1-s);}}return !!(r||f)}));}return {run(I){vi(o)?Ro().then(()=>{o=o(l),_(I);}):_(I);},end(){d(),r=f=null;}}}function qt(t,e){const i=e.token={};function n(l,o,s,r){if(e.token!==i)return;e.resolved=r;let f=e.ctx;s!==void 0&&(f=f.slice(),f[s]=r);const c=l&&(e.current=l)(f);let d=!1;e.block&&(e.blocks?e.blocks.forEach((p,_)=>{_!==o&&p&&(Ve(),Z(p,1,1,()=>{e.blocks[_]===p&&(e.blocks[_]=null);}),xe());}):e.block.d(1),c.c(),Y(c,1),c.m(e.mount(),e.anchor),d=!0),e.block=c,e.blocks&&(e.blocks[o]=c),d&&bi();}if(_o(t)){const l=ei();if(t.then(o=>{ct(l),n(e.then,1,e.value,o),ct(null);},o=>{if(ct(l),n(e.catch,2,e.error,o),ct(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 jl(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 zl(t,e){Z(t,1,1,()=>{e.delete(t.key);});}function Ol(t,e,i,n,l,o,s,r,f,c,d,p){let _=t.length,I=o.length,m=_;const M={};for(;m--;)M[t[m].key]=m;const u=[],h=new Map,y=new Map,v=[];for(m=I;m--;){const L=p(l,o,m),R=i(L);let A=s.get(R);A?n&&v.push(()=>A.p(L,e)):(A=c(R,L),A.c()),h.set(R,u[m]=A),R in M&&y.set(R,Math.abs(m-M[R]));}const w=new Set,S=new Set;function C(L){Y(L,1),L.m(r,d),s.set(L.key,L),d=L.first,I--;}for(;_&&I;){const L=u[I-1],R=t[_-1],A=L.key,j=R.key;L===R?(d=L.first,_--,I--):h.has(j)?!s.has(A)||w.has(A)?C(L):S.has(j)?_--:y.get(A)>y.get(j)?(S.add(A),C(L)):(w.add(j),_--):(f(R,s),_--);}for(;_--;){const L=t[_];h.has(L.key)||f(L,s);}for(;I;)C(u[I-1]);return Ae(v),u}function Xe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]));}function re(t){t&&t.c();}function le(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||It(()=>{const s=t.$$.on_mount.map(Dl).filter(vi);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ae(s),t.$$.on_mount=[];}),o.forEach(It);}function oe(t,e){const i=t.$$;i.fragment!==null&&(Po(i.after_update),Ae(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[]);}function Qo(t,e){t.$$.dirty[0]===-1&&(kt.push(t),zo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const m=I.length?I[0]:_;return c.ctx&&l(c.ctx[p],c.ctx[p]=m)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](m),d&&Qo(t,p)),_}):[],c.update(),d=!0,Ae(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=Lo(e.target);c.fragment&&c.fragment.l(p),p.forEach(b);}else c.fragment&&c.fragment.c();e.intro&&Y(t.$$.fragment),le(t,e.target,e.anchor,e.customElement),bi();}ct(f);}class Ue{$destroy(){oe(this,1),this.$destroy=B;}$on(e,i){if(!vi(i))return B;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&&!ho(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1);}}/*! * 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(f){l.error(f);};function s(f,c,d){if(d=d||i||e.jQuery,!d)return;c.prototype.option||(c.prototype.option=function(I){d.isPlainObject(I)&&(this.options=d.extend(!0,this.options,I));}),d.fn[f]=function(I){if(typeof I=="string"){var m=n.call(arguments,1);return p(this,I,m)}return _(this,I),this};function p(I,m,M){var u,h="$()."+f+'("'+m+'")';return I.each(function(y,v){var w=d.data(v,f);if(!w){o(f+" not initialized. Cannot call methods, i.e. "+h);return}var S=w[m];if(!S||m.charAt(0)=="_"){o(h+" is not a valid method");return}var C=S.apply(w,M);u=u===void 0?C:u;}),u!==void 0?u:I}function _(I,m){I.each(function(M,u){var h=d.data(u,f);h?(h.option(m),h._init()):(h=new c(u,m),d.data(u,f,h));});}r(d);}function r(f){!f||f&&f.bridget||(f.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"u"?i:function(_){console.error(_);},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=l.length;function s(){for(var _={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},I=0;I