Anvil/assets/index-b180c43f.js

5 lines
6.4 KiB
JavaScript
Raw Normal View History

2024-03-14 18:43:30 +01:00
var it=Object.defineProperty;var st=(t,e,n)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var D=(t,e,n)=>(st(t,typeof e!="symbol"?e+"":e,n),n);import{n as v,r as b,i as C,d as V,e as T,f as rt,g as at}from"./utils-09ff0c0e.js";import{v as ot,d as X,w as ft,x as A,y as Y,z as lt,f as ut,A as ct,B as dt}from"./lifecycle-16e1fb41.js";const Z=typeof window<"u";let G=Z?()=>window.performance.now():()=>Date.now(),H=Z?t=>requestAnimationFrame(t):v;const O=new Set;function tt(t){O.forEach(e=>{e.c(t)||(O.delete(e),e.f())}),O.size!==0&&H(tt)}function J(t){let e;return O.size===0&&H(tt),{promise:new Promise(n=>{O.add(e={c:t,f:n})}),abort(){O.delete(e)}}}const B=new Map;let I=0;function _t(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ht(t,e){const n={stylesheet:ft(e),rules:{}};return B.set(t,n),n}function N(t,e,n,i,l,a,u,s=0){const c=16.666/i;let r=`{
`;for(let h=0;h<=1;h+=c){const m=e+(n-e)*a(h);r+=h*100+`%{${u(m,1-m)}}
`}const d=r+`100% {${u(n,1-n)}}
}`,f=`__svelte_${_t(d)}_${s}`,p=ot(t),{stylesheet:g,rules:o}=B.get(p)||ht(p,t);o[f]||(o[f]=!0,g.insertRule(`@keyframes ${f} ${d}`,g.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${i}ms linear ${l}ms 1 both`,I+=1,f}function q(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),l=n.length-i.length;l&&(t.style.animation=i.join(", "),I-=l,I||gt())}function gt(){H(()=>{I||(B.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&X(e)}),B.clear())})}const S=[],W=[];let P=[];const L=[],pt=Promise.resolve();let U=!1;function mt(){U||(U=!0,pt.then(et))}function j(t){P.push(t)}function Pt(t){L.push(t)}const F=new Set;let E=0;function et(){if(E!==0)return;const t=Y;do{try{for(;E<S.length;){const e=S[E];E++,A(e),$t(e.$$)}}catch(e){throw S.length=0,E=0,e}for(A(null),S.length=0,E=0;W.length;)W.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];F.has(n)||(F.add(n),n())}P.length=0}while(S.length);for(;L.length;)L.pop()();U=!1,F.clear(),A(t)}function $t(t){if(t.fragment!==null){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j)}}function yt(t){const e=[],n=[];P.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),P=e}let z;function K(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function x(t,e,n){t.dispatchEvent(lt(`${e?"intro":"outro"}${n}`))}const R=new Set;let $;function jt(){$={r:0,c:[],p:$}}function zt(){$.r||b($.c),$=$.p}function wt(t,e){t&&t.i&&(R.delete(t),t.i(e))}function At(t,e,n,i){if(t&&t.o){if(R.has(t))return;R.add(t),$.c.push(()=>{R.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const Q={duration:0};function Ct(t,e,n){const i={direction:"in"};let l=e(t,n,i),a=!1,u,s,c=0;function r(){u&&q(t,u)}function d(){const{delay:p=0,duration:g=300,easing:o=V,tick:_=v,css:h}=l||Q;h&&(u=N(t,0,1,g,p,o,h,c++)),_(0,1);const m=G()+p,y=m+g;s&&s.abort(),a=!0,j(()=>x(t,!0,"start")),s=J(w=>{if(a){if(w>=y)return _(1,0),x(t,!0,"end"),r(),a=!1;if(w>=m){const k=o((w-m)/g);_(k,1-k)}}return a})}let f=!1;return{start(){f||(f=!0,q(t),C(l)?(l=l(i),K().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function Mt(t,e,n){const i={direction:"out"};let l=e(t,n,i),a=!0,u;const s=$;s.r+=1;let c;function r(){const{delay:d=0,duration:f=300,easing:p=V,tick:g=v,css:o}=l||Q;o&&(u=N(t,1,0,f,d,p,o));const _=G()+d,h=_+f;j(()=>x(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),J(m=>{if(a){if(m>=h)return g(0,1),x(t,!1,"end"),--s.r||b(s.c),!1;if(m>=_){const y=p((m-_)/f);g(1-y,y)}}return a})}return C(l)?K().then(()=>{l=l(i),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=c),d&&l.tick&&l.tick(1,0),a&&(u&&q(t,u),a=!1)}}}function Rt(t,e,n,i){let a=e(t,n,{direction:"both"}),u=i?0:1,s=null,c=null,r=null,d;function f(){r&&q(t,r)}function p(o,_){const h=o.b-u;return _*=Math.abs(h),{a:u,b:o.b,d:h,duration:_,start:o.start,end:o.start+_,group:o.group}}function g(o){const{delay:_=0,duration:h=300,easing:m=V,tick:y=v,css:w}=a||Q,k={start:G()+_,b:o};o||(k.group=$,$.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),s||c?c=k:(w&&(f(),r=N(t,u,o,h,_,m,w)),o&&y(0,1),s=p(k,h),j(()=>x(t,o,"start")),J(M=>{if(c&&M>c.start&&(s=p(c,h),c=null,x(t,s.b,"start"),w&&(f(),r=N(t,u,s.b,s.duration,0,m,a.css))),s){if(M>=s.end)y(u=s.b,1-u),x(t,s.b,"end"),c||(s.b?f():--s.group.r||b(s.group.c)),s=null;else if(M>=s.start){const nt=M-s.start;u=s.a+s.d*m(nt/s.duration),y(u,1-u)}}return!!(s||c)}))}return{run(o){C(a)?K().then(()=>{a=a({direction:o?"in":"out"}),g(o)}):g(o)},end(){f(),s=c=null}}}function Bt(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function It(t){t&&t.c()}function Nt(t,e){t&&t.l(e)}function xt(t,e,n){const{fragment:i,after_update:l}=t.$$;i&&i.m(e,n),j(()=>{const a=t.$$.on_mount.map(at).filter(C);t.$$.on_destroy?t.$$.on_destroy.push(...a):b(a),t.$$.on_mount=[]}),l.forEach(j)}function vt(t,e){const n=t.$$;n.fragment!==null&&(yt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[