5 lines
11 KiB
JavaScript
5 lines
11 KiB
JavaScript
function m(){}const lt=t=>t;function ut(t,n){for(const e in n)t[e]=n[e];return t}function Q(t){return t()}function G(){return Object.create(null)}function b(t){t.forEach(Q)}function B(t){return typeof t=="function"}function at(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function ft(t){return Object.keys(t).length===0}function F(t,...n){if(t==null)return m;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Tt(t){let n;return F(t,e=>n=e)(),n}function Bt(t,n,e){t.$$.on_destroy.push(F(n,e))}function Ft(t,n,e,i){if(t){const s=U(t,n,e,i);return t[0](s)}}function U(t,n,e,i){return t[1]&&i?ut(e.ctx.slice(),t[1](i(n))):e.ctx}function Ht(t,n,e,i){if(t[2]&&i){const s=t[2](i(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const u=[],r=Math.max(n.dirty.length,s.length);for(let o=0;o<r;o+=1)u[o]=n.dirty[o]|s[o];return u}return n.dirty|s}return n.dirty}function It(t,n,e,i,s,u){if(s){const r=U(n,e,i,u);t.p(r,s)}}function Wt(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let i=0;i<e;i++)n[i]=-1;return n}return-1}function Gt(t){return t==null?"":t}function Jt(t,n,e){return t.set(e),n}const V=typeof window<"u";let dt=V?()=>window.performance.now():()=>Date.now(),H=V?t=>requestAnimationFrame(t):m;const w=new Set;function X(t){w.forEach(n=>{n.c(t)||(w.delete(n),n.f())}),w.size!==0&&H(X)}function _t(t){let n;return w.size===0&&H(X),{promise:new Promise(e=>{w.add(n={c:t,f:e})}),abort(){w.delete(n)}}}let D=!1;function ht(){D=!0}function mt(){D=!1}function pt(t,n,e,i){for(;t<n;){const s=t+(n-t>>1);e(s)<=i?t=s+1:n=s}return t}function yt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let c=0;c<n.length;c++){const d=n[c];d.claim_order!==void 0&&l.push(d)}n=l}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let s=0;for(let l=0;l<n.length;l++){const c=n[l].claim_order,d=(s>0&&n[e[s]].claim_order<=c?s+1:pt(1,s,a=>n[e[a]].claim_order,c))-1;i[l]=e[d]+1;const f=d+1;e[f]=l,s=Math.max(f,s)}const u=[],r=[];let o=n.length-1;for(let l=e[s]+1;l!=0;l=i[l-1]){for(u.push(n[l-1]);o>=l;o--)r.push(n[o]);o--}for(;o>=0;o--)r.push(n[o]);u.reverse(),r.sort((l,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l<r.length;l++){for(;c<u.length&&r[l].claim_order>=u[c].claim_order;)c++;const d=c<u.length?u[c]:null;t.insertBefore(r[l],d)}}function gt(t,n){t.appendChild(n)}function Y(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function bt(t){const n=tt("style");return xt(Y(t),n),n.sheet}function xt(t,n){return gt(t.head||t,n),n.sheet}function $t(t,n){if(D){for(yt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function Kt(t,n,e){D&&!e?$t(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function Z(t){t.parentNode.removeChild(t)}function Qt(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function tt(t){return document.createElement(t)}function wt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function I(t){return document.createTextNode(t)}function Ut(){return I(" ")}function Vt(){return I("")}function Xt(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function Yt(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function Zt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function tn(t){return t===""?null:+t}function vt(t){return Array.from(t.childNodes)}function Et(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function nt(t,n,e,i,s=!1){Et(t);const u=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(n(o)){const l=e(o);return l===void 0?t.splice(r,1):t[r]=l,s||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(n(o)){const l=e(o);return l===void 0?t.splice(r,1):t[r]=l,s?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function et(t,n,e,i){return nt(t,s=>s.nodeName===n,s=>{const u=[];for(let r=0;r<s.attributes.length;r++){const o=s.attributes[r];e[o.name]||u.push(o.name)}u.forEach(r=>s.removeAttribute(r))},()=>i(n))}function nn(t,n,e){return et(t,n,e,tt)}function en(t,n,e){return et(t,n,e,wt)}function Nt(t,n){return nt(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>I(n),!0)}function rn(t){return Nt(t," ")}function sn(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function cn(t,n){t.value=n==null?"":n}function on(t,n,e,i){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function ln(t,n,e){t.classList[e?"add":"remove"](n)}function it(t,n,{bubbles:e=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e,i,n),s}const M=new Map;let P=0;function kt(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}function At(t,n){const e={stylesheet:bt(n),rules:{}};return M.set(t,e),e}function J(t,n,e,i,s,u,r,o=0){const l=16.666/i;let c=`{
|
|
`;for(let g=0;g<=1;g+=l){const x=n+(e-n)*u(g);c+=g*100+`%{${r(x,1-x)}}
|
|
`}const d=c+`100% {${r(e,1-e)}}
|
|
}`,f=`__svelte_${kt(d)}_${o}`,a=Y(t),{stylesheet:_,rules:h}=M.get(a)||At(a,t);h[f]||(h[f]=!0,_.insertRule(`@keyframes ${f} ${d}`,_.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${i}ms linear ${s}ms 1 both`,P+=1,f}function St(t,n){const e=(t.style.animation||"").split(", "),i=e.filter(n?u=>u.indexOf(n)<0:u=>u.indexOf("__svelte")===-1),s=e.length-i.length;s&&(t.style.animation=i.join(", "),P-=s,P||Ct())}function Ct(){H(()=>{P||(M.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&Z(n)}),M.clear())})}let k;function N(t){k=t}function W(){if(!k)throw new Error("Function called outside component initialization");return k}function un(t){W().$$.on_mount.push(t)}function an(t){W().$$.after_update.push(t)}function fn(){const t=W();return(n,e,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[n];if(s){const u=it(n,e,{cancelable:i});return s.slice().forEach(r=>{r.call(t,u)}),!u.defaultPrevented}return!0}}function dn(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(i=>i.call(this,n))}const E=[],K=[],C=[],R=[],rt=Promise.resolve();let T=!1;function st(){T||(T=!0,rt.then(ct))}function _n(){return st(),rt}function z(t){C.push(t)}function hn(t){R.push(t)}const q=new Set;let S=0;function ct(){const t=k;do{for(;S<E.length;){const n=E[S];S++,N(n),jt(n.$$)}for(N(null),E.length=0,S=0;K.length;)K.pop()();for(let n=0;n<C.length;n+=1){const e=C[n];q.has(e)||(q.add(e),e())}C.length=0}while(E.length);for(;R.length;)R.pop()();T=!1,q.clear(),N(t)}function jt(t){if(t.fragment!==null){t.update(),b(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(z)}}let v;function Mt(){return v||(v=Promise.resolve(),v.then(()=>{v=null})),v}function L(t,n,e){t.dispatchEvent(it(`${n?"intro":"outro"}${e}`))}const j=new Set;let p;function mn(){p={r:0,c:[],p}}function pn(){p.r||b(p.c),p=p.p}function Pt(t,n){t&&t.i&&(j.delete(t),t.i(n))}function yn(t,n,e,i){if(t&&t.o){if(j.has(t))return;j.add(t),p.c.push(()=>{j.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}const zt={duration:0};function gn(t,n,e,i){let s=n(t,e),u=i?0:1,r=null,o=null,l=null;function c(){l&&St(t,l)}function d(a,_){const h=a.b-u;return _*=Math.abs(h),{a:u,b:a.b,d:h,duration:_,start:a.start,end:a.start+_,group:a.group}}function f(a){const{delay:_=0,duration:h=300,easing:y=lt,tick:g=m,css:x}=s||zt,O={start:dt()+_,b:a};a||(O.group=p,p.r+=1),r||o?o=O:(x&&(c(),l=J(t,u,a,h,_,y,x)),a&&g(0,1),r=d(O,h),z(()=>L(t,a,"start")),_t(A=>{if(o&&A>o.start&&(r=d(o,h),o=null,L(t,r.b,"start"),x&&(c(),l=J(t,u,r.b,r.duration,0,y,s.css))),r){if(A>=r.end)g(u=r.b,1-u),L(t,r.b,"end"),o||(r.b?c():--r.group.r||b(r.group.c)),r=null;else if(A>=r.start){const ot=A-r.start;u=r.a+r.d*y(ot/r.duration),g(u,1-u)}}return!!(r||o)}))}return{run(a){B(s)?Mt().then(()=>{s=s(),f(a)}):f(a)},end(){c(),r=o=null}}}function bn(t,n,e){const i=t.$$.props[n];i!==void 0&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function xn(t){t&&t.c()}function $n(t,n){t&&t.l(n)}function Dt(t,n,e,i){const{fragment:s,on_mount:u,on_destroy:r,after_update:o}=t.$$;s&&s.m(n,e),i||z(()=>{const l=u.map(Q).filter(B);r?r.push(...l):b(l),t.$$.on_mount=[]}),o.forEach(z)}function Ot(t,n){const e=t.$$;e.fragment!==null&&(b(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function qt(t,n){t.$$.dirty[0]===-1&&(E.push(t),st(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function wn(t,n,e,i,s,u,r,o=[-1]){const l=k;N(t);const c=t.$$={fragment:null,ctx:null,props:u,update:m,not_equal:s,bound:G(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:G(),dirty:o,skip_bound:!1,root:n.target||l.$$.root};r&&r(c.root);let d=!1;if(c.ctx=e?e(t,n.props||{},(f,a,..._)=>{const h=_.length?_[0]:a;return c.ctx&&s(c.ctx[f],c.ctx[f]=h)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](h),d&&qt(t,f)),a}):[],c.update(),d=!0,b(c.before_update),c.fragment=i?i(c.ctx):!1,n.target){if(n.hydrate){ht();const f=vt(n.target);c.fragment&&c.fragment.l(f),f.forEach(Z)}else c.fragment&&c.fragment.c();n.intro&&Pt(t.$$.fragment),Dt(t,n.target,n.anchor,n.customElement),mt(),ct()}N(l)}class vn{$destroy(){Ot(this,1),this.$destroy=m}$on(n,e){const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}$set(n){this.$$set&&!ft(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const $=[];function Lt(t,n){return{subscribe:Rt(t,n).subscribe}}function Rt(t,n=m){let e;const i=new Set;function s(o){if(at(t,o)&&(t=o,e)){const l=!$.length;for(const c of i)c[1](),$.push(c,t);if(l){for(let c=0;c<$.length;c+=2)$[c][0]($[c+1]);$.length=0}}}function u(o){s(o(t))}function r(o,l=m){const c=[o,l];return i.add(c),i.size===1&&(e=n(s)||m),o(t),()=>{i.delete(c),i.size===0&&(e(),e=null)}}return{set:s,update:u,subscribe:r}}function En(t,n,e){const i=!Array.isArray(t),s=i?[t]:t,u=n.length<2;return Lt(e,r=>{let o=!1;const l=[];let c=0,d=m;const f=()=>{if(c)return;d();const _=n(i?l[0]:l,r);u?r(_):d=B(_)?_:m},a=s.map((_,h)=>F(_,y=>{l[h]=y,c&=~(1<<h),o&&f()},()=>{c|=1<<h}));return o=!0,f(),function(){b(a),d()}})}export{b as $,Rt as A,Ft as B,It as C,Wt as D,Ht as E,Bt as F,$t as G,En as H,Tt as I,m as J,K,wt as L,en as M,Qt as N,Xt as O,Gt as P,lt as Q,Yt as R,vn as S,fn as T,ln as U,z as V,gn as W,bn as X,hn as Y,dn as Z,cn as _,Ut as a,tn as a0,Jt as a1,Kt as b,rn as c,pn as d,Vt as e,Pt as f,mn as g,Z as h,wn as i,an as j,tt as k,nn as l,vt as m,Zt as n,un as o,on as p,I as q,Nt as r,at as s,yn as t,sn as u,xn as v,$n as w,Dt as x,Ot as y,_n as z};
|