text: function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function i(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function s(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(n,e,i){n.$$.on_destroy.push(function(n,...e){if(null==n)return t;const i=n.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}(e,i))}function c(t,n,e,i){if(t){const r=u(t,n,e,i);return t[0](r)}}function u(t,e,i,r){return t[1]&&r?n(i.ctx.slice(),t[1](r(e))):i.ctx}function l(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(void 0===n.dirty)return r;if("object"==typeof r){const t=[],e=Math.max(n.dirty.length,r.length);for(let i=0;i<e;i+=1)t[i]=n.dirty[i]|r[i];return t}return n.dirty|r}return n.dirty}function f(t,n,e,i,r,o){if(r){const s=u(n,e,i,o);t.p(s,r)}}function h(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let t=0;t<e;t++)n[t]=-1;return n}return-1}function d(t,n,e){return t.set(e),n}let m,y=!1;function x(t,n,e,i){for(;t<n;){const r=t+(n-t>>1);e(r)<=i?t=r+1:n=r}return t}function _(t,n){if(y){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let e=0;e<n.length;e++){const i=n[e];void 0!==i.claim_order&&t.push(i)}n=t}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let r=0;for(let c=0;c<n.length;c++){const t=n[c].claim_order,o=(r>0&&n[e[r]].claim_order<=t?r+1:x(1,r,(t=>n[e[t]].claim_order),t))-1;i[c]=e[o]+1;const s=o+1;e[s]=c,r=Math.max(s,r)}const o=[],s=[];let a=n.length-1;for(let c=e[r]+1;0!=c;c=i[c-1]){for(o.push(n[c-1]);a>=c;a--)s.push(n[a]);a--}for(;a>=0;a--)s.push(n[a]);o.reverse(),s.sort(((t,n)=>t.claim_order-n.claim_order));for(let c=0,u=0;c<s.length;c++){for(;u<o.length&&s[c].claim_order>=o[u].claim_order;)u++;const n=u<o.length?o[u]:null;t.insertBefore(s[c],n)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?void 0===n.claim_order&&n.parentNode===t||t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else n.parentNode===t&&null===n.nextSibling||t.appendChild(n)}function g(t,n,e){y&&!e?_(t,n):n.parentNode===t&&n.nextSibling==e||t.insertBefore(n,e||null)}function p(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function M(){return b(" ")}function v(){return b("")}function w(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function E(t){return function(n){return n.preventDefault(),t.call(this,n)}}function A(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function N(t){return""===t?null:+t}function k(t){return Array.from(t.childNodes)}function z(t,n,e,i,r=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let i=t.claim_info.last_index;i<t.length;i++){const o=t[i];if(n(o)){const n=e(o);return void 0===n?t.splice(i,1):t[i]=n,r||(t.claim_info.last_index=i),o}}for(let i=t.claim_info.last_index-1;i>=0;i--){const o=t[i];if(n(o)){const n=e(o);return void 0===n?t.splice(i,1):t[i]=n,r?void 0===n&&t.claim_info.last_index--:t.claim_info.last_index=i,o}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function S(t,n,e){return function(t,n,e,i){return z(t,(t=>t.nodeName===n),(t=>{const n=[];for(let i=0;i<t.attributes.length;i++){const r=t.attributes[i];e[r.name]||n.push(r.name)}n.forEach((n=>t.removeAttribute(n)))}),(()=>i(n)))}(t,n,e,$)}function C(t,n){return z(t,(t=>3===t.nodeType),(t=>{const e=""+n;if(t.data.startsWith(e)){if(t.data.length!==e.length)return t.splitText(e.length)}else t.data=e}),(()=>b(n)),!0)}function j(t){return C(t," ")}function q(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function B(t,n){t.value=null==n?"":n}function P(t,n,e,i){t.style.setProperty(n,e,i?"important":"")}function T(t,n,e){t.classList[e?"add":"remove"](n)}function I(t,n=document.body){return Array.from(n.querySelectorAll(t))}function L(t){m=t}function O(){if(!m)throw new Error("Function called outside component initialization");return m}function D(t){O().$$.on_mount.push(t)}function F(t){O().$$.after_update.push(t)}function H(t,n){O().$$.context.set(t,n)}const W=[],X=[],Y=[],Z=[],G=Promise.resolve();let J=!1;function K(){J||(J=!0,G.then(nt))}function Q(){return K(),G}function R(t){Y.push(t)}function U(t){Z.push(t)}let V=!1;const tt=new Set;function nt(){if(!V){V=!0;do{for(let t=0;t<W.length;t+=1){const n=W[t];L(n),et(n.$$)}for(L(null),W.length=0;X.length;)X.pop()();for(let t=0;t<Y.length;t+=1){const n=Y[t];tt.has(n)||(tt.add(n),n())}Y.length=0}while(W.length);for(;Z.length;)Z.pop()();J=!1,V=!1,tt.clear()}}function et(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(R)}}const it=new Set;let rt;function ot(){rt={r:0,c:[],p:rt}}function st(){rt.r||r(rt.c),rt=rt.p}function at(t,n){t&&t.i&&(it.delete(t),t.i(n))}function ct(t,n,e,i){if(t&&t.o){if(it.has(t))return;it.add(t),rt.c.push((()=>{it.delete(t),i&&(e&&t.d(1),i())})),t.o(n)}}function ut(t,n){const e={},i={},r={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=n[o];if(a){for(const t in s)t in a||(i[t]=1);for(const t in a)r[t]||(e[t]=a[t],r[t]=1);t[o]=a}else for(const t in s)r[t]=1}for(const s in i)s in e||(e[s]=void 0);return e}function lt(t){return"object"==typeof t&&null!==t?t:{}}function ft(t,n,e){const i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function ht(t){t&&t.c()}function dt(t,n){t&&t.l(n)}function mt(t,n,i,s){const{fragment:a,on_mount:c,on_destroy:u,after_update:l}=t.$$;a&&a.m(n,i),s||R((()=>{const n=c.map(e).filter(o);u?u.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(R)}function yt(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function xt(n,e,o,s,a,c,u,l=[-1]){const f=m;L(n);const h=n.$$={fragment:null,ctx:null,props:c,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:e.context||[]),callbacks:i(),dirty:l,skip_bound:!1,root:e.target||f.$$.root};u&&u(h.root);let d=!1;if(h.ctx=o?o(n,e.props||{},((t,e,...i)=>{const r=i.length?i[0]:e;return h.ctx&&a(h.ctx[t],h.ctx[t]=r)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](r),d&&function(t,n){-1===t.$$.dirty[0]&&(W.push(t),K(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}(n,t)),e})):[],h.update(),d=!0,r(h.before_update),h.fragment=!!s&&s(h.ctx),e.target){if(e.hydrate){y=!0;const t=k(e.target);h.fragment&&h.fragment.l(t),t.forEach(p)}else h.fragment&&h.fragment.c();e.intro&&at(n.$$.fragment),mt(n,e.target,e.anchor,e.customElement),y=!1,nt()}L(f)}class _t{$destroy(){yt(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt=[];function pt(t,n){return{subscribe:$t(t,n).subscribe}}function $t(n,e=t){let i;const r=new Set;function o(t){if(s(n,t)&&(n=t,i)){const t=!gt.length;for(const e of r)e[1](),gt.push(e,n);if(t){for(let t=0;t<gt.length;t+=2)gt[t][0](gt[t+1]);gt.length=0}}}return{set:o,update:function(t){o(t(n))},subscribe:function(s,a=t){const c=[s,a];return r.add(c),1===r.size&&(i=e(o)||t),s(n),()=>{r.delete(c),0===r.size&&(i(),i=null)}}}}class bt{constructor(t=0,n=0){this.x=t,this.y=n}static add(t,n){return new bt(t.x+n.x,t.y+n.y)}static angleBetween(t,n){return Math.atan2(n.y*t.x-n.x*t.y,n.x*t.x+n.y*t.y)}static clone(t){return new bt(t.x,t.y)}static distance(t,n){const e=t.x-n.x,i=t.y-n.y;return Math.sqrt(e*e+i*i)}static distanceChebyshev(t,n){return Math.max(Math.abs(t.x-n.x),Math.abs(t.y-n.y))}static distanceManhattan(t,n){return Math.sqrt(Math.abs(t.x-n.x)+Math.abs(t.y-n.y))}static distanceMinkowski(t,n,e){return 0===e?(console.error("Cannot divide by zero."),NaN):(Math.abs(t.x-n.x)**e+Math.abs(t.y-n.y)**e)**(1/e)}static dot(t,n){return t.x*n.x+t.y*n.y}static equal(t,n){return t.x===n.x&&t.y===n.y}static fromCopy(t){return new bt(t.x,t.y)}static fromPolarCoords(t,n){return new bt(t*Math.cos(n),t*Math.sin(n))}static lerp(t,n,e){return e>1?e=1:e<0&&(e=0),new bt(t.x+(n.x-t.x)*e,t.y+(n.y-t.y)*e)}static project(t,n){return bt.clone(n).normalize().scale(t.magnitude*Math.cos(bt.angleBetween(t,n)))}static random(t=0,n=1){const e=t+Math.random()*(n-t),i=Math.random()*Math.PI*2;return new bt(e*Math.cos(i),e*Math.sin(i))}static subtract(t,n){return new bt(t.x-n.x,t.y-n.y)}get angleX(){return Math.atan2(this.y,this.x)}get angleY(){return Math.atan2(this.x,this.y)}get magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)}get xy(){return[this.x,this.y]}set limit(t){this.magnitude>t&&(this.normalize(),this.x*=t,this.y*=t)}set magnitude(t){this.normalize(),this.x*=t,this.y*=t}set xy(t){this.x=t[0],this.y=t[1]}add(t){return this.x+=t.x,this.y+=t.y,this}clamp(t,n){const e=this.magnitude;return e>n?this.magnitude=n:e<t&&(this.magnitude=t),this}copy(t){return this.x=t.x,this.y=t.y,this}limitMaxMagnitude(t){const n=this.magnitude;return n>t&&n>0&&(this.normalize(),this.x*=t,this.y*=t),this}limitMinMagnitude(t){const n=this.magnitude;return n<t&&n>0&&(this.normalize(),this.x*=t,this.y*=t),this}normalize(){let t=this.magnitude;return 0===t||(t=1/t,this.x*=t,this.y*=t),this}rotateAxisZ(t){return[this.x,this.y]=[this.x*Math.cos(t)+this.y*-Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t)],this}scale(t){return this.x*=t,this.y*=t,this}subtract(t){return this.x-=t.x,this.y-=t.y,this}}export{D as A,n as B,$t as C,R as D,P as E,w as F,t as G,a as H,d as I,c as J,I as K,f as L,h as M,l as N,pt as O,_ as P,T as Q,B as R,_t as S,N as T,r as U,bt as V,E as W,X,ft as Y,U as Z,Q as _,k as a,A as b,S as c,p as d,$ as e,g as f,C as g,q as h,xt as i,ht as j,M as k,v as l,dt as m,j as n,mt as o,ut as p,lt as q,ot as r,s,b as t,ct as u,yt as v,st as w,at as x,H as y,F as z};
  